标准清单 高级检索
This commit is contained in:
@@ -172,5 +172,12 @@ export default {
|
||||
} else {
|
||||
return JSON.parse(state.rukuBaseInfo)
|
||||
}
|
||||
},
|
||||
getAccessStandardRegRow: state => {
|
||||
if (state.accessStandRegRows === '') {
|
||||
return null
|
||||
} else {
|
||||
return JSON.parse(state.accessStandRegRows)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,5 +272,29 @@ export default {
|
||||
sessionStorage.removeItem('rukuBaseInfo')
|
||||
} catch (e) {}
|
||||
}
|
||||
},
|
||||
// 标准法规清单记录当前编辑条目
|
||||
SET_ACCESS_STAND_REG_ROW(state, row) {
|
||||
if (row) {
|
||||
state.accessStandRegRows = JSON.stringify(row)
|
||||
try {
|
||||
sessionStorage.setItem('accessStandRegRows', JSON.stringify(row))
|
||||
} catch (e) {}
|
||||
} else {
|
||||
state.accessStandRegRows = ''
|
||||
sessionStorage.removeItem('accessStandRegRows')
|
||||
}
|
||||
},
|
||||
//标准法规清单记录当前tab
|
||||
SET_ACCESS_STANDARD_REG_TABS(state, tabName) {
|
||||
if (tabName) {
|
||||
state.accessStandRegTabName = tabName
|
||||
try {
|
||||
sessionStorage.setItem('accessStandRegTabName', tabName)
|
||||
} catch (e) {}
|
||||
} else {
|
||||
state.accessStandRegTabName = ''
|
||||
sessionStorage.removeItem('accessStandRegTabName')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,6 +31,8 @@ let handleInfo = '' // 流程办理传递数据
|
||||
let myBussStandardPlan = ''
|
||||
let proLastDetail = '' // 流程结果详情
|
||||
let rukuBaseInfo = '' // 入库流程基础表单信息(后几步展示用)
|
||||
let accessStandRegRows = '' // 标准法规清单编辑
|
||||
let accessStandRegTabName = '' // 标准法规清单页面当前页签
|
||||
try {
|
||||
if (localStorage.theme) { defaultTheme = localStorage.theme }
|
||||
if (localStorage.token) { defaultToken = localStorage.token }
|
||||
@@ -61,6 +63,8 @@ try {
|
||||
if (sessionStorage.myBussStandardPlan) { myBussStandardPlan = sessionStorage.myBussStandardPlan }
|
||||
if (sessionStorage.proLastDetail) { proLastDetail = sessionStorage.proLastDetail }
|
||||
if (sessionStorage.rukuBaseInfo) { rukuBaseInfo = sessionStorage.rukuBaseInfo }
|
||||
if (sessionStorage.accessStandRegRows) { accessStandRegRows = sessionStorage.accessStandRegRows }
|
||||
if (sessionStorage.accessStandRegTabName) { accessStandRegTabName = sessionStorage.accessStandRegTabName }
|
||||
} catch (e) {}
|
||||
export default {
|
||||
theme: defaultTheme, // 主题
|
||||
@@ -94,4 +98,6 @@ export default {
|
||||
myBussStandardPlan,
|
||||
proLastDetail,
|
||||
rukuBaseInfo,
|
||||
accessStandRegRows,
|
||||
accessStandRegTabName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user