diff --git a/src/api/modules/http.js b/src/api/modules/http.js
index dc317f9..d6a40d5 100644
--- a/src/api/modules/http.js
+++ b/src/api/modules/http.js
@@ -825,3 +825,12 @@ export function geTmenu(query) {
})
}
+
+//运营工作统计
+export function operationStatistics(query) {
+ return request({
+ url: 'autoSR/cusStageStatistics/operationStatistics',
+ method: 'get',
+ params:query
+ })
+}
diff --git a/src/views/houseData/count.vue b/src/views/houseData/count.vue
index 12fe165..c80c853 100644
--- a/src/views/houseData/count.vue
+++ b/src/views/houseData/count.vue
@@ -7,9 +7,9 @@
日期:
运营:
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -122,7 +100,7 @@
@@ -150,7 +128,7 @@
style="width: 180px"
maxlength="30"
clearable
- v-model="name"
+ v-model="erfromdata.name"
placeholder="请输入内容"
>
@@ -160,7 +138,7 @@
style="width:180px"
maxlength="30"
clearable
- v-model="name"
+ v-model="erfromdata.name"
placeholder="请输入内容"
>
@@ -194,11 +172,11 @@
@@ -214,17 +192,31 @@ import { getAreaList } from "@/api/modules/api";
export default {
data() {
return {
- starTime:"",
+
+ fromdata:{
+ datatime:'',
+ operationStaffId:'',
+ currentPage:1,
+ total:0,
+ size:10,
+ startDate:'',
+ endDate:''
+ },
+ erfromdata:{
+ name:'',
+ starTime:"",
+ statime:'',
+ endtime:'',
+ total:0,
+ size:10,
+ currentPage:1
+ },
tableData:[
{propertyName:'还是卡顿和'}
],
operaList:[],
- operationStaffId:'',
- total:0,
- size:0,
- currentPage:1,
texteditorishow:false,
- name:''
+ orgType: localStorage.getItem("orgType"),
};
},
@@ -235,32 +227,72 @@ export default {
this.cus_build_index_add = this.permissions["cus_build_index_add"];
},
mounted() {
-
+ this.getOperaList()
+ this.operationStatistics()
},
methods: {
+ getOperaList() {
+ if (this.orgType == 1) {
+ this.$api.http
+ .getAllOperationsStaffByAgent({
+ agentId: localStorage.getItem("agentId"),
+ })
+ .then((res) => {
+ this.operaList = res.data;
+ });
+ } else {
+ this.$api.http.getAllOperationsStaff().then((res) => {
+ this.operaList = res.data;
+ });
+ }
+ },
+ operationStatistics(){
+ let form={
+ createBy:this.fromdata.operationStaffId,
+ current:this.fromdata.currentPage,
+ size:this.fromdata.size,
+ startDate:this.fromdata.startDate,
+ endDate:this.fromdata.endDate
+ }
+ this.$api.http.operationStatistics(form).then((res) => {
+ this.tableData=res.data.records;
+ this.fromdata.total=res.data.total;
+ });
+ },
//查看工作明细
toinfo(){
this.texteditorishow=true
},
//清空
empty(){
-
+ this.fromdata.datatime='';
+ this.fromdata.operationStaffId='';
+ this.fromdata.size=10;
+ this.fromdata.currentPage=1;
},
//筛选
screen(){
-
+ this.operationStatistics()
},
// 时间选择
timeChange1(){
-
+ this.statime=this.starTime[0]
+ this.endtime=this.starTime[1]
+ },
+ timeChange(){
+ this.fromdata.startDate=this.fromdata.datatime[0];
+ this.fromdata.endDate=this.fromdata.datatime[1];
+ this.operationStatistics()
},
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
- this.size = val;
+ this.fromdata.size = val;
+ this.operationStatistics()
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
- this.currentPage = val;
+ this.fromdata.currentPage = val;
+ this.operationStatistics()
},
},