|
@@ -384,8 +384,10 @@
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-table :data="mkCmCustomersResponsiblePersonList" :row-class-name="rowMkCmCustomersResponsiblePersonIndex"
|
|
|
- @selection-change="handleMkCmCustomersResponsiblePersonSelectionChange" ref="mkCmCustomersResponsiblePerson">
|
|
|
+ <el-table :data="mkCmCustomersResponsiblePersonList"
|
|
|
+ :row-class-name="rowMkCmCustomersResponsiblePersonIndex"
|
|
|
+ @selection-change="handleMkCmCustomersResponsiblePersonSelectionChange"
|
|
|
+ ref="mkCmCustomersResponsiblePerson">
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="人员姓名" align="center" prop="personName" min-width="150" />
|
|
|
<el-table-column label="客户名称" align="center" prop="customersName" min-width="150" />
|
|
@@ -459,7 +461,7 @@
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
|
|
|
- <div slot="footer" class="dialog-footer" style="margin-left: 88%; margin-top: 1%">
|
|
|
+ <div slot="footer" style="margin-left: 88%; margin-top: 1%">
|
|
|
<el-button type="primary" @click="submitForm" :disabled="openState == 'check'">确 定</el-button>
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
</div>
|
|
@@ -693,6 +695,7 @@
|
|
|
this.activeName = 'first';
|
|
|
this.mkCmCustomersResponsiblePersonList = [];
|
|
|
this.mkCmCustomersDepartmentList = [];
|
|
|
+ this.resetForm("form");
|
|
|
},
|
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
@@ -701,6 +704,7 @@
|
|
|
},
|
|
|
/** 重置按钮操作 */
|
|
|
resetQuery() {
|
|
|
+ this.resetForm("queryForm");
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
// 多选框选中数据
|
|
@@ -776,23 +780,23 @@
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
+ console.log(this.isList, 'this.isList');
|
|
|
if (valid) {
|
|
|
if (this.form.id != null) {
|
|
|
updateCustomers(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.getList();
|
|
|
+ this.isList = true;
|
|
|
});
|
|
|
} else {
|
|
|
addCustomers(this.form).then(response => {
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
this.getList();
|
|
|
+ this.isList = true;
|
|
|
});
|
|
|
}
|
|
|
- } else {
|
|
|
- this.$modal.msgError("校验失败");
|
|
|
}
|
|
|
});
|
|
|
- this.isList = true;
|
|
|
},
|
|
|
/** 删除按钮操作 */
|
|
|
handleDelete(row) {
|