update code

prv
haha 2024-05-03 20:55:34 +08:00
parent 7d231e5500
commit 7ff2c8421b
4 changed files with 35 additions and 16 deletions

View File

@ -611,13 +611,17 @@ export default {
});
},
qualityNavClick(n) {
let dt1=this.$dt((+new Date())-30*24*3600*1000);
let dt2=this.$dt(new Date());
this.qualityNav = n;
if (n == 0) {
this.qualityNavTitle = "安全隐患总数";
let postData = {
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 => {
let tmps= (d || []).map(it => {
return {
@ -639,7 +643,9 @@ export default {
} else {
let postData = {
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.$api.problemmodify.qualitySummary(postData).then(d => {

View File

@ -120,13 +120,18 @@
<module-one-1-1 label="项目全景">
<div class="photography-list">
<template v-if="photographyList && photographyList.length > 0">
<video controls class="photography-video">
<source :src="photographyList[0].videoUrl" type="video/mp4" />
您的浏览器不支持Video标签
</video>
<div class="photography-list-title">
{{ photographyList[0].videoDate }}
</div>
<el-carousel height="100%" :autoplay="false">
<el-carousel-item v-for="(item, idx) in photographyList" :key="idx">
<video controls class="photography-video">
<source :src="item.videoUrl" type="video/mp4" :key="item.videoUrl"/>
您的浏览器不支持Video标签
</video>
<div class="photography-list-title">
{{ item.videoDate }}
</div>
</el-carousel-item>
</el-carousel>
</template>
<template v-else>
<div class="photography-list-nodata">
@ -1249,7 +1254,7 @@ export default {
return;
}
let data = {
id:this.infoNav,
id: this.infoNav,
subDeptId: this.dept.id || 0,
projectId: id || 0,
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD"),
@ -1423,7 +1428,7 @@ export default {
this.infoNav = n;
this.staffText = text;
this.loadAttendanceData();
if (n == 0 || n==1) {
if (n == 0 || n == 1) {
this.surveyUrl = "images/survey_icon_4.png";
} else {
this.surveyUrl = "images/survey_icon_5.png";
@ -1679,7 +1684,9 @@ export default {
width: calc(100% - 4px);
height: calc(100% - 26px);
padding-left: 1px;
.el-carousel{
height: 100%;
}
.photography-video {
width: 100%;
height: calc(100% - 30px);

View File

@ -321,7 +321,7 @@ export default {
data() {
return {
materialSealList: [],
selDate: "",
selDate: [],
elKey: 0,
materialSealEl: 0,
elSummaryKey: 0,
@ -420,6 +420,9 @@ export default {
this.init();
},
mounted() {
let dt1=this.$dt((+new Date())-30*24*3600*1000);
let dt2=this.$dt(new Date());
this.selDate=[dt1,dt2];
this.$bus.$on(
"loadProjects",
debounce((prjs) => {

View File

@ -397,7 +397,7 @@ export default {
data() {
return {
dictWorkTrainDataType: [],
selDate: '',
selDate: [],
elSummaryKey: 0,
elSummaryPrjKey: 0,
elKey: 0,
@ -482,7 +482,10 @@ export default {
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.projectInfo = res;
this.doDeptChane();