Переглянути джерело

feat:对接通话时段分析明细;

zhangchong 1 рік тому
батько
коміт
f2af3f5e5e

+ 13 - 10
src/views/statistics/call/detailTalkTime.vue

@@ -89,6 +89,7 @@ const state = reactive({
 		crTime: defaultDate,
 		PageIndex: 1,
 		PageSize: 10,
+		startHourTo: null,
 	},
 	tableData: [], //表单
 	loading: false, // 加载
@@ -107,16 +108,17 @@ const queryList = () => {
 	if (historyParams.type) {
 		state.queryParams.type = historyParams.type;
 	}
-  let beginDate = null;
-  let endDate = null;
-  if (historyParams.beginDate) {
-    state.queryParams.crTime = [historyParams.beginDate, historyParams.endDate];
-  }
-  if (state.queryParams?.crTime) {
-    beginDate = state.queryParams?.crTime[0];
-    endDate = state.queryParams?.crTime[1];
-  }
-  state.loading = true;
+	let beginDate = null;
+	let endDate = null;
+	if (historyParams.beginDate) {
+		state.queryParams.crTime = [historyParams.beginDate, historyParams.endDate];
+	}
+	if (state.queryParams?.crTime) {
+		beginDate = state.queryParams?.crTime[0];
+		endDate = state.queryParams?.crTime[1];
+	}
+	if (historyParams.startHourTo) state.queryParams.startHourTo = historyParams.startHourTo;
+	state.loading = true;
 	const request = {
 		beginDate,
 		endDate,
@@ -124,6 +126,7 @@ const queryList = () => {
 		PageSize: state.queryParams.PageSize,
 		type: state.queryParams.type,
 		source: state.queryParams.source,
+		startHourTo: state.queryParams.startHourTo,
 	};
 	callPeriodDetail(request)
 		.then((res: any) => {

+ 1 - 1
src/views/statistics/call/talkTime.vue

@@ -207,7 +207,6 @@ const onDetail = () => {
 };
 // 查看详情
 const linkDetail = (scope: any) => {
-	console.log(scope);
 	let beginDate = null;
 	let endDate = null;
 	if (state.queryParams?.crTime) {
@@ -223,6 +222,7 @@ const linkDetail = (scope: any) => {
 			type: scope.column.property,
 			beginDate,
 			endDate,
+      startHourTo:scope.row.startHourTo
 		},
 	});
 };