【update】标签管理修改成jtable

This commit is contained in:
fengchenchen
2023-08-25 17:22:05 +08:00
parent 91a649d1fe
commit 59e68f795b
8 changed files with 74 additions and 96 deletions
+6 -3
View File
@@ -119,12 +119,15 @@ export default {
this.model.dictCode = (this.model.dictCode || '').trim()
this.model.description = (this.model.description || '').trim()
let obj
const formData = Object.assign({}, this.model)
if (!this.model.id) {
obj = addDict(this.model)
obj = addDict
} else {
obj = editDict(this.model)
obj = editDict
}
obj.then((res) => {
// 重要,设置为数据字典内容
formData.isTagDict = 0
obj(formData).then((res) => {
if (res.success) {
that.$message.success(res.message)
that.$emit('ok')