From f525b6250d8a2f0e57738ad7fb4a54fe5dc078e4 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 23 Aug 2024 16:35:33 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BC=81=E6=A0=87=E7=9A=84=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E6=A0=91=E6=8B=96=E6=8B=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/enterpriseStandardLibraryApi.js | 3 + .../standard/EnterpriseStandardList.vue | 137 +++++++++++++++++- 2 files changed, 133 insertions(+), 7 deletions(-) diff --git a/src/api/enterpriseStandardLibraryApi.js b/src/api/enterpriseStandardLibraryApi.js index bd6243e6..665b3a41 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) // 临时权限设置 @@ -71,6 +73,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 0ad8628d..f87295a8 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">