Merge remote-tracking branch 'origin/master' into master

dev
yujialong 3 years ago
commit 150911139b
  1. 9
      src/views/data/Introduce.vue
  2. 3
      src/views/data/Product.vue

@ -22,7 +22,7 @@
<el-input placeholder="请输入简介" v-model="introduce" type="textarea" rows="5" :disabled="!editing"></el-input>
<div class="field">
<p class="label">数据源</p>
<el-input style="width: 250px" placeholder="请输入数据源" v-model="source" type="text"></el-input>
<el-input style="width: 250px" placeholder="请输入数据源" v-model="dataSource" type="text" :disabled="!editing"></el-input>
</div>
</template>
<div class="btns" v-if="editing">
@ -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

@ -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)
}
})

Loading…
Cancel
Save