Commit 8bb01cf9 authored by Marcus's avatar Marcus

全部客户弹窗改新页面

parent 19bfe2ae
This diff is collapsed.
...@@ -595,19 +595,21 @@ export default { ...@@ -595,19 +595,21 @@ export default {
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset(); this.$router.push('/customer/edit/0')
this.open = true; // this.reset();
this.title = "添加客户"; // this.open = true;
// this.title = "添加客户";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset(); this.$router.push('/customer/edit/' + row.id)
const id = row.id; // this.reset();
getCustomer(id).then(response => { // const id = row.id;
this.form = { ...this.form, ...response.data }; // getCustomer(id).then(response => {
this.open = true; // this.form = { ...this.form, ...response.data };
this.title = "修改客户"; // this.open = true;
}); // this.title = "修改客户";
// });
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
......
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