Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/bianww' into bianww

bianww 2 anni fa
parent
commit
4f4b7cc56a
1 ha cambiato i file con 12 aggiunte e 4 eliminazioni
  1. 12 4
      src/pages/main/demandDevelop/index.vue

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

@@ -282,7 +282,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>
@@ -684,6 +686,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");
@@ -1257,9 +1268,6 @@ export default {
                   },
                   data: id,
               }).then(({ data }) => {
-                  console.log("res======================================")
-                  console.log(data)
-                  console.log(data.result)
                   if (data && data.result === 0) {
                       this.$message.success(data.desc);
                       this.handleInit();