update code

dev
haha 2024-06-25 00:27:14 +08:00
parent f46b81f84a
commit 1e5c1728c0
3 changed files with 7 additions and 5 deletions

View File

@ -90,7 +90,7 @@ export default {
},
loadData() {
let postData = {
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD"),
attendanceTime:this.$dt(new Date()).format("YYYY-MM-DD"),
projectId: this.projectId,
pageSize: this.size,
pageNum: this.index,

View File

@ -79,13 +79,13 @@ export default {
},
mounted() {
this.$bus.$on("projectChange", debounce(res => {
this.$bus.$on("projectChange", debounce(res => {
this.prj = res;
this.prjs=this.$root.projects||this.prjs;
this.dept=this.$root.dept||this.dept;
this.loadData2();
}));
if (this.$root.hasInitHeader) {
if (this.$root.hasInitHeader) {
this.initMe();
}
},
@ -99,7 +99,9 @@ export default {
},
loadData2() {
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 => {
let tmps = (d.data || []).map(it => {
it.images = this.$tryToJson(it.imageUrl);

View File

@ -95,7 +95,7 @@
今日出勤
</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" />
<el-row :key="elDeptWorks">
<el-col :span="8">