mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +08:00
feat:评估编辑编辑传id
This commit is contained in:
@@ -103,6 +103,9 @@
|
|||||||
<button class="btn2" @click="createEvalText">确定</button>
|
<button class="btn2" @click="createEvalText">确定</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="aeLoading" :style="{display:addLoading?'flex':'none'}">
|
||||||
|
<a-spin :spinning="addLoading" tip="添加中..." />
|
||||||
|
</div> -->
|
||||||
</a-drawer>
|
</a-drawer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -149,7 +152,7 @@ export default {
|
|||||||
},
|
},
|
||||||
EditEvalId: {
|
EditEvalId: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: 147,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props, ctx) {
|
setup(props, ctx) {
|
||||||
@@ -166,6 +169,7 @@ export default {
|
|||||||
currentPage: 1, //当前页
|
currentPage: 1, //当前页
|
||||||
tableDataTotal: -1, //学习路径列表总数
|
tableDataTotal: -1, //学习路径列表总数
|
||||||
pageSize: 10, //每页10条数据
|
pageSize: 10, //每页10条数据
|
||||||
|
// addLoading:false,
|
||||||
});
|
});
|
||||||
|
|
||||||
const closeDrawer = () => {
|
const closeDrawer = () => {
|
||||||
@@ -273,6 +277,10 @@ export default {
|
|||||||
updateTime: "",
|
updateTime: "",
|
||||||
updateUser: 0,
|
updateUser: 0,
|
||||||
};
|
};
|
||||||
|
let queryobj = {
|
||||||
|
evaluationId:props.EditEvalId
|
||||||
|
}
|
||||||
|
console.log(queryobj,'ssssssssss');
|
||||||
if (props.edit == false) {
|
if (props.edit == false) {
|
||||||
api
|
api
|
||||||
.createEvaluation(obj)
|
.createEvaluation(obj)
|
||||||
@@ -326,7 +334,7 @@ export default {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
api
|
api
|
||||||
.queryEvaluationDetailById(objedit.evaluationId)
|
.queryEvaluationDetailById(queryobj)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
console.log("获取成功", res,objedit.evaluationId);
|
console.log("获取成功", res,objedit.evaluationId);
|
||||||
|
|||||||
@@ -1209,7 +1209,6 @@ export default {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
state.editonlinevisible = true;
|
state.editonlinevisible = true;
|
||||||
console.log(text, "编辑text");
|
console.log(text, "编辑text");
|
||||||
editInvistPath();
|
|
||||||
}}
|
}}
|
||||||
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||||
>
|
>
|
||||||
@@ -1852,11 +1851,12 @@ export default {
|
|||||||
state.isLiveEdit = 2;
|
state.isLiveEdit = 2;
|
||||||
state.EditLiveId = id;
|
state.EditLiveId = id;
|
||||||
};
|
};
|
||||||
//打开测评外链的弹窗
|
//打开测评的弹窗
|
||||||
const showEditEvalDrawer = (id) => {
|
const showEditEvalDrawer = (id) => {
|
||||||
console.log('222222222222222222222',id);
|
console.log('222222222222222222222',id);
|
||||||
state.addevalvisible = true;
|
state.addevalvisible = true;
|
||||||
state.EditRefId = id;
|
state.EditRefId = id;
|
||||||
|
console.log(state.EditRefId);
|
||||||
};
|
};
|
||||||
//编辑的按钮
|
//编辑的按钮
|
||||||
const decideType = (type, id) => {
|
const decideType = (type, id) => {
|
||||||
@@ -1869,7 +1869,7 @@ export default {
|
|||||||
showEditLiveDrawer(id);
|
showEditLiveDrawer(id);
|
||||||
}
|
}
|
||||||
else if (type == "测评") {
|
else if (type == "测评") {
|
||||||
showDrawerAddEval(id)
|
showEditEvalDrawer(id)
|
||||||
}
|
}
|
||||||
else if (type == "评估") {
|
else if (type == "评估") {
|
||||||
showDrawerAddInvist(id)
|
showDrawerAddInvist(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user