From ab222710acaa2a7084468d8eb77a0bbd87be3a6d Mon Sep 17 00:00:00 2001 From: "Mr. Lan" Date: Sun, 15 Nov 2020 20:13:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BA=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept.js | 8 ++++++++ .../components/DetailPanel/UserTaskDetail.vue | 15 +++++++++------ src/views/process/admin/process-manager.vue | 18 +++++++++--------- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 8bc4b6a..35c1427 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -8,6 +8,14 @@ export function getDeptList(query) { }) } +export function getOrdinaryDeptList(params) { + return request({ + url: '/api/v1/ordinaryDeptList', + method: 'get', + params + }) +} + // 查询部门详细 export function getDept(deptId) { return request({ diff --git a/src/components/wfd/components/DetailPanel/UserTaskDetail.vue b/src/components/wfd/components/DetailPanel/UserTaskDetail.vue index 62cd193..28aff1a 100644 --- a/src/components/wfd/components/DetailPanel/UserTaskDetail.vue +++ b/src/components/wfd/components/DetailPanel/UserTaskDetail.vue @@ -24,12 +24,12 @@ :placeholder="i18n['userTask.assignType.placeholder']" :value="model.assignType" :disabled="readOnly" - @change="(e) => { onChange('assignValue', []);onChange('assignType', e) }" + @change="(e) => { onChange('assignValue', []); onChange('assignType', e); assignmentType() }" > - + + @@ -74,7 +74,7 @@ --> - +
* {{ i18n['userTask.assignType.variable.title'] }}:
{ - // this.departments = response.data.data - // }) - // }, + getDepartments() { + getOrdinaryDeptList().then(response => { + this.departments = response.data + console.log(this.departments) + }) + }, /** 查询流程列表 */ getList() { this.loading = true @@ -333,6 +332,7 @@ export default { this.getTemplates() this.getUsers() this.getRoles() + this.getDepartments() this.getTaskList() }, handleCreate() { @@ -359,6 +359,7 @@ export default { this.dialogProcessVisibleName = 2 this.getProcessInitData() this.wfdDesignRefresh = false + this.open = true processDetails({ processId: row.id }).then(response => { @@ -373,7 +374,6 @@ export default { icon: response.data.icon, remarks: response.data.remarks } - this.open = true this.wfdDesignRefresh = false this.$nextTick(() => { this.wfdDesignRefresh = true