From 0d68be1fa109b0f55fa0b4c023baf4b66dcc9f28 Mon Sep 17 00:00:00 2001
From: liuchengxin <13104445455@163.com>
Date: 星期四, 09 六月 2022 14:06:39 +0800
Subject: [PATCH] BUG修改

---
 src/views/construction/ipc/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/construction/ipc/index.vue b/src/views/construction/ipc/index.vue
index 6d394ef..b0692f3 100644
--- a/src/views/construction/ipc/index.vue
+++ b/src/views/construction/ipc/index.vue
@@ -76,12 +76,12 @@
       <el-table-column label="MAC" min-width="150" align="center" prop="mac" show-overflow-tooltip/>
       <el-table-column label="IP" width="130" align="center" prop="ip" show-overflow-tooltip/>
       <el-table-column label="璐︽埛/瀵嗙爜" min-width="180" align="center" prop="loginAccount" show-overflow-tooltip/>
-      <el-table-column label="NVR" align="center" min-width="150" prop="nvrId_dictText" show-overflow-tooltip>
+      <el-table-column label="闅跺睘NVR" align="center" min-width="150" prop="nvrId_dictText" show-overflow-tooltip>
         <template slot-scope="scope">
           <el-link type="primary" @click="nvrClick(scope.row)">{{ scope.row.nvrId_dictText }}</el-link>
         </template>
       </el-table-column>
-      <el-table-column label="閫氶亾" align="center" prop="passageway_dictText" show-overflow-tooltip/>
+      <el-table-column label="閫氶亾鍙�" align="center" prop="passageway_dictText" show-overflow-tooltip/>
       <el-table-column label="搴忓垪鍙�" min-width="180" align="center" prop="serialNumber" show-overflow-tooltip/>
       <el-table-column label="鐢熶骇鍘傚晢" min-width="220" align="center" prop="manufacturerId_dictText" show-overflow-tooltip/>
       <el-table-column label="瀹夎浣嶇疆" min-width="240" align="center" prop="buildingId_dictText" show-overflow-tooltip/>
@@ -147,13 +147,13 @@
         </el-form-item>
         <el-row>
           <el-col :span="12">
-            <el-form-item label="nvr" prop="nvrId">
-              <nvr v-if="open" v-model="form.nvrId" :schoolId="schoolId"></nvr>
+            <el-form-item label="闅跺睘NVR" prop="nvrId">
+              <nvr v-if="open" v-model="form.nvrId" :schoolId="schoolId" @nvrIdChange="nvrIdChange"></nvr>
             </el-form-item>
           </el-col>
           <el-col :span="12">
-            <el-form-item label="閫氶亾" prop="passageway">
-              <el-select v-model="form.passageway" placeholder="璇烽�夋嫨閫氶亾锛堣矾锛�" style="width: 100%;">
+            <el-form-item label="閫氶亾鍙�" prop="passageway">
+              <el-select v-model="form.passageway" :disabled="!form.nvrId" placeholder="璇烽�夋嫨閫氶亾锛堣矾锛�" style="width: 100%;">
                 <el-option
                     v-for="dict in dict.type.DICT109"
                     :key="dict.value"
@@ -333,6 +333,9 @@
     this.getList();
   },
   methods: {
+    nvrIdChange () {
+      this.form.passageway = ''
+    },
     /** 鏌ヨipc璁惧鍒楄〃 */
     getList() {
       this.loading = true;

--
Gitblit v1.9.1