From efc7b6bc4c6b77bfd4a158fea1e287e9d1ca78d5 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Fri, 12 Nov 2021 22:19:51 +0800
Subject: [PATCH] 改智能分析数据概览部分
---
src/views/statisticalQueryManagement/businessStatisticsDetail.vue | 150 +++++++++++++++++++++++++++++--------------------
1 files changed, 89 insertions(+), 61 deletions(-)
diff --git a/src/views/statisticalQueryManagement/businessStatisticsDetail.vue b/src/views/statisticalQueryManagement/businessStatisticsDetail.vue
index 69e6013..7fd9579 100644
--- a/src/views/statisticalQueryManagement/businessStatisticsDetail.vue
+++ b/src/views/statisticalQueryManagement/businessStatisticsDetail.vue
@@ -14,6 +14,7 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
+ @on-load="onLoad"
>
</avue-crud>
</basic-container>
@@ -22,11 +23,14 @@
import { mapGetters } from "vuex";
import {
selectDis,
- selectFw
+ selectFw,
+ fwList,
+ dispatcherUnit
} from "../../api/statisticalQueryManagement/statisticalQueryManagement";
-import { lazyTreeJu } from "../../api/index/index";
+import { lazyTreeJu, lazyTrees } from "../../api/index/index";
export default {
name: "业务情况统计明细",
+ props: ["fwdeptId"],
data() {
return {
page: {
@@ -93,57 +97,47 @@
viewBtn: true,
dialogClickModal: false,
column: [
- {
- label: "公司名称",
- prop: "gsname",
- // search: true,
- // searchSpan: 4,
- display: false
- },
+ // {
+ // label: "公司名称",
+ // prop: "gsname",
+ // // search: true,
+ // // searchSpan: 4,
+ // display: false
+ // },
- {
- label: "所属辖区",
- prop: "jurname",
- searchSpan: 4,
- props: {
- label: "title",
- value: "id"
- },
- // cascaderItem: ["city", "area"],
- // dicUrl:subofficeOptions,
- dicData: [],
- search: true,
- type: "tree",
- rules: [
- {
- required: true,
- message: "请选择所属辖区",
- trigger: "blur"
- }
- ]
- },
- {
- label: "服务开始时间",
- prop: "dispatcherTime",
- display: false
- },
- {
- label: "服务到期时间",
- prop: "end_time",
- display: false
- },
+ // {
+ // label: "所属辖区",
+ // prop: "jurname",
+ // searchSpan: 4,
+ // props: {
+ // label: "title",
+ // value: "id"
+ // },
+ // // cascaderItem: ["city", "area"],
+ // // dicUrl:subofficeOptions,
+ // dicData: [],
+ // search: true,
+ // type: "tree",
+ // rules: [
+ // {
+ // required: true,
+ // message: "请选择所属辖区",
+ // trigger: "blur"
+ // }
+ // ]
+ // },
{
label: "服务单位名称",
- prop: "fwname",
+ prop: "name",
props: {
label: "name",
- value: "id"
+ value: "name"
},
dicData: [],
searchLabelWidth: 110,
search: true,
type: "tree",
- searchSpan: 4,
+ searchSpan: 8,
rules: [
{
required: true,
@@ -154,8 +148,39 @@
// display: false
},
{
- label: "保安派遣人数",
+ label: "保安公司名称",
+ width: 300,
+ prop: "deptName",
+ display: false
+ },
+ {
+ label: "服务开始时间",
+ prop: "startTime",
+ display: false
+ },
+ {
+ label: "服务到期时间",
+ prop: "endTime",
+ display: false
+ },
+ {
+ label: "保安员人数",
prop: "num",
+ display: false
+ },
+ // {
+ // label: "保安派遣人数",
+ // prop: "num",
+ // display: false
+ // },
+ {
+ label: "联系人",
+ prop: "linkman",
+ display: false
+ },
+ {
+ label: "联系电话",
+ prop: "phone",
display: false
}
// {
@@ -213,7 +238,8 @@
],
servicesList: [],
companyName: "",
- loading: true
+ loading: true,
+ deptid: ""
};
},
computed: {
@@ -253,12 +279,14 @@
onLoad(page, params = {}) {
this.loading = true;
let param = {};
- param["jurisdiction"] = params["jurname"] || "";
- param["fid"] = params["fwname"] || "";
- param["deptid"] = params["deptid"] || "1425365559645601794";
+ // param["jurisdiction"] = params["jurname"] || "";
+ // param["id"] = params["name"] || "";
+ param["deptId"] = this.fwdeptId;
param["current"] = page.currentPage;
param["size"] = page.pageSize;
- selectDis(param).then(res => {
+ param["name"] = params["name"] || "";
+
+ dispatcherUnit(param).then(res => {
const data = res.data.data;
this.page.total = data.total;
this.tableData = data.records;
@@ -278,7 +306,7 @@
});
},
getSubOfficeData() {
- lazyTreeJu().then(res => {
+ lazyTrees().then(res => {
if (res.data.code === 200) {
this.tableOption.column.forEach(item => {
if (item.label == "所属辖区") {
@@ -291,16 +319,16 @@
});
},
getLocationParams() {
- // let url = window.location.href;
- // let urlArr = url.split("?")[1].split("&");
- // var object = new Object();
- // for (var i = 0; i < urlArr.length; i++) {
- // let mm = urlArr[i].split("=");
- // object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
- // }
- // let jurisdiction = object["jurisdiction1"] || "";
- // let enterpriseName = object["enterpriseName"] || "";
- // let obj = { jurisdiction: jurisdiction, enterpriseName: enterpriseName };
+ let url = window.location.href;
+ let urlArr = url.split("?")[1].split("&");
+ var object = new Object();
+ for (var i = 0; i < urlArr.length; i++) {
+ let mm = urlArr[i].split("=");
+ object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
+ }
+ this.deptid = object["departmentid"] || "";
+ // let jurisdiction = object["jurisdiction"] || "";
+ this.query = { deptid: this.deptid };
// this.onLoad(this.page, obj);
this.onLoad(this.page, this.query);
}
@@ -309,7 +337,7 @@
// this.getTableData();
this.getFuWuList();
this.getSubOfficeData();
- this.getLocationParams();
+ // this.getLocationParams();
}
};
</script>
--
Gitblit v1.9.3