Commit ab222710 by Mr. Lan

feat: 添加部门处理人。

parent 3a907783
...@@ -8,6 +8,14 @@ export function getDeptList(query) { ...@@ -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) { export function getDept(deptId) {
return request({ return request({
......
...@@ -24,12 +24,12 @@ ...@@ -24,12 +24,12 @@
:placeholder="i18n['userTask.assignType.placeholder']" :placeholder="i18n['userTask.assignType.placeholder']"
:value="model.assignType" :value="model.assignType"
:disabled="readOnly" :disabled="readOnly"
@change="(e) => { onChange('assignValue', []);onChange('assignType', e) }" @change="(e) => { onChange('assignValue', []); onChange('assignType', e); assignmentType() }"
> >
<el-option key="person" value="person" :label="i18n['userTask.assignType.person']" /> <el-option key="person" value="person" :label="i18n['userTask.assignType.person']" />
<el-option key="role" value="role" :label="i18n['userTask.assignType.role']" /> <el-option key="role" value="role" :label="i18n['userTask.assignType.role']" />
<!-- <el-option key="persongroup" value="persongroup" :label="i18n['userTask.assignType.persongroup']"/> <!-- <el-option key="persongroup" value="persongroup" :label="i18n['userTask.assignType.persongroup']" /> -->
<el-option key="department" value="department" :label="i18n['userTask.assignType.department']"/> --> <el-option key="department" value="department" :label="i18n['userTask.assignType.department']" />
<el-option key="variable" value="variable" :label="i18n['userTask.assignType.variable']" /> <el-option key="variable" value="variable" :label="i18n['userTask.assignType.variable']" />
</el-select> </el-select>
</div> </div>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<el-option v-for="group in groups" :key="group.id" :label="group.nickname===''?group.name:group.nickname" :value="group.id" /> <el-option v-for="group in groups" :key="group.id" :label="group.nickname===''?group.name:group.nickname" :value="group.id" />
</el-select> </el-select>
</div> --> </div> -->
<!-- <div v-else-if="model.assignType === 'department'" class="panelRow"> <div v-else-if="model.assignType === 'department'" class="panelRow">
<div><span style="color: red">*</span> {{ i18n['userTask.assignType.department.title'] }}</div> <div><span style="color: red">*</span> {{ i18n['userTask.assignType.department.title'] }}</div>
<el-select <el-select
style="width:90%; font-size:12px" style="width:90%; font-size:12px"
...@@ -85,9 +85,9 @@ ...@@ -85,9 +85,9 @@
:filterable="true" :filterable="true"
@change="(e) => { onChange('assignValue', e); getPersons(e) }" @change="(e) => { onChange('assignValue', e); getPersons(e) }"
> >
<el-option v-for="department in departments" :key="department.id" :label="department.name===''?department.nickname:department.name" :value="department.id" /> <el-option v-for="department in departments" :key="department.deptId" :label="department.deptName" :value="department.deptId" />
</el-select> </el-select>
</div> --> </div>
<div v-else-if="model.assignType === 'variable'" class="panelRow"> <div v-else-if="model.assignType === 'variable'" class="panelRow">
<div><span style="color: red">*</span> {{ i18n['userTask.assignType.variable.title'] }}</div> <div><span style="color: red">*</span> {{ i18n['userTask.assignType.variable.title'] }}</div>
<el-select <el-select
...@@ -220,6 +220,9 @@ export default { ...@@ -220,6 +220,9 @@ export default {
if (!e) { if (!e) {
this.onChange('fullHandle', false) this.onChange('fullHandle', false)
} }
},
assignmentType() {
this.onChange('isCounterSign', false)
} }
} }
} }
......
...@@ -199,6 +199,7 @@ import { templateList } from '@/api/process/admin/template' ...@@ -199,6 +199,7 @@ import { templateList } from '@/api/process/admin/template'
import { taskList } from '@/api/process/admin/task' import { taskList } from '@/api/process/admin/task'
import { listUser } from '@/api/system/sysuser' import { listUser } from '@/api/system/sysuser'
import { listRole } from '@/api/system/role' import { listRole } from '@/api/system/role'
import { getOrdinaryDeptList } from '@/api/system/dept'
export default { export default {
name: 'Process', name: 'Process',
...@@ -307,14 +308,12 @@ export default { ...@@ -307,14 +308,12 @@ export default {
}) })
}, },
// 获取部门 // 获取部门
// getDepartments() { getDepartments() {
// departmentList({ getOrdinaryDeptList().then(response => {
// page: 1, this.departments = response.data
// per_page: 99999 console.log(this.departments)
// }).then(response => { })
// this.departments = response.data.data },
// })
// },
/** 查询流程列表 */ /** 查询流程列表 */
getList() { getList() {
this.loading = true this.loading = true
...@@ -333,6 +332,7 @@ export default { ...@@ -333,6 +332,7 @@ export default {
this.getTemplates() this.getTemplates()
this.getUsers() this.getUsers()
this.getRoles() this.getRoles()
this.getDepartments()
this.getTaskList() this.getTaskList()
}, },
handleCreate() { handleCreate() {
...@@ -359,6 +359,7 @@ export default { ...@@ -359,6 +359,7 @@ export default {
this.dialogProcessVisibleName = 2 this.dialogProcessVisibleName = 2
this.getProcessInitData() this.getProcessInitData()
this.wfdDesignRefresh = false this.wfdDesignRefresh = false
this.open = true
processDetails({ processDetails({
processId: row.id processId: row.id
}).then(response => { }).then(response => {
...@@ -373,7 +374,6 @@ export default { ...@@ -373,7 +374,6 @@ export default {
icon: response.data.icon, icon: response.data.icon,
remarks: response.data.remarks remarks: response.data.remarks
} }
this.open = true
this.wfdDesignRefresh = false this.wfdDesignRefresh = false
this.$nextTick(() => { this.$nextTick(() => {
this.wfdDesignRefresh = true this.wfdDesignRefresh = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment