Commit cf3e8375 by 李宁

1

1 parent 36594141
...@@ -419,7 +419,7 @@ const renderProcessTotalCountChart = () => { ...@@ -419,7 +419,7 @@ const renderProcessTotalCountChart = () => {
const limit = processLimit.value const limit = processLimit.value
const currentData = processStats.value.slice(0, limit) const currentData = processStats.value.slice(0, limit)
const names = currentData.map(item => item.processName) const names = currentData.map(item => item.processName)
const totalCounts = currentData.map(item => item.totalCount || 0) const totalCounts = currentData.map(item => item.totalTryNum || 0)
chart.setOption({ chart.setOption({
tooltip: { trigger: 'axis' }, tooltip: { trigger: 'axis' },
...@@ -662,7 +662,7 @@ onMounted(() => { ...@@ -662,7 +662,7 @@ onMounted(() => {
<el-table v-show="showProcessTable" :data="processStats" border stripe height="250" class="mb-4"> <el-table v-show="showProcessTable" :data="processStats" border stripe height="250" class="mb-4">
<el-table-column prop="processName" label="环节名称" /> <el-table-column prop="processName" label="环节名称" />
<el-table-column prop="averageInspectionTimes" label="平均识别数" sortable /> <el-table-column prop="averageInspectionTimes" label="平均识别数" sortable />
<el-table-column prop="totalCount" label="识别总数" sortable /> <el-table-column prop="totalTryNum" label="识别总数" sortable />
<el-table-column prop="averageDuration" label="平均耗时(s)" sortable /> <el-table-column prop="averageDuration" label="平均耗时(s)" sortable />
</el-table> </el-table>
......
...@@ -201,23 +201,25 @@ const initMultiDayCharts = () => { ...@@ -201,23 +201,25 @@ const initMultiDayCharts = () => {
// 1. Overall Pass Rate Trend // 1. Overall Pass Rate Trend
if (overallPassRateTrendRef.value && datesList.value.length > 0) { if (overallPassRateTrendRef.value && datesList.value.length > 0) {
overallPassRateChart = echarts.getInstanceByDom(overallPassRateTrendRef.value) || echarts.init(overallPassRateTrendRef.value) overallPassRateChart = echarts.getInstanceByDom(overallPassRateTrendRef.value) || echarts.init(overallPassRateTrendRef.value)
const dates = datesList.value.map(item => item.date) const dates = datesList.value.map(item => item.date)
const pass1Data = datesList.value.map(item => item.passRate1 || 0) const pass1Data = datesList.value.map(item => item.passRate1 || 0)
const pass2Data = datesList.value.map(item => item.passRate2 || 0)
const pass3Data = datesList.value.map(item => item.passRate3 || 0) const pass3Data = datesList.value.map(item => item.passRate3 || 0)
overallPassRateChart.setOption({ overallPassRateChart.setOption({
title: { text: '整体通过率时间趋势' }, title: { text: '整体通过率时间趋势' },
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
valueFormatter: (value: any) => value + '%' valueFormatter: (value: any) => value + '%'
}, },
legend: { data: ['1次通过率', '3次通过率'], bottom: 0 }, legend: { data: ['1次通过率', '2次通过率', '3次通过率'], bottom: 0 },
xAxis: { type: 'category', data: dates }, xAxis: { type: 'category', data: dates },
yAxis: { type: 'value', name: '%' }, yAxis: { type: 'value', name: '%' },
grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true }, grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true },
series: [ series: [
{ name: '1次通过率', type: 'line', data: pass1Data, smooth: true }, { name: '1次通过率', type: 'line', data: pass1Data, smooth: true },
{ name: '2次通过率', type: 'line', data: pass2Data, smooth: true },
{ name: '3次通过率', type: 'line', data: pass3Data, smooth: true } { name: '3次通过率', type: 'line', data: pass3Data, smooth: true }
] ]
}, true) }, true)
......
...@@ -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?121222"></script> <script src="js/demo.js?333334"></script>
</body> </body>
</html> </html>
\ No newline at end of file \ No newline at end of file
...@@ -203,8 +203,9 @@ function getProcess() { ...@@ -203,8 +203,9 @@ function getProcess() {
if (cheatTimeStr) { if (cheatTimeStr) {
clearTimeout(cheatTimeStr) clearTimeout(cheatTimeStr)
} }
cheatShowMethod()
$('#warningTsAlert').show() $('#warningTsAlert').show()
cheatShowMethod()
} }
//主光猫是否在箱子的弹窗显示逻辑 //主光猫是否在箱子的弹窗显示逻辑
...@@ -302,8 +303,9 @@ function getProcess() { ...@@ -302,8 +303,9 @@ function getProcess() {
if (snTimeStr) { if (snTimeStr) {
clearTimeout(snTimeStr) clearTimeout(snTimeStr)
} }
snShowMethod()
$("#snErrorAlert").show() $("#snErrorAlert").show()
snShowMethod()
} }
} }
} }
...@@ -1207,7 +1209,7 @@ async function init() { ...@@ -1207,7 +1209,7 @@ async function init() {
url: '/createRoom', url: '/createRoom',
data: { data: {
applyId: applyId, applyId: applyId,
rtcType: isHuaweiPhone() ? '1' : '' rtcType: isHuaweiPhone() ? '1' : '1'
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!