diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysDishesMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysDishesMapper.xml
index fbe886550..f9b6664c0 100644
--- a/stdiet-custom/src/main/resources/mapper/custom/SysDishesMapper.xml
+++ b/stdiet-custom/src/main/resources/mapper/custom/SysDishesMapper.xml
@@ -39,7 +39,7 @@
and name like concat('%', #{name}, '%')
- and type = #{type}
+ and FIND_IN_SET(#{type}, type)
and review_status = #{reviewStatus}
diff --git a/stdiet-ui/src/views/custom/dishes/index.vue b/stdiet-ui/src/views/custom/dishes/index.vue
index d7f5c88cf..e3f3259ef 100644
--- a/stdiet-ui/src/views/custom/dishes/index.vue
+++ b/stdiet-ui/src/views/custom/dishes/index.vue
@@ -11,7 +11,7 @@
/>
-
+
-
+
+
+
+
+
-
+
this.selectDictLabel(this.typeOptions, type));
},
cusUnitFormat(row, column) {
return this.selectDictLabel(this.cusUnitOptions, row.type);
@@ -421,7 +425,7 @@
this.form = {
id: null,
name: null,
- type: null,
+ type: [],
methods: null,
createBy: null,
createTime: null,
@@ -516,6 +520,7 @@
this.$refs["form"].validate(valid => {
if (valid) {
this.form.igdList = this.selTableData;
+ this.form.type = this.form.type.join(',');
if (this.form.id != null) {
updateDishes(this.form).then(response => {
if (response.code === 200) {
@@ -624,7 +629,7 @@
const {columns, data} = param;
return columns.reduce((arr, cur, idx) => {
if (idx > 1) {
- if(idx === 6) {
+ if (idx === 6) {
// 备注
return arr;
}