diff --git a/src/api/enterpriseStandardLibraryApi.js b/src/api/enterpriseStandardLibraryApi.js index 77c10f33..574d32fd 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) // 临时权限设置 @@ -73,6 +75,7 @@ export { allocationStandardList, shiftStandard, getTreeList, + editTreeNode, deleteTreeNode, temporaryPermissionSet, collectStandard, diff --git a/src/api/standardRegulationLibraryApi.js b/src/api/standardRegulationLibraryApi.js index d3602c3e..53046298 100644 --- a/src/api/standardRegulationLibraryApi.js +++ b/src/api/standardRegulationLibraryApi.js @@ -20,6 +20,8 @@ const addDomesticSystemTree = (params) => postAction('/laws/standard/lawsTreeNod const editDomesticSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/domestic/edit', params) // 国内标准-体系删除 const deleteDomesticSystemTree = (params) => postAction('/laws/standard/lawsTreeNode/domestic/delete', params) +// 国内标准-体系拖拽排序后保存 +const domesticSystemTreeSortSave = (params) => getAction('', params) // 国内标准-配置标准 const configDomesticStandard = (params) => getAction('/laws/standard/domestic/relatedStandard', params) // 国内标准-移出标准 @@ -91,6 +93,8 @@ const addProfileCenterTree = (params) => postAction('/laws/dataCenter/lawsDataCe const addChildrenFolder = (params) => postAction('/laws/dataCenter/lawsDataCenterFolder/addChild', params) // 资料中心-编辑树节点 const editProfileCenterTree = (params) => postAction('/laws/dataCenter/lawsDataCenterFolder/edit', params) +// 资料中心-编辑树节点排序 +const editSortProfileCenterTree = (params) => postAction('/laws/dataCenter/lawsDataCenterFolder/editLevel', params) // 资料中心-删除树节点 const deleteProfileCenterTree = (params) => postAction('/laws/dataCenter/lawsDataCenterFolder/delete', params) // 资料中心-获取树节点树 @@ -112,6 +116,7 @@ export { addDomesticSystemTree, editDomesticSystemTree, deleteDomesticSystemTree, + domesticSystemTreeSortSave, configDomesticStandard, removeDomesticStandard, getDomesticStandardTree, @@ -154,6 +159,7 @@ export { editProfileCenterTree, deleteProfileCenterTree, getProfileCenterTree, + editSortProfileCenterTree, getStandardInfoByStandardNumber } 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">