Commit 983dc45b by hayden

系统管理-日志管理-扫呗支付日志:新增筛选条件门店、房间

parent 04ad5374
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px"> <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
<el-form-item label="所属门店" prop="storeId">
<el-select v-model="queryParams.storeId" placeholder="请选择所属门店" @change="onGetRoomListByStoreId" clearable>
<el-option
v-for="item in stores"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="所属房间" prop="roomId">
<el-select v-model="queryParams.roomId" placeholder="请选择所属房间" clearable>
<el-option
v-for="item in rooms"
:key="item.id"
:label="item.name"
:value="item.id">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="扫呗订单号" prop="outTradeNo"> <el-form-item label="扫呗订单号" prop="outTradeNo">
<el-input <el-input
v-model="queryParams.outTradeNo" v-model="queryParams.outTradeNo"
...@@ -177,12 +198,16 @@ ...@@ -177,12 +198,16 @@
<script> <script>
import { listLog, getLog, delLog, addLog, updateLog } from "@/api/system/saobeiApiLog"; import { listLog, getLog, delLog, addLog, updateLog } from "@/api/system/saobeiApiLog";
import {allList} from "@/api/system/store";
import {queryRoom} from "@/api/system/room";
export default { export default {
name: "SaobeiApiLog", name: "SaobeiApiLog",
dicts: ['saobei_service_type','saobei_status','saobei_pay_type'], dicts: ['saobei_service_type','saobei_status','saobei_pay_type'],
data() { data() {
return { return {
stores: [],
rooms: [],
// 遮罩层 // 遮罩层
loading: true, loading: true,
// 选中数组 // 选中数组
...@@ -218,7 +243,9 @@ export default { ...@@ -218,7 +243,9 @@ export default {
responseParams: null, responseParams: null,
result: null, result: null,
resultMsg: null, resultMsg: null,
flag: null flag: null,
roomId: null,
storeId: null
}, },
// 表单参数 // 表单参数
form: {}, form: {},
...@@ -229,8 +256,20 @@ export default { ...@@ -229,8 +256,20 @@ export default {
}, },
created() { created() {
this.getList(); this.getList();
this.onGetAllStoreList();
}, },
methods: { methods: {
onGetAllStoreList(){
allList().then(res => {
this.stores = res.data
})
},
onGetRoomListByStoreId(id) {
this.queryParams.roomId = null;
queryRoom().then(res => {
this.rooms = res.data.filter(item => item.storeId === id)
})
},
/** 查询扫呗接口调用日志列表 */ /** 查询扫呗接口调用日志列表 */
getList() { getList() {
this.loading = true; this.loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment