diff --git a/src/views/xuncha/components/TaskForm.vue b/src/views/xuncha/components/TaskForm.vue index 399d2a7..88aec69 100644 --- a/src/views/xuncha/components/TaskForm.vue +++ b/src/views/xuncha/components/TaskForm.vue @@ -83,6 +83,7 @@ const props = defineProps({ numberNum: String, projectName: String, + projectCode: String, }); const { proxy } = getCurrentInstance(); const emits = defineEmits(['closeFormTransition']); @@ -161,7 +162,7 @@ //option为object类型,会序列化上个页面传递的参数 AllData.formData.patrolTaskNo = props.numberNum; AllData.patrolTargetIdText = props.projectName; - console.log(AllData.formData.taskName, 'AllData.formData.taskName '); + AllData.formData.taskName = props.projectCode; }); }, { immediate: true } diff --git a/src/views/xuncha/components/TaskForm.vue b/src/views/xuncha/components/TaskForm.vue index 399d2a7..88aec69 100644 --- a/src/views/xuncha/components/TaskForm.vue +++ b/src/views/xuncha/components/TaskForm.vue @@ -83,6 +83,7 @@ const props = defineProps({ numberNum: String, projectName: String, + projectCode: String, }); const { proxy } = getCurrentInstance(); const emits = defineEmits(['closeFormTransition']); @@ -161,7 +162,7 @@ //option为object类型,会序列化上个页面传递的参数 AllData.formData.patrolTaskNo = props.numberNum; AllData.patrolTargetIdText = props.projectName; - console.log(AllData.formData.taskName, 'AllData.formData.taskName '); + AllData.formData.taskName = props.projectCode; }); }, { immediate: true } diff --git a/src/views/xuncha/components/inspection.vue b/src/views/xuncha/components/inspection.vue index 6413c2d..56208d3 100644 --- a/src/views/xuncha/components/inspection.vue +++ b/src/views/xuncha/components/inspection.vue @@ -19,6 +19,7 @@ @closeFormTransition="closeFormTransition" :numberNum="AllData.numberNum" :projectName="AllData.projectName" + :projectCode="AllData.projectCode" :isDisable="AllData.isDisable" /> @@ -62,6 +63,7 @@ latitudeNow: '', numberNum: '', projectName: '', + projectCode: '', IntervalKry: '', //定时器ID--获取经纬度信息 TimerArray: [], //记录定时器数据 num: 0, @@ -282,6 +284,7 @@ if (res && res.code == 200) { AllData.numberNum = res.data.number; AllData.projectName = res.data.projectName; + AllData.projectCode = res.data.projectCodes; AllData.gujiData = res.data.patrolPathLngLat; console.log(AllData.gujiData, 'AllData.gujiData'); // 保存当前巡检ID