Commit 52c7e804 authored by zhengke's avatar zhengke

定时保存

parent a5d3b2f4
...@@ -255,9 +255,11 @@ const goBack = (type:any) =>{ ...@@ -255,9 +255,11 @@ const goBack = (type:any) =>{
path = `/market/op/${ConfigId.value}/${TempType.value}` path = `/market/op/${ConfigId.value}/${TempType.value}`
router.push({path}) router.push({path})
}else if(model.value==2){ }else if(model.value==2){
clearInterval(intervalId.value); if(searchData.value.sellId) {
intervalId.value = null; clearInterval(intervalId.value);
setTemplate(0) intervalId.value = null;
setTemplate(0)
}
if(type==1) { if(type==1) {
searchData.value.SalesEditor = router.currentRoute.value.params searchData.value.SalesEditor = router.currentRoute.value.params
if(searchData.value.sellId)searchData.value.TempId2 = queryObj.value.TempId if(searchData.value.sellId)searchData.value.TempId2 = queryObj.value.TempId
...@@ -668,7 +670,7 @@ watch(()=>autoSave.value,(newVal)=>{ ...@@ -668,7 +670,7 @@ watch(()=>autoSave.value,(newVal)=>{
} }
}) })
watch(()=>slides.value,(newVal,oldVal)=>{ watch(()=>slides.value,(newVal,oldVal)=>{
if(model.value==2&&SalesEditor.value>0){ if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){
if(!MonitoringNumber.value||MonitoringNumber.value<3) MonitoringNumber.value++ if(!MonitoringNumber.value||MonitoringNumber.value<3) MonitoringNumber.value++
if(MonitoringNumber.value>2) { if(MonitoringNumber.value>2) {
Countdown.value = timer Countdown.value = timer
...@@ -682,7 +684,7 @@ watch(()=>slides.value,(newVal,oldVal)=>{ ...@@ -682,7 +684,7 @@ watch(()=>slides.value,(newVal,oldVal)=>{
immediate: false immediate: false
}) })
watch(()=>queryObj.value.Title,(newVal,oldVal)=>{ watch(()=>queryObj.value.Title,(newVal,oldVal)=>{
if(model.value==2&&SalesEditor.value>0){ if(model.value==2&&SalesEditor.value>0&&searchData.value.sellId){
if(!MonitoringTNumber.value||MonitoringTNumber.value<3) MonitoringTNumber.value++ if(!MonitoringTNumber.value||MonitoringTNumber.value<3) MonitoringTNumber.value++
if(MonitoringTNumber.value>2) { if(MonitoringTNumber.value>2) {
Countdown.value = timer Countdown.value = timer
......
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