【update】标签管理修改成jtable
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user