Commit 32c48fee by 李宁

1

1 parent 16c0d509
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(claude mcp add:*)", "Bash(claude mcp add:*)",
"Bash(claude:*)" "Bash(claude:*)",
"Bash(nc -U /tmp/pencil-mcp.sock)",
"Bash(curl -s \"http://localhost:3000/api/files/A5Pf8\")",
"Bash(curl -I \"https://fileserver.pencildev.app/api/file/A5Pf8\")"
] ]
} }
} }
...@@ -153,4 +153,13 @@ ...@@ -153,4 +153,13 @@
质检工单列表页面修改 质检工单列表页面修改
筛选模块中的无法拍摄、手动输入、环境异常三个输入框,默认显示“请输入”
\ No newline at end of file \ No newline at end of file
筛选模块中的无法拍摄、手动输入、环境异常三个输入框,默认显示“请输入”
串号数据统计页面修改
1、设备识别通过率图表上,添加2次通过的显示,字段为passRate2
2、表格中添加2次通过率的显示,字段为passRate2
3、页面上所有图表上悬浮显示的数据,加上百分比
串号数据统计页面修改
1、导出表格,改为接口请求,接口地址/zhijian/opt/exportSNStatistics,请求参数(startDate,endDate)
2、日期多选时,也显示出导出表格功能
\ No newline at end of file \ No newline at end of file
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,4 @@
"vite": "^7.2.4", "vite": "^7.2.4",
"vue-tsc": "^3.1.4" "vue-tsc": "^3.1.4"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -145,6 +145,15 @@ export const statsApi = { ...@@ -145,6 +145,15 @@ export const statsApi = {
data data
}) })
}, },
// Export SN Statistics - 导出串号统计数据
exportSNStatistics(data: any): Promise<any> {
return request({
url: '/zhijian/opt/exportSNStatistics',
method: 'get',
params: data,
responseType: 'blob'
})
},
// Process Total Statistics - 质检环节统计 // Process Total Statistics - 质检环节统计
getProcessTotalStatistics(data: any): Promise<any> { getProcessTotalStatistics(data: any): Promise<any> {
return request({ return request({
......
...@@ -145,7 +145,11 @@ const updateChart = () => { ...@@ -145,7 +145,11 @@ const updateChart = () => {
chart.setOption({ chart.setOption({
title: { text: '地市不能拍次数占比统计' }, title: { text: '地市不能拍次数占比统计' },
tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, tooltip: {
trigger: 'axis',
axisPointer: { type: 'shadow' },
valueFormatter: (value: any) => value + '%'
},
legend: { data: ['1次', '2次', '3次'], bottom: 0 }, legend: { data: ['1次', '2次', '3次'], bottom: 0 },
grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true }, grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true },
xAxis: { xAxis: {
......
...@@ -1089,7 +1089,6 @@ body { ...@@ -1089,7 +1089,6 @@ body {
.warningCon .detail .des { .warningCon .detail .des {
line-height: .6rem; line-height: .6rem;
text-align: justify; text-align: justify;
text-indent: 2em;
font-size: .32rem; font-size: .32rem;
color: #333; color: #333;
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>江苏移动</title> <title>江苏移动</title>
<link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css" /> <link rel="stylesheet" href="https://xpo.oss-cn-beijing.aliyuncs.com/huaian/css/vant.css" />
<link rel="stylesheet" href="css/demo.css?113311"> <link rel="stylesheet" href="css/demo.css?113313311">
</head> </head>
<body> <body>
...@@ -374,7 +374,7 @@ ...@@ -374,7 +374,7 @@
<script src="js/vue.min.js"></script> <script src="js/vue.min.js"></script>
<script src="js/vant.min.js"></script> <script src="js/vant.min.js"></script>
<script src="js/demo.js?sd1d355133"></script> <script src="js/demo.js?90910"></script>
</body> </body>
</html> </html>
\ No newline at end of file \ No newline at end of file
...@@ -142,7 +142,9 @@ var gbBoxClick = false ...@@ -142,7 +142,9 @@ var gbBoxClick = false
//作弊倒计时字段 //作弊倒计时字段
var cheatTimeNum = 10 var cheatTimeNum = 10
var cheatNumRecord = 0
var cheatTimeStr = '' var cheatTimeStr = ''
var ifBeginCheat = true
//无法拍摄倒计时字段 //无法拍摄倒计时字段
var noShootTimeNum = 5 var noShootTimeNum = 5
...@@ -189,9 +191,15 @@ function getProcess() { ...@@ -189,9 +191,15 @@ function getProcess() {
$('#waitting').hide() $('#waitting').hide()
} }
//作弊弹窗的显示逻辑 //为了屏蔽刚进页面时的作弊弹窗显示
if (res.findCheatNum && res.findCheatNum >= 1) { if(ifBeginCheat){
cheatNumRecord = res.findCheatNum || 0
ifBeginCheat = false
}
//作弊弹窗的显示逻辑,cheatNumRecord
if (res.findCheatNum && res.findCheatNum >= 1 && cheatNumRecord!=res.findCheatNum) {
cheatTimeNum = 10 cheatTimeNum = 10
cheatNumRecord = res.findCheatNum
if (cheatTimeStr) { if (cheatTimeStr) {
clearTimeout(cheatTimeStr) clearTimeout(cheatTimeStr)
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!