Explorar el Código

需求支撑方增加选择判断

bianww hace 2 años
padre
commit
a0964ea828
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12 1
      src/pages/main/demandDevelop/index.vue

+ 12 - 1
src/pages/main/demandDevelop/index.vue

@@ -280,7 +280,9 @@
                                             v-for="item in supportList"
                                             :key="item.id"
                                             :label="item.factoryName"
-                                            :value="item.factoryName">
+                                            :value="item.factoryName"
+                                            :disabled="getDisabledFlag(item)"
+                                        >
                                         </el-option>
                                     </el-select>
                                 </el-form-item>
@@ -681,6 +683,15 @@ export default {
     // },
   },
   methods: {
+    // 判断需求支撑方是否可选
+    getDisabledFlag(support){
+        for(let n=0;n<this.infodatas.length;n++){
+            if (this.infodatas[n] === support.factoryName){
+                return true;
+            }
+        }
+        return false;
+    },
     // 新的处理方法
     handlePreview(file) {
       console.log(file, "Preview");