Commit b203ccdf authored by zhengke's avatar zhengke

定时更新

parent 6ac5f031
...@@ -229,7 +229,7 @@ if(queryObj.value.Title) titleValue.value = queryObj.value.Title ...@@ -229,7 +229,7 @@ if(queryObj.value.Title) titleValue.value = queryObj.value.Title
const MonitoringNumber = ref(0) const MonitoringNumber = ref(0)
const MonitoringTNumber = ref(0) const MonitoringTNumber = ref(0)
const timer = 30 const timer = 60
const Countdown = ref<any>(timer) const Countdown = ref<any>(timer)
const intervalId = ref(null); const intervalId = ref(null);
const showTimer = ref(false); const showTimer = ref(false);
...@@ -258,7 +258,7 @@ const goBack = (type:any) =>{ ...@@ -258,7 +258,7 @@ const goBack = (type:any) =>{
if(searchData.value.sellId) { if(searchData.value.sellId) {
clearInterval(intervalId.value); clearInterval(intervalId.value);
intervalId.value = null; intervalId.value = null;
// setTemplate(0) setTemplate(0)
} }
if(type==1) { if(type==1) {
searchData.value.SalesEditor = router.currentRoute.value.params searchData.value.SalesEditor = router.currentRoute.value.params
...@@ -671,8 +671,8 @@ watch(()=>autoSave.value,(newVal)=>{ ...@@ -671,8 +671,8 @@ watch(()=>autoSave.value,(newVal)=>{
}) })
watch(()=>slides.value,(newVal,oldVal)=>{ watch(()=>slides.value,(newVal,oldVal)=>{
if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){ if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){
if(!MonitoringNumber.value||MonitoringNumber.value<3) MonitoringNumber.value++ if(!MonitoringNumber.value||MonitoringNumber.value<2) MonitoringNumber.value++
if(MonitoringNumber.value>2) { if(MonitoringNumber.value>1) {
Countdown.value = timer Countdown.value = timer
benginTimer() benginTimer()
} }
...@@ -685,8 +685,8 @@ watch(()=>slides.value,(newVal,oldVal)=>{ ...@@ -685,8 +685,8 @@ watch(()=>slides.value,(newVal,oldVal)=>{
}) })
watch(()=>queryObj.value.Title,(newVal,oldVal)=>{ watch(()=>queryObj.value.Title,(newVal,oldVal)=>{
if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){ if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){
if(!MonitoringTNumber.value||MonitoringTNumber.value<3) MonitoringTNumber.value++ if(!MonitoringTNumber.value||MonitoringTNumber.value<2) MonitoringTNumber.value++
if(MonitoringTNumber.value>2) { if(MonitoringTNumber.value>1) {
Countdown.value = timer Countdown.value = timer
benginTimer() benginTimer()
} }
......
...@@ -768,6 +768,7 @@ const sellGetTripTemplate = async () =>{ ...@@ -768,6 +768,7 @@ const sellGetTripTemplate = async () =>{
// 销售模版缓存数据 // 销售模版缓存数据
const getTripOtherMongo = async () =>{ const getTripOtherMongo = async () =>{
return
try { try {
const loadingObj = ElLoading.service({text:'正在获取缓存数据',lock:true}) const loadingObj = ElLoading.service({text:'正在获取缓存数据',lock:true})
let dataRes = await ConfigService.GetTripOtherMongo(searchData.value.sellId); let dataRes = await ConfigService.GetTripOtherMongo(searchData.value.sellId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment