update code
parent
7d231e5500
commit
7ff2c8421b
|
@ -611,13 +611,17 @@ export default {
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
qualityNavClick(n) {
|
qualityNavClick(n) {
|
||||||
|
let dt1=this.$dt((+new Date())-30*24*3600*1000);
|
||||||
|
let dt2=this.$dt(new Date());
|
||||||
this.qualityNav = n;
|
this.qualityNav = n;
|
||||||
if (n == 0) {
|
if (n == 0) {
|
||||||
this.qualityNavTitle = "安全隐患总数";
|
this.qualityNavTitle = "安全隐患总数";
|
||||||
let postData = {
|
let postData = {
|
||||||
deptId: this.deptInfo?.id || 0,
|
deptId: this.deptInfo?.id || 0,
|
||||||
roleType: 0
|
roleType: 0,
|
||||||
};
|
startDate:this.$dt(dt1).format("YYYY-MM-DD"),
|
||||||
|
endDate:this.$dt(dt2).format("YYYY-MM-DD"),
|
||||||
|
};
|
||||||
this.$api.problemmodify.safetySummary(postData).then(d => {
|
this.$api.problemmodify.safetySummary(postData).then(d => {
|
||||||
let tmps= (d || []).map(it => {
|
let tmps= (d || []).map(it => {
|
||||||
return {
|
return {
|
||||||
|
@ -639,7 +643,9 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
let postData = {
|
let postData = {
|
||||||
deptId: this.deptInfo?.id || 0,
|
deptId: this.deptInfo?.id || 0,
|
||||||
roleType: 0
|
roleType: 0,
|
||||||
|
startDate:this.$dt(dt1).format("YYYY-MM-DD"),
|
||||||
|
endDate:this.$dt(dt2).format("YYYY-MM-DD"),
|
||||||
};
|
};
|
||||||
this.qualityNavTitle = "质量隐患总数";
|
this.qualityNavTitle = "质量隐患总数";
|
||||||
this.$api.problemmodify.qualitySummary(postData).then(d => {
|
this.$api.problemmodify.qualitySummary(postData).then(d => {
|
||||||
|
|
|
@ -120,13 +120,18 @@
|
||||||
<module-one-1-1 label="项目全景">
|
<module-one-1-1 label="项目全景">
|
||||||
<div class="photography-list">
|
<div class="photography-list">
|
||||||
<template v-if="photographyList && photographyList.length > 0">
|
<template v-if="photographyList && photographyList.length > 0">
|
||||||
<video controls class="photography-video">
|
<el-carousel height="100%" :autoplay="false">
|
||||||
<source :src="photographyList[0].videoUrl" type="video/mp4" />
|
<el-carousel-item v-for="(item, idx) in photographyList" :key="idx">
|
||||||
您的浏览器不支持Video标签。
|
<video controls class="photography-video">
|
||||||
</video>
|
<source :src="item.videoUrl" type="video/mp4" :key="item.videoUrl"/>
|
||||||
<div class="photography-list-title">
|
您的浏览器不支持Video标签。
|
||||||
{{ photographyList[0].videoDate }}
|
</video>
|
||||||
</div>
|
<div class="photography-list-title">
|
||||||
|
{{ item.videoDate }}
|
||||||
|
</div>
|
||||||
|
</el-carousel-item>
|
||||||
|
</el-carousel>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="photography-list-nodata">
|
<div class="photography-list-nodata">
|
||||||
|
@ -1249,7 +1254,7 @@ export default {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let data = {
|
let data = {
|
||||||
id:this.infoNav,
|
id: this.infoNav,
|
||||||
subDeptId: this.dept.id || 0,
|
subDeptId: this.dept.id || 0,
|
||||||
projectId: id || 0,
|
projectId: id || 0,
|
||||||
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD"),
|
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD"),
|
||||||
|
@ -1423,7 +1428,7 @@ export default {
|
||||||
this.infoNav = n;
|
this.infoNav = n;
|
||||||
this.staffText = text;
|
this.staffText = text;
|
||||||
this.loadAttendanceData();
|
this.loadAttendanceData();
|
||||||
if (n == 0 || n==1) {
|
if (n == 0 || n == 1) {
|
||||||
this.surveyUrl = "images/survey_icon_4.png";
|
this.surveyUrl = "images/survey_icon_4.png";
|
||||||
} else {
|
} else {
|
||||||
this.surveyUrl = "images/survey_icon_5.png";
|
this.surveyUrl = "images/survey_icon_5.png";
|
||||||
|
@ -1679,7 +1684,9 @@ export default {
|
||||||
width: calc(100% - 4px);
|
width: calc(100% - 4px);
|
||||||
height: calc(100% - 26px);
|
height: calc(100% - 26px);
|
||||||
padding-left: 1px;
|
padding-left: 1px;
|
||||||
|
.el-carousel{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
.photography-video {
|
.photography-video {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100% - 30px);
|
height: calc(100% - 30px);
|
||||||
|
|
|
@ -321,7 +321,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
materialSealList: [],
|
materialSealList: [],
|
||||||
selDate: "",
|
selDate: [],
|
||||||
elKey: 0,
|
elKey: 0,
|
||||||
materialSealEl: 0,
|
materialSealEl: 0,
|
||||||
elSummaryKey: 0,
|
elSummaryKey: 0,
|
||||||
|
@ -420,6 +420,9 @@ export default {
|
||||||
this.init();
|
this.init();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let dt1=this.$dt((+new Date())-30*24*3600*1000);
|
||||||
|
let dt2=this.$dt(new Date());
|
||||||
|
this.selDate=[dt1,dt2];
|
||||||
this.$bus.$on(
|
this.$bus.$on(
|
||||||
"loadProjects",
|
"loadProjects",
|
||||||
debounce((prjs) => {
|
debounce((prjs) => {
|
||||||
|
|
|
@ -397,7 +397,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dictWorkTrainDataType: [],
|
dictWorkTrainDataType: [],
|
||||||
selDate: '',
|
selDate: [],
|
||||||
elSummaryKey: 0,
|
elSummaryKey: 0,
|
||||||
elSummaryPrjKey: 0,
|
elSummaryPrjKey: 0,
|
||||||
elKey: 0,
|
elKey: 0,
|
||||||
|
@ -482,7 +482,10 @@ export default {
|
||||||
this.dictWorkTrainDataType = d || [];
|
this.dictWorkTrainDataType = d || [];
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let dt1=this.$dt((+new Date())-30*24*3600*1000);
|
||||||
|
let dt2=this.$dt(new Date());
|
||||||
|
this.selDate=[dt1,dt2];
|
||||||
this.$bus.$on("projectChange", debounce(res => {
|
this.$bus.$on("projectChange", debounce(res => {
|
||||||
this.projectInfo = res;
|
this.projectInfo = res;
|
||||||
this.doDeptChane();
|
this.doDeptChane();
|
||||||
|
|
Loading…
Reference in New Issue