|
|
|
|
@ -31,16 +31,27 @@
|
|
|
|
|
<el-table-column prop="weight" label="车货总重(千克)" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="limitWeight" label="超载重量(千克)" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="overWeight" label="超限重量(千克)" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="overRate" label="超限率(‰)" align="center"></el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="150" align="center">
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="140" align="center">
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
<el-tooltip effect="dark" placement="top" content="查看详情">
|
|
|
|
|
<el-button
|
|
|
|
|
style="margin-top: 0%;"
|
|
|
|
|
@click="viewThis(scope.row)" type="success"
|
|
|
|
|
size="default"
|
|
|
|
|
:icon="View">查看详情
|
|
|
|
|
:icon="View">
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
<el-tooltip effect="dark" placement="top" content="车辆档案">
|
|
|
|
|
<el-button
|
|
|
|
|
style="margin-top: 0%;"
|
|
|
|
|
@click="viewThis2(scope.row)" type="info"
|
|
|
|
|
size="default"
|
|
|
|
|
:icon="ZoomIn">
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-tooltip>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
@ -280,7 +291,12 @@
|
|
|
|
|
clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="超限率(‰):" :label-width="formLabelWidth" prop="overRate">
|
|
|
|
|
<el-input v-model="viewThisRow.overRate" autocomplete="off" :disabled="true"
|
|
|
|
|
clearable></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
@ -350,7 +366,7 @@
|
|
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
<el-button @click="viewShow=false" type="primary"> 关闭</el-button>
|
|
|
|
|
<el-button @click="viewShow=false" type="warning"> 关闭</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
@ -359,6 +375,24 @@
|
|
|
|
|
:close-on-click-modal="false">
|
|
|
|
|
<el-form :model="searchForm" size="medium" ref="searchForm">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="超限率(‰):" :label-width="searchFormLabelWidth" prop="overRate">
|
|
|
|
|
|
|
|
|
|
<el-input-number v-model="searchForm.overRate" :step="10" :min="0" :max="1000"
|
|
|
|
|
:precision="0"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="10">
|
|
|
|
|
<el-form-item label="是否开启自动查询:" :label-width="searchFormLabelWidth">
|
|
|
|
|
<el-switch
|
|
|
|
|
v-model="isAutomatic"
|
|
|
|
|
active-text="开启"
|
|
|
|
|
inactive-text="关闭"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="统计日期:" :label-width="searchFormLabelWidth" prop="dT">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
@ -504,6 +538,209 @@
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<el-dialog title="车辆档案" v-model="viewShow2" width="90%" top="0.5%" destroy-on-close
|
|
|
|
|
:close-on-click-modal="false">
|
|
|
|
|
<div id="printJS-form">
|
|
|
|
|
<el-descriptions
|
|
|
|
|
class="margin-top"
|
|
|
|
|
:column="3"
|
|
|
|
|
border
|
|
|
|
|
>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="入口站名:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.enStationName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="出口站名称:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.exStationName }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车牌号码:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.vehicleId }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车牌颜色:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.colortext }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车型:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.typetext }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="轴数:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.alexCount }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="超载重量(千克):"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.limitWeight }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="超限重量(千克):"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.overWeight }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="超限率(‰):"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.overRate }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
:span="1.5"
|
|
|
|
|
label="入口站通行时间:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.enTime }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
:span="1.5"
|
|
|
|
|
label="出口站通行时间:"
|
|
|
|
|
>
|
|
|
|
|
{{ viewThisRow2.checkTime }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车头照片:"
|
|
|
|
|
:span="1"
|
|
|
|
|
>
|
|
|
|
|
<div v-loading="carFrontPicLoad" element-loading-text="图像加载中...">
|
|
|
|
|
<el-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style="min-width:100px;max-width: 370px; height: 270px"
|
|
|
|
|
:src="carFrontPic"
|
|
|
|
|
:zoom-rate="1.2"
|
|
|
|
|
:max-scale="7"
|
|
|
|
|
:min-scale="0.2"
|
|
|
|
|
:preview-src-list="carFrontPicList"
|
|
|
|
|
:initial-index="4"
|
|
|
|
|
fit="fill"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<template #error>
|
|
|
|
|
<div class="image-slot" style="min-width:100px;max-width: 370px; height: 270px">
|
|
|
|
|
图片不存在
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-image>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车尾照片:"
|
|
|
|
|
:span="1"
|
|
|
|
|
>
|
|
|
|
|
<div v-loading="carRearPicLoad" element-loading-text="图像加载中...">
|
|
|
|
|
<el-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style="min-width:100px;max-width: 370px; height: 270px"
|
|
|
|
|
:src="carRearPic"
|
|
|
|
|
:zoom-rate="1.2"
|
|
|
|
|
:max-scale="7"
|
|
|
|
|
:min-scale="0.2"
|
|
|
|
|
:preview-src-list="carRearPicList"
|
|
|
|
|
:initial-index="4"
|
|
|
|
|
fit="fill"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<template #error>
|
|
|
|
|
<div class="image-slot" style="min-width:100px;max-width: 370px; height: 270px">
|
|
|
|
|
图片不存在
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-image>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车侧身照片:"
|
|
|
|
|
:span="1"
|
|
|
|
|
v-if="isDisplayed"
|
|
|
|
|
>
|
|
|
|
|
<div v-loading="platePicLoad" element-loading-text="图像加载中...">
|
|
|
|
|
<el-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style="min-width:100px;max-width: 370px; height: 270px"
|
|
|
|
|
:src="platePic"
|
|
|
|
|
:zoom-rate="1.2"
|
|
|
|
|
:max-scale="7"
|
|
|
|
|
:min-scale="0.2"
|
|
|
|
|
:preview-src-list="platePicList"
|
|
|
|
|
:initial-index="4"
|
|
|
|
|
fit="fill"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<template #error>
|
|
|
|
|
<div class="image-slot" style="min-width:100px;max-width: 370px; height: 270px">
|
|
|
|
|
图片不存在
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-image>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item
|
|
|
|
|
label-align="center" align="center"
|
|
|
|
|
label="车牌照片:"
|
|
|
|
|
:span="1"
|
|
|
|
|
v-if="!isDisplayed"
|
|
|
|
|
>
|
|
|
|
|
<div v-loading="platePicLoad" element-loading-text="图像加载中...">
|
|
|
|
|
<el-image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
style="min-width:100px;max-width: 370px; height: 270px"
|
|
|
|
|
:src="platePic"
|
|
|
|
|
:zoom-rate="1.2"
|
|
|
|
|
:max-scale="7"
|
|
|
|
|
:min-scale="0.2"
|
|
|
|
|
:preview-src-list="platePicList"
|
|
|
|
|
:initial-index="4"
|
|
|
|
|
fit="fill"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<template #error>
|
|
|
|
|
<div class="image-slot" style="min-width:100px;max-width: 370px; height: 270px">
|
|
|
|
|
图片不存在
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-image>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
</div>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
<el-button @click="printDetails()" type="primary" icon="Printer"> 打印 </el-button>
|
|
|
|
|
<el-button @click="viewShow2=false" type="warning"> 关闭</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
@ -523,6 +760,7 @@ import Dark from '../../views/Dark.vue'
|
|
|
|
|
import moment from "moment";
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
import {queryProgramVersion} from "../../util/api/realtimeinfoquery/api";
|
|
|
|
|
import printJS from "print-js";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "ExportQuery",
|
|
|
|
|
@ -530,6 +768,9 @@ export default {
|
|
|
|
|
data() {
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
//是否自动查询
|
|
|
|
|
isAutomatic: true,
|
|
|
|
|
timer: null, // 定时器
|
|
|
|
|
version: '', // 初始版本号为空
|
|
|
|
|
fieldMapping: {
|
|
|
|
|
LISTNO: "listno",
|
|
|
|
|
@ -642,6 +883,7 @@ export default {
|
|
|
|
|
total: 0,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
overRate: 50, // 超限率(‰)
|
|
|
|
|
dT: [moment(new Date().setTime(new Date().getTime())).format('YYYY-MM-DD'), moment(new Date()).format('YYYY-MM-DD')],
|
|
|
|
|
},
|
|
|
|
|
searchShow: false,
|
|
|
|
|
@ -657,9 +899,137 @@ export default {
|
|
|
|
|
tableLoading: false,
|
|
|
|
|
viewShow: false,
|
|
|
|
|
viewThisRow: {},
|
|
|
|
|
viewShow2: false,
|
|
|
|
|
viewThisRow2: {},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// 启动定时任务
|
|
|
|
|
startTimer() {
|
|
|
|
|
if (!this.timer) {
|
|
|
|
|
this.timer = setInterval(() => {
|
|
|
|
|
this.network(); // 每15秒执行一次查询方法
|
|
|
|
|
}, 15000); // 15秒
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 停止定时任务
|
|
|
|
|
stopTimer() {
|
|
|
|
|
if (this.timer) {
|
|
|
|
|
clearInterval(this.timer);
|
|
|
|
|
this.timer = null;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
printDetails() {
|
|
|
|
|
this.dateFormat(); // 获取当前时间
|
|
|
|
|
|
|
|
|
|
printJS({
|
|
|
|
|
printable: "printJS-form",
|
|
|
|
|
type: 'html',
|
|
|
|
|
scanStyle: true,
|
|
|
|
|
targetStyles: ['*', '.el-descriptions', '.el-image', '#page-break'],
|
|
|
|
|
header: `
|
|
|
|
|
<div class="titleDiv">
|
|
|
|
|
<h3 style='text-align: center;color:#000;width:100%' class="title">车辆档案</h3>
|
|
|
|
|
<div style='float: right' class="label">打印时间:${this.nowTime}</div>
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
`,
|
|
|
|
|
style: `
|
|
|
|
|
@media print {
|
|
|
|
|
body {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
orientation: landscape !important;
|
|
|
|
|
}
|
|
|
|
|
.titleDiv {
|
|
|
|
|
margin-bottom: 20px;
|
|
|
|
|
}
|
|
|
|
|
.margin-top {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* el-descriptions 占满整行 */
|
|
|
|
|
.margin-top .el-descriptions {
|
|
|
|
|
width: 100% ;
|
|
|
|
|
display: block; /* 强制块级布局 */
|
|
|
|
|
page-break-inside: avoid; /* 避免内容被分割到两页 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 清除默认边距和内边距 */
|
|
|
|
|
.margin-top .el-descriptions__body {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 描述项独占一行 */
|
|
|
|
|
.margin-top .el-descriptions__item {
|
|
|
|
|
display: block;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.el-descriptions {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
.el-descriptions-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
.el-image {
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
.image-slot {
|
|
|
|
|
min-width: 100px;
|
|
|
|
|
max-width: 370px;
|
|
|
|
|
height: 270px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
dateFormat() {
|
|
|
|
|
const date = new Date();
|
|
|
|
|
const year = date.getFullYear();
|
|
|
|
|
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
|
|
|
const day = date.getDate().toString().padStart(2, '0');
|
|
|
|
|
const hours = date.getHours().toString().padStart(2, '0');
|
|
|
|
|
const minutes = date.getMinutes().toString().padStart(2, '0');
|
|
|
|
|
const seconds = date.getSeconds().toString().padStart(2, '0');
|
|
|
|
|
this.nowTime = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
viewThis2(row) { //查看明细
|
|
|
|
|
// console.log(row)
|
|
|
|
|
this.viewThisRow2 = row
|
|
|
|
|
this.viewThisRow = row
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.viewShow2 = true
|
|
|
|
|
//查询车头照片
|
|
|
|
|
this.showCarFrontPic = false;
|
|
|
|
|
this.notCarFrontPic = false;
|
|
|
|
|
this.queryCarFrontPic();
|
|
|
|
|
//查询车尾照片
|
|
|
|
|
this.showCarRearPic = false;
|
|
|
|
|
this.notCarRearPic = false;
|
|
|
|
|
this.queryCarRearPic();
|
|
|
|
|
//查询车侧身照片
|
|
|
|
|
this.showPlatePic = false;
|
|
|
|
|
this.notPlatePic = false;
|
|
|
|
|
this.queryPlatePic();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
//获取用户的基础信息
|
|
|
|
|
queryUserBasic() {
|
|
|
|
|
//获取当前的用户id
|
|
|
|
|
@ -794,6 +1164,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
queryPlatePic() {
|
|
|
|
|
this.platePicLoad = true;
|
|
|
|
|
this.platePic = ''
|
|
|
|
|
this.platePicList = []
|
|
|
|
|
let platepic ='';
|
|
|
|
|
let imgType ='';
|
|
|
|
|
if (this.isDisplayed){
|
|
|
|
|
@ -804,7 +1176,7 @@ export default {
|
|
|
|
|
imgType='15'
|
|
|
|
|
}
|
|
|
|
|
// const platepic = this.viewThisRow.sidePicId;
|
|
|
|
|
console.log(platepic)
|
|
|
|
|
// console.log(platepic)
|
|
|
|
|
if (platepic === null || platepic === '' || platepic === '0' || platepic === undefined || platepic === 'undefined') {
|
|
|
|
|
this.notPlatePic = true;
|
|
|
|
|
this.platePicLoad = false;
|
|
|
|
|
@ -838,6 +1210,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
queryCarRearPic() {
|
|
|
|
|
this.carRearPicLoad = true;
|
|
|
|
|
this.carRearPic = ''
|
|
|
|
|
this.carRearPicList = []
|
|
|
|
|
const tailpic = this.viewThisRow.tailPicId;
|
|
|
|
|
if (tailpic === null || tailpic === '' ||tailpic === '0'|| tailpic === undefined || tailpic === 'undefined') {
|
|
|
|
|
this.notCarRearPic = true;
|
|
|
|
|
@ -871,6 +1245,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
queryCarFrontPic() {
|
|
|
|
|
this.carFrontPicLoad = true;
|
|
|
|
|
this.carFrontPic = ''
|
|
|
|
|
this.carFrontPicList = []
|
|
|
|
|
const listno = this.viewThisRow.listno;
|
|
|
|
|
if (listno === null || listno === '' ||listno === '0'|| listno === undefined || listno === 'undefined') {
|
|
|
|
|
this.notCarFrontPic = true;
|
|
|
|
|
@ -929,6 +1305,7 @@ export default {
|
|
|
|
|
total: 0,
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
overRate: 50, // 超限率(‰)
|
|
|
|
|
dT: [moment(new Date().setTime(new Date().getTime())).format('YYYY-MM-DD'), moment(new Date()).format('YYYY-MM-DD')],
|
|
|
|
|
};
|
|
|
|
|
this.network()
|
|
|
|
|
@ -972,6 +1349,18 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
// 监听 isAutomatic 的变化
|
|
|
|
|
isAutomatic(newVal) {
|
|
|
|
|
if (newVal) {
|
|
|
|
|
// 如果 isAutomatic 为 true,启动定时任务
|
|
|
|
|
this.startTimer();
|
|
|
|
|
} else {
|
|
|
|
|
// 如果 isAutomatic 为 false,停止定时任务
|
|
|
|
|
this.stopTimer();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.queryUserBasic();
|
|
|
|
|
this.queryJurisdictionexportStaList();
|
|
|
|
|
@ -987,7 +1376,12 @@ export default {
|
|
|
|
|
// document.documentElement.style.setProperty('--el-bg-color', '#2f39a4')
|
|
|
|
|
this.myHeight = (document.documentElement.clientHeight) * 0.86;
|
|
|
|
|
this.fetchVersion();
|
|
|
|
|
}
|
|
|
|
|
this.startTimer();
|
|
|
|
|
},
|
|
|
|
|
beforeDestroy() {
|
|
|
|
|
// 组件销毁时,确保定时器被清除
|
|
|
|
|
this.stopTimer();
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|