Просмотр исходного кода

fix(repair-form): 补充查询参数字段并修正 statusList 空值类型

- 在 queryParam 中补充缺失的字段初始化(keyword, zbh, actualUser, repairUserName, content, statusList)
- 将 statusList 重置值从 null 改为 undefined,确保 a-select 组件正确识别空状态
dazhaxie 2 недель назад
Родитель
Сommit
b93630bbb2
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      src/views/repair/application-form/RepairForm.vue

+ 7 - 1
src/views/repair/application-form/RepairForm.vue

@@ -168,7 +168,13 @@ export default {
     return {
     return {
       // 查询参数
       // 查询参数
       queryParam: {
       queryParam: {
+        keyword: null,
+        zbh: null,
+        actualUser: null,
+        repairUserName: null,
         deptIdList: skipDeptDefault ? [] : [this.$store.getters.userInfo.deptId],
         deptIdList: skipDeptDefault ? [] : [this.$store.getters.userInfo.deptId],
+        content: null,
+        statusList: undefined,
         searchStartTime: null,
         searchStartTime: null,
         searchEndTime: null
         searchEndTime: null
       },
       },
@@ -452,7 +458,7 @@ export default {
       this.queryParam.actualUser = null
       this.queryParam.actualUser = null
       this.queryParam.repairUserName = null
       this.queryParam.repairUserName = null
       this.queryParam.content = null
       this.queryParam.content = null
-      this.queryParam.statusList = null
+      this.queryParam.statusList = undefined
       this.queryParam.searchStartTime = null
       this.queryParam.searchStartTime = null
       this.queryParam.searchEndTime = null
       this.queryParam.searchEndTime = null
       // 部门:先清空让 a-select 同步状态
       // 部门:先清空让 a-select 同步状态