From 69c66c667afbd0a56808049c7fe61c841934a993 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Wed, 17 Jan 2024 16:51:54 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=97=A8=E5=8F=A3=E9=97=A8=E7=A6=81?= =?UTF-8?q?=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mkmj/area/components/edit.vue | 175 ++++++++++++ src/views/mkmj/area/components/editGate.vue | 198 +++++++++++++ src/views/mkmj/area/components/listGate.vue | 253 +++++++++++++++++ src/views/mkmj/area/components/listOne.vue | 272 ++++++++++++++++++ src/views/mkmj/area/components/listThree.vue | 270 ++++++++++++++++++ src/views/mkmj/area/components/listTwo.vue | 280 +++++++++++++++++++ src/views/mkmj/area/index.vue | 47 ++++ 7 files changed, 1495 insertions(+) create mode 100644 src/views/mkmj/area/components/edit.vue create mode 100644 src/views/mkmj/area/components/editGate.vue create mode 100644 src/views/mkmj/area/components/listGate.vue create mode 100644 src/views/mkmj/area/components/listOne.vue create mode 100644 src/views/mkmj/area/components/listThree.vue create mode 100644 src/views/mkmj/area/components/listTwo.vue create mode 100644 src/views/mkmj/area/index.vue diff --git a/src/views/mkmj/area/components/edit.vue b/src/views/mkmj/area/components/edit.vue new file mode 100644 index 0000000..67d5264 --- /dev/null +++ b/src/views/mkmj/area/components/edit.vue @@ -0,0 +1,175 @@ + + + + + diff --git a/src/views/mkmj/area/components/editGate.vue b/src/views/mkmj/area/components/editGate.vue new file mode 100644 index 0000000..c1ebfa6 --- /dev/null +++ b/src/views/mkmj/area/components/editGate.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/views/mkmj/area/components/listGate.vue b/src/views/mkmj/area/components/listGate.vue new file mode 100644 index 0000000..72bacfe --- /dev/null +++ b/src/views/mkmj/area/components/listGate.vue @@ -0,0 +1,253 @@ + + + + + diff --git a/src/views/mkmj/area/components/listOne.vue b/src/views/mkmj/area/components/listOne.vue new file mode 100644 index 0000000..0432113 --- /dev/null +++ b/src/views/mkmj/area/components/listOne.vue @@ -0,0 +1,272 @@ + + + + + diff --git a/src/views/mkmj/area/components/listThree.vue b/src/views/mkmj/area/components/listThree.vue new file mode 100644 index 0000000..3edb039 --- /dev/null +++ b/src/views/mkmj/area/components/listThree.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/src/views/mkmj/area/components/listTwo.vue b/src/views/mkmj/area/components/listTwo.vue new file mode 100644 index 0000000..2d7868c --- /dev/null +++ b/src/views/mkmj/area/components/listTwo.vue @@ -0,0 +1,280 @@ + + + + + diff --git a/src/views/mkmj/area/index.vue b/src/views/mkmj/area/index.vue new file mode 100644 index 0000000..176cc99 --- /dev/null +++ b/src/views/mkmj/area/index.vue @@ -0,0 +1,47 @@ + + + + + + From f60cbeb34ab91cf57d873d5fd796f3f76c880f08 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Thu, 18 Jan 2024 18:08:29 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E8=B4=A3=E4=BB=BB=E7=8A=B6=E4=BA=BA?= =?UTF-8?q?=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/security_commitment/promise_book/components/list.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/security_commitment/promise_book/components/list.vue b/src/views/security_commitment/promise_book/components/list.vue index 97b0068..1a04eb9 100644 --- a/src/views/security_commitment/promise_book/components/list.vue +++ b/src/views/security_commitment/promise_book/components/list.vue @@ -76,7 +76,8 @@ From 54ab694f2f74b7b20299425f1c10e4cd243b0eb2 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Tue, 23 Jan 2024 14:24:59 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E7=AB=AF=E9=97=A8?= =?UTF-8?q?=E5=8F=A3=E9=97=A8=E7=A6=81=E5=BC=80=E5=8F=91=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=B9=B6=E4=B8=94=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=97=A8=E5=8F=A3=E9=97=A8=E7=A6=81=E5=8D=A1=E5=8F=B7?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/corpInfo/user/components/edit.vue | 4 + src/views/mkmj/area/components/listGate.vue | 8 +- src/views/mkmj/area/components/listLog.vue | 198 +++++++++++++++++++ src/views/mkmj/area/components/listOne.vue | 15 +- src/views/mkmj/area/components/listThree.vue | 15 +- src/views/mkmj/area/components/listTwo.vue | 15 +- src/views/mkmj/area/index.vue | 5 +- 7 files changed, 240 insertions(+), 20 deletions(-) create mode 100644 src/views/mkmj/area/components/listLog.vue diff --git a/src/views/corpInfo/user/components/edit.vue b/src/views/corpInfo/user/components/edit.vue index 51862ca..ffe26cf 100644 --- a/src/views/corpInfo/user/components/edit.vue +++ b/src/views/corpInfo/user/components/edit.vue @@ -66,6 +66,9 @@ + + + @@ -818,6 +821,7 @@ export default { IS_HAZARDCONFIRMER: 0, INFORPOST: '', CARDNO: '', + MKMJCARD: '', INFORTITLE: '', INFORTITLEValue: '', infortitleType: 'select', diff --git a/src/views/mkmj/area/components/listGate.vue b/src/views/mkmj/area/components/listGate.vue index 72bacfe..7b7974a 100644 --- a/src/views/mkmj/area/components/listGate.vue +++ b/src/views/mkmj/area/components/listGate.vue @@ -208,16 +208,16 @@ export default { }, hasButton: function() { - var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel' + var keys = 'mkmjArea:add,mkmjArea:del,mkmjArea:edit,toExcel' requestFN( '/head/hasButton', { keys: keys } ).then((data) => { - this.add = data.listmanagerfhadminadd // 新增权限 - this.del = data.listmanagerfhadmindel // 删除权限 - this.edit = data.listmanagerfhadminedit // 修改权限 + this.add = data.mkmjAreafhadminadd // 新增权限 + this.del = data.mkmjAreafhadmindel // 删除权限 + this.edit = data.mkmjAreafhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/mkmj/area/components/listLog.vue b/src/views/mkmj/area/components/listLog.vue new file mode 100644 index 0000000..738db64 --- /dev/null +++ b/src/views/mkmj/area/components/listLog.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/src/views/mkmj/area/components/listOne.vue b/src/views/mkmj/area/components/listOne.vue index 0432113..fbae9af 100644 --- a/src/views/mkmj/area/components/listOne.vue +++ b/src/views/mkmj/area/components/listOne.vue @@ -55,7 +55,7 @@ type="warning" icon="el-icon-circle-close" size="mini" - @click="handleClose(row.FIRE_REGION_ID,row.FIRE_REGION_NAME)">进出记录 + @click="handleClose(row)">进出记录 { - this.add = data.listmanagerfhadminadd // 新增权限 - this.del = data.listmanagerfhadmindel // 删除权限 - this.edit = data.listmanagerfhadminedit // 修改权限 + this.add = data.mkmjAreafhadminadd // 新增权限 + this.del = data.mkmjAreafhadmindel // 删除权限 + this.edit = data.mkmjAreafhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/mkmj/area/components/listThree.vue b/src/views/mkmj/area/components/listThree.vue index 3edb039..e593114 100644 --- a/src/views/mkmj/area/components/listThree.vue +++ b/src/views/mkmj/area/components/listThree.vue @@ -49,7 +49,7 @@ type="warning" icon="el-icon-circle-close" size="mini" - @click="handleClose(row.FIRE_REGION_ID,row.FIRE_REGION_NAME)">进出记录 + @click="handleClose(row)">进出记录 { - this.add = data.listmanagerfhadminadd // 新增权限 - this.del = data.listmanagerfhadmindel // 删除权限 - this.edit = data.listmanagerfhadminedit // 修改权限 + this.add = data.mkmjAreafhadminadd // 新增权限 + this.del = data.mkmjAreafhadmindel // 删除权限 + this.edit = data.mkmjAreafhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/mkmj/area/components/listTwo.vue b/src/views/mkmj/area/components/listTwo.vue index 2d7868c..f5f5510 100644 --- a/src/views/mkmj/area/components/listTwo.vue +++ b/src/views/mkmj/area/components/listTwo.vue @@ -55,7 +55,7 @@ type="warning" icon="el-icon-circle-close" size="mini" - @click="handleClose(row.FIRE_REGION_ID,row.FIRE_REGION_NAME)">进出记录 + @click="handleClose(row)">进出记录 { - this.add = data.listmanagerfhadminadd // 新增权限 - this.del = data.listmanagerfhadmindel // 删除权限 - this.edit = data.listmanagerfhadminedit // 修改权限 + this.add = data.mkmjAreafhadminadd // 新增权限 + this.del = data.mkmjAreafhadmindel // 删除权限 + this.edit = data.mkmjAreafhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/mkmj/area/index.vue b/src/views/mkmj/area/index.vue index 176cc99..4f16102 100644 --- a/src/views/mkmj/area/index.vue +++ b/src/views/mkmj/area/index.vue @@ -7,6 +7,7 @@ + @@ -17,6 +18,7 @@ import ListThree from './components/listThree' import ListGate from './components/listGate' import Edit from './components/edit' import EditGate from './components/editGate' +import ListLog from './components/listLog' export default { components: { @@ -25,7 +27,8 @@ export default { ListTwo: ListTwo, ListThree: ListThree, ListGate: ListGate, - EditGate: EditGate + EditGate: EditGate, + ListLog: ListLog }, data() { return { From bd6bd0a8a4de1fdb2957bfc46ef8f43362ca63b6 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Tue, 23 Jan 2024 18:57:28 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E9=97=A8=E5=8F=A3=E9=97=A8=E7=A6=81?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=91=84=E5=83=8F=E5=A4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mkmj/area/components/editGate.vue | 15 + src/views/mkmj/area/components/listGate.vue | 151 ++++- src/views/mkmj/area/components/videoList.vue | 579 +++++++++++++++++++ src/views/mkmj/area/index.vue | 3 + 4 files changed, 743 insertions(+), 5 deletions(-) create mode 100644 src/views/mkmj/area/components/videoList.vue diff --git a/src/views/mkmj/area/components/editGate.vue b/src/views/mkmj/area/components/editGate.vue index c1ebfa6..188b7ea 100644 --- a/src/views/mkmj/area/components/editGate.vue +++ b/src/views/mkmj/area/components/editGate.vue @@ -19,6 +19,15 @@ + + + + + + + + + @@ -87,6 +96,7 @@ export default { GATE_NAME: '', GATE_NUMBER: '', GATE_TYPE: '', + GATE_CATEGORY: '', GATE_MODEL: '', GATE_POSITION: '', IS_ADJACENT: '', @@ -99,6 +109,7 @@ export default { rules: { GATE_NAME: [{ required: true, message: '闸机名称不为空', trigger: 'blur' }], GATE_TYPE: [{ required: true, message: '闸机类型不为空', trigger: 'blur' }], + GATE_CATEGORY: [{ required: true, message: '闸机类别不为空', trigger: 'blur' }], IS_ADJACENT: [{ required: true, message: '是否相邻区域不为空', trigger: 'blur' }], ADJACENT_AREA_ID: [{ required: true, message: '相邻区域不为空', trigger: 'blur' }] }, @@ -111,6 +122,10 @@ export default { }, multipleSelection: [], accidentList: [], + categoryList: [ + { ID: '1', NAME: '人员' }, + { ID: '2', NAME: '车辆' } + ], leaveList: [ { ID: '1', NAME: '入' }, { ID: '2', NAME: '出' } diff --git a/src/views/mkmj/area/components/listGate.vue b/src/views/mkmj/area/components/listGate.vue index 7b7974a..6d0e5d3 100644 --- a/src/views/mkmj/area/components/listGate.vue +++ b/src/views/mkmj/area/components/listGate.vue @@ -34,15 +34,28 @@ + + + + + + + @@ -85,14 +113,23 @@ import { requestFN } from '@/utils/request' import waves from '@/directive/waves' // waves directive import SelectTree from '@/components/SelectTree' +import TiandiMap from '../../../../components/TianMap/TiandiMap' export default { - components: { Pagination, SelectTree }, + components: { Pagination, SelectTree, TiandiMap }, directives: { waves }, data() { return { + map: null, + marker: null, + BMap: '', + clientHeight: 500, + inputLocation: '', + msg: 'add', + config: config, + dialogFormMap: false, AREA_ID: '', AREA_LEAVE: '', addBtnType: true, @@ -104,6 +141,11 @@ export default { page: 1, limit: 20 }, + form: { + AREA_GATE_ID: '', + LATITUDE: '', + LONGITUDE: '' + }, ls: [], dates: [], total: 0, @@ -131,6 +173,67 @@ export default { this.hasButton() }, methods: { + /** + * 初始化天地图对象 + */ + initTDT() { + return new Promise((resolve, reject) => { + if (window.T) { + console.log('天地图初始化成功...') + resolve(window.T) + reject('error') + } + }).then(T => { + window.T = T + }) + }, + /** + * 初始化地图 + * @param {*} lng 经度 + * @param {*} lat 纬度 + * @param {*} zoom 缩放比例(1~18) + */ + initMap(lng, lat, zoom) { + this.initTDT().then((T) => { + const imageURL = 'http://t0.tianditu.gov.cn/img_w/wmts?' + 'SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles' + '&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=e8a16137fd226a62a23cc7ba5c9c78ce' + // 创建自定义图层对象 + this.lay = new window.T.TileLayer(imageURL, { minZoom: 1, maxZoom: 18 }) + // 初始化地图对象 + this.map = new window.T.Map('map') + this.initCenter(lng, lat, zoom) + }) + }, + initCenter(lng, lat, zoom) { + // 设置显示地图的中心点和级别 + if (!this.form.LONGITUDE && !this.form.LATITUDE) { + this.map.centerAndZoom(new window.T.LngLat(119.58, 39.94), zoom) + this.marker && this.map.removeOverLay(this.marker) + } else { + this.map.centerAndZoom(new window.T.LngLat(lng, lat), zoom) + this.marker && this.map.removeOverLay(this.marker) + this.form.LONGITUDE = lng + this.form.LATITUDE = lat + this.marker = new window.T.Marker(new window.T.LngLat(lng, lat)) + // 向地图上添加标注 + this.map.addOverLay(this.marker) + } + // 创建卫星和路网的混合视图 + this.map.setMapType(window.TMAP_HYBRID_MAP) + // 允许鼠标滚轮缩放地图 + this.map.enableScrollWheelZoom() + // 允许鼠标移动地图 + this.map.enableInertia() + // 向地图上添加标注 + this.map.addEventListener('click', this.MapClick) + }, + MapClick(event) { + this.marker && this.map.removeOverLay(this.marker) + this.form.LONGITUDE = event.lnglat.getLng() + this.form.LATITUDE = event.lnglat.getLat() + this.marker = new window.T.Marker(new window.T.LngLat(event.lnglat.getLng(), event.lnglat.getLat())) + // 向地图上添加标注 + this.map.addOverLay(this.marker) + }, filterNode(value, data) { if (!value) return true return data.name.indexOf(value) !== -1 @@ -145,7 +248,12 @@ export default { handleAdd() { this.$parent.activeName = 'EditGate' this.$parent.AREA_ID = this.AREA_ID - this.$parent.AREA_GATE_ID == '' + this.$parent.AREA_GATE_ID = '' + }, + handleVideo(row) { + this.$parent.activeName = 'VideoList' + this.$parent.AREA_GATE_ID = row.AREA_GATE_ID + console.log(this.$parent.AREA_GATE_ID) }, // 搜索 getQuery() { @@ -179,6 +287,18 @@ export default { this.$parent.AREA_GATE_ID = AREA_GATE_ID this.$parent.activeName = 'EditGate' }, + handleMap(row) { + this.dialogFormMap = true + this.form = { + AREA_GATE_ID: row.AREA_GATE_ID, + LATITUDE: row.LATITUDE, + LONGITUDE: row.LONGITUDE + } + this.$nextTick(() => { + if (!this.map) this.initMap(this.form.LONGITUDE, this.form.LATITUDE, 16) + else this.initCenter(this.form.LONGITUDE, this.form.LATITUDE, 16) + }) + }, handleDelete(row) { this.$confirm('确定要删除[' + row.GATE_NAME + ']吗?', { confirmButtonText: '确定', @@ -206,7 +326,24 @@ export default { }).catch(() => { }) }, - + setPosition() { + this.dialogFormMap = false + this.listLoading = true + requestFN( + '/mkmjAreaGate/savePosition', + { + LATITUDE: this.form.LATITUDE, + LONGITUDE: this.form.LONGITUDE, + AREA_GATE_ID: this.form.AREA_GATE_ID + } + ).then((data) => { + this.listLoading = false + this.dialogForm = false + this.getList() + }).catch((e) => { + this.listLoading = false + }) + }, hasButton: function() { var keys = 'mkmjArea:add,mkmjArea:del,mkmjArea:edit,toExcel' requestFN( @@ -238,6 +375,10 @@ export default { diff --git a/src/views/mkmj/area/index.vue b/src/views/mkmj/area/index.vue index 4f16102..b5472f0 100644 --- a/src/views/mkmj/area/index.vue +++ b/src/views/mkmj/area/index.vue @@ -8,6 +8,7 @@ + @@ -19,9 +20,11 @@ import ListGate from './components/listGate' import Edit from './components/edit' import EditGate from './components/editGate' import ListLog from './components/listLog' +import VideoList from './components/videoList' export default { components: { + VideoList: VideoList, List: List, Edit: Edit, ListTwo: ListTwo, From 374c0bed6cf21f6e3e0a433a2a5b78b5b6af0eb6 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Wed, 24 Jan 2024 15:43:48 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E7=9B=B8=E9=82=BB=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mkmj/area/components/editGate.vue | 22 ++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/views/mkmj/area/components/editGate.vue b/src/views/mkmj/area/components/editGate.vue index 188b7ea..b18645a 100644 --- a/src/views/mkmj/area/components/editGate.vue +++ b/src/views/mkmj/area/components/editGate.vue @@ -62,7 +62,7 @@ - + @@ -120,6 +120,7 @@ export default { page: 1, limit: 20 }, + AreaList: [], multipleSelection: [], accidentList: [], categoryList: [ @@ -145,8 +146,27 @@ export default { if (this.AREA_GATE_ID) { this.getDataByID() } + this.getList() }, methods: { + // 获取列表 + getList() { + this.AreaList = [] + requestFN( + '/mkmjArea/list?showCount=100¤tPage=1', + { + AREA_PARENT_ID: this.form.AREA_PARENT_ID + } + ).then((data) => { + for (var i = 0; i < data.varList.length; i++) { + var item = data.varList[i] + if (item.AREA_ID != this.form.AREA_ID) { + this.AreaList.push(item) + } + } + }).catch((e) => { + }) + }, confirm() { this.$refs.form.validate(valid => { if (valid) {