From 089e06e5591823b274b5b4e0f369ec016954f6d2 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Wed, 28 Aug 2024 10:12:28 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=A4=96=E6=A0=87=EF=BC=8C=E4=BC=81?= =?UTF-8?q?=E6=A0=87=E5=B7=A6=E4=BE=A7=E6=A0=91=E6=8B=96=E6=8B=BD=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterpriseStandardLibraryApi.js | 3 + .../standard/EnterpriseStandardList.vue | 132 ++++++++++++++++- .../foreignStandard/ForeignStandardList.vue | 139 +++++++++++++++++- 3 files changed, 263 insertions(+), 11 deletions(-) diff --git a/src/api/enterpriseStandardLibraryApi.js b/src/api/enterpriseStandardLibraryApi.js index 070e537..4e26004 100644 --- a/src/api/enterpriseStandardLibraryApi.js +++ b/src/api/enterpriseStandardLibraryApi.js @@ -16,6 +16,8 @@ const allocationStandardList = (params) => getAction('/laws/standard/common/getS const shiftStandard = (params) => getAction('/laws/standard/enterprise/removeStandard', params) // 获取左侧树列表 const getTreeList = (params) => getAction('/laws/standard/lawsTreeNode/enterprise', params) +// 左侧树编辑 +const editTreeNode = (params) => postAction('/laws/standard/lawsTreeNode/enterprise/edit', params) // 左侧树删除 const deleteTreeNode = (params) => postAction('/laws/standard/lawsTreeNode/enterprise/delete', params) // 临时权限设置 @@ -69,6 +71,7 @@ export { allocationStandardList, shiftStandard, getTreeList, + editTreeNode, deleteTreeNode, temporaryPermissionSet, collectStandard, diff --git a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue index bfc3834..7f933e9 100644 --- a/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue +++ b/src/views/enterpriseStandardLibrary/standard/EnterpriseStandardList.vue @@ -14,7 +14,9 @@ :tree-data="treeData" :expanded-keys.sync="expandedKeys" :selectedKeys="currentTreeNode" - :default-expand-all="defaultExpandAll"> + :default-expand-all="defaultExpandAll" + draggable + @drop="onDropCataSort">