update code

prv
haha 2024-01-26 22:44:47 +08:00
parent da461dec05
commit 3683005b57
3 changed files with 7 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<div :class="nav == 8 ? 'head-nav active' : 'head-nav'" @click="doNav(8)"></div>
<div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(2)"></div>
</div>
<el-table :data="tableData" class="mytable" height="650" style="width: 100%;background: transparent;" ref="fbsubordinateUnit">
<el-table v-loading="loading" :data="tableData" class="mytable" height="650" style="width: 100%;background: transparent;" ref="fbsubordinateUnit">
<el-table-column label="照片" align="center" prop="id">
<template slot-scope="{row}">
<el-image v-if="row.recentPhoto" :src="row.recentPhoto" :preview-src-list="[row.recentPhoto]" style="height:60px"/>
@ -49,6 +49,7 @@ export default {
data() {
return {
loading:false,
show: false,
tableData: [],
projectId:0,
@ -90,9 +91,12 @@ export default {
index:this.index,
id:this.nav
}
this.tableData=[];
this.loading=true;
this.$api.attendance.todayAttendance(postData).then(d=>{
this.total=d.total||0;
this.tableData=d.rows||[];
this.loading=false;
})
}
},

View File

@ -553,7 +553,7 @@ export default {
}
this.laborPersonnelTotal = 0;
this.laborPersonnelData = [{ text: "劳务人员", value: func(["2","3"]) }, { text: "监理人员", value: func(["8"]) }, { text: "总包人员", value: func(["1"]) }];
this.laborPersonnelData = [{ text: "劳务人员", value: func(["2","3","4","5"]) }, { text: "监理人员", value: func(["8"]) }, { text: "总包人员", value: func(["1","6"]) }];
this.laborPersonnelData.forEach(it=>{
this.laborPersonnelTotal += it.value;
})

View File

@ -16,7 +16,7 @@ const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.VUE_APP_BASE_API,
// 超时
timeout: 20000
timeout: 200000
})
// request拦截器