feat: 对接驾驶舱配置

main
shengwen.chen 3 months ago
parent 0f7cf30047
commit d123b52198

@ -89,7 +89,7 @@
<div class="logBox w-[15vh] h-[3.7vh] mr-[1.48vh]">
<img class="h-full" src="@/assets/svg/Wait/footText.png" />
</div>
<p class="text-[2.59vh]">请勿吸烟请照顾好自己随身携带的物品请耐心等待我们将竭诚为您服务</p>
<p class="text-[2.59vh]">{{ FooterText }}</p>
</div>
</footer>
</section>
@ -115,7 +115,6 @@ export default {
patientList: [],
currentDateTime: dayjs().format('YYYY-MM-DD HH:mm dddd'),
dateTimer: null,
carouselCountDown: 20,
carouselTimer: null,
activeIndex: 0,
getDataTimer: null,
@ -125,10 +124,13 @@ export default {
logoUrlBackup: "",
groupIndex: -1,
roomNameList: [],
stayTime: 30,
depList: [],
selectDepList: [],
serverTimeStamp: '',
stayTime: 30,
FooterText: '请勿吸烟,请照顾好自己随身携带的物品,请耐心等待,我们将竭诚为您服务',
ReflushTime: 20,
carouselCountDown: 20,
};
},
methods: {
@ -136,7 +138,7 @@ export default {
textToColor,
onGetPageData() {
let today = dayjs().format('YYYY-MM-DD');
// today = '2024-06-06';
today = '2024-06-06';
const QueryFiledDic = {};
this.queryCondition.forEach(queryItem => {
if (queryItem['queryType'] == 'dateTime') {
@ -205,7 +207,7 @@ export default {
this.carouselCountDown -= 1;
if (this.carouselCountDown == 0) {
this.$refs.carousel.next();
this.carouselCountDown = 20;
this.carouselCountDown = this.ReflushTime;
}
}, 1000);
});
@ -245,6 +247,13 @@ export default {
if (item['Key'] == "StayTime") {
this.stayTime = Number(item['Value'])
}
if (item['Key'] == "FooterText") {
this.FooterText = item['Value']
}
if (item['Key'] == "ReflushTime") {
this.ReflushTime = Number(item['Value'])
this.carouselCountDown = Number(item['Value'])
}
})
})
},
@ -296,7 +305,7 @@ export default {
this.$refs.carousel.setActiveItem(index);
if (this.carouselTimer) {
clearInterval(this.carouselTimer);
this.carouselCountDown = 20;
this.carouselCountDown = this.ReflushTime;
this.onCarouselTimer()
}
}

Loading…
Cancel
Save