From 6caecd26f75979777956dc96e14d6f3b39ce6688 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 15 七月 2022 17:23:42 +0800
Subject: [PATCH] 1.修改bug

---
 src/views/zzmx/jpgj.vue |   23 +++++++++++++++++++----
 1 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/src/views/zzmx/jpgj.vue b/src/views/zzmx/jpgj.vue
index 40df116..5bcb346 100644
--- a/src/views/zzmx/jpgj.vue
+++ b/src/views/zzmx/jpgj.vue
@@ -13,11 +13,14 @@
             <el-form-item label="浜у搧鍚嶇О" style=" display: flex;">
               <el-select
                 v-model="form.partcode"
+                filterable
                 :popper-append-to-body="false"
                 style="width: 200px"
                 placeholder="璇烽�夋嫨"
+
                 @change="partChange"
               >
+                <!--                @focus="getPartSelect"-->
                 <el-option
                   v-for="item in partArr"
                   :key="item.partcode"
@@ -29,6 +32,7 @@
             <el-form-item label="宸ヨ壓璺嚎" style=" display: flex;">
               <el-select
                 v-model="form.routecode"
+                filterable
                 :disabled="form.partcode===''"
                 :popper-append-to-body="false"
                 style="width: 200px"
@@ -63,6 +67,7 @@
             <el-form-item label="鍏宠仈璁惧" style=" display: flex;">
               <el-select
                 v-model="form.eqpcode"
+                filterable
                 :disabled="form.stepcode===''"
                 :popper-append-to-body="false"
                 style="width: 200px"
@@ -199,7 +204,7 @@
     <el-dialog
       :title="operation==='add'?'鏂板':'缂栬緫'"
       :visible.sync="dialogVisible"
-      width="70%"
+      width="1200px"
       top="15vh"
       :fullscreen="isFullscreen"
       :close-on-click-modal="false"
@@ -213,13 +218,16 @@
             <el-select
               v-show="operation==='add'"
               v-model="dialogForm.partcode"
+              filterable
               style="width: 220px"
               placeholder="璇烽�夋嫨"
               :popper-append-to-body="false"
+
               @change="partDialogChange"
             >
+              <!--              @focus="getPartSelect2"-->
               <el-option
-                v-for="item in partArr"
+                v-for="item in partArr2"
                 :key="item.partcode"
                 :label="item.partname"
                 :value="item.partcode"
@@ -237,6 +245,7 @@
               v-show="operation==='add'"
               v-model="dialogForm.routecode"
               style="width: 220px"
+              filterable
               :disabled="dialogForm.partcode===''"
               placeholder="璇烽�夋嫨"
               :popper-append-to-body="false"
@@ -427,7 +436,7 @@
 
 const SER_HZ = /^[\u4e00-\u9fa5]+$/
 export default {
-  name: 'Zzjg',
+  name: 'JPGJ',
   components: {
     Pagination
   },
@@ -465,6 +474,7 @@
         rows: 20 // 姣忛〉澶氬皯鏉�
       },
       partArr: [], // 浜у搧闆嗗悎
+      partArr2: [], // 浜у搧闆嗗悎瀵硅瘽妗�
       routeArr: [], // 浜у搧闆嗗悎
       stepArr: [], // 浜у搧闆嗗悎
       eqpArr: [], // 浜у搧闆嗗悎
@@ -551,6 +561,10 @@
     async getPartSelect() {
       const { data: res } = await PartSelect()
       this.partArr = res
+    },
+    async getPartSelect2() {
+      const { data: res } = await PartSelect()
+      this.partArr2 = res
     },
     async partChange(val) {
       const { data: res } = await PartSelectRpute({ partcode: val })
@@ -726,6 +740,7 @@
     add(operation) {
       this.operation = operation
       this.dialogVisible = true
+      this.getPartSelect2()
     },
     // 淇敼鎸夐挳
     async  edit(operation, row) {
@@ -817,7 +832,7 @@
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 250
         this.tableHeight = this.mainHeight - 100
-        this.isFullscreen = window.innerHeight < 800
+        // this.isFullscreen = window.innerHeight < 800
       })
     }
   }

--
Gitblit v1.9.3