fix():修改企业管理列表 10.1

dav.saas
zhang chengzhi 2024-10-01 20:05:13 +08:00
parent 93db0bc1f2
commit 6790c484f9
2 changed files with 20 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export function addEnterprise(data) {
export function updateEnterprise(data) {
return request({
url: '/system/enterprise/updEnterprise',
method: 'put',
method: 'post',
data: data
})
}

View File

@ -166,6 +166,9 @@ export default {
dicts: ['sys_yes_no'],
data() {
return {
//
fullscreenLoading: false,
options:[],
openDB:false,
//
@ -268,6 +271,14 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
openFullScreen2() {
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
@ -294,14 +305,21 @@ export default {
submitForm: function () {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.configId != undefined) {
if (this.form.id != undefined) {
updateEnterprise(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
const loading = this.$loading({
lock: true,
text: '正在为您入驻企业',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
addEnterprise(this.form).then(response => {
loading.close();
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();