update code

dev-login
haha 2023-08-13 22:11:18 +08:00
parent bfa69a7a72
commit 540f95db4e
2 changed files with 5 additions and 5 deletions

View File

@ -182,7 +182,7 @@ Vue.component("screen-header", {
this.data=(d?.data||[]).map(it=>{
it.text=it.projectName;
return it;
});
}).filter(it=>+it.progressVisible==0);
this.$bus.$emit("loadProjects",this.data);
if(this.data.length>0){
this.setScreenLiSel2(this.data[0],init);

View File

@ -49,8 +49,8 @@
<el-col :span="12">
<module-one-1-1 label="人员统计">
<div class="warning-info-title" style="padding-left: 20px;">
<div :class="infoNav == 0 ? 'active' : ''" @click="onWarningInfoNav(0, '在岗人数')">在岗人</div>
<div :class="infoNav == 1 ? 'active' : ''" @click="onWarningInfoNav(1, '今日出勤')">今日出</div>
<div :class="infoNav == 0 ? 'active' : ''" @click="onWarningInfoNav(0)"></div>
<div :class="infoNav == 1 ? 'active' : ''" @click="onWarningInfoNav(1)"></div>
</div>
<el-row>
<el-col :span="8">
@ -547,9 +547,9 @@ export default {
this.elKey++;
},
//
onWarningInfoNav(n, text) {
onWarningInfoNav(n) {
this.infoNav = n
this.staffText = text
this.staffText = n==0?'在岗人数':'今日出勤'
if (n == 0) {
this.surveyUrl = 'images/survey_icon_4.png'
this.laborPersonnelData = [