update code
parent
f46b81f84a
commit
1e5c1728c0
|
@ -90,7 +90,7 @@ export default {
|
||||||
},
|
},
|
||||||
loadData() {
|
loadData() {
|
||||||
let postData = {
|
let postData = {
|
||||||
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD"),
|
attendanceTime:this.$dt(new Date()).format("YYYY-MM-DD"),
|
||||||
projectId: this.projectId,
|
projectId: this.projectId,
|
||||||
pageSize: this.size,
|
pageSize: this.size,
|
||||||
pageNum: this.index,
|
pageNum: this.index,
|
||||||
|
|
|
@ -79,13 +79,13 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$bus.$on("projectChange", debounce(res => {
|
this.$bus.$on("projectChange", debounce(res => {
|
||||||
this.prj = res;
|
this.prj = res;
|
||||||
this.prjs=this.$root.projects||this.prjs;
|
this.prjs=this.$root.projects||this.prjs;
|
||||||
this.dept=this.$root.dept||this.dept;
|
this.dept=this.$root.dept||this.dept;
|
||||||
this.loadData2();
|
this.loadData2();
|
||||||
}));
|
}));
|
||||||
if (this.$root.hasInitHeader) {
|
if (this.$root.hasInitHeader) {
|
||||||
this.initMe();
|
this.initMe();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -99,7 +99,9 @@ export default {
|
||||||
},
|
},
|
||||||
loadData2() {
|
loadData2() {
|
||||||
this.info=null;
|
this.info=null;
|
||||||
|
this.prj = this.$root.project;
|
||||||
|
this.prjs=this.$root.projects||this.prjs;
|
||||||
|
this.dept=this.$root.dept||this.dept;
|
||||||
this.$api.project.listPhotography(this.prj.id, this.dept.id || 0).then(d => {
|
this.$api.project.listPhotography(this.prj.id, this.dept.id || 0).then(d => {
|
||||||
let tmps = (d.data || []).map(it => {
|
let tmps = (d.data || []).map(it => {
|
||||||
it.images = this.$tryToJson(it.imageUrl);
|
it.images = this.$tryToJson(it.imageUrl);
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
今日出勤
|
今日出勤
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<img src="images/icon2001.png" v-show="laborPersonnelTotal > 0"
|
<img src="images/icon2001.png" v-show="laborPersonnelTotal > 0 "
|
||||||
style="position: absolute; cursor: pointer; right: 20px; top: 12px" @click="doShowAttendanceDetail" />
|
style="position: absolute; cursor: pointer; right: 20px; top: 12px" @click="doShowAttendanceDetail" />
|
||||||
<el-row :key="elDeptWorks">
|
<el-row :key="elDeptWorks">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
|
|
Loading…
Reference in New Issue