【update】标签管理+数据字典-一些细节的处理

This commit is contained in:
fengchenchen
2023-08-25 22:46:20 +08:00
parent 5f9726840d
commit 4fd32f1d2f
12 changed files with 238 additions and 117 deletions
+9 -3
View File
@@ -133,12 +133,18 @@ export default {
this.model.description = (this.model.description || '').trim()
this.model.status = this.status
let obj
// 数据字典
if (!this.model.id) {
obj = addDictItem(this.model)
obj = addDictItem
} else {
obj = editDictItem(this.model)
obj = editDictItem
}
obj.then((res) => {
const params = Object.assign({}, this.model, {
dictId: this.dictId, // 数据字典的id
isTagDict: 0, // 是否为标签管理的表示
delFlag: 0 // 是否删除的标识,新的接口必须增加这一个字段,可以联系后端沟通,否则不能查看
})
obj(params).then((res) => {
if (res.success) {
that.$message.success(res.message)
that.$emit('ok')