1.代码格式优化

hyx_2024-9-25_tongbu
guoyuepeng 2024-09-11 17:43:28 +08:00
parent c0667c8b46
commit 290c566c73
8 changed files with 30 additions and 30 deletions

View File

@ -10,10 +10,12 @@
<script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/de/prismplayer/2.16.0/aliplayer-min.js"></script> <script type="text/javascript" charset="utf-8" src="https://g.alicdn.com/de/prismplayer/2.16.0/aliplayer-min.js"></script>
<script type="text/javascript" charset="utf-8" src="https://api.tianditu.gov.cn/api?v=4.0&tk=e8a16137fd226a62a23cc7ba5c9c78ce"></script> <script type="text/javascript" charset="utf-8" src="https://api.tianditu.gov.cn/api?v=4.0&tk=e8a16137fd226a62a23cc7ba5c9c78ce"></script>
<script type="text/javascript" src="static/jswebrtc.min.js"></script>
<script type="text/javascript" charset="utf-8" src="https://api.tianditu.gov.cn/api?v=4.0&tk=e8a16137fd226a62a23cc7ba5c9c78ce"></script> <script type="text/javascript" charset="utf-8" src="https://api.tianditu.gov.cn/api?v=4.0&tk=e8a16137fd226a62a23cc7ba5c9c78ce"></script>
<script type="text/javascript" src="./static/map/cesium91/CesiumUnminified/Cesium.js"></script> <script type="text/javascript" src="./static/map/cesium91/CesiumUnminified/Cesium.js"></script>
<script type="text/javascript" src="./static/map/cesium91/CustomCesiumSDK.js"></script> <script type="text/javascript" src="./static/map/cesium91/CustomCesiumSDK.js"></script>
<link href="./static/map/cesium91/CesiumUnminified/Widgets/widgets.css" rel="stylesheet"/> <link href="./static/map/cesium91/CesiumUnminified/Widgets/widgets.css" rel="stylesheet"/>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@ -24,7 +24,6 @@ router.beforeEach((to, from, next) => {
router.addRoutes(accessRoutes) router.addRoutes(accessRoutes)
next({ ...to, replace: true }) next({ ...to, replace: true })
} catch (error) { } catch (error) {
console.info(error)
next(`/login`) next(`/login`)
} }
}) })
@ -37,7 +36,6 @@ router.beforeEach((to, from, next) => {
router.addRoutes(accessRoutes) router.addRoutes(accessRoutes)
next({ ...to, replace: true }) next({ ...to, replace: true })
} catch (error) { } catch (error) {
console.info(error)
next(`/login`) next(`/login`)
} }
} }

View File

@ -7,7 +7,6 @@
* @returns {Boolean} * @returns {Boolean}
*/ */
export function validText(str) { export function validText(str) {
if (str.trim().length < 1) { if (str.trim().length < 1) {
return false return false
} }

View File

@ -9,7 +9,8 @@
<windspeedstation v-if="type === '2da29f00852a4653ba3e760b9de57412'" :id="id" :type="type" :gangkou="gangkou"/> <windspeedstation v-if="type === '2da29f00852a4653ba3e760b9de57412'" :id="id" :type="type" :gangkou="gangkou"/>
<xf-point v-if="type === 'point'" :id="id" :type="type" :gangkou="gangkou"/> <xf-point v-if="type === 'point'" :id="id" :type="type" :gangkou="gangkou"/>
<xf-control v-if="type === 'xfbf01' || type ==='xfkzs01' || type ==='xfjyd01' || type ==='xfsy01'" :id="id" :type="type" :gangkou="gangkou"/> <xf-control v-if="type === 'xfbf01' || type ==='xfkzs01' || type ==='xfjyd01' || type ==='xfsy01'" :id="id" :type="type" :gangkou="gangkou"/>
<mk-gate-machine v-if="type === 'CAR'||type ==='PERSON' || type ==='CAMERA'|| type ==='PERSON_MACHINE'|| type ==='CAR_MACHINE' " <mk-gate-machine
v-if="type === 'CAR'||type ==='PERSON' || type ==='CAMERA'|| type ==='PERSON_MACHINE'|| type ==='CAR_MACHINE' "
:id="id" :id="id"
:type="type" :type="type"
:gangkou="gangkou" :gangkou="gangkou"

View File

@ -59,7 +59,8 @@
<div v-if= "type !== 'CAMERA'" class="level-title"> <div v-if= "type !== 'CAMERA'" class="level-title">
<h1>区域名称{{ info.GATE_AREA_NAME }}</h1> <h1>区域名称{{ info.GATE_AREA_NAME }}</h1>
</div> </div>
<table v-for="(item,index) in varList" v-if= "type !== 'CAMERA'" :key="index" class="table-ui"> <div v-if= "type !== 'CAMERA'" >
<table v-for="(item,index) in varList" :key="index" class="table-ui">
<tr> <tr>
<td class="bbg-transparent">闸机名称</td> <td class="bbg-transparent">闸机名称</td>
<td colspan="5">{{ item.GATE_NAME }}</td> <td colspan="5">{{ item.GATE_NAME }}</td>
@ -73,6 +74,7 @@
<td width="80px">{{ item.CAR_IN - item.CAR_OUT }}</td> <td width="80px">{{ item.CAR_IN - item.CAR_OUT }}</td>
</tr> </tr>
</table> </table>
</div>
<table v-if= "type != 'CAMERA'" class="table-ui"> <table v-if= "type != 'CAMERA'" class="table-ui">
<tr v-if="carRecordAllList != null && carRecordAllList.length > 0"> <tr v-if="carRecordAllList != null && carRecordAllList.length > 0">
<td colspan="6"> <td colspan="6">

View File

@ -126,7 +126,6 @@ export default {
this.ImgList = data.ImgList this.ImgList = data.ImgList
this.measuresList = data.varList this.measuresList = data.varList
this.gongdanList = data.data this.gongdanList = data.data
}).catch((e) => { }).catch((e) => {
}) })
} }

View File

@ -347,7 +347,6 @@ export default {
}, },
// //
subCanvas(img64) { subCanvas(img64) {
this.form.INSPECTED_SITEUSER_SIGN_IMG = img64 this.form.INSPECTED_SITEUSER_SIGN_IMG = img64
this.$set(this.form, 'INSPECTED_SITEUSER_SIGN_TIME', formatDate(new Date(), 'YYYY-MM-DD HH:mm')) this.$set(this.form, 'INSPECTED_SITEUSER_SIGN_TIME', formatDate(new Date(), 'YYYY-MM-DD HH:mm'))

View File

@ -7,7 +7,7 @@
<link rel="stylesheet" type="text/css" href="./css/style.css" /> <link rel="stylesheet" type="text/css" href="./css/style.css" />
<link rel="stylesheet" href="./swiper-master/package/swiper-bundle.min.css"> <link rel="stylesheet" href="./swiper-master/package/swiper-bundle.min.css">
<script src="./js/vue.js"></script> <script src="./js/vue.js"></script>
<script type="text/javascript" src="./js/jquery-3.3.1.min.js"></script> <script type="text/javascript" src="./js/jquery-3.7.1.min.js"></script>
<script src="../config.js"></script> <script src="../config.js"></script>
<script src="./js/sweetalert.min.js"></script> <script src="./js/sweetalert.min.js"></script>
<script src="./js/ezuikit.js"></script> <script src="./js/ezuikit.js"></script>