| @@ -135,3 +135,12 @@ export function exportSortSummary (params) { | |||||
| params: params | params: params | ||||
| }); | }); | ||||
| } | } | ||||
| // 查询固定资产详细 | |||||
| export function attachmentQuery( params ) { | |||||
| return request({ | |||||
| url: '/api/system/attachment/query', | |||||
| method: 'get', | |||||
| params: params, | |||||
| }) | |||||
| } | |||||
| @@ -2,7 +2,7 @@ | |||||
| <div class="full"> | <div class="full"> | ||||
| <div class="buttom"> | <div class="buttom"> | ||||
| <Bar id="bar6" | <Bar id="bar6" | ||||
| :color="['#01d4f8', '#2194ff']" | |||||
| :color="['#a482fc', '#865BFC']" | |||||
| :data="data" | :data="data" | ||||
| unit="单位:亩" | unit="单位:亩" | ||||
| ></Bar> | ></Bar> | ||||
| @@ -1,5 +1,5 @@ | |||||
| import Pannel from '@/components/pannelNew/index.vue'; | import Pannel from '@/components/pannelNew/index.vue'; | ||||
| import Bar from '@/components/charts/bar-dimensional/index.vue'; | |||||
| import Bar from '@/components/charts/bar/index.vue'; | |||||
| export default { | export default { | ||||
| components: { | components: { | ||||
| @@ -2,15 +2,15 @@ | |||||
| <MainGis @getData="getData"></MainGis> | <MainGis @getData="getData"></MainGis> | ||||
| <Header title="三清一张图" callBack></Header> | <Header title="三清一张图" callBack></Header> | ||||
| <!-- 项目初始化 --> | <!-- 项目初始化 --> | ||||
| <div class="row"> | |||||
| <component :is="item.name" v-for="(item, index) in currentComp.buttom" :key="index" :data="item.data"></component> | |||||
| </div> | |||||
| <div class="left_side col space_between zIndextop"> | <div class="left_side col space_between zIndextop"> | ||||
| <component :is="item.name" v-for="(item, index) in currentComp.left" :key="index" :data="item.data" :countNum="item.name == 'Left31'?item.countNum:0"></component> | <component :is="item.name" v-for="(item, index) in currentComp.left" :key="index" :data="item.data" :countNum="item.name == 'Left31'?item.countNum:0"></component> | ||||
| </div> | </div> | ||||
| <div class="right_side col space_between zIndextop"> | <div class="right_side col space_between zIndextop"> | ||||
| <component :is="item.name" v-for="(item, index) in currentComp.right" :key="index" :data="item.data"></component> | <component :is="item.name" v-for="(item, index) in currentComp.right" :key="index" :data="item.data"></component> | ||||
| </div> | </div> | ||||
| <div class="row"> | |||||
| <component :is="item.name" v-for="(item, index) in currentComp.buttom" :key="index" :data="item.data"></component> | |||||
| </div> | |||||
| <Left></Left> | <Left></Left> | ||||
| <Right></Right> | <Right></Right> | ||||
| <Footer></Footer> | <Footer></Footer> | ||||
| @@ -20,6 +20,7 @@ import { comps } from './data.js' | |||||
| import { getStatistic } from "@/api/index"; | import { getStatistic } from "@/api/index"; | ||||
| import { getInfo } from "@/api/login"; | import { getInfo } from "@/api/login"; | ||||
| import {mapGetters} from "vuex"; | |||||
| export default { | export default { | ||||
| components: { | components: { | ||||
| @@ -43,16 +44,33 @@ export default { | |||||
| return { | return { | ||||
| comps, | comps, | ||||
| tab: '1', | tab: '1', | ||||
| allData: {} | |||||
| allData: {}, | |||||
| deptIdPage:100 | |||||
| }; | }; | ||||
| }, | }, | ||||
| watch: { | |||||
| // year: { | |||||
| // handler () { | |||||
| // this.getData(this.deptIdPage); | |||||
| // }, | |||||
| // immediate: true, // 立即执行 | |||||
| // }, | |||||
| // deptId: { | |||||
| // handler () { | |||||
| // this.getData(this.deptIdPage); | |||||
| // }, | |||||
| // immediate: true, // 立即执行 | |||||
| // } | |||||
| }, | |||||
| computed: { | computed: { | ||||
| ...mapGetters(['year', 'deptId']), | |||||
| currentComp: function () { | currentComp: function () { | ||||
| return this.comps[this.tab] | return this.comps[this.tab] | ||||
| } | } | ||||
| }, | }, | ||||
| created () { | created () { | ||||
| getInfo().then(res => { | getInfo().then(res => { | ||||
| this.deptIdPage = res.user.deptId; | |||||
| this.getData(res.user.deptId); | this.getData(res.user.deptId); | ||||
| }) | }) | ||||
| }, | }, | ||||
| @@ -5,7 +5,7 @@ import { | |||||
| } from 'ol/proj' | } from 'ol/proj' | ||||
| import { getPermanentListByDeptId, listPermanent } from "@/api/asset/permanent.js"; | import { getPermanentListByDeptId, listPermanent } from "@/api/asset/permanent.js"; | ||||
| import { getInfo } from "@/api/login"; | import { getInfo } from "@/api/login"; | ||||
| import { getResourceListByDeptId, listResource } from "@/api/asset/resource.js"; | |||||
| import { getResourceListByDeptId, listResource, attachmentQuery } from "@/api/asset/resource.js"; | |||||
| import Legend from '@/components/legend/index.vue'; | import Legend from '@/components/legend/index.vue'; | ||||
| import { attachmentList } from "@/api/common/uploadAttachment.js"; | import { attachmentList } from "@/api/common/uploadAttachment.js"; | ||||
| import { treeselect, getDept, listDeptExcludeChild } from "@/api/system/dept"; | import { treeselect, getDept, listDeptExcludeChild } from "@/api/system/dept"; | ||||
| @@ -98,6 +98,22 @@ export default { | |||||
| showImg:false, | showImg:false, | ||||
| }; | }; | ||||
| }, | }, | ||||
| watch: { | |||||
| 'queryParams.deptId': { | |||||
| handler: function () { | |||||
| this.commitDept(this.queryParams.deptId); | |||||
| }, | |||||
| immediate: true, // 立即执行 | |||||
| }, | |||||
| deptLength: { | |||||
| handler: function () { | |||||
| //console.log(this.deptLength); | |||||
| this.commitDeptLength(this.deptLength); | |||||
| }, | |||||
| immediate: true, // 立即执行 | |||||
| } | |||||
| }, | |||||
| computed: { | computed: { | ||||
| }, | }, | ||||
| created () { | created () { | ||||
| @@ -159,6 +175,15 @@ export default { | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| commitDept (deptId) { | |||||
| this.$store.commit('SET_DEPTID', deptId); | |||||
| }, | |||||
| commitDeptLength (length) { | |||||
| this.$store.commit('SET_DEPTIDLENGTH', length); | |||||
| }, | |||||
| commitYear (year) { | |||||
| this.$store.commit('SET_YEAR', year); | |||||
| }, | |||||
| // 获取村边界的图层名称 | // 获取村边界的图层名称 | ||||
| getVillageBorderLayerName () { | getVillageBorderLayerName () { | ||||
| getConfigKey("geoserver.layer.villageBorder").then(response => { | getConfigKey("geoserver.layer.villageBorder").then(response => { | ||||
| @@ -394,7 +419,7 @@ export default { | |||||
| tableName: 't_asset_three', | tableName: 't_asset_three', | ||||
| bizPath: 'asset', | bizPath: 'asset', | ||||
| }; | }; | ||||
| attachmentList(parmasData).then((res) => { | |||||
| attachmentQuery(parmasData).then((res) => { | |||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| let UattachmentList = res.rows; | let UattachmentList = res.rows; | ||||
| for (let i = 0; i < UattachmentList.length; i++) { | for (let i = 0; i < UattachmentList.length; i++) { | ||||
| @@ -1,5 +1,5 @@ | |||||
| <div class="popover_main"> | <div class="popover_main"> | ||||
| <h1><i></i>B镇详情<span @click="closePopover">×</span></h1> | |||||
| <h1><i></i>{{data.zcmc}}<span @click="closePopover">×</span></h1> | |||||
| <div> | <div> | ||||
| <p>资产编码</p> | <p>资产编码</p> | ||||
| <p>{{data.zcdm}}</p> | <p>{{data.zcdm}}</p> | ||||
| @@ -74,11 +74,11 @@ | |||||
| </div> | </div> | ||||
| <div> | <div> | ||||
| <p>备注</p> | <p>备注</p> | ||||
| <p>{{data.bz}}</p> | |||||
| <p style="width: 75%;">{{data.bz}}</p> | |||||
| </div> | </div> | ||||
| <div style="justify-content: left"> | <div style="justify-content: left"> | ||||
| <p>附件</p> | <p>附件</p> | ||||
| <p> | |||||
| <p style="width: 75%;"> | |||||
| <block v-for="(item,index) in data.fileList"> | <block v-for="(item,index) in data.fileList"> | ||||
| <a :href="item.urlApi" v-if="item.type != 'image'"> | <a :href="item.urlApi" v-if="item.type != 'image'"> | ||||
| <img :src="item.url" style="width: 3vw;height: 3vw;margin-right: 0.5vw;" alt=""> | <img :src="item.url" style="width: 3vw;height: 3vw;margin-right: 0.5vw;" alt=""> | ||||
| @@ -31,7 +31,7 @@ | |||||
| } | } | ||||
| div{ | div{ | ||||
| display: flex; | display: flex; | ||||
| justify-content: space-between; | |||||
| //justify-content: space-between; | |||||
| p{ | p{ | ||||
| width: 25%; | width: 25%; | ||||
| padding: 10px 25px; | padding: 10px 25px; | ||||