Commit c1d0677e authored by “yiyousong”'s avatar “yiyousong”

feat: 评价系统数据接口调试

parent 21364fc1
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="table-item"> <div class="table-item">
<div> <div>
<DoubleTable <DoubleTable
title="大厅取号量统计" title="大厅评价量统计"
border border
:column="hallColumn" :column="hallColumn"
:data="hallTableData" :data="hallTableData"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
:current="hallSearch.page" :current="hallSearch.page"
:loading="hallLoading" :loading="hallLoading"
type="hall" type="hall"
@export="exportHallQueue" @export="exportHallEva"
></DoubleTable> ></DoubleTable>
</div> </div>
<Pagination <Pagination
...@@ -19,13 +19,13 @@ ...@@ -19,13 +19,13 @@
:current.sync="hallSearch.page" :current.sync="hallSearch.page"
:size.sync="hallSearch.size" :size.sync="hallSearch.size"
layout="total,prev,pager,next,jumper" layout="total,prev,pager,next,jumper"
@get="getHallQueue" @get="getHallEva"
></Pagination> ></Pagination>
</div> </div>
<div class="table-item"> <div class="table-item">
<div> <div>
<DoubleTable <DoubleTable
title="业务取号量统计" title="业务评价量统计"
border border
:column="businessColumn" :column="businessColumn"
:data="businessTableData" :data="businessTableData"
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
:current="businessSearch.page" :current="businessSearch.page"
:loading="businessLoading" :loading="businessLoading"
type="business" type="business"
@export="exportbusinessQueue" @export="exportbusinessEva"
@search="handleSearch" @search="handleSearch"
></DoubleTable> ></DoubleTable>
</div> </div>
...@@ -42,13 +42,13 @@ ...@@ -42,13 +42,13 @@
:current.sync="businessSearch.page" :current.sync="businessSearch.page"
:size.sync="businessSearch.size" :size.sync="businessSearch.size"
layout="total,prev,pager,next,jumper" layout="total,prev,pager,next,jumper"
@get="getBusinessQueue" @get="getBusinessEva"
></Pagination> ></Pagination>
</div> </div>
<div class="table-item"> <div class="table-item">
<div> <div>
<DoubleTable <DoubleTable
title="部门取号量统计" title="部门评价量统计"
border border
:column="deptColumn" :column="deptColumn"
:data="deptTableData" :data="deptTableData"
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
:current="deptSearch.page" :current="deptSearch.page"
:loading="deptLoading" :loading="deptLoading"
type="dept" type="dept"
@export="exportDeptQueue" @export="exportDeptEva"
@search="handleSearch" @search="handleSearch"
></DoubleTable> ></DoubleTable>
</div> </div>
...@@ -65,13 +65,13 @@ ...@@ -65,13 +65,13 @@
:current.sync="deptSearch.page" :current.sync="deptSearch.page"
:size.sync="deptSearch.size" :size.sync="deptSearch.size"
layout="total,prev,pager,next,jumper" layout="total,prev,pager,next,jumper"
@get="getDeptQueue" @get="getDeptEva"
></Pagination> ></Pagination>
</div> </div>
<div class="table-item"> <div class="table-item">
<div> <div>
<DoubleTable <DoubleTable
title="窗口取号量统计" title="窗口评价量统计"
border border
:column="windowColumn" :column="windowColumn"
:data="windowTableData" :data="windowTableData"
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
:current="windowSearch.page" :current="windowSearch.page"
:loading="windowLoading" :loading="windowLoading"
type="window" type="window"
@export="exportWindowQueue" @export="exportWindowEva"
@search="handleSearch" @search="handleSearch"
></DoubleTable> ></DoubleTable>
</div> </div>
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
:current.sync="windowSearch.page" :current.sync="windowSearch.page"
:size.sync="windowSearch.size" :size.sync="windowSearch.size"
layout="total,prev,pager,next,jumper" layout="total,prev,pager,next,jumper"
@get="getWindowQueue" @get="getWindowEva"
></Pagination> ></Pagination>
</div> </div>
</div> </div>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<script> <script>
import DoubleTable from "./components/DoubleTable.vue"; import DoubleTable from "./components/DoubleTable.vue";
import { getQueueSystemList } from "@/api/engine"; import { getEvaSystemList } from "@/api/engine";
import { export2Excel } from "@/utils/exportExcel"; import { export2Excel } from "@/utils/exportExcel";
import { dataSection } from "@/utils"; import { dataSection } from "@/utils";
import storage from "@/utils/storage"; import storage from "@/utils/storage";
...@@ -150,8 +150,8 @@ export default { ...@@ -150,8 +150,8 @@ export default {
showOverflowTooltip: true, showOverflowTooltip: true,
}, },
{ {
label: "排队数量", label: "评价数量",
prop: "phCount", prop: "pjCount",
align: "center", align: "center",
formatter: (row, column, cellValue) => { formatter: (row, column, cellValue) => {
if (cellValue) { if (cellValue) {
...@@ -173,8 +173,8 @@ export default { ...@@ -173,8 +173,8 @@ export default {
}, },
}, },
{ {
label: "排队数量", label: "评价数量",
prop: "phCount", prop: "pjCount",
align: "center", align: "center",
formatter: (row, column, cellValue) => { formatter: (row, column, cellValue) => {
if (cellValue) { if (cellValue) {
...@@ -191,8 +191,8 @@ export default { ...@@ -191,8 +191,8 @@ export default {
align: "center", align: "center",
}, },
{ {
label: "排队数量", label: "评价数量",
prop: "phCount", prop: "pjCount",
align: "center", align: "center",
formatter: (row, column, cellValue) => { formatter: (row, column, cellValue) => {
if (cellValue) { if (cellValue) {
...@@ -209,8 +209,8 @@ export default { ...@@ -209,8 +209,8 @@ export default {
align: "center", align: "center",
}, },
{ {
label: "排队数量", label: "评价数量",
prop: "phCount", prop: "pjCount",
align: "center", align: "center",
formatter: (row, column, cellValue) => { formatter: (row, column, cellValue) => {
if (cellValue) { if (cellValue) {
...@@ -226,12 +226,7 @@ export default { ...@@ -226,12 +226,7 @@ export default {
windowTableData: [], windowTableData: [],
}; };
}, },
created() { created() {},
// this.getHallQueue();
// this.getBusinessQueue();
// this.getDeptQueue();
// this.getWindowQueue();
},
methods: { methods: {
// 获取日期 // 获取日期
getDate(dateArr) { getDate(dateArr) {
...@@ -241,13 +236,13 @@ export default { ...@@ -241,13 +236,13 @@ export default {
this.businessSearch.page = 1; this.businessSearch.page = 1;
this.deptSearch.page = 1; this.deptSearch.page = 1;
this.windowSearch.page = 1; this.windowSearch.page = 1;
this.getHallQueue(); this.getHallEva();
this.getBusinessQueue(); this.getBusinessEva();
this.getDeptQueue(); this.getDeptEva();
this.getWindowQueue(); this.getWindowEva();
}, },
async hallQueueFn(form) { async hallEvaFn(form) {
const res = await getQueueSystemList({ const res = await getEvaSystemList({
siteId: this.siteId, siteId: this.siteId,
...this.hallSearch, ...this.hallSearch,
...this.dateForm, ...this.dateForm,
...@@ -267,17 +262,17 @@ export default { ...@@ -267,17 +262,17 @@ export default {
}; };
} }
}, },
// 获取大厅取号数据 // 获取大厅评价数据
async getHallQueue() { async getHallEva() {
this.hallLoading = true; this.hallLoading = true;
let { data, total } = await this.hallQueueFn(); let { data, total } = await this.hallEvaFn();
this.hallTableData = data; this.hallTableData = data;
this.hallSearch.total = total; this.hallSearch.total = total;
this.hallLoading = false; this.hallLoading = false;
}, },
async businessQueue(form = {}) { async businessEva(form = {}) {
const res = await getQueueSystemList({ const res = await getEvaSystemList({
siteId: this.siteId, siteId: this.siteId,
...this.businessSearch, ...this.businessSearch,
...this.dateForm, ...this.dateForm,
...@@ -297,17 +292,17 @@ export default { ...@@ -297,17 +292,17 @@ export default {
}; };
} }
}, },
// 获取业务取号数据 // 获取业务评价数据
async getBusinessQueue() { async getBusinessEva() {
this.businessLoading = true; this.businessLoading = true;
let { data, total } = await this.businessQueue(); let { data, total } = await this.businessEva();
this.businessTableData = data; this.businessTableData = data;
this.businessSearch.total = total; this.businessSearch.total = total;
this.businessLoading = false; this.businessLoading = false;
}, },
async deptQueue(form = {}) { async deptEva(form = {}) {
const res = await getQueueSystemList({ const res = await getEvaSystemList({
siteId: this.siteId, siteId: this.siteId,
...this.deptSearch, ...this.deptSearch,
...this.dateForm, ...this.dateForm,
...@@ -327,17 +322,17 @@ export default { ...@@ -327,17 +322,17 @@ export default {
} }
}, },
// 获取部门取号数据 // 获取部门评价数据
async getDeptQueue() { async getDeptEva() {
this.deptLoading = true; this.deptLoading = true;
let { data, total } = await this.deptQueue(); let { data, total } = await this.deptEva();
this.deptTableData = data; this.deptTableData = data;
this.deptSearch.total = total; this.deptSearch.total = total;
this.deptLoading = false; this.deptLoading = false;
}, },
async windowQueue(form) { async windowEva(form) {
const res = await getQueueSystemList({ const res = await getEvaSystemList({
siteId: this.siteId, siteId: this.siteId,
...this.windowSearch, ...this.windowSearch,
...this.dateForm, ...this.dateForm,
...@@ -356,20 +351,20 @@ export default { ...@@ -356,20 +351,20 @@ export default {
}; };
} }
}, },
// 获取窗口取号数据 // 获取窗口评价数据
async getWindowQueue() { async getWindowEva() {
this.windowLoading = true; this.windowLoading = true;
let { data, total } = await this.windowQueue(); let { data, total } = await this.windowEva();
this.windowTableData = data; this.windowTableData = data;
this.windowSearch.total = total; this.windowSearch.total = total;
this.windowLoading = false; this.windowLoading = false;
}, },
// 导出大厅取号 // 导出大厅评价
exportHallQueue() { exportHallEva() {
let tHeader = this.hallColumn.map((v) => v.label); let tHeader = this.hallColumn.map((v) => v.label);
let filterVal = this.hallColumn.map((v) => v.prop); let filterVal = this.hallColumn.map((v) => v.prop);
dataSection(this.hallQueueFn, {}, (data) => { dataSection(this.hallEvaFn, {}, (data) => {
if (!data.length) { if (!data.length) {
this.$message.warning("暂无数据"); this.$message.warning("暂无数据");
return; return;
...@@ -378,12 +373,12 @@ export default { ...@@ -378,12 +373,12 @@ export default {
tHeader, tHeader,
filterVal, filterVal,
data, data,
"大厅取号量统计报表" + this.$moment().format("YYYYMMDDHHmmss") "大厅评价量统计报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
}); });
}, },
// 导出业务取号 // 导出业务评价
exportbusinessQueue(type, form) { exportbusinessEva(type, form) {
let tHeader = this.businessColumn.map((v) => v.label); let tHeader = this.businessColumn.map((v) => v.label);
let filterVal = this.businessColumn.map((v) => v.prop); let filterVal = this.businessColumn.map((v) => v.prop);
let { businessName } = form; let { businessName } = form;
...@@ -391,7 +386,7 @@ export default { ...@@ -391,7 +386,7 @@ export default {
if (businessName) { if (businessName) {
searchForm.businessList = [businessName]; searchForm.businessList = [businessName];
} }
dataSection(this.businessQueue, searchForm, (data) => { dataSection(this.businessEva, searchForm, (data) => {
if (!data.length) { if (!data.length) {
this.$message.warning("暂无数据"); this.$message.warning("暂无数据");
return; return;
...@@ -400,12 +395,12 @@ export default { ...@@ -400,12 +395,12 @@ export default {
tHeader, tHeader,
filterVal, filterVal,
data, data,
"业务取号量统计报表" + this.$moment().format("YYYYMMDDHHmmss") "业务评价量统计报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
}); });
}, },
// 导出部门取号 // 导出部门评价
exportDeptQueue(type, form) { exportDeptEva(type, form) {
let tHeader = this.deptColumn.map((v) => v.label); let tHeader = this.deptColumn.map((v) => v.label);
let filterVal = this.deptColumn.map((v) => v.prop); let filterVal = this.deptColumn.map((v) => v.prop);
let { deptName } = form; let { deptName } = form;
...@@ -413,7 +408,7 @@ export default { ...@@ -413,7 +408,7 @@ export default {
if (deptName) { if (deptName) {
searchForm.sectionNameList = [deptName]; searchForm.sectionNameList = [deptName];
} }
dataSection(this.deptQueue, searchForm, (data) => { dataSection(this.deptEva, searchForm, (data) => {
if (!data.length) { if (!data.length) {
this.$message.warning("暂无数据"); this.$message.warning("暂无数据");
return; return;
...@@ -422,12 +417,12 @@ export default { ...@@ -422,12 +417,12 @@ export default {
tHeader, tHeader,
filterVal, filterVal,
data, data,
"部门取号量统计报表" + this.$moment().format("YYYYMMDDHHmmss") "部门评价量统计报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
}); });
}, },
// 导出窗口取号 // 导出窗口评价
exportWindowQueue(type, form) { exportWindowEva(type, form) {
let tHeader = this.windowColumn.map((v) => v.label); let tHeader = this.windowColumn.map((v) => v.label);
let filterVal = this.windowColumn.map((v) => v.prop); let filterVal = this.windowColumn.map((v) => v.prop);
let { windowNum } = form; let { windowNum } = form;
...@@ -435,7 +430,7 @@ export default { ...@@ -435,7 +430,7 @@ export default {
if (windowNum) { if (windowNum) {
searchForm.windowFromnumList = [windowNum]; searchForm.windowFromnumList = [windowNum];
} }
dataSection(this.windowQueue, searchForm, (data) => { dataSection(this.windowEva, searchForm, (data) => {
if (!data.length) { if (!data.length) {
this.$message.warning("暂无数据"); this.$message.warning("暂无数据");
return; return;
...@@ -444,7 +439,7 @@ export default { ...@@ -444,7 +439,7 @@ export default {
tHeader, tHeader,
filterVal, filterVal,
data, data,
"窗口取号量统计报表" + this.$moment().format("YYYYMMDDHHmmss") "窗口评价量统计报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
}); });
}, },
...@@ -459,7 +454,7 @@ export default { ...@@ -459,7 +454,7 @@ export default {
} else { } else {
this.businessSearch.businessList = []; this.businessSearch.businessList = [];
} }
this.getBusinessQueue(); this.getBusinessEva();
} else if (type == "dept") { } else if (type == "dept") {
let { deptName } = form; let { deptName } = form;
if (deptName) { if (deptName) {
...@@ -468,7 +463,7 @@ export default { ...@@ -468,7 +463,7 @@ export default {
} else { } else {
this.deptSearch.sectionNameList = []; this.deptSearch.sectionNameList = [];
} }
this.getDeptQueue(); this.getDeptEva();
} else if (type == "window") { } else if (type == "window") {
let { windowNum } = form; let { windowNum } = form;
if (windowNum) { if (windowNum) {
...@@ -477,7 +472,7 @@ export default { ...@@ -477,7 +472,7 @@ export default {
} else { } else {
this.windowSearch.windowFromnumList = []; this.windowSearch.windowFromnumList = [];
} }
this.getWindowQueue(); this.getWindowEva();
} }
}, },
}, },
......
...@@ -151,7 +151,7 @@ export default { ...@@ -151,7 +151,7 @@ export default {
let index = { let index = {
label: "排序", label: "排序",
type: "index", type: "index",
lign: "center", align: "center",
index: (index) => { index: (index) => {
return (this.current - 1) * this.size + index + 1; return (this.current - 1) * this.size + index + 1;
}, },
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
let index = { let index = {
label: "排序", label: "排序",
type: "index", type: "index",
lign: "center", align: "center",
index: (index) => { index: (index) => {
return (this.current - 1) * this.size + index + 6; return (this.current - 1) * this.size + index + 6;
}, },
......
...@@ -191,24 +191,30 @@ export default { ...@@ -191,24 +191,30 @@ export default {
let { data } = res.data; let { data } = res.data;
let { thirtyPhStatList, thirtyPjStatList, thirtyStatList } = data; let { thirtyPhStatList, thirtyPjStatList, thirtyStatList } = data;
this.homeData = data; this.homeData = data;
this.totalDataset.source = thirtyStatList.map((item) => { this.totalDataset.source = thirtyStatList
return { .map((item) => {
name: `${item.month}-${item.day}`, return {
value: item.count, name: `${item.month}-${item.day}`,
}; value: item.count,
}); };
this.phDataset.source = thirtyPhStatList.map((item) => { })
return { .reverse();
name: `${item.month}-${item.day}`, this.phDataset.source = thirtyPhStatList
value: item.phCount, .map((item) => {
}; return {
}); name: `${item.month}-${item.day}`,
this.pjDataset.source = thirtyPjStatList.map((item) => { value: item.phCount,
return { };
name: `${item.month}-${item.day}`, })
value: item.pjCount, .reverse();
}; this.pjDataset.source = thirtyPjStatList
}); .map((item) => {
return {
name: `${item.month}-${item.day}`,
value: item.pjCount,
};
})
.reverse();
} }
}, },
}, },
......
...@@ -29,6 +29,9 @@ export default { ...@@ -29,6 +29,9 @@ export default {
handler(newVal) { handler(newVal) {
this.$nextTick(() => { this.$nextTick(() => {
this.initChart(newVal); this.initChart(newVal);
this.myChart.on("click", () => {
console.log(111);
});
}); });
}, },
deep: true, deep: 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