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 || "";
|
||||
|
||||
@@ -101,7 +101,13 @@
|
||||
},
|
||||
methods: {
|
||||
handelClick(item) {
|
||||
let url = "/pages/apply/dynamicModelList/index?config=" + this.jnpf.base64.encode(JSON.stringify(item))
|
||||
const config = {
|
||||
billNoPrefix: item.billNoPrefix,
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
tableTitle: item.tableTitle,
|
||||
}
|
||||
let url = "/pages/apply/dynamicModelList/index?config=" + JSON.stringify(config)
|
||||
uni.navigateTo({
|
||||
url,
|
||||
fail: () => {
|
||||
|
||||
@@ -261,11 +261,17 @@
|
||||
},
|
||||
launch(item) {
|
||||
console.log(item,'item-------')
|
||||
if (item.tabType == 'flow') return this.JumpFlow(item)
|
||||
if (item.tabType == 'menu') return this.JumpApply(item)
|
||||
const config = {
|
||||
billNoPrefix: item.billNoPrefix,
|
||||
id: item.id,
|
||||
name: item.name,
|
||||
tableTitle: item.tableTitle,
|
||||
}
|
||||
if (item.tabType == 'flow') return this.JumpFlow(config)
|
||||
if (item.tabType == 'menu') return this.JumpApply(config)
|
||||
},
|
||||
JumpApply(item) {
|
||||
let url = "/pages/apply/dynamicModelList/index?config=" + this.jnpf.base64.encode(JSON.stringify(item))
|
||||
let url = "/pages/apply/dynamicModelList/index?config=" + JSON.stringify(item)
|
||||
// if (item.type == 1) {
|
||||
// getChildList(item.id).then(res => {
|
||||
// this.listChild = res.data || []
|
||||
@@ -458,7 +464,7 @@
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/apply/dynamicModelList/form?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
JSON.stringify(config)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/apply/dynamicModelList/form?config=' +
|
||||
this.jnpf.base64.encode(JSON.stringify(config))
|
||||
JSON.stringify(config)
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user