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