|
|
|
|
@ -232,7 +232,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { getRoleUserList } from '@/api/processManagement/taskDispatch'; |
|
|
|
|
import { projectExecute, projectCheck, projectApprove } from '@/api/flowManagement/index'; |
|
|
|
|
import { projectExecute, projectCheck, projectApprove,getProcessDetail } from '@/api/flowManagement/index'; |
|
|
|
|
import { getDictionary } from '@/api/system/dict'; |
|
|
|
|
import jhSelect from '@/components/jh-select/index.vue'; |
|
|
|
|
export default { |
|
|
|
|
@ -273,15 +273,39 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.openShow = this.showDialog; |
|
|
|
|
this.executeForm = this.rowItem; |
|
|
|
|
console.log(this.detailForm, 'title'); |
|
|
|
|
// this.executeForm = this.rowItem; |
|
|
|
|
// console.log(this.detailForm, 'title'); |
|
|
|
|
this.detailForm.checkResult = null; |
|
|
|
|
this.subTitle = this.title; |
|
|
|
|
console.log(this.rowItem, 'rowItem'); |
|
|
|
|
this.getRoleUserList(); |
|
|
|
|
this.getExecuteResult(); |
|
|
|
|
this.getDetails(); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 获取详情数据 |
|
|
|
|
getDetails() { |
|
|
|
|
getProcessDetail(this.rowItem.paId).then(res => { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
// let data = res.data.data; |
|
|
|
|
// Object.assign(this.addForm, data); |
|
|
|
|
|
|
|
|
|
this.executeForm = res.data.data; |
|
|
|
|
|
|
|
|
|
// 安全地处理 memberName 回显 |
|
|
|
|
if (res.data.data.memberName) { |
|
|
|
|
this.executeForm.memberName = String(res.data.data.memberName) |
|
|
|
|
.split(',') |
|
|
|
|
.map(id => id.trim()) |
|
|
|
|
.filter(Boolean); |
|
|
|
|
} else { |
|
|
|
|
this.executeForm.memberName = []; |
|
|
|
|
} |
|
|
|
|
this.$forceUpdate(); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
executeTypeChange() { |
|
|
|
|
this.detailForm.delayTime = ''; |
|
|
|
|
}, |
|
|
|
|
|