From d42c834bfda59c0b57be22bc852d2c691e4a53e9 Mon Sep 17 00:00:00 2001 From: songwenxuan <1924103812@qq.com> Date: Tue, 7 May 2024 15:28:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A7=E5=B7=9E=E7=9F=BF=E7=9F=B3=E3=80=81?= =?UTF-8?q?=E6=9B=B9=E5=AE=9E=E4=B8=9A=E3=80=81=E6=9B=B9=E7=85=A4=E7=82=AD?= =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 37 ++-- src/views/map/components/caofeidian_index.vue | 4 +- src/views/map/components/cmt_index.vue | 14 +- src/views/map/components/czks_index.vue | 28 ++- src/views/map/components/menjinCfd.vue | 4 +- src/views/map/components/menjinCzks.vue | 47 +++-- src/views/map/dialog/blindboardCfdD.vue | 2 +- src/views/map/dialog/breakgroundCfdD.vue | 2 +- src/views/map/dialog/confinedspace.vue | 2 +- src/views/map/dialog/confinedspaceCfdD.vue | 2 +- src/views/map/dialog/cutroadCfdD.vue | 2 +- src/views/map/dialog/electricityCfdD.vue | 2 +- src/views/map/dialog/highworkCfdD.vue | 2 +- src/views/map/dialog/hoistingCfdD.vue | 2 +- src/views/map/dialog/hotworkCfdD.vue | 2 +- src/views/map/dialog/hotworkFirst.vue | 2 +- src/views/map/dialog/index.vue | 43 ++--- src/views/map/dialog/mkGateMachineCmt.vue | 2 +- src/views/map/dialog/mkGateMachineCzks.vue | 142 +++++++++++++++ src/views/map/index.vue | 168 ++++++++++++++++-- src/views/map/js/dragentity.js | 38 +++- .../homepagepicture/components/indexList.vue | 22 +-- 22 files changed, 437 insertions(+), 132 deletions(-) create mode 100644 src/views/map/dialog/mkGateMachineCzks.vue diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 97eb2a5..e2137bd 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -180,16 +180,16 @@ export default { } }, watch: { - $route: { - handler: function(route) { - const query = route.query - if (query) { - this.redirect = query.redirect - this.otherQuery = this.getOtherQuery(query) - } - }, - immediate: true - } + // $route: { + // handler: function(route) { + // const query = route.query + // if (query) { + // this.redirect = query.redirect + // this.otherQuery = this.getOtherQuery(query) + // } + // }, + // immediate: true + // } }, created() { const loginCount = this.validStr(sessionStorage.getItem('loginCount')) ? sessionStorage.getItem('loginCount') : 0 @@ -231,18 +231,19 @@ export default { console.log(this.identifyCode) }, getImgList() { + this.loading = false // requestFN('/homepage/list').then(res => { // this.hImgs = res.hImgs // }) - requestFN( - '/homepage/list', - {} - ).then((data) => { - this.hImgs = data.hImgs - }).catch((e) => { - this.loading = false - }) + // requestFN( + // '/homepage/list', + // {} + // ).then((data) => { + // this.hImgs = data.hImgs + // }).catch((e) => { + // this.loading = false + // }) }, backgroundImage(FILEPATH) { return { diff --git a/src/views/map/components/caofeidian_index.vue b/src/views/map/components/caofeidian_index.vue index 515cf1e..03c555d 100644 --- a/src/views/map/components/caofeidian_index.vue +++ b/src/views/map/components/caofeidian_index.vue @@ -1,7 +1,7 @@ @@ -92,17 +89,22 @@ export default { { title: '风速监测', img: require('../../../assets/map/qixiang/ico1.png'), - count: '-' + count: 0 }, { title: '温度监测', img: require('../../../assets/map/qixiang/ico2.png'), - count: '-' + count: 0 }, { title: '风向监测', img: require('../../../assets/map/qixiang/ico3.png'), - count: '-' + count: 0 + }, + { + title: '大气湿度', + img: require('../../../assets/map/qixiang/ico4.png'), + count: 0 } ], block2OptionsList: [ @@ -317,16 +319,10 @@ export default { GANGKOU: this.gangkou } ).then((data) => { - data.riskList.forEach(item => { - if (item.TYPE == 'levelA') this.block4OptionsList[0].list[0].count = item.COUNT - if (item.TYPE == 'levelB') this.block4OptionsList[0].list[1].count = item.COUNT - if (item.TYPE == 'levelC') this.block4OptionsList[0].list[2].count = item.COUNT - if (item.TYPE == 'levelD') this.block4OptionsList[0].list[3].count = item.COUNT - }) - this.block4OptionsList[1].list[0].count = data.czksCarToday.oreIn - this.block4OptionsList[1].list[1].count = data.czksCarToday.oreOut - this.block4OptionsList[1].list[2].count = data.czksCarToday.groceryIn - this.block4OptionsList[1].list[3].count = data.czksCarToday.groceryOut + this.block4OptionsList[1].list[0].count = data.data.grocery.entered + this.block4OptionsList[1].list[1].count = data.data.grocery.quited + this.block4OptionsList[0].list[0].count = data.data.mineral.entered + this.block4OptionsList[0].list[1].count = data.data.mineral.quited }) }, getRiskIdentificationCount() { diff --git a/src/views/map/components/menjinCfd.vue b/src/views/map/components/menjinCfd.vue index 0851d73..da1bc1a 100644 --- a/src/views/map/components/menjinCfd.vue +++ b/src/views/map/components/menjinCfd.vue @@ -223,8 +223,8 @@ export default { id: '12' } ).then((data) => { - // this.block2OptionsList[0].list[0].count = data.inpeopleGate - // this.block2OptionsList[0].list[1].count = data.outpeopleGate + this.block2OptionsList[0].list[0].count = data.inpeopleGate + this.block2OptionsList[0].list[1].count = data.outpeopleGate this.block2OptionsList[2].list[0].count = data.invehicleGate this.block2OptionsList[2].list[1].count = data.outvehicleGate }).catch((e) => { diff --git a/src/views/map/components/menjinCzks.vue b/src/views/map/components/menjinCzks.vue index 9450a2b..8e11699 100644 --- a/src/views/map/components/menjinCzks.vue +++ b/src/views/map/components/menjinCzks.vue @@ -47,7 +47,7 @@ v-for="(item,index) in block3OptionsList" :key="index" :class="['title', {active:index === block3OptionsIndex}]" - @click="block3OptionsClick(index)" + @click="getIORecords(index)" > {{ item }} @@ -61,23 +61,10 @@
-
{{ item.USERNAME }}
-
{{ item.LICENSE_PLATE }}
-
{{ item.TIME }}
-
- {{ item.STATE == '0' ? '进入' : '出港' }} -
-
{{ - item.EQUIPMENTNAME - }} -
-
- {{ item.STATE == '4' ? '进场' : '出场' }} -
-
{{ - item.COMING_REASON - }} -
+
{{ block3OptionsIndex === 0 ? '矿石区闸机' : '杂货区闸机' }}
+
{{ item.TRUCK_NO }}
+
{{ item.CREATTIME }}
+
{{ item.PASS_TYPE == 0 ? '进' : '出' }}
@@ -183,15 +170,25 @@ export default { }, created() { this.getDoorManagement() + this.load() }, methods: { load() { this.loading = true - this.currentPage += 1 - this.loadRecord(this.block3OptionsIndex) + this.currentPage = parseInt(this.currentPage) + parseInt(1) + this.getIORecords(this.index) }, - loadRecord(index) { - this.getDoorWayRecords(index) + getIORecords(index) { + this.type = index + this.block3OptionsIndex = index + requestFN( + '/map/getIORecords?showCount=20' + '¤tPage=' + this.currentPage + '&type=' + this.block3OptionsIndex, + {} + ).then((data) => { + this.block3List = this.block3List.concat(data.data.pd.data) + this.currentPage = data.data.pd.currentPage + this.loading = false + }) }, getDoorManagement() { requestFN( @@ -201,12 +198,14 @@ export default { GANGKOU: this.gangkou } ).then((data) => { + this.block1OptionsList[0].count1 = data.czksCarToday.CAR_GATE_COUNT + this.block1OptionsList[1].count1 = data.czksCarToday.VIDEO_COUNT this.block2OptionsList[0].list[0].count = data.czksCarToday.oreInAll this.block2OptionsList[0].list[1].count = data.czksCarToday.oreOutAll - this.block2OptionsList[0].list[2].count = data.czksCarToday.oreInAll - data.czksCarToday.oreOutAll + this.block2OptionsList[0].list[2].count = data.czksCarToday.oreAll this.block2OptionsList[1].list[0].count = data.czksCarToday.groceryInAll this.block2OptionsList[1].list[1].count = data.czksCarToday.groceryOutAll - this.block2OptionsList[1].list[2].count = data.czksCarToday.groceryInAll - data.czksCarToday.groceryOutAll + this.block2OptionsList[1].list[2].count = data.czksCarToday.groceryAll }) }, block3OptionsClick(index) { diff --git a/src/views/map/dialog/blindboardCfdD.vue b/src/views/map/dialog/blindboardCfdD.vue index eaa3150..92dfa82 100644 --- a/src/views/map/dialog/blindboardCfdD.vue +++ b/src/views/map/dialog/blindboardCfdD.vue @@ -234,7 +234,7 @@ export default { this.listLoading = false this.pd = data.pd // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.boardList = data.boardList // 参数map this.measuresList = data.measuresList // 参数map this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0] diff --git a/src/views/map/dialog/breakgroundCfdD.vue b/src/views/map/dialog/breakgroundCfdD.vue index 709dc49..23527f5 100644 --- a/src/views/map/dialog/breakgroundCfdD.vue +++ b/src/views/map/dialog/breakgroundCfdD.vue @@ -230,7 +230,7 @@ export default { this.listLoading = false this.pd = data.pd // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.measuresList = data.measuresList // 参数map this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0] this.pd.CONSTRUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1] diff --git a/src/views/map/dialog/confinedspace.vue b/src/views/map/dialog/confinedspace.vue index 2b614ea..bea368f 100644 --- a/src/views/map/dialog/confinedspace.vue +++ b/src/views/map/dialog/confinedspace.vue @@ -243,7 +243,7 @@ export default { this.listLoading = false this.info = data.pd this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] for (let i = 0; i < data.measuresList.length; i++) { // 将字符串转成数组 const PROTECTIVE_MEASURES = data.measuresList[i].PROTECTIVE_MEASURES.split('') diff --git a/src/views/map/dialog/confinedspaceCfdD.vue b/src/views/map/dialog/confinedspaceCfdD.vue index de7617c..bdf3579 100644 --- a/src/views/map/dialog/confinedspaceCfdD.vue +++ b/src/views/map/dialog/confinedspaceCfdD.vue @@ -285,7 +285,7 @@ export default { data.measuresList[i].PROTECTIVE_MEASURES = PROTECTIVE_MEASURES.join('') } this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.measuresList = data.measuresList // 参数map this.gasList = data.gasList // 参数map this.gas = data.gas || {} // 参数map diff --git a/src/views/map/dialog/cutroadCfdD.vue b/src/views/map/dialog/cutroadCfdD.vue index 94eee15..1b34ed1 100644 --- a/src/views/map/dialog/cutroadCfdD.vue +++ b/src/views/map/dialog/cutroadCfdD.vue @@ -229,7 +229,7 @@ export default { this.pd = data.pd // 参数map this.measuresList = data.measuresList // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.pd.APPLY_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0] this.pd.CONSTRUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1] this.pd.PRODUCTION_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[2] diff --git a/src/views/map/dialog/electricityCfdD.vue b/src/views/map/dialog/electricityCfdD.vue index f5d05b5..6321275 100644 --- a/src/views/map/dialog/electricityCfdD.vue +++ b/src/views/map/dialog/electricityCfdD.vue @@ -242,7 +242,7 @@ export default { this.listLoading = false this.pd = data.pd // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.measuresList = data.measuresList // 参数map this.gasList = data.gasList // 参数map this.otherProtectiveMeasures = this.validStr(this.pd.OTHER_PROTECTIVE_MEASURES.replace(/;_;/g, '')) ? this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;') : [] diff --git a/src/views/map/dialog/highworkCfdD.vue b/src/views/map/dialog/highworkCfdD.vue index 7a605ad..862d10a 100644 --- a/src/views/map/dialog/highworkCfdD.vue +++ b/src/views/map/dialog/highworkCfdD.vue @@ -229,7 +229,7 @@ export default { ).then((data) => { this.listLoading = false this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.pd = data.pd // 参数map this.measuresList = data.measuresList // 参数map this.pd.CONFIRM_USER_MEASURES = data.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0] diff --git a/src/views/map/dialog/hoistingCfdD.vue b/src/views/map/dialog/hoistingCfdD.vue index ff8736f..778e463 100644 --- a/src/views/map/dialog/hoistingCfdD.vue +++ b/src/views/map/dialog/hoistingCfdD.vue @@ -233,7 +233,7 @@ export default { this.listLoading = false this.pd = data.pd // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] this.measuresList = data.measuresList // 参数map this.pd.LEADER_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[0] this.pd.CONFIRM_USER_MEASURES = this.pd.OTHER_PROTECTIVE_MEASURES.split(';_;')[1] diff --git a/src/views/map/dialog/hotworkCfdD.vue b/src/views/map/dialog/hotworkCfdD.vue index 1effaf2..c08d815 100644 --- a/src/views/map/dialog/hotworkCfdD.vue +++ b/src/views/map/dialog/hotworkCfdD.vue @@ -282,7 +282,7 @@ export default { this.listLoading = false this.pd = data.pd // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] for (let i = 0; i < data.measuresList.length; i++) { // 将字符串转成数组 const PROTECTIVE_MEASURES = data.measuresList[i].PROTECTIVE_MEASURES.split('') diff --git a/src/views/map/dialog/hotworkFirst.vue b/src/views/map/dialog/hotworkFirst.vue index ebb34b7..09db926 100644 --- a/src/views/map/dialog/hotworkFirst.vue +++ b/src/views/map/dialog/hotworkFirst.vue @@ -282,7 +282,7 @@ export default { this.listLoading = false this.pd = data.pd // 参数map this.imgList = data.imgList - this.imgList1 = data.imgList1 + this.imgList1 = data.imgList1 || [] for (let i = 0; i < data.measuresList.length; i++) { // 将字符串转成数组 const PROTECTIVE_MEASURES = data.measuresList[i].PROTECTIVE_MEASURES.split('') diff --git a/src/views/map/dialog/index.vue b/src/views/map/dialog/index.vue index 855fd0e..dd96d1c 100644 --- a/src/views/map/dialog/index.vue +++ b/src/views/map/dialog/index.vue @@ -11,9 +11,10 @@ - + + @@ -27,26 +28,26 @@ - + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + @@ -56,8 +57,8 @@ - - + + @@ -74,6 +75,7 @@ import windspeedstationCmt from './weatherstationCmt.vue' import XfControl from './xfControl.vue' import XfPoint from './xfPoint.vue' import MkGateMachine from './mkGateMachine.vue' +import MkGateMachineCzks from './mkGateMachineCzks.vue' import MkGateMachineCfd from './mkGateMachineCfd.vue' import MkGateMachineCmt from './mkGateMachineCmt.vue' import Zhong_da_info from './zhong_da_info.vue' @@ -150,7 +152,8 @@ export default { peoplePositionYGS, outSourceInfo, outSourceVideoInfo, - MkGateMachineCmt + MkGateMachineCmt, + MkGateMachineCzks }, props: { title: { diff --git a/src/views/map/dialog/mkGateMachineCmt.vue b/src/views/map/dialog/mkGateMachineCmt.vue index fdce7a6..c2e6b54 100644 --- a/src/views/map/dialog/mkGateMachineCmt.vue +++ b/src/views/map/dialog/mkGateMachineCmt.vue @@ -54,7 +54,7 @@ {{ index + 1 }} - {{ item.doorName }} + {{ item.GATE_MACHINE_NAME }} {{ item.personName }} {{ item.cardNo }} {{ item.inAndOutType === '0' ? '出' : '进' }} diff --git a/src/views/map/dialog/mkGateMachineCzks.vue b/src/views/map/dialog/mkGateMachineCzks.vue new file mode 100644 index 0000000..d6674b0 --- /dev/null +++ b/src/views/map/dialog/mkGateMachineCzks.vue @@ -0,0 +1,142 @@ + + + + diff --git a/src/views/map/index.vue b/src/views/map/index.vue index 86b2360..39db345 100644 --- a/src/views/map/index.vue +++ b/src/views/map/index.vue @@ -73,6 +73,11 @@ :corp-info-id="CORP_INFO_ID" :area="area" :gangkou="gangkouActive"/> + @@ -118,6 +123,16 @@ :corp-info-id="CORP_INFO_ID" :area="area" :gangkou="gangkouActive"/> + +