Browse Source

task 45202 大屏调整

dev
庞东旭 1 day ago
parent
commit
f5ebea958b
8 changed files with 64 additions and 12 deletions
  1. +9
    -0
      src/api/asset/resource.js
  2. +1
    -1
      src/views/sanqing/comps/right/bottom/1/index.html
  3. +1
    -1
      src/views/sanqing/comps/right/bottom/1/index.js
  4. +3
    -3
      src/views/sanqing/index.html
  5. +19
    -1
      src/views/sanqing/index.js
  6. +27
    -2
      src/views/sanqing/main-gis/index.js
  7. +3
    -3
      src/views/sanqing/popover/index.html
  8. +1
    -1
      src/views/sanqing/popover/index.scss

+ 9
- 0
src/api/asset/resource.js View File

@@ -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,
})
}

+ 1
- 1
src/views/sanqing/comps/right/bottom/1/index.html View File

@@ -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
- 1
src/views/sanqing/comps/right/bottom/1/index.js View File

@@ -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: {


+ 3
- 3
src/views/sanqing/index.html View File

@@ -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>


+ 19
- 1
src/views/sanqing/index.js View File

@@ -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);
}) })
}, },


+ 27
- 2
src/views/sanqing/main-gis/index.js View File

@@ -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++) {


+ 3
- 3
src/views/sanqing/popover/index.html View File

@@ -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="">


+ 1
- 1
src/views/sanqing/popover/index.scss View File

@@ -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;


Loading…
Cancel
Save