update code

prv
haha 2024-04-04 00:34:20 +08:00
parent 14e6ab35ab
commit ae99c7097b
8 changed files with 64 additions and 8 deletions

View File

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

View File

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

View File

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

41
src/pages/map.vue 100644
View File

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

View File

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

View File

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

View File

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

View File

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