chenrui
2025-03-05 f6082c04ca8c98c1f130d88585d8e7cf67175279
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