Commit c867ad66 authored by youjie's avatar youjie

修复bug

parent 8baa1242
......@@ -259,8 +259,9 @@
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" class="add-box-btn" @click="submitForm('getform')">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="dialogTableVisible = false, resetForm('getform')">取 消
<el-button type="primary" class="add-box-btn" @click="submitForm('form')"
:loading="loading">确 定</el-button>
<el-button class="add-box-btn add-box-cancel" @click="dialogTableVisible = false, resetForm('form')">取 消
</el-button>
</div>
</el-dialog>
......@@ -335,6 +336,7 @@
}],
},
show: true,
loading: false,
};
},
watch: {
......@@ -443,6 +445,7 @@
this.MsgBus.$emit("closeBusinessDialogBox");
},
addData() {
this.loading = true
this.apipost("/api/Customer/CreateCustomerBusiness", this.form, (res) => {
if (res.data.resultCode == 1) {
this.dialogTableVisible = false;
......@@ -456,8 +459,10 @@
this.$emit("getList");
this.MsgBus.$emit("RefreshbusSelect");
this.resetForm("form");
this.loading = false
} else {
this.$message.error(res.data.message);
this.loading = false
}
});
},
......
......@@ -73,7 +73,7 @@
</el-select>
</el-popover>
</el-col>
<el-col :span="4">
<el-col :span="5">
<span class="font-size-12" style="padding-right: 10px">客户类型</span>
<el-select size="mini" v-model="msg.CustomerType" placeholder="请选择" @change="getList">
<el-option key="0" label="客户" :value="0"></el-option>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment