浏览代码

description: incidentBuildStore.incidentBuild.data.category ? incidentBuildStore.incidentBuild.data.category.mutiCategory : undefined

seimin 10 月之前
父节点
当前提交
1ed28218db
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      pages/buildIncident/buildIncident.vue

+ 8 - 1
pages/buildIncident/buildIncident.vue

@@ -397,7 +397,14 @@
397 397
   onLoad((option) => {
398 398
     handlerStore.clearHandlerData();
399 399
     if(incidentBuildStore.incidentBuild.data){
400
-      Object.assign(incidentData, incidentBuildStore.incidentBuild.data);
400
+      Object.assign(
401
+        incidentData,
402
+        incidentBuildStore.incidentBuild.data,
403
+        {
404
+          priority: incidentBuildStore.incidentBuild.data.category ? incidentBuildStore.incidentBuild.data.category.priority : undefined,
405
+          description: incidentBuildStore.incidentBuild.data.category ? incidentBuildStore.incidentBuild.data.category.mutiCategory : undefined,
406
+        },
407
+      );
401 408
       // 修改报修科室,则回显楼栋,楼层,详细地址,联系电话
402 409
       if(incidentBuildStore.incidentBuild.sign === 'department'){
403 410
         incidentData.place = incidentData.department.place || undefined;