|
|
@ -47,7 +47,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="btns" v-if="editing"> |
|
|
|
<div class="btns" v-if="editing"> |
|
|
|
<el-button @click="editing = false">取 消</el-button> |
|
|
|
<el-button @click="editing = false">取 消</el-button> |
|
|
|
<el-button type="primary" @click="addKeyword">确 定</el-button> |
|
|
|
<el-button type="primary" @click="confirmData">确 定</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
</el-card> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
@ -148,6 +148,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 保存数据介绍和数据源 |
|
|
|
// 保存数据介绍和数据源 |
|
|
|
saveType(){ |
|
|
|
saveType(){ |
|
|
|
|
|
|
|
|
|
|
|
const id = this.categoryId // 获取当前分类id |
|
|
|
const id = this.categoryId // 获取当前分类id |
|
|
|
this.$post(this.api.updateCategory,{ |
|
|
|
this.$post(this.api.updateCategory,{ |
|
|
|
id, |
|
|
|
id, |
|
|
@ -158,7 +159,7 @@ export default { |
|
|
|
this.introduceText = this.introduce |
|
|
|
this.introduceText = this.introduce |
|
|
|
this.editing = false |
|
|
|
this.editing = false |
|
|
|
this.edited = true |
|
|
|
this.edited = true |
|
|
|
this.getData() |
|
|
|
// this.getData() |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => {}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 删除关键词 |
|
|
|
// 删除关键词 |
|
|
|