提交: 更新配置管理 新增修改提示
This commit is contained in:
parent
1d2b284ea5
commit
60b3d4766b
|
@ -250,7 +250,7 @@ export default {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.recordId != null) {
|
if (this.form.recordId != null) {
|
||||||
updateAttribute(this.form).then((response) => {
|
updateAttribute(this.form).then((response) => {
|
||||||
if (response.msg === '操作成功') {
|
if (response.msg === 'ok') {
|
||||||
this.$store.dispatch("SetAttributeByKey", {
|
this.$store.dispatch("SetAttributeByKey", {
|
||||||
[this.form.enterpriseAttribute]: this.form.attributeValue
|
[this.form.enterpriseAttribute]: this.form.attributeValue
|
||||||
})
|
})
|
||||||
|
@ -263,7 +263,7 @@ export default {
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
addAttribute(this.form).then((response) => {
|
addAttribute(this.form).then((response) => {
|
||||||
if (response.msg === '操作成功') {
|
if (response.msg === 'ok') {
|
||||||
this.$store.dispatch("SetAttributeByKey", {
|
this.$store.dispatch("SetAttributeByKey", {
|
||||||
[this.form.enterpriseAttribute]: this.form.attributeValue
|
[this.form.enterpriseAttribute]: this.form.attributeValue
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue