fix():修改企业管理列表 10.1
parent
93db0bc1f2
commit
6790c484f9
|
@ -27,7 +27,7 @@ export function addEnterprise(data) {
|
|||
export function updateEnterprise(data) {
|
||||
return request({
|
||||
url: '/system/enterprise/updEnterprise',
|
||||
method: 'put',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue