修复忌口,推荐错乱

This commit is contained in:
huangdeliang 2021-01-18 10:29:49 +08:00
parent 4a9374641e
commit 2be6c3c97f

View File

@ -306,7 +306,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="12">
<el-form-item label="忌口人群" label-width="90px"> <el-form-item label="忌口人群" label-width="90px">
<el-select <el-select
v-model="form.notRecIds" v-model="form.notRecIds"
@ -528,8 +528,8 @@
const id = row.id || this.ids; const id = row.id || this.ids;
getIngredient(id).then((response) => { getIngredient(id).then((response) => {
this.form = response.data; this.form = response.data;
this.form.notRecIds = this.form.rec this.form.notRecIds = this.form.notRec
? this.form.rec ? this.form.notRec
.split(",") .split(",")
.map( .map(
(label) => (label) =>
@ -538,8 +538,8 @@
).dictValue ).dictValue
) )
: []; : [];
this.form.recIds = this.form.notRec this.form.recIds = this.form.rec
? this.form.notRec ? this.form.rec
.split(",") .split(",")
.map( .map(
(label) => (label) =>