From 9da154b51e355bbb031817dfc0fa07e58cafac04 Mon Sep 17 00:00:00 2001
From: ysn <2126564605@qq.com>
Date: Mon, 27 Apr 2026 16:40:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=A1=80=E6=95=B0=E6=8D=AE-=E5=B7=A5?=
=?UTF-8?q?=E8=89=BA=E8=83=BD=E5=8A=9B-=E6=96=B0=E5=A2=9E=E6=8E=92?=
=?UTF-8?q?=E5=BA=8F/=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../processManagement/processCapability.vue | 48 ++++++++++++++++---
1 file changed, 41 insertions(+), 7 deletions(-)
diff --git a/src/views/processManagement/processCapability.vue b/src/views/processManagement/processCapability.vue
index 1b617850..2d0e6619 100644
--- a/src/views/processManagement/processCapability.vue
+++ b/src/views/processManagement/processCapability.vue
@@ -18,9 +18,17 @@
@refresh-change="refreshChange"
@on-load="onLoad"
:before-open="beforeOpen"
+ @sort-change="sortChange"
+ :permission="permissionList"
>
- 删除
+ 删除
@@ -36,9 +44,22 @@
value: 'dictKey',
}"
style="width: 200px; margin-right: 12px"
+ v-if="permission.processCapability_batchSettings"
>
- 批量设置
- 导入
+
+ 批量设置
+
+
+ 导入
+
@@ -326,10 +347,9 @@ export default {
...mapGetters(['userInfo', 'permission']),
permissionList() {
return {
- addBtn: this.validData(this.permission.menu_add, false),
- viewBtn: this.validData(this.permission.menu_view, false),
- delBtn: this.validData(this.permission.menu_delete, false),
- editBtn: this.validData(this.permission.menu_edit, false),
+ addBtn: this.validData(this.permission.processCapability_add, false),
+ delBtn: this.validData(this.permission.processCapability_del, false),
+ editBtn: this.validData(this.permission.processCapability_edit, false),
};
},
ids() {
@@ -563,6 +583,20 @@ export default {
refreshChange() {
this.onLoad(this.page, this.query);
+ },
+ // 排序
+ sortChange({ prop, order }) {
+ if (!prop) {
+ // 如果取消排序,清空排序参数
+ this.query.orderByField = undefined;
+ this.query.isAsc = undefined;
+ } else {
+ const orderByField = prop.replace(/([a-z])([A-Z0-9])/g, '$1_$2').toUpperCase();
+ this.query.orderByField = orderByField;
+ this.query.isAsc = order === 'ascending' ? true : false;
+ }
+ // 重新加载数据
+ this.onLoad();
},
// 加载页面数据
onLoad(page, params = {}) {