|
|
@@ -144,52 +144,17 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
loading:false,
|
|
|
- codeId: undefined, // 编号
|
|
|
reason: '',
|
|
|
auditRule: {
|
|
|
reason: [{ required: true, message: '审批建议不能为空', trigger: 'blur' }],
|
|
|
},
|
|
|
- tasks: [
|
|
|
- {
|
|
|
- "id": "f514d489-0afd-11ed-a881-427d68986255",
|
|
|
- "name": "领导审批",
|
|
|
- "claimTime": null,
|
|
|
- "createTime": 1658632137000,
|
|
|
- "suspensionState": null,
|
|
|
- "processInstance": {
|
|
|
- "id": "f51374f1-0afd-11ed-a881-427d68986255",
|
|
|
- "name": "OA 请假",
|
|
|
- "startUserId": 1,
|
|
|
- "startUserNickname": "芋道源码",
|
|
|
- "processDefinitionId": "oa_leave:3:f07c1280-0afd-11ed-a881-427d68986255"
|
|
|
- },
|
|
|
- "endTime": null,
|
|
|
- "durationInMillis": null,
|
|
|
- "result": 1,
|
|
|
- "reason": null,
|
|
|
- "definitionKey": "task-01",
|
|
|
- "assigneeUser": {
|
|
|
- "id": 1,
|
|
|
- "nickname": "芋道源码",
|
|
|
- "deptId": 103,
|
|
|
- "deptName": "研发部门"
|
|
|
- },
|
|
|
- "parentTaskId": null,
|
|
|
- "children": null
|
|
|
- }
|
|
|
- ],
|
|
|
- peopleList: ['林动', '萧炎', '叶凡'],
|
|
|
+ tasks: [],
|
|
|
+ peopleList: [],
|
|
|
// 表单参数
|
|
|
- form: {
|
|
|
- loginName: '张三',
|
|
|
- dept: '软件工程院',
|
|
|
- },
|
|
|
+ form: {},
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- // this.codeId = this.id || this.$route.query.id;
|
|
|
- // console.log(this.codeId);
|
|
|
- // this.getDetail();
|
|
|
},
|
|
|
watch: {
|
|
|
id: {
|
|
|
@@ -285,7 +250,7 @@ export default {
|
|
|
}
|
|
|
return '';
|
|
|
},
|
|
|
- /** 获得请假信息 */
|
|
|
+ /** 获得详情信息 */
|
|
|
getDetail(val) {
|
|
|
this.$parent.$parent.detailLoading = true
|
|
|
getDetail(val).then(response => {
|