From e2b75fe5d14264d242cf2c425348f661f93cac75 Mon Sep 17 00:00:00 2001 From: hujunke Date: Fri, 20 Sep 2024 17:46:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E9=A1=B5=E9=9D=A2=20=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E5=A4=A7=E5=B0=8F=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/interface/index.ts | 27 ++ src/api/modules/login.ts | 4 +- src/assets/json/ruoyiAuthMenuList.json | 434 ++++++++++++++++++++- src/assets/json/test.json | 174 +++++++++ src/components/DateRangePicker/index.scss | 6 +- src/components/ProTable/index.vue | 13 + src/components/SemanticAssociation/index.vue | 1 + src/components/TreeFilter/index.vue | 56 ++- src/stores/modules/auth.ts | 105 +---- src/stores/modules/global.ts | 7 +- src/styles/common.scss | 4 +- .../knowledgeManage/components/KnowledgeDialog.vue | 111 ++++++ src/views/index-template/knowledgeManage/index.vue | 86 ++++ .../semanticAssociationManage/index.vue | 96 +++++ src/views/index-template/semanticsAudit/index.vue | 87 +++++ .../semanticsManage/components/SemanticsDialog.vue | 103 +++++ src/views/index-template/semanticsManage/index.vue | 105 +++++ .../system/accountManage/components/UserDialog.vue | 7 +- src/views/system/logManage/index.vue | 4 +- src/views/task/indexData/operateIndex.vue | 23 +- 20 files changed, 1313 insertions(+), 140 deletions(-) create mode 100644 src/assets/json/test.json create mode 100644 src/components/SemanticAssociation/index.vue create mode 100644 src/views/index-template/knowledgeManage/components/KnowledgeDialog.vue create mode 100644 src/views/index-template/knowledgeManage/index.vue create mode 100644 src/views/index-template/semanticAssociationManage/index.vue create mode 100644 src/views/index-template/semanticsAudit/index.vue create mode 100644 src/views/index-template/semanticsManage/components/SemanticsDialog.vue create mode 100644 src/views/index-template/semanticsManage/index.vue diff --git a/src/api/interface/index.ts b/src/api/interface/index.ts index c418143..46b608d 100644 --- a/src/api/interface/index.ts +++ b/src/api/interface/index.ts @@ -619,3 +619,30 @@ export namespace StatsAnalysis { name: string; } } + +// 语义管理模块 +export namespace Semantics { + // 列表查询请求参数 + export interface ReqSemanticsParams extends ReqPage { + semanticsName: string; + updateTime: string; + dataSources: string; + } + // 列表参数 + export interface ResSemanticsList extends ListCommon { + [key: string]: any; + } +} +// 语义关联管理模块 +export namespace SemanticsAssociation { + // 列表查询请求参数 + export interface ReqSemanticsAssociationParams extends ReqPage { + semanticsName: string; + updateTime: string; + dataSources: string; + } + // 列表参数 + export interface ResSemanticsAssociationList extends ListCommon { + [key: string]: any; + } +} diff --git a/src/api/modules/login.ts b/src/api/modules/login.ts index 53cc9f3..e407b85 100644 --- a/src/api/modules/login.ts +++ b/src/api/modules/login.ts @@ -23,9 +23,9 @@ export const getCodeImgApi = () => { // 获取菜单列表 export const getAuthMenuListApi = () => { - return http.get(PORT1 + `/getRouters`, {}, { loading: false }); + // return http.get(PORT1 + `/getRouters`, {}, { loading: false }); // 如果想让菜单变为本地数据,注释上一行代码,并引入本地 authMenuList.json 数据 - // console.log("getAuthMenuListApi", ruoyiAuthMenuList); + console.log("getAuthMenuListApi", ruoyiAuthMenuList); http.get(PORT1 + `/getRouters`, {}, { loading: false }); return ruoyiAuthMenuList; }; diff --git a/src/assets/json/ruoyiAuthMenuList.json b/src/assets/json/ruoyiAuthMenuList.json index 9016a6d..7e2fdeb 100644 --- a/src/assets/json/ruoyiAuthMenuList.json +++ b/src/assets/json/ruoyiAuthMenuList.json @@ -3,16 +3,329 @@ "code": 200, "data": [ { - "name": "home", - "path": "/home/index", + "name": "Corpus", + "path": "/corpus", + "hidden": true, + "redirect": "noRedirect", + "component": "Layout", + "alwaysShow": true, + "meta": { + "title": "语料库", + "icon": "Briefcase", + "noCache": false, + "link": null + }, + "children": [ + { + "name": "/corpus/first-clause", + "path": "/corpus/first-clause", + "hidden": false, + "component": "/corpus/first-clause/index", + "meta": { + "title": "首见条文", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/corpus/trace-origin", + "path": "/corpus/trace-origin", + "hidden": false, + "component": "/corpus/trace-origin/index", + "meta": { + "title": "条文溯源", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/corpus/clause-trash", + "path": "/corpus/clause-trash", + "hidden": false, + "component": "/corpus/clause-trash/index", + "meta": { + "title": "条文回收站", + "icon": "#", + "noCache": false, + "link": null + } + } + ] + }, + { + "name": "Annotation", + "path": "/annotation", + "hidden": true, + "redirect": "noRedirect", + "component": "Layout", + "alwaysShow": true, + "meta": { + "title": "标注", + "icon": "Checked", + "noCache": false, + "link": null + }, + "children": [ + { + "name": "/annotation/home", + "path": "/annotation/home", + "hidden": false, + "component": "/annotation/home/index", + "meta": { + "title": "标注首页", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/annotation/division", + "path": "/annotation/division", + "hidden": false, + "component": "/annotation/division/index", + "meta": { + "title": "标注分工", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/annotation/labeling", + "path": "/annotation/labeling", + "hidden": false, + "component": "/annotation/labeling/index", + "meta": { + "title": "数据标注", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/annotation/audit", + "path": "/annotation/audit", + "hidden": false, + "component": "/annotation/audit/index", + "meta": { + "title": "标注审核", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/annotation/tag", + "path": "/annotation/tag", + "hidden": false, + "component": "/annotation/tag/index", + "meta": { + "title": "标签管理", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/annotation/lexicon", + "path": "/annotation/lexicon", + "hidden": false, + "component": "/annotation/lexicon/index", + "meta": { + "title": "词表库管理", + "icon": "#", + "noCache": false, + "link": null + } + } + ] + }, + { + "path": "/", + "hidden": true, + "component": "Layout", + "children": [ + { + "name": "/retrieval", + "path": "/retrieval", + "hidden": true, + "component": "/retrieval/index", + "meta": { + "title": "检索", + "icon": "Promotion", + "noCache": false, + "link": null + } + } + ] + }, + { + "path": "/", + "hidden": true, + "component": "Layout", + "children": [ + { + "name": "/stats-analysis", + "path": "/stats-analysis", + "hidden": true, + "component": "/stats-analysis/index", + "meta": { + "title": "统计分析", + "icon": "TrendCharts", + "noCache": false, + "link": null + } + } + ] + }, + { + "path": "/task", + "name": "Task", + "hidden": true, + "meta": { + "title": "任务管理", + "isFull": false + }, + "children": [ + { + "path": "/task/home", + "name": "/task/home", + "component": "/task/home/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "任务首页", + "isFull": false + } + }, + { + "path": "/task/taskAllocation", + "name": "/task/taskAllocation", + "component": "/task/taskAllocation/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "任务分配", + "isFull": false + } + }, + { + "path": "/task/indexData", + "name": "/task/indexData", + "component": "/task/indexData/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "数据标引", + "isFull": false, + "isKeepAlive": true + } + }, + { + "path": "/task/indexData/operateIndex", + "name": "OperateIndex", + "component": "/task/indexData/operateIndex", + "meta": { + "title": "标引", + "isHide": true, + "isFull": false, + "activeMenu": "/task/indexData" + } + }, + { + "path": "/task/examine", + "name": "/task/examine", + "meta": { + "title": "标引审核", + "isFull": false + }, + "children": [ + { + "path": "/task/examine/firstInstance", + "name": "/task/examine/firstInstance", + "component": "/task/examine/firstInstance/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "标引一审", + "isFull": false + } + }, + { + "path": "/task/examine/secondInstance", + "name": "/task/examine/secondInstance", + "component": "/task/examine/secondInstance/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "标引二审", + "isFull": false + } + } + ] + } + ] + }, + { + "name": "index-template", + "path": "/indexTemplate", "hidden": false, - "component": "/home/index", + "redirect": "noRedirect", + "component": "Layout", + "alwaysShow": true, "meta": { - "title": "首页", - "icon": "HomeFilled", + "title": "标引模板管理", + "icon": "Memo", "noCache": false, "link": null - } + }, + "children": [ + { + "name": "/index-template/knowledgeManage", + "path": "/index-template/knowledgeManage", + "hidden": false, + "component": "/index-template/knowledgeManage/index", + "meta": { + "title": "知识管理", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/index-template/semanticsManage", + "path": "/index-template/semanticsManage", + "hidden": false, + "component": "/index-template/semanticsManage/index", + "meta": { + "title": "语义管理", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/index-template/semanticAssociationManage", + "path": "/index-template/semanticAssociationManage", + "hidden": false, + "component": "/index-template/semanticAssociationManage/index", + "meta": { + "title": "语义关联管理", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "/index-template/semanticsAudit", + "path": "/index-template/semanticsAudit", + "hidden": false, + "component": "/index-template/semanticsAudit/index", + "meta": { + "title": "语义审核", + "icon": "#", + "noCache": false, + "link": null + } + } + ] }, { "name": "System", @@ -29,52 +342,139 @@ }, "children": [ { - "name": "accountManage", + "name": "/system/accountManage", "path": "/system/accountManage", "hidden": false, "component": "/system/accountManage/index", "meta": { "title": "账号管理", - "icon": "Menu", + "icon": "#", "noCache": false, "link": null } }, { - "name": "roleManage", + "name": "/system/roleManage", "path": "/system/roleManage", "hidden": false, "component": "/system/roleManage/index", "meta": { "title": "角色管理", - "icon": "Menu", + "icon": "#", "noCache": false, "link": null } }, { - "name": "menuMange", + "name": "/system/menuMange", "path": "/system/menuMange", "hidden": false, "component": "/system/menuMange/index", "meta": { "title": "菜单管理", - "icon": "Menu", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "path": "/system/logManage", + "name": "/system/logManage", + "component": "/system/logManage/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "日志管理", + "isFull": false + } + }, + { + "name": "/system/postManage", + "path": "/system/postManage", + "hidden": true, + "component": "/system/postManage/index", + "meta": { + "title": "岗位管理", + "icon": "#", "noCache": false, "link": null } }, { - "name": "departmentManage", - "path": "/system/departmentManage", + "name": "/system/dictManage", + "path": "/system/dictManage", "hidden": false, - "component": "/system/departmentManage/index", + "component": "/system/dictManage/index", + "meta": { + "title": "字典管理", + "icon": "#", + "noCache": false, + "link": null + } + }, + { + "name": "Config", + "path": "config", + "hidden": true, + "component": "system/config/index", + "meta": { + "title": "参数设置", + "icon": "#", + "noCache": false, + "isHide": true, + "link": null + } + }, + { + "name": "Notice", + "path": "notice", + "hidden": true, + "component": "system/notice/index", "meta": { - "title": "部门管理", - "icon": "Menu", + "title": "通知公告", + "icon": "#", "noCache": false, "link": null } + }, + { + "name": "Log", + "path": "log", + "hidden": true, + "redirect": "noRedirect", + "component": "ParentView", + "alwaysShow": true, + "meta": { + "title": "日志管理", + "icon": "#", + "noCache": false, + "link": null + }, + "children": [ + { + "name": "Operlog", + "path": "operlog", + "hidden": false, + "component": "monitor/operlog/index", + "meta": { + "title": "操作日志", + "icon": "Menu", + "noCache": false, + "link": null + } + }, + { + "name": "Logininfor", + "path": "logininfor", + "hidden": false, + "component": "monitor/logininfor/index", + "meta": { + "title": "登录日志", + "icon": "Menu", + "noCache": false, + "link": null + } + } + ] } ] } diff --git a/src/assets/json/test.json b/src/assets/json/test.json new file mode 100644 index 0000000..decd858 --- /dev/null +++ b/src/assets/json/test.json @@ -0,0 +1,174 @@ +{ + "msg": "操作成功", + "code": 200, + "data": [ + { + "name": "home", + "path": "/home/index", + "hidden": false, + "component": "/home/index", + "meta": { + "title": "首页", + "icon": "HomeFilled", + "noCache": false, + "link": null + } + }, + { + "name": "System", + "path": "/system", + "hidden": false, + "redirect": "noRedirect", + "component": "Layout", + "alwaysShow": true, + "meta": { + "title": "系统管理", + "icon": "Tools", + "noCache": false, + "link": null + }, + "children": [ + { + "name": "accountManage", + "path": "/system/accountManage", + "hidden": false, + "component": "/system/accountManage/index", + "meta": { + "title": "账号管理", + "icon": "Menu", + "noCache": false, + "link": null + } + }, + { + "name": "roleManage", + "path": "/system/roleManage", + "hidden": false, + "component": "/system/roleManage/index", + "meta": { + "title": "角色管理", + "icon": "Menu", + "noCache": false, + "link": null + } + }, + { + "name": "menuMange", + "path": "/system/menuMange", + "hidden": false, + "component": "/system/menuMange/index", + "meta": { + "title": "菜单管理", + "icon": "Menu", + "noCache": false, + "link": null + } + }, + { + "name": "departmentManage", + "path": "/system/departmentManage", + "hidden": false, + "component": "/system/departmentManage/index", + "meta": { + "title": "部门管理", + "icon": "Menu", + "noCache": false, + "link": null + } + }, + { + "path": "/system/logManage", + "name": "/system/logManage", + "component": "/system/logManage/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "日志管理", + "isFull": false + } + } + ] + }, + { + "path": "/task", + "name": "Task", + "meta": { + "title": "任务管理", + "isFull": false + }, + "children": [ + { + "path": "/task/home", + "name": "/task/home", + "component": "/task/home/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "任务首页", + "isFull": false + } + }, + { + "path": "/task/taskAllocation", + "name": "/task/taskAllocation", + "component": "/task/taskAllocation/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "任务分配", + "isFull": false + } + }, + { + "path": "/task/indexData", + "name": "/task/indexData", + "component": "/task/indexData/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "数据标引", + "isFull": false, + "isKeepAlive": true + } + }, + { + "path": "/task/indexData/operateIndex", + "name": "OperateIndex", + "component": "/task/indexData/operateIndex", + "meta": { + "title": "标引", + "isHide": true, + "isFull": false, + "activeMenu": "/task/indexData" + } + }, + { + "path": "/task/examine", + "name": "/task/examine", + "meta": { + "title": "标引审核", + "isFull": false + }, + "children": [ + { + "path": "/task/examine/firstInstance", + "name": "/task/examine/firstInstance", + "component": "/task/examine/firstInstance/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "标引一审", + "isFull": false + } + }, + { + "path": "/task/examine/secondInstance", + "name": "/task/examine/secondInstance", + "component": "/task/examine/secondInstance/index", + "permissions": ["search:common", "search:advance"], + "meta": { + "title": "标引二审", + "isFull": false + } + } + ] + } + ] + } + ] +} diff --git a/src/components/DateRangePicker/index.scss b/src/components/DateRangePicker/index.scss index 99af509..2adbf8a 100644 --- a/src/components/DateRangePicker/index.scss +++ b/src/components/DateRangePicker/index.scss @@ -1,5 +1,5 @@ .date-range-filter { - display: inline-flex; - align-items: center; - width: 100%; + display: inline-flex; + align-items: center; + width: 100%; } diff --git a/src/components/ProTable/index.vue b/src/components/ProTable/index.vue index bfc1188..3a9a733 100644 --- a/src/components/ProTable/index.vue +++ b/src/components/ProTable/index.vue @@ -20,6 +20,14 @@
+
+ +
@@ -207,6 +215,11 @@ watch(tableData, val => { // 接收 columns 并设置为响应式 const tableColumns = reactive(props.columns); +// 接收 columns 并设置为响应式 +// const tableColumns = computed(() => { +// flatColumnsFunc(props.columns); // 执行数组扁平化 +// return props.columns; +// }); // 扁平化 columns const flatColumns = computed(() => flatColumnsFunc(tableColumns)); diff --git a/src/components/SemanticAssociation/index.vue b/src/components/SemanticAssociation/index.vue new file mode 100644 index 0000000..fb33984 --- /dev/null +++ b/src/components/SemanticAssociation/index.vue @@ -0,0 +1 @@ + diff --git a/src/components/TreeFilter/index.vue b/src/components/TreeFilter/index.vue index 2678082..b8d5167 100644 --- a/src/components/TreeFilter/index.vue +++ b/src/components/TreeFilter/index.vue @@ -22,13 +22,38 @@ @node-click="handleNodeClick" @check="handleCheckChange" > -