CRM_25-10-15#story#7339,服务商在APP中查看救援相关资料内容优化

This commit is contained in:
2025-10-13 16:48:13 +08:00
committed by zhoulinf
parent b513d7922a
commit b81f485d1a
2 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,7 @@ export default {
totalList:[], totalList:[],
numInfo:'', numInfo:'',
keyword:'', keyword:'',
serviceTypeName:'',
show:false, show:false,
showEmpty:false, showEmpty:false,
isLoading:false, isLoading:false,
@ -102,6 +103,7 @@ export default {
this.driverId = urlParams.get('driverId'); this.driverId = urlParams.get('driverId');
this.time=timeFormat(Date.now()) this.time=timeFormat(Date.now())
this.keyword=urlParams.get('keyword') || '' this.keyword=urlParams.get('keyword') || ''
this.serviceTypeName=urlParams.get('serviceTypeName') || ''
this.getTrainingList(); this.getTrainingList();
document.addEventListener('visibilitychange', async ( ) => { document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState let state = document.visibilityState
@ -129,6 +131,7 @@ export default {
type:1, type:1,
id:this.driverId, id:this.driverId,
text:this.keyword || '', text:this.keyword || '',
serviceTypeName:this.serviceTypeName || ''
}) })
this.totalList=[] this.totalList=[]
this.pageList=[] this.pageList=[]

View File

@ -68,6 +68,7 @@ export default {
pageList:[], pageList:[],
totalList:[], totalList:[],
keyword:'', keyword:'',
serviceTypeName:'',
show:false, show:false,
showEmpty:false, showEmpty:false,
isLoading:false, isLoading:false,
@ -77,6 +78,8 @@ export default {
mounted() { mounted() {
const urlParams = new URLSearchParams(window.location.search); const urlParams = new URLSearchParams(window.location.search);
this.supplierId = urlParams.get('supplierId'); this.supplierId = urlParams.get('supplierId');
this.keyword=urlParams.get('keyword') || ''
this.serviceTypeName=urlParams.get('serviceTypeName') || ''
this.getTrainingList(); this.getTrainingList();
document.addEventListener('visibilitychange', async ( ) => { document.addEventListener('visibilitychange', async ( ) => {
let state = document.visibilityState let state = document.visibilityState
@ -104,6 +107,7 @@ export default {
type:2, type:2,
id: this.supplierId, id: this.supplierId,
text:this.keyword || '', text:this.keyword || '',
serviceTypeName:this.serviceTypeName || ''
}) })
this.totalList=[] this.totalList=[]
this.pageList=[] this.pageList=[]