吴羡
2 天以前 eb34b3d70926539b607f62e86434d1bace037792
src/views/CNAS/process/method/standardMethod/index.vue
@@ -19,6 +19,13 @@
            <el-input size="small" placeholder="请输入" clearable v-model="queryParams.name"
                      @keyup.enter="refreshTable()"></el-input>
          </el-form-item>
          <el-form-item label="标准分类" prop="industryId">
            <el-select v-model="queryParams.industryId" size="small" clearable filterable placeholder="请选择"
                       style="width: 180px">
              <el-option v-for="item in industryOptions" :key="item.id" :label="item.laboratoryName"
                         :value="item.id"/>
            </el-select>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" size="small" @click="refreshTable">查询</el-button>
            <el-button size="small" @click="refresh">重置</el-button>
@@ -34,8 +41,8 @@
    <!-- 新增/编辑 -->
    <el-dialog :title="title" v-model="addDlog" width="500px">
      <el-form :model="addForm" ref="addForm" :rules="addRules" label-position="right" label-width="120px">
        <el-form-item label="行业" prop="industryIds">
          <el-select v-model="addForm.industryIds" multiple filterable clearable collapse-tags placeholder="请选择行业"
        <el-form-item label="标准分类" prop="industryIds">
          <el-select v-model="addForm.industryIds" multiple filterable clearable collapse-tags placeholder="请选择标准分类"
                     style="width: 100%">
            <el-option v-for="item in industryOptions" :key="item.id" :label="item.laboratoryName" :value="item.id"/>
          </el-select>
@@ -52,7 +59,7 @@
          <el-input size="small" placeholder="请输入" clearable v-model="addForm.remark">
          </el-input>
        </el-form-item>
        <el-form-item label="资质" prop="qualificationId">
        <el-form-item v-if="title === '编辑'" label="资质" prop="qualificationId">
          <el-select v-model="addForm.qualificationId" size="small" clearable placeholder="请选择" style="width: 100%">
            <el-option v-for="item in qualificationList" :key="item.value" :label="item.label" :value="item.value">
            </el-option>
@@ -135,14 +142,13 @@
      addPower: true,
      title: "新增",
      inPower: true,
      queryParams: {},
      queryParams: {industryId: ''},
      tableData: [],
      column: [
        {label: "行业", prop: "industryNames", width: "140px"},
        {label: "标准分类", prop: "industryNames", width: "140px"},
        {label: "标准编号", prop: "code", width: "100px"},
        {label: "标准描述", prop: "name", width: "100px"},
        {label: "备注", prop: "remark"},
        {label: "资质", prop: "qualificationId"},
        {
          label: "是否产品标准",
          prop: "isProduct",
@@ -262,6 +268,7 @@
      this.tableLoading = true;
      let param = {...this.queryParams, ...this.page};
      delete param.total;
      if (param.industryId === '' || param.industryId === null) delete param.industryId;
      selectStandardMethodList({...param})
        .then((res) => {
          this.tableLoading = false;
@@ -287,7 +294,7 @@
    refresh() {
      this.loadIndustryOptions();
      this.page.current = 1;
      this.queryParams = {};
      this.queryParams = {industryId: ''};
      this.getList();
    },
    openAdd() {