update code
parent
14e6ab35ab
commit
ae99c7097b
10
src/App.vue
10
src/App.vue
|
@ -4,8 +4,8 @@
|
|||
<background-video></background-video>
|
||||
<!--大屏内容-->
|
||||
<div class="screen-content-max">
|
||||
<screen-header :nav="1"></screen-header>
|
||||
<div>
|
||||
<screen-header :nav="1" v-if="!isMap"></screen-header>
|
||||
<div class="main-app">
|
||||
<router-view />
|
||||
</div>
|
||||
</div>
|
||||
|
@ -14,8 +14,14 @@
|
|||
<script>
|
||||
import './components/background_video'
|
||||
export default {
|
||||
data(){
|
||||
return {
|
||||
isMap:false
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
window.app=this;
|
||||
this.isMap=location.hash.indexOf("#/map")>=0;
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -238,7 +238,7 @@ const countCompletionRate = (data) => {
|
|||
it.percent = (((it.nodeId * 100.0) / it.id) * 1.0).toFixed(2);
|
||||
}
|
||||
return it;
|
||||
});
|
||||
}).sort((a,b)=>b.percent-a.percent);
|
||||
resolve(tmps);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -41,7 +41,8 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<module-one-2-1 class="center-image" label="集团项目区域分布">
|
||||
<map-index></map-index>
|
||||
<map-index v-if="1==2"></map-index>
|
||||
<iframe src="#/map" style="width:100%;height:100%;border:none"></iframe>
|
||||
</module-one-2-1>
|
||||
<el-row>
|
||||
<el-col :span="12" style="position: relative;">
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<template>
|
||||
<map-index></map-index>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mapIndex from './index/mapIndex.vue'
|
||||
export default {
|
||||
name: 'JhbigscreenMap',
|
||||
components: {
|
||||
mapIndex
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
beforeCreate(){
|
||||
document.body.classList.add("is-map");
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less">
|
||||
body{
|
||||
&.is-map{
|
||||
height:100%;
|
||||
.screen-content-max{
|
||||
height: 100%;
|
||||
}
|
||||
.main-app{
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -936,6 +936,7 @@ export default {
|
|||
this.$refs.mapModle.initImgs(obj?.images || []);
|
||||
}
|
||||
});
|
||||
this.photographyList=[];
|
||||
this.$api.project.selectLastPhotography(id).then(d => {
|
||||
this.photographyList = d.data || [];
|
||||
});
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<module-one-1-1 :label="label1" style="position: relative;">
|
||||
<img src="images/icon2001.png"
|
||||
style="position: absolute;cursor: pointer;right: 20px;top: 32px;z-index: 9;"
|
||||
@click="doStandardDlg">
|
||||
@click="doStandardDlg(null)">
|
||||
<enginChart ref="chart1" :height="300"></enginChart>
|
||||
</module-one-1-1>
|
||||
<module-one-2-1 label="项目标准化管理排名" style="position: relative;">
|
||||
|
@ -164,7 +164,7 @@ export default {
|
|||
};
|
||||
return obj
|
||||
},
|
||||
doStandardDlg(it){
|
||||
doStandardDlg(it){
|
||||
let obj={
|
||||
deptId: this.dept?.id || 0,
|
||||
projectId: this.project?.id || 0
|
||||
|
|
|
@ -351,7 +351,7 @@ export default {
|
|||
// 传达文件路由
|
||||
fileNav: 1,
|
||||
// 传达文件标题
|
||||
fileTitle: "传达文件(0)",
|
||||
fileTitle: "传达文件",
|
||||
// 传达文件列表
|
||||
fileList: [],
|
||||
infoNav: 'sxkj',
|
||||
|
@ -508,7 +508,8 @@ export default {
|
|||
getWorkFileList() {
|
||||
this.$api.workFile.getWorkFileList(this.fileNav,this.fileNav==3?this.dept.id:0).then(d => {
|
||||
this.fileList = d.rows;
|
||||
let _title = "传达文件(" + this.fileList.length + ")";
|
||||
//let _title = "传达文件(" + this.fileList.length + ")";
|
||||
let _title = "传达文件";
|
||||
this.fileTitle = _title;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -9,6 +9,12 @@ const routes = [
|
|||
name: 'index',
|
||||
meta:{nav:1,},
|
||||
component: () => import(/* webpackChunkName: "index" */ '../pages/index.vue')
|
||||
},
|
||||
{
|
||||
path: '/map',
|
||||
name: 'map',
|
||||
meta:{nav:100,},
|
||||
component: () => import(/* webpackChunkName: "map" */ '../pages/map.vue')
|
||||
},
|
||||
{
|
||||
path: '/detail',
|
||||
|
|
Loading…
Reference in New Issue