Commit 0ec2dd4a authored by 王晓旭's avatar 王晓旭

排队叫号添加大厅搜索和部门搜索

parent 512d36ae
import http from "../request/http"; import http from "../request/http";
let baseURL = process.env.VUE_APP_API_BASE_URL; let baseURL = process.env.VUE_APP_API_BASE_URL;
let BASEURL = process.env.VUE_APP_API_PHP_URL; let BASEURL = process.env.VUE_APP_API_PHP_URL;
let BAS_EURL = process.env.VUE_APP_API_IMG_URL
// 1.15.1. 获取站点下的数据管理列表 // 1.15.1. 获取站点下的数据管理列表
export function censusListInterface(params) { export function censusListInterface(params) {
return http.post(`${baseURL}/zwfw/site/model/census/list`, params); return http.post(`${baseURL}/zwfw/site/model/census/list`, params);
} }
/* 排号机部分 */ /* 排号机部分 */
// 大厅列表数据
export function getDatingList(params) {
return http.post(`${BAS_EURL}base/site/hall/list`, params);
}
// 部门列表数据
export function getBumenList(params) {
return http.post(`${BAS_EURL}base/dept/list`, params);
}
//排号机列表数据 //排号机列表数据
export function getTaskList(params) { export function getTaskList(params) {
return http.get(`${BASEURL}/admin/take/takelist`, params); return http.get(`${BASEURL}/admin/take/takelist`, params);
......
...@@ -10,6 +10,18 @@ ...@@ -10,6 +10,18 @@
</div> </div>
<span> <span>
<a-space> <a-space>
<a-select v-model="searchForm.hallid">
<a-select-option value=""> 全部大厅 </a-select-option>
<a-select-option v-for="item in datingList" :key="item.id" :value="item.id">
{{ item.hallName }}
</a-select-option>
</a-select>
<a-select v-model="searchForm.sectionid">
<a-select-option value=""> 全部部门 </a-select-option>
<a-select-option v-for="item in bumenList" :key="item.id" :value="item.id">
{{ item.name }}
</a-select-option>
</a-select>
<a-select v-model="searchForm.id"> <a-select v-model="searchForm.id">
<a-select-option value=""> 全部设备 </a-select-option> <a-select-option value=""> 全部设备 </a-select-option>
<a-select-option v-for="item in deviceData" :key="item.id" :value="item.id"> <a-select-option v-for="item in deviceData" :key="item.id" :value="item.id">
...@@ -116,6 +128,8 @@ import BusinessInfo from "./components/businessInfo.vue"; ...@@ -116,6 +128,8 @@ import BusinessInfo from "./components/businessInfo.vue";
import WorkpeopleInfo from "./components/workpeopleInfo.vue"; import WorkpeopleInfo from "./components/workpeopleInfo.vue";
import HandlingDetails from "./components/HandlingDetails.vue"; import HandlingDetails from "./components/HandlingDetails.vue";
import { import {
getDatingList,
getBumenList,
getTaskList, getTaskList,
getQueueData, getQueueData,
getQueueInfo, getQueueInfo,
...@@ -264,6 +278,8 @@ export default { ...@@ -264,6 +278,8 @@ export default {
style: "", // 状态 style: "", // 状态
time: [moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD")], // 时间区间 time: [moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD")], // 时间区间
flownum: "", // 排号编码 flownum: "", // 排号编码
hallid:"",
sectionid:""
}, },
//状态 //状态
style: [ style: [
...@@ -289,6 +305,10 @@ export default { ...@@ -289,6 +305,10 @@ export default {
}, },
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
// 大厅列表
datingList:[],
// 部门列表
bumenList:[],
}; };
}, },
components: { components: {
...@@ -298,11 +318,25 @@ export default { ...@@ -298,11 +318,25 @@ export default {
HandlingDetails, HandlingDetails,
}, },
created() { created() {
this.getDatingListArr();
this.getBumenListArr();
this.getTaskListArr(); this.getTaskListArr();
this.getQueueDataArr(); this.getQueueDataArr();
}, },
mounted() { }, mounted() { },
methods: { methods: {
// 获取大厅列表
async getDatingListArr() {
await getDatingList({ page: 1, size: -1 }).then((res) => {
this.datingList = res.data.data;
});
},
// // 获取部门列表
async getBumenListArr() {
await getBumenList({ page: 1, size: -1 }).then((res) => {
this.bumenList = res.data.data;
});
},
//重置按钮 //重置按钮
resetBtn() { resetBtn() {
this.tablePagination.current = 1; this.tablePagination.current = 1;
......
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