zhouwx
7 天以前 ff1169ac5114c68e96c5686a0caa5d69d8a60b8a
src/views/build/conpanyFunctionConsult/qualityObjectives/table/components/tableDeptDialog.vue
@@ -3,7 +3,7 @@
    <el-dialog
        v-model="dialogVisible"
        :title="title"
        width="50%"
        width="900px"
        :before-close="handleClose"
        :close-on-press-escape="false"
        :close-on-click-modal="false"
@@ -11,7 +11,7 @@
      <el-form :model="state.form" size="default" ref="busRef" :rules="state.rules"    >
        <el-row :gutter="24">
          <el-col :span="24">
            <el-form-item label="企业名称:" prop="companyId" v-if="state.isAdmin">
            <el-form-item label="单位名称:" prop="companyId" v-if="state.isAdmin">
              <el-select v-model="state.form.companyId" placeholder="请选择" filterable clearable style="width: 100%" :disabled="title == '查看' || title == '编辑' || !state.isAdmin" @change="selectValueCom">
                <el-option
                    v-for="item in state.companyList"
@@ -352,6 +352,9 @@
}
const getDeptList = async () => {
  if(state.isAdmin && (state.form.companyId == 0 || state.form.companyId == null)){
    return
  }
  const param = {
    pageNum: 1,
    pageSize: 999,
@@ -485,6 +488,7 @@
}
const selectValueCom = (val) => {
  state.form.departId = null
  state.form.qualityId = null
  state.qualityList = []
  state.form.qualityTargets = []
@@ -499,6 +503,7 @@
      state.form.companyId = item.id
    }
  })
  getDeptList()
  getQualityList()
  getPeopleList()
}
@@ -507,12 +512,12 @@
  state.form.qualityId = null
  state.qualityList = []
  state.form.qualityTargets = []
  state.form.fictionId = null
  state.form.fictionName = ''
  state.form.checkId = null
  state.form.checkName = ''
  state.form.ratifyId = null
  state.form.ratifyName = ''
  // state.form.fictionId = null
  // state.form.fictionName = ''
  // state.form.checkId = null
  // state.form.checkName = ''
  // state.form.ratifyId = null
  // state.form.ratifyName = ''
  await getQualityList()
}
const addObject = (val) => {