|
@@ -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 {
|