fix():修改企业管理列表 10.1
parent
93db0bc1f2
commit
6790c484f9
|
@ -27,7 +27,7 @@ export function addEnterprise(data) {
|
||||||
export function updateEnterprise(data) {
|
export function updateEnterprise(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/system/enterprise/updEnterprise',
|
url: '/system/enterprise/updEnterprise',
|
||||||
method: 'put',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,6 +166,9 @@ export default {
|
||||||
dicts: ['sys_yes_no'],
|
dicts: ['sys_yes_no'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
//等待加载
|
||||||
|
fullscreenLoading: false,
|
||||||
|
|
||||||
options:[],
|
options:[],
|
||||||
openDB:false,
|
openDB:false,
|
||||||
// 选中数组
|
// 选中数组
|
||||||
|
@ -268,6 +271,14 @@ export default {
|
||||||
this.resetForm("queryForm");
|
this.resetForm("queryForm");
|
||||||
this.handleQuery();
|
this.handleQuery();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
openFullScreen2() {
|
||||||
|
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
/** 新增按钮操作 */
|
/** 新增按钮操作 */
|
||||||
handleAdd() {
|
handleAdd() {
|
||||||
this.reset();
|
this.reset();
|
||||||
|
@ -294,14 +305,21 @@ export default {
|
||||||
submitForm: function () {
|
submitForm: function () {
|
||||||
this.$refs["form"].validate(valid => {
|
this.$refs["form"].validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.form.configId != undefined) {
|
if (this.form.id != undefined) {
|
||||||
updateEnterprise(this.form).then(response => {
|
updateEnterprise(this.form).then(response => {
|
||||||
this.$modal.msgSuccess("修改成功");
|
this.$modal.msgSuccess("修改成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
const loading = this.$loading({
|
||||||
|
lock: true,
|
||||||
|
text: '正在为您入驻企业',
|
||||||
|
spinner: 'el-icon-loading',
|
||||||
|
background: 'rgba(0, 0, 0, 0.7)'
|
||||||
|
});
|
||||||
addEnterprise(this.form).then(response => {
|
addEnterprise(this.form).then(response => {
|
||||||
|
loading.close();
|
||||||
this.$modal.msgSuccess("新增成功");
|
this.$modal.msgSuccess("新增成功");
|
||||||
this.open = false;
|
this.open = false;
|
||||||
this.getList();
|
this.getList();
|
||||||
|
|
Loading…
Reference in New Issue