From c0e4f72b3e8cabc33a9f3314772bf59d7c553e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E5=9F=8E=E5=BF=B5=E4=BA=91?= <495888462@qq.com> Date: Mon, 6 Jan 2020 17:57:34 +0800 Subject: [PATCH] no commit message --- ruoyi-ui/src/views/base/company/index.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/base/company/index.vue b/ruoyi-ui/src/views/base/company/index.vue index 272b239d7..990d9b957 100644 --- a/ruoyi-ui/src/views/base/company/index.vue +++ b/ruoyi-ui/src/views/base/company/index.vue @@ -84,7 +84,7 @@ - + @@ -224,6 +224,16 @@ export default { }); }, methods: { + // 双击行编辑 + rowdblclick(row) { + this.reset(); + const id = row.id || this.ids + getCompany(id).then(response => { + this.form = response.data; + this.open = true; + this.title = "修改公司管理"; + }); + }, /** 公司管理排序 */ tableSortChange(column) { this.queryParams.pageNum = 1; @@ -269,11 +279,6 @@ export default { row.enabled = row.enabled === "0" ? "1" : "0"; }); }, - // 取消按钮 - cancel() { - this.open = false; - this.reset(); - }, // 表单重置 reset() { this.form = {