Sfoglia il codice sorgente

reactor:对接随手拍安全志愿者配置

zhangchong 3 giorni fa
parent
commit
bd7da4eb95

+ 28 - 0
src/api/snapshot/statistics.ts

@@ -845,6 +845,34 @@ export const getSSPStatisticsReprocessingDetailExport = (data: object) => {
 		}
 	)
 }
+/**
+ * @description 获取随手拍积分区域列表
+ * @param {object} params
+ */
+export const getSSPStatisticsIntegralArea = (params?: object) => {
+	return request({
+		url: '/api/v1/BiSnapshot/county_points',
+		method: 'get',
+		params,
+	})
+}
+/**
+ * @description 获取随手拍积分区域列表 导出
+ * @param {object} data
+ */
+export const getSSPStatisticsIntegralAreaExport = (data: object) => {
+	return request(
+		{
+			url: '/api/v1/BiSnapshot/county_points/export_excel',
+			method: 'post',
+			data,
+			responseType: 'blob',
+		},
+		{
+			reduce_data_format: false,
+		}
+	)
+}
 /**
  * @description 获取随手拍积分列表
  * @param {object} params

+ 52 - 40
src/layout/navBars/breadcrumb/zgTel.vue

@@ -2153,16 +2153,19 @@ const evtCallAlerting = (data: any) => {
 						identityType: '', // 按键接收(2:市民 1:企业) 默认市民
 					},
 				});*/
-				verifyBlackListLogXT(strTelNumber).then((res: any) => {
-					// 校验当前号码是否是白名单 白名单需要提示
-					if (res.result) {
-						ElNotification({
-							title: '来电提醒',
-							message: '该市民为白名单。',
-							type: 'success',
-						});
-					}
-				});
+				// 开关
+				if (AppConfigInfo.value.isOpenWhiteList) {
+					verifyBlackListLogXT(strTelNumber).then((res: any) => {
+						// 校验当前号码是否是白名单 白名单需要提示
+						if (res.result) {
+							ElNotification({
+								title: '来电提醒',
+								message: '该市民为白名单。',
+								type: 'success',
+							});
+						}
+					});
+				}
 				if (AppConfigInfo.value.isOpenSpecialPhone) {
 					// 配置开关
 					getSpecialNumberDetailByPhone({ PhoneNumber: strTelNumber })
@@ -2253,16 +2256,19 @@ const evtCallAlerting = (data: any) => {
 					identityType: strDigit, // 按键接收(2:市民 1:企业) 默认市民
 				},
 			});*/
-			verifyBlackListLogXT(strTelNumber).then((res: any) => {
-				// 校验当前号码是否是白名单 白名单需要提示
-				if (res.result) {
-					ElNotification({
-						title: '来电提醒',
-						message: '该市民为白名单。',
-						type: 'success',
-					});
-				}
-			});
+			// 开关
+			if (AppConfigInfo.value.isOpenWhiteList) {
+				verifyBlackListLogXT(strTelNumber).then((res: any) => {
+					// 校验当前号码是否是白名单 白名单需要提示
+					if (res.result) {
+						ElNotification({
+							title: '来电提醒',
+							message: '该市民为白名单。',
+							type: 'success',
+						});
+					}
+				});
+			}
 			if (AppConfigInfo.value.isOpenSpecialPhone) {
 				// 配置开关
 				getSpecialNumberDetailByPhone({ PhoneNumber: strTelNumber })
@@ -2414,16 +2420,19 @@ const evtEvtCallAnswer = (data: any) => {
 							identityType: '', // 按键接收(2:市民 1:企业) 默认市民
 						},
 					});*/
