|
@@ -40,11 +40,11 @@
|
|
|
<el-option v-for="item in identityTypeOptions" :value="item.value" :key="item.value" :label="item.key" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="热线号码" prop="CDPN">
|
|
|
- <el-select v-model="state.queryParams.CDPN" placeholder="请选择热线号码" clearable @change="handleQuery">
|
|
|
- <el-option v-for="item in state.callForwardingSource" :value="item.dicDataValue" :key="item.dicDataValue" :label="item.dicDataName" />
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
+ <el-form-item label="热线号码" prop="Line">
|
|
|
+ <el-select v-model="state.queryParams.Line" placeholder="请选择热线号码" clearable @change="handleQuery">
|
|
|
+ <el-option v-for="item in state.callForwardingSource" :value="item.dicDataValue" :key="item.dicDataValue" :label="item.dicDataName" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
<el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
@@ -77,7 +77,7 @@ import { FormInstance } from 'element-plus';
|
|
|
import { statisticsOrderArea } from '@/api/statistics/order';
|
|
|
import { defaultDate, shortcuts } from '@/utils/constants';
|
|
|
import dayjs from 'dayjs';
|
|
|
-import {callPeriodBase} from "@/api/statistics/call";
|
|
|
+import { callPeriodBase } from '@/api/statistics/call';
|
|
|
|
|
|
const columns = ref<any>([
|
|
|
{ prop: 'areaName', label: '区域名称' },
|
|
@@ -95,11 +95,12 @@ const state = reactive({
|
|
|
TypeId: null,
|
|
|
StartTime: null,
|
|
|
EndTime: null,
|
|
|
+ Line: null,
|
|
|
},
|
|
|
tableData: [], //表单
|
|
|
loading: false, // 加载
|
|
|
total: 0, // 总数
|
|
|
- callForwardingSource:[]
|
|
|
+ callForwardingSource: [],
|
|
|
});
|
|
|
const identityTypeOptions = [
|
|
|
{ key: '市民', value: 1 },
|
|
@@ -140,6 +141,7 @@ const queryList = () => {
|
|
|
TypeId: state.queryParams.TypeId,
|
|
|
StartTime,
|
|
|
EndTime,
|
|
|
+ Line: state.queryParams.Line,
|
|
|
};
|
|
|
statisticsOrderArea(request)
|
|
|
.then((res: any) => {
|
|
@@ -183,6 +185,7 @@ const load = (row: any, treeNode: unknown, resolve: (date: any[]) => void) => {
|
|
|
EndTime,
|
|
|
AreaCode: row.areaCode,
|
|
|
TypeId: state.queryParams.TypeId,
|
|
|
+ Line: state.queryParams.Line,
|
|
|
};
|
|
|
statisticsOrderArea(request)
|
|
|
.then((res: any) => {
|
|
@@ -192,15 +195,15 @@ const load = (row: any, treeNode: unknown, resolve: (date: any[]) => void) => {
|
|
|
};
|
|
|
// 获取基础信息
|
|
|
const getBaseInfo = async () => {
|
|
|
- try {
|
|
|
- const { result } = await callPeriodBase();
|
|
|
- state.callForwardingSource = result.callForwardingSource ?? [];
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ try {
|
|
|
+ const { result } = await callPeriodBase();
|
|
|
+ state.callForwardingSource = result.callForwardingSource ?? [];
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e);
|
|
|
+ }
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
- getBaseInfo();
|
|
|
+ getBaseInfo();
|
|
|
queryList();
|
|
|
});
|
|
|
</script>
|