|
|
@ -179,41 +179,23 @@ export default { |
|
|
|
}, |
|
|
|
save() { |
|
|
|
if (this.form.sid) { |
|
|
|
const aa = this.form.dictKey.split('') |
|
|
|
if (aa.length < 5) { |
|
|
|
putdictCommon(this.form).then(res => { |
|
|
|
this.editDialog = false |
|
|
|
this.getPageList(this.page) |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
putdictCommon(this.form).then(res => { |
|
|
|
this.editDialog = false |
|
|
|
this.getPageList(this.page) |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '数据key的位数不可超过4位!', |
|
|
|
type: 'error' |
|
|
|
}); |
|
|
|
} |
|
|
|
} else { |
|
|
|
const bb = this.form.dictKey.split('') |
|
|
|
if (bb.length < 5) { |
|
|
|
savedictCommon(this.form).then(res => { |
|
|
|
this.editDialog = false |
|
|
|
this.getPageList(this.page) |
|
|
|
this.$message({ |
|
|
|
message: res.msg, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
message: res.msg, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
}else { |
|
|
|
}) |
|
|
|
} else { |
|
|
|
savedictCommon(this.form).then(res => { |
|
|
|
this.editDialog = false |
|
|
|
this.getPageList(this.page) |
|
|
|
this.$message({ |
|
|
|
showClose: true, |
|
|
|
message: '数据key的位数不可超过4位!', |
|
|
|
type: 'error' |
|
|
|
}); |
|
|
|
} |
|
|
|
message: res.msg, |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
deleteRow(row) { |
|
|
|