-					verifyBlackListLogXT(strTelNumber).then((res: any) => {
-						// 校验当前号码是否是白名单 白名单需要提示
-						if (res.result) {
-							ElNotification({
-								title: '来电提醒',
-								message: '该市民为白名单。',
-								type: 'success',
-							});
-						}
-					});
+					// 开关
+					if (AppConfigInfo.value.isOpenWhiteList) {
+						verifyBlackListLogXT(strTelNumber).then((res: any) => {
+							// 校验当前号码是否是白名单 白名单需要提示
+							if (res.result) {
+								ElNotification({
+									title: '来电提醒',
+									message: '该市民为白名单。',
+									type: 'success',
+								});
+							}
+						});
+					}
 					if (AppConfigInfo.value.isOpenSpecialPhone) {
 						// 配置开关
 						getSpecialNumberDetailByPhone({ PhoneNumber: strTelNumber })
@@ -2539,16 +2548,19 @@ const evtEvtCallAnswer = (data: any) => {
 					identityType: strDigit, // 按键接收(2:市民 1:企业) 默认市民
 				},
 			});*/
-			verifyBlackListLogXT(strTelNumber).then((res: any) => {
-				// 校验当前号码是否是白名单 白名单需要提示
-				if (res.result) {
-					ElNotification({
-						title: '来电提醒',
-						message: '该市民为白名单。',
-						type: 'success',
-					});
-				}
-			});
+			// 开关
+			if (AppConfigInfo.value.isOpenWhiteList) {
+				verifyBlackListLogXT(strTelNumber).then((res: any) => {
+					// 校验当前号码是否是白名单 白名单需要提示
+					if (res.result) {
+						ElNotification({
+							title: '来电提醒',
+							message: '该市民为白名单。',
+							type: 'success',
+						});
+					}
+				});
+			}
 			if (AppConfigInfo.value.isOpenSpecialPhone) {
 				// 配置开关
 				getSpecialNumberDetailByPhone({ PhoneNumber: strTelNumber }).then((res: any) => {

+ 1 - 0
src/router/backEnd.ts

@@ -79,6 +79,7 @@ const getAppConfigFn = async () => {
 			luzhouhcp: result.luzhouhcp ?? false, // 是否开启泸州好差评
 			locationCenter: result.locationCenter ?? [], // 城市中心点
 			isEarly: result.isEarly ?? false, // 是否开启预警
+			isOpenWhiteList: result.isOpenWhiteList ?? false, // 是否开启白名单查询(兴唐)
 		});
 		/*	console.log(
 			`是否开启小休审批${result.isRestApproval},自动话后整理时间${result.talkingDealTime}秒,

+ 1 - 0
src/stores/appConfig.ts

@@ -33,6 +33,7 @@ export const useAppConfig = defineStore('AppConfig', {
 			locationCenter: [], // 城市中心点
 			luzhouhcp:false, // 是否开启泸州好差评
 			isEarly: false, // 是否开启预警
+			isOpenWhiteList: false, // 是否开启白名单查询(兴唐)
 		},
 	}),
 	actions: {

+ 1 - 0
src/types/pinia.d.ts

@@ -143,6 +143,7 @@ declare interface AppConfigState {
 		locationCenter: number[]; // 城市中心点
 		luzhouhcp: boolean; // 是否开启泸州好差评
 		isEarly: boolean; // 是否开启预警
+		isOpenWhiteList: boolean; // 是否开启白名单查询(兴唐)
 		fileExt: string;
 		[x: string]: any;
 	};

+ 279 - 0
src/views/snapshot/statistics/detailPointList.vue

@@ -0,0 +1,279 @@
+<template>
+	<div class="snapshot-statistics-detail-point-list-container layout-padding">
+		<div class="layout-padding-auto layout-padding-view pd20">
+			<vxe-grid v-bind="gridOptions" v-on="gridEvents" ref="gridRef" @checkbox-all="selectAllChangeEvent" @checkbox-change="selectChangeEvent">
+				<template #form>
+					<el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline :disabled="state.loading">
+						<el-form-item prop="crTime">
+							<statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef" :disabled="state.loading" />
+						</el-form-item>
+						<el-form-item label="联系方式" prop="PhoneNumber">
+							<el-input
+								v-model.trim="state.queryParams.PhoneNumber"
+								placeholder="联系方式"
+								clearable
+								@keyup.enter="handleQuery"
+								class="keyword-input"
+							/>
+						</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="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>-->
+							<el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
+								<SvgIcon name="ele-Refresh" class="mr5" />重置
+							</el-button>
+						</el-form-item>
+					</el-form>
+				</template>
+				<template #action="{ row }">
+					<el-button link type="primary" @click="onSafe(row, false)" v-show="row.isSecurityMax" v-auth="'snapshot:statistics:pointList:security'">
+						取消安全卫士
+					</el-button>
+					<el-button link type="primary" @click="onSafe(row, true)" v-show="!row.isSecurityMax" v-auth="'snapshot:statistics:pointList:security'">
+						设置安全卫士
+					</el-button>
+				</template>
+				<template #pager>
+					<pagination
+						@pagination="queryList"
+						:total="state.total"
+						v-model:current-page="state.queryParams.PageIndex"
+						v-model:page-size="state.queryParams.PageSize"
+						:disabled="state.loading"
+					/>
+				</template>
+			</vxe-grid>
+		</div>
+		<!--	更多查询	-->
+		<el-drawer v-model="drawer" title="更多查询" size="500px">
+			<el-form :model="state.queryParams" ref="drawerRuleFormRef" @submit.native.prevent label-width="100px">
+				<el-form-item label="接办部门" prop="ActualHandleOrgName">
+					<el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="请填写接办部门名称" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
+				<el-form-item label="受理类型" prop="AcceptType">
+					<el-select v-model="state.queryParams.AcceptType" placeholder="请选择受理类型" clearable @change="handleQuery">
+						<el-option v-for="item in state.acceptTypeOptions" :value="item.key" :key="item.key" :label="item.value" />
+					</el-select>
+				</el-form-item>
+				<el-form-item label="受理人" prop="NameOrNo">
+					<el-input v-model="state.queryParams.NameOrNo" placeholder="受理人/坐席工号" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
+				<el-form-item label="接办人" prop="ActualHandlerName">
+					<el-input v-model="state.queryParams.ActualHandlerName" placeholder="接办人" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
+				<el-form-item label="来电号码" prop="FromPhone">
+					<el-input v-model.trim="state.queryParams.FromPhone" placeholder="来电号码" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
+				<el-form-item label="联系电话" prop="PhoneNo">
+					<el-input v-model.trim="state.queryParams.PhoneNo" placeholder="联系电话" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
+				<el-form-item label="来电人姓名" prop="FromName">
+					<el-input v-model="state.queryParams.FromName" placeholder="来电人姓名" clearable @keyup.enter="handleQuery" />
+				</el-form-item>
+			</el-form>
+			<template #footer>
+				<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
+				<el-button @click="resetQuery(drawerRuleFormRef)" class="default-button"> <SvgIcon name="ele-Refresh" class="mr5" />重置 </el-button>
+			</template>
+		</el-drawer>
+	</div>
+</template>
+<script setup lang="tsx" name="snapshotStatisticsDetailPointList">
+import { defineAsyncComponent, onMounted, reactive, ref, computed } from 'vue';
+import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
+import Other from '@/utils/other';
+import { getSSPStatisticsIntegral, getSSPStatisticsIntegralExport, setSecurityGuard } from '@/api/snapshot/statistics';
+import { defaultDate } from '@/utils/constants';
+
+// 引入组件
+const pagination = defineAsyncComponent(() => import('@/components/ProTable/components/Pagination.vue')); // 分页
+const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
+// 定义变量内容
+const state = reactive<any>({
+	queryParams: {
+		PageIndex: 1, // 当前页
+		PageSize: 20, // 每页条数
+		// 查询条件
+		PhoneNumber: null, // 联系方式
+		SortField: null,
+		SortRule: null,
+		crTime: defaultDate,
+		StartTime: null,
+		EndTime: null,
+	},
+	tableData: [], //表单
+	loading: false, // 加载
+	total: 0, // 总数
+	acceptTypeOptions: [], //受理类型
+	channelOptions: [], // 来源频道
+	orderStatusOptions: [], // 工单状态
+	currentStepOptions: [], // 办理节点
+	industryOptions: [], //行业
+	orgsOptions: [], // 部门
+	pushTypeOptions: [], //推送分类
+	orgData: [], // 机构数据
+	areaOptions: [], // 省市区数据
+	area: [], // 区域
+	industry: [], // 行业
+	orderStatus: [], // 工单状态
+	orderTags: [], // 工单标签
+	steps: [], // 当前节点
+});
+const requestParams = ref<EmptyObjectType>({});
+const gridOptions = reactive<any>({
+	loading: false,
+	border: true,
+	showOverflow: true,
+	columnConfig: {
+		resizable: true,
+	},
+	scrollY: {
+		enabled: true,
+		gt: 100,
+	},
+	toolbarConfig: {
+		zoom: true,
+		custom: true,
+		refresh: {
+			queryMethod: () => {
+				handleQuery();
+			},
+		},
+		tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],
+	},
+	params: {
+		exportMethod: getSSPStatisticsIntegralExport,
+		exportParams: requestParams,
+	},
+	customConfig: {
+		storage: true,
+	},
+	id: 'snapshotStatisticsDetailPointList',
+	rowConfig: { isHover: true, height: 30, isCurrent: true, useKey: true },
+	height: 'auto',
+	columns: [
+		{ type: 'checkbox', width: 50, align: 'center' },
+		{ field: 'phoneNumber', title: '联系方式' },
+		{ field: 'userName', title: '姓名' },
+		{ field: 'totalPoints', title: '历史总积分' },
+		{ field: 'outPoints', title: '已兑换积分' },
+		{ field: 'validPoints', title: '当前可用积分' },
+		{ field: 'rank', title: '当前排名', sortable: true },
+		{ title: '操作', width: 130, fixed: 'right', align: 'center', slots: { default: 'action' } },
+	],
+	data: [],
+	sortConfig: {
+		remote: true,
+	},
+});
+const gridEvents = {
+	sortChange(val: any) {
+		state.queryParams.SortField = val.order ? val.field : null;
+		// 0 升序 1 降序
+		state.queryParams.SortRule = val.order ? (val.order == 'desc' ? 1 : 0) : null;
+		handleQuery();
+	},
+};
+// 手动查询,将页码设置为1
+const handleQuery = () => {
+	state.queryParams.PageIndex = 1;
+	queryList();
+};
+// 改变页码
+const queryList = () => {
+	return new Promise((resolve, reject) => {
+		requestParams.value = Other.deepClone(state.queryParams);
+		requestParams.value.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0]; // 受理时间
+		requestParams.value.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
+		Reflect.deleteProperty(requestParams.value, 'crTime'); // 删除无用的参数
+		state.loading = true;
+		gridOptions.loading = true;
+		getSSPStatisticsIntegral(requestParams.value)
+			.then((response: any) => {
+				gridOptions.data = response?.result.items ?? [];
+				state.total = response?.result.total;
+				state.loading = false;
+				gridOptions.loading = false;
+				gridRef.value.clearCheckboxRow();
+				checkTable.value = [];
+				resolve(response);
+			})
+			.catch(() => {
+				state.loading = false;
+				gridOptions.loading = false;
+				gridRef.value.clearCheckboxRow();
+				checkTable.value = [];
+				reject();
+			});
+	});
+};
+/** 重置按钮操作 */
+const drawerRuleFormRef = ref();
+const ruleFormRef = ref<RefType>(); // 表单ref
+const drawer = ref(false);
+const statisticalTimeRef = ref<RefType>();
+const resetQuery = (formEl: FormInstance | undefined) => {
+	if (!formEl) return;
+	formEl.resetFields();
+	ruleFormRef.value?.resetFields();
+	statisticalTimeRef.value.reset();
+	queryList();
+};
+const checkTable = ref<EmptyArrayType>([]);
+const gridRef = ref<RefType>();
+const selectAllChangeEvent = ({ checked }) => {
+	if (gridRef.value) {
+		const records = gridRef.value.getCheckboxRecords();
+		checkTable.value = records;
+		console.log(checked ? '所有勾选事件' : '所有取消事件', records);
+	}
+};
+
+const selectChangeEvent = ({ checked }) => {
+	if (gridRef.value) {
+		const records = gridRef.value.getCheckboxRecords();
+		checkTable.value = records;
+		console.log(checked ? '勾选事件' : '取消事件', records);
+	}
+};
+const isChecked = computed(() => {
+	return !checkTable.value.length;
+});
+// 设置安全卫士
+const onSafe = (row: any, isSecurityMax: boolean) => {
+	if (isSecurityMax) {
+		// 设置安全卫士
+		ElMessageBox.confirm(`您确定要设置安全卫士, 是否继续?`, '提示', {
+			confirmButtonText: '确定',
+			cancelButtonText: '取消',
+			type: 'warning',
+			draggable: true,
+		})
+			.then(() => {
+				setSecurityGuard({ userId: row.userId, isSecurityMax }).then(() => {
+					ElMessage.success('设置成功');
+					queryList();
+				});
+			})
+			.catch(() => {});
+	} else {
+		// 取消安全卫士
+		ElMessageBox.confirm(`您确定要取消设置安全卫士, 是否继续?`, '提示', {
+			confirmButtonText: '确定',
+			cancelButtonText: '取消',
+			type: 'warning',
+			draggable: true,
+		})
+			.then(() => {
+				setSecurityGuard({ userId: row.userId, isSecurityMax }).then(() => {
+					ElMessage.success('取消设置成功');
+					queryList();
+				});
+			})
+			.catch(() => {});
+	}
+};
+onMounted(() => {
+	queryList();
+});
+</script>

+ 8 - 155
src/views/snapshot/statistics/pointList.vue

@@ -1,100 +1,37 @@
 <template>
 	<div class="snapshot-statistics-point-list-container layout-padding">
 		<div class="layout-padding-auto layout-padding-view pd20">
-			<vxe-grid v-bind="gridOptions" v-on="gridEvents" ref="gridRef" @checkbox-all="selectAllChangeEvent" @checkbox-change="selectChangeEvent">
+			<vxe-grid v-bind="gridOptions" v-on="gridEvents" ref="gridRef">
 				<template #form>
 					<el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline :disabled="state.loading">
 						<el-form-item prop="crTime">
 							<statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef" :disabled="state.loading" />
 						</el-form-item>
-						<el-form-item label="联系方式" prop="PhoneNumber">
-							<el-input
-								v-model.trim="state.queryParams.PhoneNumber"
-								placeholder="联系方式"
-								clearable
-								@keyup.enter="handleQuery"
-								class="keyword-input"
-							/>
-						</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="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>-->
 							<el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
 								<SvgIcon name="ele-Refresh" class="mr5" />重置
 							</el-button>
 						</el-form-item>
 					</el-form>
 				</template>
-				<template #action="{ row }">
-					<el-button link type="primary" @click="onSafe(row, false)" v-show="row.isSecurityMax" v-auth="'snapshot:statistics:pointList:security'">
-						取消安全卫士
-					</el-button>
-					<el-button link type="primary" @click="onSafe(row, true)" v-show="!row.isSecurityMax" v-auth="'snapshot:statistics:pointList:security'">
-						设置安全卫士
-					</el-button>
-				</template>
-				<template #pager>
-					<pagination
-						@pagination="queryList"
-						:total="state.total"
-						v-model:current-page="state.queryParams.PageIndex"
-						v-model:page-size="state.queryParams.PageSize"
-						:disabled="state.loading"
-					/>
-				</template>
 			</vxe-grid>
 		</div>
-		<!--	更多查询	-->
-		<el-drawer v-model="drawer" title="更多查询" size="500px">
-			<el-form :model="state.queryParams" ref="drawerRuleFormRef" @submit.native.prevent label-width="100px">
-				<el-form-item label="接办部门" prop="ActualHandleOrgName">
-					<el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="请填写接办部门名称" clearable @keyup.enter="handleQuery" />
-				</el-form-item>
-				<el-form-item label="受理类型" prop="AcceptType">
-					<el-select v-model="state.queryParams.AcceptType" placeholder="请选择受理类型" clearable @change="handleQuery">
-						<el-option v-for="item in state.acceptTypeOptions" :value="item.key" :key="item.key" :label="item.value" />
-					</el-select>
-				</el-form-item>
-				<el-form-item label="受理人" prop="NameOrNo">
-					<el-input v-model="state.queryParams.NameOrNo" placeholder="受理人/坐席工号" clearable @keyup.enter="handleQuery" />
-				</el-form-item>
-				<el-form-item label="接办人" prop="ActualHandlerName">
-					<el-input v-model="state.queryParams.ActualHandlerName" placeholder="接办人" clearable @keyup.enter="handleQuery" />
-				</el-form-item>
-				<el-form-item label="来电号码" prop="FromPhone">
-					<el-input v-model.trim="state.queryParams.FromPhone" placeholder="来电号码" clearable @keyup.enter="handleQuery" />
-				</el-form-item>
-				<el-form-item label="联系电话" prop="PhoneNo">
-					<el-input v-model.trim="state.queryParams.PhoneNo" placeholder="联系电话" clearable @keyup.enter="handleQuery" />
-				</el-form-item>
-				<el-form-item label="来电人姓名" prop="FromName">
-					<el-input v-model="state.queryParams.FromName" placeholder="来电人姓名" clearable @keyup.enter="handleQuery" />
-				</el-form-item>
-			</el-form>
-			<template #footer>
-				<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
-				<el-button @click="resetQuery(drawerRuleFormRef)" class="default-button"> <SvgIcon name="ele-Refresh" class="mr5" />重置 </el-button>
-			</template>
-		</el-drawer>
 	</div>
 </template>
 <script setup lang="tsx" name="snapshotStatisticsPointList">
 import { defineAsyncComponent, onMounted, reactive, ref, computed } from 'vue';
-import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
+import { ElMessage, FormInstance } from 'element-plus';
 import Other from '@/utils/other';
-import { getSSPStatisticsIntegral, getSSPStatisticsIntegralExport, setSecurityGuard } from '@/api/snapshot/statistics';
+import {  getSSPStatisticsIntegralArea, getSSPStatisticsIntegralAreaExport } from '@/api/snapshot/statistics';
 import { defaultDate } from '@/utils/constants';
 
 // 引入组件
-const pagination = defineAsyncComponent(() => import('@/components/ProTable/components/Pagination.vue')); // 分页
 const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
 // 定义变量内容
 const state = reactive<any>({
 	queryParams: {
-		PageIndex: 1, // 当前页
-		PageSize: 20, // 每页条数
 		// 查询条件
-		PhoneNumber: null, // 联系方式
 		SortField: null,
 		SortRule: null,
 		crTime: defaultDate,
@@ -103,21 +40,6 @@ const state = reactive<any>({
 	},
 	tableData: [], //表单
 	loading: false, // 加载
-	total: 0, // 总数
-	acceptTypeOptions: [], //受理类型
-	channelOptions: [], // 来源频道
-	orderStatusOptions: [], // 工单状态
-	currentStepOptions: [], // 办理节点
-	industryOptions: [], //行业
-	orgsOptions: [], // 部门
-	pushTypeOptions: [], //推送分类
-	orgData: [], // 机构数据
-	areaOptions: [], // 省市区数据
-	area: [], // 区域
-	industry: [], // 行业
-	orderStatus: [], // 工单状态
-	orderTags: [], // 工单标签
-	steps: [], // 当前节点
 });
 const requestParams = ref<EmptyObjectType>({});
 const gridOptions = reactive<any>({
@@ -142,7 +64,7 @@ const gridOptions = reactive<any>({
 		tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],
 	},
 	params: {
-		exportMethod: getSSPStatisticsIntegralExport,
+		exportMethod: getSSPStatisticsIntegralAreaExport,
 		exportParams: requestParams,
 	},
 	customConfig: {
@@ -152,14 +74,9 @@ const gridOptions = reactive<any>({
 	rowConfig: { isHover: true, height: 30, isCurrent: true, useKey: true },
 	height: 'auto',
 	columns: [
-		{ type: 'checkbox', width: 50, align: 'center' },
-		{ field: 'phoneNumber', title: '联系方式' },
-		{ field: 'userName', title: '姓名' },
+		{ field: 'phoneNumber', title: '区域' },
 		{ field: 'totalPoints', title: '历史总积分' },
 		{ field: 'outPoints', title: '已兑换积分' },
-		{ field: 'validPoints', title: '当前可用积分' },
-		{ field: 'rank', title: '当前排名', sortable: true },
-		{ title: '操作', width: 130, fixed: 'right', align: 'center', slots: { default: 'action' } },
 	],
 	data: [],
 	sortConfig: {
@@ -188,91 +105,27 @@ const queryList = () => {
 		Reflect.deleteProperty(requestParams.value, 'crTime'); // 删除无用的参数
 		state.loading = true;
 		gridOptions.loading = true;
-		getSSPStatisticsIntegral(requestParams.value)
+		getSSPStatisticsIntegralArea(requestParams.value)
 			.then((response: any) => {
-				gridOptions.data = response?.result.items ?? [];
-				state.total = response?.result.total;
+				gridOptions.data = response?.result ?? [];
 				state.loading = false;
 				gridOptions.loading = false;
-				gridRef.value.clearCheckboxRow();
-				checkTable.value = [];
 				resolve(response);
 			})
 			.catch(() => {
 				state.loading = false;
 				gridOptions.loading = false;
-				gridRef.value.clearCheckboxRow();
-				checkTable.value = [];
 				reject();
 			});
 	});
 };
 /** 重置按钮操作 */
-const drawerRuleFormRef = ref();
-const ruleFormRef = ref<RefType>(); // 表单ref
-const drawer = ref(false);
-const statisticalTimeRef = ref<RefType>();
+const ruleFormRef = ref<FormInstance>();
 const resetQuery = (formEl: FormInstance | undefined) => {
 	if (!formEl) return;
 	formEl.resetFields();
-	ruleFormRef.value?.resetFields();
-	statisticalTimeRef.value.reset();
 	queryList();
 };
-const checkTable = ref<EmptyArrayType>([]);
-const gridRef = ref<RefType>();
-const selectAllChangeEvent = ({ checked }) => {
-	if (gridRef.value) {
-		const records = gridRef.value.getCheckboxRecords();
-		checkTable.value = records;
-		console.log(checked ? '所有勾选事件' : '所有取消事件', records);
-	}
-};
-
-const selectChangeEvent = ({ checked }) => {
-	if (gridRef.value) {
-		const records = gridRef.value.getCheckboxRecords();
-		checkTable.value = records;
-		console.log(checked ? '勾选事件' : '取消事件', records);
-	}
-};
-const isChecked = computed(() => {
-	return !checkTable.value.length;
-});
-// 设置安全卫士
-const onSafe = (row: any, isSecurityMax: boolean) => {
-	if (isSecurityMax) {
-		// 设置安全卫士
-		ElMessageBox.confirm(`您确定要设置安全卫士, 是否继续?`, '提示', {
-			confirmButtonText: '确定',
-			cancelButtonText: '取消',
-			type: 'warning',
-			draggable: true,
-		})
-			.then(() => {
-				setSecurityGuard({ userId: row.userId, isSecurityMax }).then(() => {
-					ElMessage.success('设置成功');
-					queryList();
-				});
-			})
-			.catch(() => {});
-	} else {
-		// 取消安全卫士
-		ElMessageBox.confirm(`您确定要取消设置安全卫士, 是否继续?`, '提示', {
-			confirmButtonText: '确定',
-			cancelButtonText: '取消',
-			type: 'warning',
-			draggable: true,
-		})
-			.then(() => {
-				setSecurityGuard({ userId: row.userId, isSecurityMax }).then(() => {
-					ElMessage.success('取消设置成功');
-					queryList();
-				});
-			})
-			.catch(() => {});
-	}
-};
 onMounted(() => {
 	queryList();
 });