Pārlūkot izejas kodu

reactor:对接受理量前10一级热点;

zhangchong 1 gadu atpakaļ
vecāks
revīzija
5cf53fb859

+ 4 - 7
src/components/ImgVerify/hooks.ts

@@ -1,4 +1,4 @@
-import { ref, onMounted } from 'vue';
+import { onMounted, ref } from 'vue';
 
 /**
  * 绘制图形验证码
@@ -31,8 +31,7 @@ export const useImageVerify = (width = 120, height = 32) => {
 };
 
 function randomNum(min: number, max: number) {
-	const num = Math.floor(Math.random() * (max - min) + min);
-	return num;
+	return Math.floor(Math.random() * (max - min) + min);
 }
 
 function randomColor(min: number, max: number) {
@@ -44,14 +43,12 @@ function randomColor(min: number, max: number) {
 
 function draw(dom: HTMLCanvasElement, width: number, height: number) {
 	let imgCode = '';
-
 	const Random_STRING: string = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
-
 	const ctx = dom.getContext('2d');
 	if (!ctx) return imgCode;
 
-	ctx.fillStyle = randomColor(180, 230);
-	ctx.fillRect(0, 0, width, height);
+	ctx.fillStyle = randomColor(255, 255);
+	ctx.fillRect(2, 0, width, height);
 	for (let i = 0; i < 4; i += 1) {
 		const text = Random_STRING[randomNum(0, Random_STRING.length)];
 		imgCode += text;

+ 11 - 4
src/views/statistics/order/acceptTopTen.vue

@@ -36,10 +36,17 @@
 				@sort-change="sortChange"
 			>
 				<el-table-column type="selection" width="55" align="center" />
-				<el-table-column prop="name" label="省一级热点名称" show-overflow-tooltip align="center"></el-table-column>
-				<el-table-column prop="invalid" label="无效信件" show-overflow-tooltip align="center" sortable="custom"></el-table-column>
-				<el-table-column prop="repeat" label="重复信件" show-overflow-tooltip align="center" sortable="custom"></el-table-column>
-				<el-table-column prop="subtotal" label="所有信件" show-overflow-tooltip align="center" sortable="custom"></el-table-column>
+				<el-table-column prop="name" label="省一级热点名称" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="validAccept" label="有效受理量" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="consult" label="咨询" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="report" label="举报" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="complaint" label="投诉" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="seekHelp" label="求助" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="suggest" label="建议" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="opinion" label="意见" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="rests" label="其他" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="benefitThePeople" label="惠民帮助" show-overflow-tooltip></el-table-column>
+				<el-table-column prop="praise" label="表扬" show-overflow-tooltip></el-table-column>
 				<template #empty>
 					<Empty />
 				</template>