|
@@ -9,9 +9,15 @@
|
|
|
|
|
|
<template slot="yangpinKeyId" slot-scope="text, record,index">
|
|
|
<a-form-model-item :prop="'list.'+index+'.yangpinKeyId'" :rules="validatorRules.yangpinKeyId">
|
|
|
- <a-select :disabled="formDisabled" v-model="record.yangpinKeyId" allowClear :dropdownMatchSelectWidth="false">
|
|
|
- <a-select-option v-for="d in yangpins" :key="d.sampleName">
|
|
|
- {{ d.sampleName }}
|
|
|
+ <a-select :disabled="formDisabled" v-model="record.yangpinKeyId" allowClear :dropdownMatchSelectWidth="false" option-label-prop="label">
|
|
|
+ <!-- 针对样品名称有相同的情况,做以下更改 -->
|
|
|
+ <!-- <a-select-option v-for="d in yangpins" :key="d.sampleName"> -->
|
|
|
+ <a-select-option v-for="d in yangpins" :key="d.key" :label="d.sampleName">
|
|
|
+ <!-- <el-row>
|
|
|
+ <el-col :span="12">{{ d.sampleName }}</el-col>
|
|
|
+ <el-col :span="12">{{ d.sampleModelSpecification }}</el-col>
|
|
|
+ </el-row> -->
|
|
|
+ {{ d.sampleName +'——'+ d.sampleModelSpecification}}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-model-item>
|
|
@@ -196,7 +202,7 @@ export default {
|
|
|
this.newMember()
|
|
|
}
|
|
|
|
|
|
- console.log(sessionStorage.getItem('yangpin'))
|
|
|
+ console.log(2323,sessionStorage.getItem('yangpin'))
|
|
|
const yangpins = JSON.parse(sessionStorage.getItem('yangpin'))
|
|
|
|
|
|
if (yangpins != null) {
|