diff --git a/src/assets/scss/modules/management/list-main.scss b/src/assets/scss/modules/management/list-main.scss index 922bfaf71..c752e60c4 100644 --- a/src/assets/scss/modules/management/list-main.scss +++ b/src/assets/scss/modules/management/list-main.scss @@ -19,6 +19,9 @@ .item_width_1{ width: 260px; } + .item_width_3{ + width: 200px; + } .item_width_2{ width: 160px; } diff --git a/src/router/index.js b/src/router/index.js index ad6160919..a3c1e3f3d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -380,7 +380,7 @@ router.beforeEach((to, from, next) => { // fnAddDynamicMenuRoutes2(window.SITE_CONFIG["menuShujuList"]); http - .get("/gov/access/menu/nav?tableName=data_menu") + .get("gov/access/menu/navDigitalCommunity?tableName=data_menu") .then(({ data: res }) => { if (res.code == 10005 || res.code == 10006 || res.code == 10007) { // 10005 token为空 10006登陆超时 10007别处登录 @@ -406,7 +406,7 @@ router.beforeEach((to, from, next) => { }); http - .get("/gov/access/menu/nav") + .get("gov/access/menu/navDigitalCommunity") .then(({ data: res }) => { if (res.code == 10005 || res.code == 10006 || res.code == 10007) { // 10005 token为空 10006登陆超时 10007别处登录 diff --git a/src/views/components/rangeInput.vue b/src/views/components/rangeInput.vue index cfe5a44b5..5c726a67b 100644 --- a/src/views/components/rangeInput.vue +++ b/src/views/components/rangeInput.vue @@ -1,33 +1,31 @@ + + + + + + + + diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue index 578e0b10b..49d16f319 100644 --- a/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue +++ b/src/views/modules/base/epidemic/veroFocus/veroFocusAdd.vue @@ -128,6 +128,7 @@ + + + + + + + + + + + width="150"> + label="接种次数" + width="80"> + + @@ -323,6 +357,21 @@ import { mapGetters } from 'vuex' let loading // 加载动画 export default { data () { + let endDisabledDate = (time) => {//这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 + let nowData = Date.now() + + if (this.startDate) { + let startDate = new Date(this.startDate) + return time.getTime() > nowData || time.getTime() < startDate || time.getTime() === startDate + } else { + return time.getTime() > nowData + } + + } + let startDisabledDate = (time) => {//这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 + let nowData = Date.now() + return time.getTime() > nowData + } return { activeName: "first", @@ -331,10 +380,21 @@ export default { btnDisable: false, + startDate: '', + endDate: '', formDataSearch: { gridId: '', vaccineCount: undefined, - attentionType: 1 + attentionType: 1, + startDate: '', + endDate: '' + }, + + endPickerOptions: { + disabledDate: endDisabledDate + }, + startPickerOptions: { + disabledDate: startDisabledDate }, formData1: { @@ -374,6 +434,7 @@ export default { this.agencyId = user.agencyId //获取网格下拉框数据 await this.loadGrid() + // this.loadTable() }, methods: { @@ -384,7 +445,7 @@ export default { this.formData2.content = '' }, async initForm () { - this.tableData = [] + // this.loadTable() this.$refs['ref_form1'].resetFields(); this.$refs['ref_form2'].resetFields(); @@ -400,6 +461,20 @@ export default { async loadTable () { this.tableLoading = true + if (this.startDate) { + + let array = this.startDate.split('-') + this.formDataSearch.startDate = array[0] + array[1] + array[2] + } else { + this.formDataSearch.startDate = '' + } + if (this.endDate) { + let array = this.endDate.split('-') + this.formDataSearch.endDate = array[0] + array[1] + array[2] + } else { + this.formDataSearch.endDate = '' + } + const url = "/epmetuser/epidemicPrevention/user-list" // const url = "http://yapi.elinkservice.cn/mock/245/epmetuser/epidemicPrevention/page" let params = { @@ -670,10 +745,14 @@ export default { }, resetSearch () { + this.startDate = '' + this.endDate = '' this.formDataSearch = { gridId: '', vaccineCount: undefined, - attentionType: 1 + attentionType: 1, + startDate: '', + endDate: '' } }, @@ -782,6 +861,10 @@ export default { diff --git a/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue b/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue index 5dd83f001..603f42a0b 100644 --- a/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue +++ b/src/views/modules/base/epidemic/veroFocus/veroFocusList.vue @@ -756,14 +756,14 @@ export default { async deleteFocus (row) { const url = "/epmetuser/icEpidemicSpecialAttention/cancel-attention"; // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del" - let idCards = []; + let ids = []; this.selectionAll.forEach((element) => { - idCards.push(element.idCard); + ids.push(element.id); }); let params = { attentionType: 1, - idCards: idCards, + ids: ids, }; const { data, code, msg } = await requestPost(url, params); diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue index 8860180f7..c61ba5f5b 100644 --- a/src/views/modules/base/organization/organization.vue +++ b/src/views/modules/base/organization/organization.vue @@ -1,2236 +1,2477 @@ \ No newline at end of file diff --git a/src/views/modules/communityParty/article/drafts.vue b/src/views/modules/communityParty/article/drafts.vue index d134279b8..eb9eda4d3 100644 --- a/src/views/modules/communityParty/article/drafts.vue +++ b/src/views/modules/communityParty/article/drafts.vue @@ -25,7 +25,7 @@ > --> - + + + + + + {{ detailInfo.moveOutDate }} + + + + + - 其他 - + --> -
+
-
+ { this.loadingForm = false @@ -500,9 +542,9 @@ export default { async getAgencylist() { const url = '/gov/org/customeragency/rootagencygridtree' - + const { agencyId } = this.$store.state.user const params = { - agencyId: this.rootAgency.id + agencyId: agencyId } const { data, code, msg } = await requestPost(url, params) if (code === 0) { @@ -663,6 +705,10 @@ export default { setTimeout(() => { this.btnDisable = false }, 2000) + if (this.isMoveOut == 0) { + this.saveForm() + return + } this.$refs['ref_form'].validate((valid, messageObj) => { if (!valid) { // app.util.validateRule(messageObj) @@ -690,6 +736,7 @@ export default { let params = { id: this.detailInfo.id, confirmResult: this.confirmResult, + isMoveOut: this.isMoveOut, reason: this.reason } if (this.confirmResult == 1 && this.detailInfo.isInHome) { @@ -700,7 +747,8 @@ export default { buildName: this.dataForm.buildName, unitName: this.dataForm.unitName, homeName: this.dataForm.homeName, - xxdz: this.dataForm.address + xxdz: this.dataForm.address, + moveOutDate: this.dataForm.outOfTime } } @@ -715,12 +763,15 @@ export default { } }, async saveForm() { - const url = '/epmetuser/changeRelocation/moveOutHome' + const url = '/epmetuser/changeRelocation/moveOutHomeConfirm' let noData = new Date() noData = util.dateFormatter(noData, 'time') this.dataForm.transferTime = noData - - const { data, code, msg } = await requestPost(url, this.dataForm) + const _data = { + ...this.dataForm, + isMoveOut: this.isMoveOut + } + const { data, code, msg } = await requestPost(url, _data) if (code === 0) { // this.$message.success('调动成功') diff --git a/src/views/modules/visual/basicinfo/basicInfoMain.vue b/src/views/modules/visual/basicinfo/basicInfoMain.vue index 6f7b19380..c57aaef37 100644 --- a/src/views/modules/visual/basicinfo/basicInfoMain.vue +++ b/src/views/modules/visual/basicinfo/basicInfoMain.vue @@ -354,6 +354,7 @@ const vueGis = { const { data, code, msg } = await requestPost(url, params) this.infoLoading = false if (code === 0) { + this.listData = data // this.listData = this.listData1 this.listDatashow = [] @@ -365,6 +366,9 @@ const vueGis = { if (index % 2 === 0) {//偶数 itemArray.push(item) + if ((index + 1) === this.listData.length) { + this.listDatashow.push(itemArray) + } } else { itemArray.push(item) this.listDatashow.push(itemArray) @@ -782,6 +786,8 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 + } else { + this.zoom = 11 } }, diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue new file mode 100644 index 000000000..7ee8f5f85 --- /dev/null +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy 2.vue @@ -0,0 +1,2063 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue new file mode 100644 index 000000000..efc340ebf --- /dev/null +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex copy.vue @@ -0,0 +1,1987 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue new file mode 100644 index 000000000..049037cdb --- /dev/null +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex-baidu.vue @@ -0,0 +1,2071 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue index 194a4d761..35664c135 100644 --- a/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue +++ b/src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue @@ -373,6 +373,8 @@ import 'ol/ol.css' import { Map, View } from 'ol' import TileLayer from 'ol/layer/Tile.js'; +import ImageLayer from 'ol/layer/Image'; +import { Raster as RasterSource } from 'ol/source'; import XYZ from 'ol/source/XYZ.js'; import VectorLayer from 'ol/layer/Vector.js'; import VectorSource from 'ol/source/Vector.js'; @@ -489,6 +491,28 @@ var polygonStyleFunction = (function () { }; })() +//定义颜色转换方法 +let reverseFunc = function (pixelsTemp) { + //蓝色 + for (var i = 0; i < pixelsTemp.length; i += 4) { + var r = pixelsTemp[i]; + var g = pixelsTemp[i + 1]; + var b = pixelsTemp[i + 2]; + //运用图像学公式,设置灰度值 + var grey = r * 0.3 + g * 0.59 + b * 0.11; + //将rgb的值替换为灰度值 + pixelsTemp[i] = grey; + pixelsTemp[i + 1] = grey; + pixelsTemp[i + 2] = grey; + + //基于灰色,设置为蓝色,这几个数值是我自己试出来的,可以根据需求调整 + pixelsTemp[i] = 55 - pixelsTemp[i]; + pixelsTemp[i + 1] = 255 - pixelsTemp[i + 1]; + pixelsTemp[i + 2] = 305 - pixelsTemp[i + 2]; + } +}; + + const vueGis = { name: 'HomeMap', data () { @@ -1613,7 +1637,7 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 - }else{ + } else { this.zoom = 11 } @@ -1644,9 +1668,13 @@ const vueGis = { url: 'http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}', wrapX: true//x方向平铺,也可以选择false }), - zIndex: 20 + zIndex: 20, + crossOrigin: 'anonymous' }); + + + mapView = new View({ //中心点坐标 center: this.centerPoint, @@ -1676,6 +1704,8 @@ const vueGis = { }); map.removeInteraction(dblClickInteraction); + + }, //添加标注图层 addParentLayer () { diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index 21c95ff9e..d2f86e50c 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -136,7 +136,7 @@ var polygonStyleFunction = (function () { const vueGis = { name: "HomeMap", - data() { + data () { return { centerPoint: [], //中心点位置 zoom: 14, //缩放范围:区14 @@ -198,14 +198,14 @@ const vueGis = { isChangeCenter: true, //是否根据多边形改变数组 }; }, - async mounted() {}, + async mounted () { }, methods: { - showPosition() { + showPosition () { let array = [this.input_lat, this.input_lon]; map.getView().setCenter(array); }, //加载地图:地图基本信息,多边形区域信息,多边形icon - loadMap( + loadMap ( mapInfo, polygonArray, polIconUrlArray, @@ -257,7 +257,7 @@ const vueGis = { }, //刷新地图:地图信息,多边形数组,标注数组,是否根据多边形改变中心点 - async refreshMap(mapInfo, polygonArray, iconArrays, isChangeCenter) { + async refreshMap (mapInfo, polygonArray, iconArrays, isChangeCenter) { this.mapInfo = mapInfo; this.polygonArray = []; this.polygonArray = polygonArray; @@ -293,7 +293,7 @@ const vueGis = { }, //加载区域多边形 - loadPolygon() { + loadPolygon () { polygonSource.clear(); //清空多边形标注 // iconSource.clear() let featureData = []; //多边形数据数据 @@ -352,7 +352,7 @@ const vueGis = { }, //加载区域多边形的icon - loadPolIcon(feature) { + loadPolIcon (feature) { polIconSource.clear(); let polyIconFeatures = []; // console.log('feature-----', feature) @@ -390,7 +390,7 @@ const vueGis = { }, //加载icon图标 - loadIcon() { + loadIcon () { iconSource.clear(); //清空多边形标注 if (this.iconArrays && this.iconArrays.length > 0) { let iconFeatures = []; @@ -413,7 +413,7 @@ const vueGis = { // imgSize: [32, 32], // scale: 0.5, // src: oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex] || this.iconUrlArray[0] || this.iconUrlArray[0] - src: (oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex]) || (oneIcon.index &&this.iconUrlArray[oneIcon.index]) || this.iconUrlArray[0] + src: (oneIcon.urlIndex && this.iconUrlArray[oneIcon.urlIndex]) || (oneIcon.index && this.iconUrlArray[oneIcon.index]) || this.iconUrlArray[0] }), // text: createTextStyle(oneIcon) }); @@ -436,7 +436,7 @@ const vueGis = { }, //计算和中心点距离 - computedDistance(lon, lat, max) { + computedDistance (lon, lat, max) { let c1 = [2]; c1[0] = lon; c1[1] = lat; @@ -451,7 +451,7 @@ const vueGis = { }, //初始化地图 - initMap() { + initMap () { this.firstCentermap(); gaodeMapLayer = new TileLayer({ title: "地图", @@ -598,18 +598,20 @@ const vueGis = { }, //根据组织层级设置缩放级别 - setZoom(level) { - if (level === "district") { - this.zoom = 11; - } else if (level === "street") { - this.zoom = 12; - } else if (level === "community") { - this.zoom = 13; + setZoom (level) { + if (level === 'district') { + this.zoom = 12 + } else if (level === 'street') { + this.zoom = 13 + } else if (level === 'community') { + this.zoom = 14 + } else { + this.zoom = 11 } }, //初始化多边形标注图层 - initPolygonLayer() { + initPolygonLayer () { polygonSource = new VectorSource({ // features: (new GeoJSON()).readFeatures(geojsonObject) wrapX: false, @@ -655,14 +657,14 @@ const vueGis = { map.addLayer(polygonLayer) if (this.$route.path == '/main-shuju/visual-communityGovern-duoyuanfuwu-duoyuanfuwufenxi' || this.$route.path == '/main-shuju/visual-communityParty-gridParty' || this.$route.path == '/main-shuju/visual-communityParty-community') { // 2022.6.9 网格党建平面图 联建单位分析页面 点位点击以后会消失,屏蔽这段代码以后可以解决 - console.log('去掉默认点击') + console.log('去掉默认点击') } else { - map.addInteraction(select); + map.addInteraction(select); } }, //初始化多边形icon图层 - initPolIconLayer() { + initPolIconLayer () { polIconSource = new VectorSource({ //features: (new GeoJSON()).readFeatures(geojsonObject) wrapX: false, @@ -677,7 +679,7 @@ const vueGis = { }, //初始化icon图层 - initIconLayer() { + initIconLayer () { iconSource = new VectorSource({ //features: (new GeoJSON()).readFeatures(geojsonObject) wrapX: false, @@ -699,7 +701,7 @@ const vueGis = { }, //添加覆盖层 - addOverlay() { + addOverlay () { // 使用变量存储弹窗所需的 DOM 对象 var container = document.getElementById("popup"); var closer = document.getElementById("popup-closer"); @@ -737,7 +739,7 @@ const vueGis = { }, //注册地图点击事件 - addMapClick() { + addMapClick () { let _that = this; map.on("click", function (evt) { @@ -757,7 +759,7 @@ const vueGis = { }); }, - handleShowPopup(showData, coordinate, isShowMore) { + handleShowPopup (showData, coordinate, isShowMore) { if (isShowMore) { document.getElementById("popup-goMore").style.display = "block"; } else { @@ -773,19 +775,19 @@ const vueGis = { //把 overlay 显示到指定的 x,y坐标 }, // 关闭弹窗 - handleClosePopup() { + handleClosePopup () { this.overlay.setPosition(undefined); document.getElementById("popup-closer").blur(); return false; }, //取随机数 - getRndBetween(lowerLimit, upperLimit) { + getRndBetween (lowerLimit, upperLimit) { return Math.floor(Math.random() * (upperLimit - lowerLimit + 1)) + lowerLimit; }, //开启加载动画 - startLoading() { + startLoading () { loading = Loading.service({ lock: true, //是否锁定 text: "正在加载……", //加载中需要显示的文字 @@ -794,7 +796,7 @@ const vueGis = { }, //结束加载动画 - endLoading() { + endLoading () { //clearTimeout(timer); if (loading) { loading.close(); @@ -839,7 +841,7 @@ const vueGis = { }, }, computed: { - mapHeight() { + mapHeight () { return this.clientHeight - 120; }, diff --git a/src/views/modules/workSys/mapConfig.vue b/src/views/modules/workSys/mapConfig.vue index 967164693..9a1097cd7 100644 --- a/src/views/modules/workSys/mapConfig.vue +++ b/src/views/modules/workSys/mapConfig.vue @@ -622,7 +622,7 @@ const vueGis = { this.zoom = 13 } else if (agencyLevel === 'community') { this.zoom = 14 - }else{ + } else { this.zoom = 11 } diff --git a/src/views/modules/workSys/role/role.vue b/src/views/modules/workSys/role/role.vue new file mode 100644 index 000000000..f61225cde --- /dev/null +++ b/src/views/modules/workSys/role/role.vue @@ -0,0 +1,383 @@ + + + + + + diff --git a/src/views/modules/workSys/role/roleForm.vue b/src/views/modules/workSys/role/roleForm.vue new file mode 100644 index 000000000..c7b4f1855 --- /dev/null +++ b/src/views/modules/workSys/role/roleForm.vue @@ -0,0 +1,390 @@ + + + + + + + + + + +