diff --git a/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue b/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue index 1471965..5b7e5ee 100644 --- a/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue +++ b/src/views/longoPeration/Patrolmanagement/inspectiontasks.vue @@ -167,12 +167,7 @@ value-key="projectNo" label="projectName" > - + @@ -189,12 +184,7 @@ value-key="userId" label="nickName" > - + @@ -216,7 +206,7 @@ style="width: 380px" format="YYYY-MM-DD" value-format="YYYY-MM-DD" - v-model="AllData.publishTime1" + v-model="form.publishTime1" type="daterange" range-separator="至" start-placeholder="开始时间" @@ -279,8 +269,8 @@ const pathGeometry = ref([]); const AllData = reactive({ publishTime: [], - publishTime1: [], - form: {}, + + form: { publishTime1: [] }, queryParams: { pageNum: 1, pageSize: 10, @@ -398,9 +388,20 @@ function submitForm() { proxy.$refs['roleRef'].validate(valid => { if (valid) { - // console.log(form.value, 'form.value'); - form.value.planStartDatetime = AllData.publishTime1[0]; - form.value.planEndDatetime = AllData.publishTime1[1]; + console.log(form.value, 'form.value'); + // 处理时间传参 + form.value.planStartDatetime = form.value.publishTime1[0]; + form.value.planEndDatetime = form.value.publishTime1[1]; + + // 处理项目传参 + form.value.projectCodeList = form.value.projectCodeList.map(obj => { + return { projectNo: obj.projectNo, projectName: obj.projectName }; + }); + // 处理人员传参 + form.value.taskUserIdList = form.value.taskUserIdList.map(obj => { + return { userId: String(obj.userId) }; + }); + form.value.basicInfoId = '1686274734091489284'; patrolTaskadd(form.value).then(response => { proxy.$modal.msgSuccess('新增成功');