update code

prv
haha 2024-04-06 21:18:13 +08:00
parent a05ff30e29
commit 33cb352dc2
2 changed files with 5 additions and 3 deletions

View File

@ -388,6 +388,7 @@ export default {
localStorage.setItem("proType",item.value); localStorage.setItem("proType",item.value);
this.proType=item.text; this.proType=item.text;
this.showSel3=false; this.showSel3=false;
this.deptChange();
this.loadProject(); this.loadProject();
}, },
setScreenLiSel1(item) { setScreenLiSel1(item) {

View File

@ -41,7 +41,7 @@
</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="集团项目区域分布">
<iframe src="#/map" style="width:100%;height:100%;border:none" v-if="1==2"></iframe> <iframe src="#/map" style="width:100%;height:100%;border:none" v-if="!isLocalhost"></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;">
@ -248,6 +248,7 @@ export default {
}, },
data() { data() {
return { return {
isLocalhost:location.href.indexOf("localhost:3000")>=0,
elDeptWorks: 0, elDeptWorks: 0,
prj: {}, prj: {},
prjs: [], prjs: [],
@ -619,7 +620,7 @@ export default {
let postData = { let postData = {
deptId: this.deptInfo?.id || 0, deptId: this.deptInfo?.id || 0,
roleType: 0 roleType: 0
}; };
this.$api.problemmodify.safetySummary(postData).then(d => { this.$api.problemmodify.safetySummary(postData).then(d => {
let tmps= (d || []).map(it => { let tmps= (d || []).map(it => {
return { return {
@ -694,7 +695,7 @@ export default {
} }
return 0; return 0;
}, },
groupByProjectCategory(deptId) { groupByProjectCategory(deptId) {
this.$api.project.groupByProjectCategory(deptId, datas => { this.$api.project.groupByProjectCategory(deptId, datas => {
this.projectCategory = datas; this.projectCategory = datas;
this.prjPrcessTotal = this.getPrjCateCount(0); this.prjPrcessTotal = this.getPrjCateCount(0);