jiangping
2025-02-27 10c28ce3d0b384584c77ce9111a66a0641250752
admin/src/components/operation/HiddenDangerParam.vue
@@ -4,6 +4,7 @@
    width="600px"
    :visible.sync="isShowModal"
    :confirm-working="isWorking"
    @close="close"
    @confirm="confirm"
  >
    <el-form :model="param" ref="paramRef" :rules="rules">
@@ -23,7 +24,7 @@
        />
      </el-form-item>
      <el-form-item label="责任部门" prop="companyId">
        <el-select @change="getAddrList" 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>
@@ -150,18 +151,18 @@
    this.initData()
  },
  methods: {
    initData () {
      allList({ type: 1 }).then(res => { // 类型
        this.typeList = res || []
      })
      memberList({}).then(res => {
        this.memberList = res || []
      })
      // memberList({}).then(res => {
      //   this.memberList = res || []
      // })
      this.getfindCompanyTreePage()
    },
    getfindCompanyTreePage() {
      companyGetListPost({})
      companyGetListPost({queryHiddenDanger: 1})
        .then(res => {
          if (res && res.length > 0) {
            this.department = res
@@ -170,9 +171,14 @@
    },
    getAddrList() {
      const { companyId } = this.param
      allList({ type: 0,companyId }).then(res => { // 位置
        this.addrList = res || []
      })
      this.$set(this.param, 'areaId', '')
      this.$set(this.param, 'checkUserId', '')
      this.addrList = []
      if(companyId){
        allList({ type: 0,companyId }).then(res => { // 位置
          this.addrList = res || []
        })
      }
    },
    changeArea (e) {
      const item = this.addrList.find(i => i.id === e)
@@ -239,6 +245,10 @@
    handleDelImg (i) {
      this.fileList.splice(i, 1)
    },
    close(){
      this.isShowModal = false
      this.$emit('close')
    },
    // 同步信息
    confirm () {
      this.$refs.paramRef.validate((valid) => {