合并
This commit is contained in:
		| @ -70,7 +70,7 @@ const ids = ref<string>(''); | ||||
| const tableData = ref<any[]>([]); | ||||
| const param = reactive({ | ||||
|   type: 2, | ||||
|   projectId: currentProject.value.id, | ||||
|   projectId: currentProject.value?.id, | ||||
|   pageNum: 1, | ||||
|   pageSize: 10 | ||||
| }); | ||||
|  | ||||
| @ -133,7 +133,7 @@ const dialog = reactive<DialogOption>({ | ||||
|  | ||||
| const initFormData: QualityConstructionLogForm = { | ||||
|   id: undefined, | ||||
|   projectId: currentProject.value.id, | ||||
|   projectId: currentProject.value?.id, | ||||
|   happenDate: undefined, | ||||
|   productionStatus: undefined, | ||||
|   technologyQuality: undefined, | ||||
| @ -145,7 +145,7 @@ const data = reactive<PageData<QualityConstructionLogForm, QualityConstructionLo | ||||
|   queryParams: { | ||||
|     pageNum: 1, | ||||
|     pageSize: 10, | ||||
|     projectId: currentProject.value.id, | ||||
|     projectId: currentProject.value?.id, | ||||
|     happenDate: undefined, | ||||
|     params: {} | ||||
|   }, | ||||
| @ -251,7 +251,7 @@ const handleExport = () => { | ||||
|  | ||||
| //监听项目id刷新数据 | ||||
| const listeningProject = watch( | ||||
|   () => currentProject.value.id, | ||||
|   () => currentProject.value?.id, | ||||
|   (nid, oid) => { | ||||
|     queryParams.value.projectId = nid; | ||||
|     form.value.projectId = nid; | ||||
|  | ||||
| @ -261,7 +261,7 @@ const getList = async () => { | ||||
|   qualityInspectionList.value = res.rows; | ||||
|   total.value = res.total; | ||||
|   // 获取项目班组信息 | ||||
|   const teamRes = await listProjectTeamForeman(currentProject.value.id); | ||||
|   const teamRes = await listProjectTeamForeman(currentProject.value?.id); | ||||
|   teamList.value = teamRes.data; | ||||
|   teamOpt.value = teamList.value.map((team: ProjectTeamForemanResp) => ({ | ||||
|     label: team.teamName, | ||||
| @ -372,7 +372,7 @@ const handleExport = () => { | ||||
|  | ||||
| //监听项目id刷新数据 | ||||
| const listeningProject = watch( | ||||
|   () => currentProject.value.id, | ||||
|   () => currentProject.value?.id, | ||||
|   (nid, oid) => { | ||||
|     queryParams.value.projectId = nid; | ||||
|     form.value.projectId = nid; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user