Commit f96cb2e2 authored by xinzhedeai's avatar xinzhedeai

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

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