diff --git a/src/components/header.vue b/src/components/header.vue index da60a08..a94d4f1 100644 --- a/src/components/header.vue +++ b/src/components/header.vue @@ -388,6 +388,7 @@ export default { localStorage.setItem("proType",item.value); this.proType=item.text; this.showSel3=false; + this.deptChange(); this.loadProject(); }, setScreenLiSel1(item) { diff --git a/src/pages/index.vue b/src/pages/index.vue index 5052bbb..386e24e 100644 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -41,7 +41,7 @@ - + @@ -248,6 +248,7 @@ export default { }, data() { return { + isLocalhost:location.href.indexOf("localhost:3000")>=0, elDeptWorks: 0, prj: {}, prjs: [], @@ -619,7 +620,7 @@ export default { let postData = { deptId: this.deptInfo?.id || 0, roleType: 0 - }; + }; this.$api.problemmodify.safetySummary(postData).then(d => { let tmps= (d || []).map(it => { return { @@ -694,7 +695,7 @@ export default { } return 0; }, - groupByProjectCategory(deptId) { + groupByProjectCategory(deptId) { this.$api.project.groupByProjectCategory(deptId, datas => { this.projectCategory = datas; this.prjPrcessTotal = this.getPrjCateCount(0);