From 12caaecf88c7149fd492faa4ac5cdf0c0c03ec1d Mon Sep 17 00:00:00 2001 From: liukang Date: Tue, 27 Aug 2024 18:18:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=8F=91=E5=B8=83=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=92=8C=E4=BD=BF=E7=94=A8=E7=94=B3=E8=AF=B7=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E7=BB=86=E8=8A=82=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 8 +- .../user-selector/src/user-selector.vue | 19 +- src/store/getters.js | 1 + src/views/tool/index.vue | 337 +++--------------- .../workflowList/addWorkflow/tool_release.vue | 108 +++--- .../workflowList/addWorkflow/use_apply.vue | 62 ++-- 6 files changed, 159 insertions(+), 376 deletions(-) diff --git a/.env.development b/.env.development index a145863..d511e49 100644 --- a/.env.development +++ b/.env.development @@ -7,14 +7,14 @@ ENV = 'development' VUE_APP_CONTEXT_PATH = '/tool-tech' # 工具与技术交流管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.2.85:8080/tool-tech-admin' -VUE_APP_WS_URL = 'ws://192.168.2.85:8080/tool-tech-admin/websocket' +VUE_APP_BASE_API = 'http://localhost:8080/tool-tech-admin' +VUE_APP_WS_URL = 'ws://localhost:8080/tool-tech-admin/websocket' # 文档在线预览服务 -VUE_APP_TOOL_TECH_FILE_VIEW_API = 'http://192.168.1.2:8012/tool-tech-file-view' +VUE_APP_TOOL_TECH_FILE_VIEW_API = 'http://localhost:8012/tool-tech-file-view' # 流程管理服务地址 -VUE_APP_WORKFLOW_MANAGE_URL = 'http://192.168.1.2:8080/ebpm-process-manage' +VUE_APP_WORKFLOW_MANAGE_URL = 'http://192.168.2.20:8085/ebpm-process-manage' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/components/user-selector/src/user-selector.vue b/src/components/user-selector/src/user-selector.vue index fb33469..4e45aa7 100644 --- a/src/components/user-selector/src/user-selector.vue +++ b/src/components/user-selector/src/user-selector.vue @@ -276,15 +276,16 @@ return result; }, submitForm() { - let checkedUserArr = [] - let checkedUser = {} - this.checkedUsers.forEach(userName => { - checkedUser['userName'] = userName - checkedUser['userId'] = this.getUserIdByUserName(userName) - checkedUser['nickName'] = this.getNickNameByUserName(userName) - checkedUserArr.push(checkedUser) - }) - this.$emit("submit", checkedUserArr); //返回username和nickname + // let checkedUserArr = [] + // let checkedUser = {} + // this.checkedUsers.forEach(userName => { + // checkedUser['userName'] = userName + // checkedUser['userId'] = this.getUserIdByUserName(userName) + // checkedUser['nickName'] = this.getNickNameByUserName(userName) + // checkedUserArr.push(checkedUser) + // }) + // this.$emit("submit", checkedUserArr); //返回username和nickname + this.$emit("submit", JSON.parse(JSON.stringify(this.selectedUserList))); }, cancel() { this.$emit('cancel'); diff --git a/src/store/getters.js b/src/store/getters.js index f7f6256..667e425 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -7,6 +7,7 @@ const getters = { cachedViews: state => state.tagsView.cachedViews, token: state => state.user.token, avatar: state => state.user.avatar, + userId: state => state.user.id, userInfo: state => state.user.info, name: state => state.user.name, nickName: state => state.user.nickName, diff --git a/src/views/tool/index.vue b/src/views/tool/index.vue index cb2899f..a0ffacb 100644 --- a/src/views/tool/index.vue +++ b/src/views/tool/index.vue @@ -89,13 +89,11 @@ @click="handleAdd" v-hasPermi="['system:user:add']" >工具发布 - - - 批量删除 + 批量删除 导出 - + @@ -125,16 +123,14 @@ class-name="small-padding fixed-width" > @@ -150,164 +146,6 @@ - - - -
- -
-
- 基本信息 -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{dict.label}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
- 关联附件 -
-
- 上传 - 删除 -
- - - - - - - - - - - - - - -
-
- - -
-
- diff --git a/src/views/workflowList/addWorkflow/use_apply.vue b/src/views/workflowList/addWorkflow/use_apply.vue index da13551..0a66fa7 100644 --- a/src/views/workflowList/addWorkflow/use_apply.vue +++ b/src/views/workflowList/addWorkflow/use_apply.vue @@ -3,7 +3,7 @@
-

新增工具

+

申请使用

@@ -19,24 +19,23 @@
- +
基本信息
- - - {{form.userName}} + + + {{form.nickName}} - - {{form.deptId}} + {{form.deptName}} @@ -129,6 +128,7 @@ v-if="monitorDrawerVisible" ref="monitorDrawer" > +