feat: 优化跳转地址栏带参数
This commit is contained in:
@@ -918,23 +918,23 @@
|
||||
let enableEdit = this.customEnableRule(item, 'edit')
|
||||
let labelS = {}
|
||||
const config = {
|
||||
currentMenu,
|
||||
// currentMenu,
|
||||
btnType,
|
||||
list: this.list,
|
||||
// list: this.list,
|
||||
modelId: this.modelId,
|
||||
menuId: this.menuId,
|
||||
isPreview: this.isPreview,
|
||||
// isPreview: this.isPreview,
|
||||
id: item.id || '',
|
||||
index: item.index,
|
||||
enableEdit,
|
||||
labelS,
|
||||
// enableEdit,
|
||||
// labelS,
|
||||
name: this.config.tableTitle,
|
||||
billNoPrefix: this.config.billNoPrefix
|
||||
}
|
||||
console.log(config,'config12233')
|
||||
|
||||
const url = '/pages/apply/dynamicModelList/' + type + '?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
JSON.stringify(config)
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
|
||||
@@ -498,7 +498,7 @@
|
||||
init(option) {
|
||||
const parseConfig = (rawConfig) => {
|
||||
try {
|
||||
return JSON.parse(this.jnpf.base64.decode(rawConfig)) || {}
|
||||
return JSON.parse(rawConfig) || {}
|
||||
} catch (error) {
|
||||
return {}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ import { computed } from "vue";
|
||||
},
|
||||
onLoad(obj) {
|
||||
// baseStore.getDictionaryDataAll()
|
||||
this.config = JSON.parse(this.jnpf.base64.decode(obj.config)) || {};
|
||||
this.config = JSON.parse(obj.config) || {};
|
||||
this.isPreview = this.config.isPreview || false;
|
||||
this.enableFlow = this.config.type === 9 ? 1 : 0;
|
||||
this.title = this.config.tableTitle || "";
|
||||
|
||||
Reference in New Issue
Block a user