Sfoglia il codice sorgente

reactor:515 知识库管理增加查询条件

zhangchong 3 giorni fa
parent
commit
454182e659
2 ha cambiato i file con 11 aggiunte e 11 eliminazioni
  1. 1 1
      .env.development
  2. 10 10
      src/views/statistics/center/aggregation.vue

+ 1 - 1
.env.development

@@ -3,7 +3,7 @@ VITE_MODE_NAME=development
 # 防止部署多套系统到同一域名不同目录时,变量共用的问题 设置不同的前缀
 VITE_STORAGE_NAME=dev
 # 业务系统基础请求地址
-VITE_API_URL=http://110.188.24.28:50300
+VITE_API_URL=http://110.188.24.28:50100
 # 业务系统socket请求地址
 VITE_API_SOCKET_URL=http://110.188.24.28:50100/hubs/hotline
 # 业务系统文件上传上传请求地址

+ 10 - 10
src/views/statistics/center/aggregation.vue

@@ -127,15 +127,6 @@ const queryList = () => {
 	requestParams.value.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
 	Reflect.deleteProperty(requestParams.value, 'crTime');
 	if (isDataAggregationOpen.value) {
-		getDataConvergence(requestParams.value)
-			.then((res: any) => {
-				state.tableData = res.result;
-				state.loading = false;
-			})
-			.catch(() => {
-				state.loading = false;
-			});
-	} else {
 		state.tableData = [
 			{
 				calConnectionRate: '99.730', // 话务接通率
@@ -156,6 +147,15 @@ const queryList = () => {
 		setTimeout(() => {
 			state.loading = false;
 		}, 300);
+	} else {
+		getDataConvergence(requestParams.value)
+			.then((res: any) => {
+				state.tableData = res.result;
+				state.loading = false;
+			})
+			.catch(() => {
+				state.loading = false;
+			});
 	}
 };
 /** 重置按钮操作 */
@@ -169,7 +169,7 @@ const resetQuery = (formEl: FormInstance | undefined) => {
 const toolbarRef = ref<RefType>();
 const tableRef = ref<RefType>();
 // 是否开启查询
-const isDataAggregationOpen = ref<boolean>(true);
+const isDataAggregationOpen = ref<boolean>(false); // 是否展示静态数据
 // 查询配置
 const getConfig = async () => {
 	try {