Commit f96cb2e2 authored by xinzhedeai's avatar xinzhedeai

add:提醒检查记录跳转逻辑处理

parent 36c258cd
......@@ -62,7 +62,7 @@ window.onload = function () {
className: 'jiancha',
title: '检查记录',
remark: '',
navTo: 'checkrecord',
navTo: 'checkrecord-all',
},
{
className: 'yinhuan',
......@@ -143,7 +143,7 @@ window.onload = function () {
// }
let param = {
accessType: this.accessType,
merId: this.userInfo.merId,
merId: this.userInfo.merId||'',
unitName: this.userInfo.unitName,
smallPlaceTypeName: this.userInfo.smallPlaceTypeName,
}
......@@ -294,11 +294,15 @@ window.onload = function () {
return
} else */
if (this.userInfo.userType === 'shop') {
this.defaultMenuList[1].navTo = 'checkrecord'
} else {
this.defaultMenuList[1].navTo = 'shanghu_list'
}
// if (this.userInfo.userType === 'shop') {
// this.defaultMenuList[1].navTo = 'checkrecord'
// } else {
// this.defaultMenuList[1].navTo = 'shanghu_list'
// }
// 2025年6月9日 跳转检查记录 统一跳转新页面。
this.defaultMenuList[1].navTo = 'checkrecord-all'
// 生成最终菜单列表
this.menuList = (result.data.modules || []).map(
(moduleItem) => ({
......
......@@ -73,13 +73,14 @@ window.addEventListener('load', function () {
},
computed: {},
methods: {
resetSearchPara(){
reset(){
this.page = 1
this.size = 10
this.hazardList = []
},
onSearch() {
console.log('xxxx', this.merName)
this.resetSearchPara()
this.reset()
this.getMerchantSelfCheckData()
},
//初始化页面
......@@ -87,10 +88,9 @@ window.addEventListener('load', function () {
// this.getMerchantSelfCheckData()
},
tabChange(){
this.resetSearchPara()
this.reset()
this.getMerchantSelfCheckData()
},
//获取商户自查数据
getMerchantSelfCheckData() {
// 更多示例数据...
vant.Toast.loading({
......@@ -130,7 +130,7 @@ window.addEventListener('load', function () {
if (result.code !== 200 && result.data == null) {
return
}
this.hazardList = result.rows
this.hazardList.push(...result.rows)
if (this.page * this.size >= this.total) {
this.finished = true // 下滑不在刷新数据
}
......@@ -155,7 +155,7 @@ window.addEventListener('load', function () {
...urlParams,
id: id,
flag: 'JC_XQ',
pageName: '_checkrecord',
pageName: '_checkrecord-all',
}
let url = gemhoUtil.setParameter('_check_info.html', param)
......
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