feat:评估编辑编辑传id

This commit is contained in:
dongwug
2022-11-08 09:06:46 +08:00
parent ba027857df
commit 1585c7b68f
2 changed files with 13 additions and 5 deletions

View File

@@ -103,6 +103,9 @@
<button class="btn2" @click="createEvalText">确定</button>
</div>
</div>
<!-- <div class="aeLoading" :style="{display:addLoading?'flex':'none'}">
<a-spin :spinning="addLoading" tip="添加中..." />
</div> -->
</a-drawer>
</template>
<script>
@@ -149,7 +152,7 @@ export default {
},
EditEvalId: {
type: Number,
default: null,
default: 147,
},
},
setup(props, ctx) {
@@ -166,6 +169,7 @@ export default {
currentPage: 1, //当前页
tableDataTotal: -1, //学习路径列表总数
pageSize: 10, //每页10条数据
// addLoading:false,
});
const closeDrawer = () => {
@@ -273,6 +277,10 @@ export default {
updateTime: "",
updateUser: 0,
};
let queryobj = {
evaluationId:props.EditEvalId
}
console.log(queryobj,'ssssssssss');
if (props.edit == false) {
api
.createEvaluation(obj)
@@ -326,7 +334,7 @@ export default {
}
else {
api
.queryEvaluationDetailById(objedit.evaluationId)
.queryEvaluationDetailById(queryobj)
.then((res) => {
setTimeout(() => {
console.log("获取成功", res,objedit.evaluationId);