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" > - 申请使用 + 申请使用 详情 - 下载 - handleCommand(command, scope.row)" v-hasPermi="['tool:edit', 'tool:remove']"> - 更多 + 下载 + handleCommand(command, scope.row)"> + 更多 - 编辑 - 删除 + 编辑 + 删除 @@ -150,164 +146,6 @@ - - - - 新增工具 - - 确 定 - 取 消 - - - - - - - 基本信息 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{dict.label}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 关联附件 - - - 上传 - 删除 - - - - - - - - - - - {{ parseTime(scope.row.createTime) }} - - - - - 预览 - 删除 - 下载 - - - - - - - - - - @@ -408,18 +246,15 @@ - 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" > +
新增工具
申请使用