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

Loading…
Cancel
Save