This commit is contained in:
@fawn-nine
2024-06-06 11:57:43 +08:00
parent 3c0e7ec342
commit 292ce24ba0
2 changed files with 13 additions and 7 deletions

View File

@@ -265,7 +265,7 @@ export default {
data: {}
};
}
this.currentNode = newNodeData;
this.currentNode = newNodeData;
this.$forceUpdate();
this.$nextTick(() => {
this.$refs.tree.setCurrentKey(id);
@@ -387,7 +387,7 @@ export default {
);
this.addForm = {};
// console.log(this.$refs.tree.handleClickNodes(), "当前选中节点");
console.log(node, data, "当前选中节点");
console.log(node, data, "当前选中节点-----------");
this.currentNode = node;
this.isFresh = false;
this.isFresh = true;
@@ -436,6 +436,7 @@ export default {
children: [],
delFlag: 0,
isLast: 0,
content:'',
pid: 0,
sort: 0,
title: ""

View File

@@ -16,8 +16,8 @@
v-loading="!isFresh"
style="width: calc(100% - 360px); height: 100%; overflow-y: scroll; float: right; border: 1px solid #bababa; border-top:none; box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); border-radius: 10px;position: relative;"
>
<el-tabs type="card">
<el-tab-pane label="基本标签信息">
<el-tabs type="card" v-model="activeName">
<el-tab-pane label="基本标签信息" name="first">
<div class="border_box info_box">
<div class="title_box">
<div class="title"><span class="line"></span>基本标签信息</div>
@@ -192,7 +192,7 @@
</div> -->
</el-tab-pane>
<el-tab-pane
label="已关联课程列表"
label="已关联课程列表" name="second"
v-if="currentNode && currentNode.data.isLast == 1"
>
<div
@@ -492,6 +492,7 @@ export default {
CanBindProductList: "/master/courseMedical/getCourseListCanMedical",
editCourse: "/master/courseMedical/updateCourseToMedicalSort"
},
activeName:'first',
addForm: {},
audioFileList: [],
isFresh: false,
@@ -726,8 +727,11 @@ export default {
this.isEdit = false;
this.isFresh = true;
console.log("🚀 ~ getCommonShopDataList ~ type, id:", type, id);
this.currentNode = { data: { ...form } };
this.addForm = form;
if(this.addForm.isLast == 0){
this.activeName = 'first'}
this.fimages = this.addForm.icon;
this.audioFileList = []
if(this.addForm.mediaType == 2 && this.addForm.media != ''){
@@ -909,6 +913,7 @@ export default {
// console.log(this.$refs.tree.handleClickNodes(), "当前选中节点");
console.log(node, data, "当前选中节点");
this.currentNode = node ? node : {};
this.isFresh = false;
this.isFresh = true;
@@ -926,14 +931,14 @@ export default {
delFlag: 0,
isLast: 0,
icon: "",
content:'',
pid: data.id,
sort: 0,
title: ""
};
break;
}
this.addForm = { ...form };
this.addForm = { ...form };
this.$nextTick(() => {
this.$refs.commonShop.clear();
// this.$refs.commonShop.bookMarketId = null;