From a030368330d5a6bf1d0ed42b6121b53d13b587d0 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 31 十月 2024 11:35:13 +0800
Subject: [PATCH] ll

---
 admin/src/components/operation/HiddenDangerParam.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/admin/src/components/operation/HiddenDangerParam.vue b/admin/src/components/operation/HiddenDangerParam.vue
index c2b75eb..f3e73ea 100644
--- a/admin/src/components/operation/HiddenDangerParam.vue
+++ b/admin/src/components/operation/HiddenDangerParam.vue
@@ -23,7 +23,7 @@
         />
       </el-form-item>
       <el-form-item label="璐d换閮ㄩ棬" prop="companyId">
-        <el-select  v-model="param.companyId">
+        <el-select @change="getAddrList" v-model="param.companyId">
           <el-option v-for="op in department" :key="op.id" :label="op.name" :value="op.id"></el-option>
         </el-select>
       </el-form-item>
@@ -155,9 +155,6 @@
       allList({ type: 1 }).then(res => { // 绫诲瀷
         this.typeList = res || []
       })
-      allList({ type: 0 }).then(res => { // 浣嶇疆
-        this.addrList = res || []
-      })
       memberList({}).then(res => {
         this.memberList = res || []
       })
@@ -171,6 +168,12 @@
           }
         })
     },
+    getAddrList() {
+      const { companyId } = this.param
+      allList({ type: 0,companyId }).then(res => { // 浣嶇疆
+        this.addrList = res || []
+      })
+    },
     changeArea (e) {
       const item = this.addrList.find(i => i.id === e)
       const arr = []

--
Gitblit v1.9.3