diff --git a/src/views/data/Introduce.vue b/src/views/data/Introduce.vue index 1afe752..69571b0 100644 --- a/src/views/data/Introduce.vue +++ b/src/views/data/Introduce.vue @@ -22,7 +22,7 @@

数据源

- +
@@ -64,7 +64,7 @@ export default { defaultActive: [], editing: false, introduce: '', - source: '', + dataSource: '', introduceText: '', categoryId: '', keywordList: [], @@ -98,6 +98,7 @@ export default { this.typeList = res // 取首个的id和简介 + this.dataSource = res[0].dataSource if(res[0].children.length){ let item = res[0].children[0] this.categoryId = item.id @@ -118,6 +119,7 @@ export default { this.categoryId = data.id this.introduceText = data.introduce this.introduce = data.introduce + this.dataSource = data.dataSource this.getKeyword() }, getKeyword(){ @@ -134,7 +136,8 @@ export default { confirmEdit(){ this.$post(this.api.updateCategory,{ id: this.categoryId, - introduce: this.introduce + introduce: this.introduce, + dataSource: this.dataSource }).then(res => { this.$message.success(this.introduceText ? '编辑成功' : '新增成功') this.introduceText = this.introduce diff --git a/src/views/data/Product.vue b/src/views/data/Product.vue index 58f0dc2..4cf09ff 100644 --- a/src/views/data/Product.vue +++ b/src/views/data/Product.vue @@ -265,6 +265,7 @@ export default { list.map(n => { n.label = n.showName n.id = String(n.id) + n.disabled = true }) // 如果是懒加载的情况,则拼接 if(isConcat){ @@ -286,6 +287,7 @@ export default { n.originId = n.id n.id = String(++that.typeIndex) n.label = n.categoryName + n.disabled = true if(n.children.length){ handleId(n.children) } @@ -300,6 +302,7 @@ export default { getTable(n.children) }else{ n.typePage = 1 + n.disabled = true that.getTable(n) } })