Commit e518662b by chenwq

fix: 更新轻改区域日报相关代码和路由参数

更新轻改日报为轻改区域日报,并添加相关路由参数传递
1 parent fed54ad5
...@@ -608,7 +608,8 @@ Page({ ...@@ -608,7 +608,8 @@ Page({
) { ) {
wx.$util.pointRecord(item.recordId) wx.$util.pointRecord(item.recordId)
return wx.$router.go(item.url, { return wx.$router.go(item.url, {
scene: 1 scene: 1,
params: item.params || {},
}) })
} else { } else {
wx.$util.showNoAccess() wx.$util.showNoAccess()
...@@ -1439,13 +1440,16 @@ Page({ ...@@ -1439,13 +1440,16 @@ Page({
userInfo?.isSuper || userInfo?.isSuper ||
userInfo?.loginRole === 3 || userInfo?.loginRole === 3 ||
userInfo?.loginRole === 5) && userInfo?.loginRole === 5) &&
menu.every(item => item.name != '轻改日报') menu.every(item => item.name != '轻改区域日报')
) { ) {
menu.push({ menu.push({
name: '轻改日报', name: '轻改区域日报',
url: 'tabWorkOrder.supervisorDaily', url: 'tabWorkOrder.supervisorDaily',
params: {
templateCode: 'qinggai-temp-001'
},
recordId: 18, recordId: 18,
icon: 'icon-market', icon: 'lightDaily',
noCheckdailyReport: true noCheckdailyReport: true
}) })
} }
......
...@@ -26,7 +26,7 @@ Page({ ...@@ -26,7 +26,7 @@ Page({
isUpload: false, isUpload: false,
isTodayEdit: false, isTodayEdit: false,
// userInfo: {}, // userInfo: {},
// 轻改日报模版code // 轻改区域日报模版code
qgReportCode: null, qgReportCode: null,
title: '', title: '',
// 模版表单提交数据 // 模版表单提交数据
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!