菜品列表增加上架状态字段筛选
This commit is contained in:
1 parent
f009e33db2
commit
71abbe898f
1 file changed
+8
@@ -19,6 +19,11 @@
|
||||
<el-option label="晚餐" :value="3" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="上架状态" prop="status">
|
||||
<el-select v-model="state.queryForm.status" clearable placeholder="全部" style="width: 140px">
|
||||
<el-option v-for="item in spu_status" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button icon="search" type="primary" @click="getDataList" v-auth="'canteen_canteenSpu_view'"> 查询 </el-button>
|
||||
<el-button icon="Refresh" @click="resetQuery" v-auth="'canteen_canteenSpu_view'">重置</el-button>
|
||||
@@ -268,6 +273,9 @@ const exportExcel = () => {
|
||||
if (q.categoryId != null && q.categoryId !== "") {
|
||||
data.categoryId = String(q.categoryId)
|
||||
}
|
||||
if (q.status != null && q.status !== "") {
|
||||
data.status = q.status
|
||||
}
|
||||
if (selectObjs.value?.length) {
|
||||
data.ids = selectObjs.value.map((id: any) => String(id))
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user