ll
liukangdong
2024-10-31 cd197acb8e9263f6b91db02d63d887c04699ce6b
admin/src/components/operation/HiddenDangerParam.vue
@@ -23,7 +23,7 @@
        />
      </el-form-item>
      <el-form-item label="责任部门" prop="companyId">
        <el-select  v-model="param.companyId">
        <el-select @change="getAddrList" clearable filterable 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,12 +155,9 @@
      allList({ type: 1 }).then(res => { // 类型
        this.typeList = res || []
      })
      allList({ type: 0 }).then(res => { // 位置
        this.addrList = res || []
      })
      memberList({}).then(res => {
        this.memberList = res || []
      })
      // memberList({}).then(res => {
      //   this.memberList = res || []
      // })
      this.getfindCompanyTreePage()
    },
    getfindCompanyTreePage() {
@@ -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 = []