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