企业管理:修复扩展属性添加失败问题

beta
路明慧 1 year ago
parent db8b77856f
commit 5d610e2ba0
  1. 6
      jianshui-ui/src/views/system/companyservice/companyservice_prop/list.vue

@ -157,6 +157,8 @@ export default {
title: '',
//
open: false,
//
updateFlag: false,
//
queryParams: {
pageNum: 1,
@ -230,6 +232,7 @@ export default {
handleAdd() {
this.reset()
this.open = true
this.updateFlag = false
this.title = '添加企业扩展属性,包括大象key等'
},
/** 修改按钮操作 */
@ -237,6 +240,7 @@ export default {
this.reset()
this.form = row
this.open = true
this.updateFlag = true
this.title = '修改企业扩展属性,包括大象key等'
// const companyid = row.companyid
// const key = row.key
@ -251,7 +255,7 @@ export default {
this.$refs['form'].validate(valid => {
this.form.companyid = this.companyId
if (valid) {
if (this.form.key != null) {
if (this.updateFlag) {
updateProp(this.form).then(response => {
this.$modal.msgSuccess('修改成功')
this.open = false

Loading…
Cancel
Save