gaoluyang
2025-03-05 2cb43c3a48a7d89410ecac842f88d6eb0fc7383f
能力范围报错优化
已修改1个文件
10 ■■■■ 文件已修改
src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/structural/capabilityAndLaboratory/capabilityComponents/EditForm.vue
@@ -143,7 +143,7 @@
          <el-col :span="12">
            <el-form-item label="试验方法:" prop="method">
              <el-select v-model="editForm.method" clearable multiple placeholder="请选择" size="small" style="width: 100%">
                <el-option v-for="item in methodList" :key="item.value" :label="item.label" :value="item.value"></el-option>
                <el-option v-for="item in methodList" :key="item.value" :label="item.label" :value="item.label"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
@@ -317,7 +317,11 @@
          let obj = this.HaveJson(this.editForm)
          obj.method = JSON.stringify(obj.method)
          obj.sample = JSON.stringify(obj.sample)
          obj.radiusList = JSON.stringify(obj.radiusList)
          if (obj.radiusList?.length > 0) {
            obj.radiusList = JSON.stringify(obj.radiusList)
          } else {
            obj.radiusList = null
          }
          if(obj.id){
            // 修改
            upItemParameter(obj).then(res => {
@@ -387,7 +391,7 @@
            res.data.forEach(a => {
              data.push({
                label: a.code,
                value: a.code
                value: a.id,
              })
            })
            this.methodList = data