登录界面优化
This commit is contained in:
@@ -49,5 +49,23 @@ export const defaultApps = [{
|
||||
path: "/pipe/precast/list",
|
||||
prefix: 'nbd-icon',
|
||||
selected: false
|
||||
},
|
||||
{
|
||||
name: '下料抽检',
|
||||
icon: 'xialiaochoujianjilu',
|
||||
menuId: "",
|
||||
path: "/scanpages/hj/material_sampling",
|
||||
isScan: true,
|
||||
prefix: 'nbd-icon',
|
||||
selected: false
|
||||
},
|
||||
{
|
||||
name: '组队抽查',
|
||||
icon: 'zudui',
|
||||
menuId: "",
|
||||
path: "/scanpages/hj/make_right",
|
||||
isScan: true,
|
||||
prefix: 'nbd-icon',
|
||||
selected: false
|
||||
}
|
||||
]
|
||||
|
||||
+21
-5
@@ -1,7 +1,23 @@
|
||||
import {getUrlParam} from './request'
|
||||
export const scanToSkipUrl = (str)=>{
|
||||
// 焊接日报跳转
|
||||
if(str.includes('weldjoint')){
|
||||
return `/pipe/weld/daily_paper?id=${getUrlParam(str,"id")}`
|
||||
}
|
||||
|
||||
/**
|
||||
* 解析扫码结果,返回跳转页面路径
|
||||
* @param {string} str 扫码结果字符串
|
||||
* @returns {{ path: string, query: string } | null} 返回 { path, query } 或 null(材料编码场景)
|
||||
*/
|
||||
export const parseScanResult = (str) => {
|
||||
if (!str) return null
|
||||
|
||||
// 焊接接头二维码:https://sggl.sedin.com.cn/StaticPage/HJGL/index.html?id=xxx&weldjoint=1
|
||||
// if (str.includes('weldjoint')) {
|
||||
// const id = getUrlParam(str, 'id')
|
||||
// if (id) {
|
||||
// return { path: '/scanpages/hj/material_sampling', query: `id=${id}` }
|
||||
// }
|
||||
// }
|
||||
|
||||
// 后续可在此扩展其他扫码类型...
|
||||
|
||||
// 非 URL 格式,视为材料编码
|
||||
return null
|
||||
}
|
||||
Reference in New Issue
Block a user