waibu-db 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -24,7 +24,6 @@ async function echarts () {
|
|
|
24
24
|
const { defaultsDeep, generateId } = this.plugin.app.bajo
|
|
25
25
|
const { base64JsonDecode, jsonStringify } = this.plugin.app.waibuMpa
|
|
26
26
|
const { cloneDeep } = this.plugin.app.bajo.lib._
|
|
27
|
-
this.params.attr.dim = this.params.attr.dim ?? 'width:100 height:100'
|
|
28
27
|
this.params.attr.id = generateId('alpha')
|
|
29
28
|
this.params.attr['x-data'] = `chart${this.params.attr.id}`
|
|
30
29
|
this.params.attr['@resize.window.debounce.500ms'] = `
|
|
@@ -143,7 +143,10 @@ async function table () {
|
|
|
143
143
|
this.params.attr = omit(this.params.attr, ['sortUpIcon', 'sortDownIcon', 'noSort', 'selection', 'headerNowrap'])
|
|
144
144
|
const goDetails = `
|
|
145
145
|
goDetails (id) {
|
|
146
|
-
|
|
146
|
+
let url = '${this.params.attr.detailsHref ?? this.component.buildUrl({ base: 'details', prettyUrl })}'
|
|
147
|
+
if (url.indexOf('/:id') > -1) url = url.replace('/:id', '/' + id)
|
|
148
|
+
else url += '&id=' + id
|
|
149
|
+
window.location.href = url
|
|
147
150
|
}
|
|
148
151
|
`
|
|
149
152
|
if (selection === 'multi') {
|