From 328fc84c9ca98bf289e257e9541ee3f7c1d3955c Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Wed, 1 Nov 2023 11:27:24 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=89=B9=E9=87=8F=E5=88=A0?=
=?UTF-8?q?=E9=99=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ea/electronicAssets/index.vue | 32 +-
src/views/ea/electronicConsultation/index.vue | 32 +-
src/views/ea/electronicContracts/index.vue | 32 +-
.../ea/electronicCustomerComplaint/index.vue | 32 +-
src/views/ea/electronicEmployee/index.vue | 32 +-
src/views/ea/electronicOther/index.vue | 375 +++++++++---------
6 files changed, 345 insertions(+), 190 deletions(-)
diff --git a/src/views/ea/electronicAssets/index.vue b/src/views/ea/electronicAssets/index.vue
index abed931a..08fa3333 100644
--- a/src/views/ea/electronicAssets/index.vue
+++ b/src/views/ea/electronicAssets/index.vue
@@ -93,6 +93,17 @@
>新增
+
+ 删除
+
-
+
+
@@ -473,6 +489,12 @@ export default {
showSearch: true,
// 总条数
total: 0,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 资产档案列表
list: [],
// 弹出层标题
@@ -645,6 +667,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -718,7 +746,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除资产档案编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/ea/electronicConsultation/index.vue b/src/views/ea/electronicConsultation/index.vue
index 637358e4..01c59487 100644
--- a/src/views/ea/electronicConsultation/index.vue
+++ b/src/views/ea/electronicConsultation/index.vue
@@ -121,6 +121,17 @@
>新增
+
+ 删除
+
-
+
+
@@ -519,6 +535,12 @@ export default {
// 遮罩层
loading: true,
optType: undefined,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 导出遮罩层
exportLoading: false,
// 显示搜索条件
@@ -683,6 +705,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -742,7 +770,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除咨询档案编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/ea/electronicContracts/index.vue b/src/views/ea/electronicContracts/index.vue
index 2d533997..0ae84afb 100644
--- a/src/views/ea/electronicContracts/index.vue
+++ b/src/views/ea/electronicContracts/index.vue
@@ -133,6 +133,17 @@
>新增
+
+ 删除
+
-
+
+
@@ -576,6 +592,10 @@ export default {
imgs: null,
// 部门树选项
deptOptions: undefined,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
// 遮罩层
loading: true,
optType: undefined,
@@ -585,6 +605,8 @@ export default {
showSearch: true,
// 总条数
total: 0,
+ // 选中数组
+ ids: [],
// 合同档案列表
list: [],
// 弹出层标题
@@ -811,6 +833,12 @@ export default {
this.resetForm("queryForm");
this.handleQuery();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 新增按钮操作 */
handleAdd() {
this.reset();
@@ -873,7 +901,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除合同档案编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/ea/electronicCustomerComplaint/index.vue b/src/views/ea/electronicCustomerComplaint/index.vue
index c40b0a6a..52e37bfd 100644
--- a/src/views/ea/electronicCustomerComplaint/index.vue
+++ b/src/views/ea/electronicCustomerComplaint/index.vue
@@ -133,6 +133,17 @@
>新增
+
+ 删除
+
-
+
+
@@ -536,6 +552,12 @@ export default {
},
// 部门树选项
deptOptions: undefined,
+ // 非单个禁用
+ single: true,
+ // 选中数组
+ ids: [],
+ // 非多个禁用
+ multiple: true,
// 遮罩层
loading: true,
optType: undefined,
@@ -712,6 +734,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -771,7 +799,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除客诉档案编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/ea/electronicEmployee/index.vue b/src/views/ea/electronicEmployee/index.vue
index 9d4829db..47698a7b 100644
--- a/src/views/ea/electronicEmployee/index.vue
+++ b/src/views/ea/electronicEmployee/index.vue
@@ -102,6 +102,17 @@
>新增
+
+ 删除
+
-
+
+
@@ -621,6 +637,12 @@ export default {
},
// 部门树选项
deptOptions: undefined,
+ // 非单个禁用
+ single: true,
+ // 非多个禁用
+ multiple: true,
+ // 选中数组
+ ids: [],
// 遮罩层
loading: true,
optType: undefined,
@@ -800,6 +822,12 @@ export default {
this.queryParams.pageNo = 1;
this.getList();
},
+ // 多选框选中数据
+ handleSelectionChange(selection) {
+ this.ids = selection.map((item) => item.id);
+ this.single = selection.length !== 1;
+ this.multiple = !selection.length;
+ },
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
@@ -872,7 +900,7 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
- const id = row.id;
+ const id = row.id || this.ids;
this.$modal
.confirm('是否确认删除员工档案编号为"' + id + '"的数据项?')
.then(function () {
diff --git a/src/views/ea/electronicOther/index.vue b/src/views/ea/electronicOther/index.vue
index 7dfd7cd6..96a9e05b 100644
--- a/src/views/ea/electronicOther/index.vue
+++ b/src/views/ea/electronicOther/index.vue
@@ -1,19 +1,26 @@
-
-
+
-
+
-
-
-
-
@@ -21,69 +28,19 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 搜索
+ 搜索
重置
@@ -91,38 +48,70 @@
- 新增
+ 新增
- 导出
+ 删除
+
+
+ 导出
-
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
{{ parseTime(scope.row.createTime) }}
-
-
-
-
-
+
+
@@ -130,38 +119,59 @@
-
-
-
-
-
-
-
-
+
+
+
+
-
+
- 修改
+ 修改
- 删除
+ 删除
-
+
-
+
将文件拖到此处,或点击上传
-
-
+
-
+
-
+
-
+
@@ -225,64 +242,46 @@
-
-
+
+
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
-
-
-
+
-
+
+
-
-
-
-
-
+
+
-
- -->
-
-
+