diff --git a/src/api/standardRegulationLibraryApi.js b/src/api/standardRegulationLibraryApi.js index c44e73d2..790ca852 100644 --- a/src/api/standardRegulationLibraryApi.js +++ b/src/api/standardRegulationLibraryApi.js @@ -77,6 +77,19 @@ const getDynamicMessageById = (params) => getAction('/laws/standard/lawsNewsFeed // 动态消息-分享 const shareDynamicMessageById = (params) => postAction('/personal/lawsStandardSharing/dynamicMessages/add', params) +// 资料中心-新增 +const addProfileCenter = (params) => postAction('', params) +// 资料中心-编辑 +const editProfileCenter = (params) => postAction('', params) +// 资料中心-新增树节点 +const addProfileCenterTree = (params) => postAction('', params) +// 资料中心-编辑树节点 +const editProfileCenterTree = (params) => postAction('', params) +// 资料中心-删除树节点 +const deleteProfileCenterTree = (params) => postAction('', params) +// 资料中心-获取树节点树 +const getProfileCenterTree = (params) => getAction('', params) + export { // 国内标准 getDomesticStandardSearchForm, @@ -119,5 +132,13 @@ export { saveDynamicMessage, releaseDynamicMessage, getDynamicMessageById, - shareDynamicMessageById + shareDynamicMessageById, + + // 资料中心 + addProfileCenter, + editProfileCenter, + addProfileCenterTree, + editProfileCenterTree, + deleteProfileCenterTree, + getProfileCenterTree } diff --git a/src/common/lang/standardRegulationLibrary/en-us.js b/src/common/lang/standardRegulationLibrary/en-us.js index 008fc882..fe64b940 100644 --- a/src/common/lang/standardRegulationLibrary/en-us.js +++ b/src/common/lang/standardRegulationLibrary/en-us.js @@ -51,5 +51,9 @@ module.exports = { pushRange: 'Push range', dynamicDetails: 'Dynamic details', dataText: 'Data text' + }, + profileCenter: { + typeOfOwnership: 'Type of ownership', + uploadData: 'Upload data' } } diff --git a/src/common/lang/standardRegulationLibrary/zh-cn.js b/src/common/lang/standardRegulationLibrary/zh-cn.js index 6944e8e1..4976e8c5 100644 --- a/src/common/lang/standardRegulationLibrary/zh-cn.js +++ b/src/common/lang/standardRegulationLibrary/zh-cn.js @@ -51,5 +51,10 @@ module.exports = { pushRange: '推送范围', dynamicDetails: '动态详情', dataText: '资料文本' + }, + // 资料中心 + profileCenter: { + typeOfOwnership: '所属类型', + uploadData: '上传资料' } } diff --git a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue index bca84f1b..e9ceb1b9 100644 --- a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue +++ b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue @@ -24,20 +24,14 @@ + @click.stop="handleAddTreeNode(record)" /> + @click.stop="handleEditTreeNode(record)"> @@ -111,17 +105,24 @@ + + + + + + + diff --git a/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterTreeModal.vue b/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterTreeModal.vue new file mode 100644 index 00000000..4676a066 --- /dev/null +++ b/src/views/standardRegulationLibrary/profileCenter/modules/ProfileCenterTreeModal.vue @@ -0,0 +1,103 @@ + + + + +