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);

View File

@@ -1209,7 +1209,6 @@ export default {
onClick={() => {
state.editonlinevisible = true;
console.log(text, "编辑text");
editInvistPath();
}}
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
>
@@ -1852,11 +1851,12 @@ export default {
state.isLiveEdit = 2;
state.EditLiveId = id;
};
//打开测评外链的弹窗
//打开测评的弹窗
const showEditEvalDrawer = (id) => {
console.log('222222222222222222222',id);
state.addevalvisible = true;
state.EditRefId = id;
console.log(state.EditRefId);
};
//编辑的按钮
const decideType = (type, id) => {
@@ -1869,7 +1869,7 @@ export default {
showEditLiveDrawer(id);
}
else if (type == "测评") {
showDrawerAddEval(id)
showEditEvalDrawer(id)
}
else if (type == "评估") {
showDrawerAddInvist(id)