qinzhipeng_v@didiglobal.com 4 years ago
parent
commit
0bc33621d9
1 changed files with 10 additions and 15 deletions
  1. 10 15
      src/views/projectManage/bugList/file/createdBug.vue

+ 10 - 15
src/views/projectManage/bugList/file/createdBug.vue

@@ -46,12 +46,7 @@
                   </el-select>
                 </el-form-item>
                 <el-form-item label="缺陷类型" prop="theBugType">
-                  <el-cascader v-model="formInline.theBugType" :options="theBugTypeEnumList" :props="{
-                      value:'code',
-                      label:'name',
-                      children: 'childrenEnums',
-                      emitPath: false
-                    }" placeholder="请选择" clearable />
+                  <el-cascader v-model="formInline.theBugType" :options="theBugTypeEnumList" :props="{ value:'code', label:'name', children: 'childrenEnums', emitPath: false }" placeholder="请选择" clearable />
                 </el-form-item>
 
                 <el-form-item label="责任人" style="width:100%;" prop="assigner">
@@ -603,18 +598,18 @@ export default {
               item.childModules.length === 0
                 ? null
                 : item.childModules.map(item1 => ({
-                    ...item1,
-                    value: item1.id,
-                    label: item1.moduleName,
-                    children:
+                  ...item1,
+                  value: item1.id,
+                  label: item1.moduleName,
+                  children:
                       item1.childModules.length === 0
                         ? null
                         : item1.childModules.map(item2 => ({
-                            ...item2,
-                            value: item2.id,
-                            label: item2.moduleName
-                          }))
-                  }))
+                          ...item2,
+                          value: item2.id,
+                          label: item2.moduleName
+                        }))
+                }))
           }))
         }
       )