|
|
@@ -1124,20 +1124,14 @@ export default { |
|
|
|
*/ |
|
|
|
async updateCompany() { |
|
|
|
if (!this.checkCompanyData()) { |
|
|
|
return; |
|
|
|
return false; |
|
|
|
} |
|
|
|
var thisApp = this; |
|
|
|
this.currentCompany.modifyUserID = sessionStorage.userId; |
|
|
|
const res = await services.updateCompany(this.currentCompany); |
|
|
|
const flag = res.Code === 0; |
|
|
|
if (!flag) { |
|
|
|
thisApp.$notify.error({ |
|
|
|
title: "温馨提示", |
|
|
|
message: res.Msg, |
|
|
|
offset: 100, |
|
|
|
duration: 5000, |
|
|
|
}); |
|
|
|
return; |
|
|
|
return false; |
|
|
|
} |
|
|
|
thisApp.$notify({ |
|
|
|
title: "恭喜您", |
|
|
@@ -1147,6 +1141,7 @@ export default { |
|
|
|
duration: 2500, |
|
|
|
}); |
|
|
|
thisApp.listCompany(); |
|
|
|
return true; |
|
|
|
// this.$axios({ |
|
|
|
// method: "put", |
|
|
|
// url: encodeURI(process.env.API_HOST + "sysinfo/company"), |
|
|
@@ -1406,12 +1401,13 @@ export default { |
|
|
|
/** |
|
|
|
* 更新企业信息,保存数据 |
|
|
|
*/ |
|
|
|
updateSave: function () { |
|
|
|
async updateSave () { |
|
|
|
const flag = await this.updateCompany(); |
|
|
|
if(!flag) return; |
|
|
|
this.el_formLabelcolor = "textlabelgray"; |
|
|
|
this.editButtonGroup = 1; |
|
|
|
this.boolEdit = false; |
|
|
|
this.rightTitle = this.currentCompany.companyName; |
|
|
|
this.updateCompany(); |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 取消更新企业信息 |
|
|
|