Commit c867ad66 authored by youjie's avatar youjie

修复bug

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