update 0727 docs
This commit is contained in:
@@ -34,11 +34,16 @@
|
||||
<el-col>
|
||||
<el-form-item label="工艺" prop="techId" :rules="rules.tech">
|
||||
<el-select v-model="dataForm.techId" filterable clearable>
|
||||
<el-option
|
||||
v-for="(tech, index) in techList"
|
||||
:key="index"
|
||||
:label="tech.label"
|
||||
:value="tech.value"></el-option>
|
||||
<el-option v-for="(tech, index) in techList" :key="tech.label" :label="tech.label" :value="tech.value">
|
||||
<div style="display: flex; align-items: center">
|
||||
<span style="display: inline-block; width: 150px; overflow: hidden; text-overflow: ellipsis">
|
||||
{{ tech.label }}
|
||||
</span>
|
||||
<span style="display: inline-block; margin-left: 12px; font-size: 0.9em">
|
||||
{{ tech.remark || "无" }}
|
||||
</span>
|
||||
</div>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -71,7 +76,7 @@ export default {
|
||||
rules: {
|
||||
code: [],
|
||||
name: [],
|
||||
tech: []
|
||||
tech: [],
|
||||
// name: [{ required: true, message: "必填项不能为空", trigger: "blur" }],
|
||||
},
|
||||
techList: [],
|
||||
@@ -108,6 +113,7 @@ export default {
|
||||
return {
|
||||
label: item.code,
|
||||
value: item.id,
|
||||
remark: item.remark,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user