@mixd-id/web-scaffold 0.1.240411004 → 0.1.240411006
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
package/src/components/List.vue
CHANGED
|
@@ -427,10 +427,12 @@ export default{
|
|
|
427
427
|
if(this.presetKey){
|
|
428
428
|
return this.socket.send(this.presetSrc, { key:this.presetKey })
|
|
429
429
|
.then(config => {
|
|
430
|
-
|
|
430
|
+
if(config){
|
|
431
|
+
Object.assign(this.cConfig, config)
|
|
431
432
|
|
|
432
|
-
|
|
433
|
-
|
|
433
|
+
if(this.$route.query?.search)
|
|
434
|
+
this.preset.search = this.$route.query.search
|
|
435
|
+
}
|
|
434
436
|
})
|
|
435
437
|
}
|
|
436
438
|
return new Promise(resolve => resolve())
|
|
@@ -453,6 +455,8 @@ export default{
|
|
|
453
455
|
},
|
|
454
456
|
|
|
455
457
|
async loadEnums(items){
|
|
458
|
+
if(!items) return
|
|
459
|
+
|
|
456
460
|
return Promise.all((this.preset.columns ?? []).map(async column => {
|
|
457
461
|
|
|
458
462
|
if(column.enumSrc) {
|
|
@@ -1675,10 +1675,12 @@ export default {
|
|
|
1675
1675
|
async loadPreset(){
|
|
1676
1676
|
return this.socket.send(this.presetSrc, { key:this.presetKey })
|
|
1677
1677
|
.then(async (config) => {
|
|
1678
|
-
|
|
1678
|
+
if(config){
|
|
1679
|
+
Object.assign(this.config, config ?? {})
|
|
1679
1680
|
|
|
1680
|
-
|
|
1681
|
-
|
|
1681
|
+
/*if(this.$route.query?.search)
|
|
1682
|
+
this.preset.search = this.$route.query.search*/
|
|
1683
|
+
}
|
|
1682
1684
|
})
|
|
1683
1685
|
.catch(() => {})
|
|
1684
1686
|
},
|
|
@@ -870,7 +870,7 @@ export default{
|
|
|
870
870
|
...((this.config ?? {}).filters !== false ? [{ text:'Filters', value:2 }] : []),
|
|
871
871
|
...((this.config ?? {}).sorts !== false ? [{ text:'Sorts', value:3 }] : []),
|
|
872
872
|
...((this.config ?? {}).pivot !== false ? [{ text:'Pivot', value:5 }] : []),
|
|
873
|
-
...(this.controller ? [{ text:'Sharing', value:6 }] : []),
|
|
873
|
+
...(this.controller && (this.config ?? {}).sharing !== false ? [{ text:'Sharing', value:6 }] : []),
|
|
874
874
|
],
|
|
875
875
|
chart: [
|
|
876
876
|
...((this.config ?? {}).filters !== false ? [{ text:'Filters', value:2 }] : []),
|
|
@@ -1453,10 +1453,12 @@ export default{
|
|
|
1453
1453
|
if(this.presetKey){
|
|
1454
1454
|
return this.socket.send(this.presetSrc, { key:this.presetKey })
|
|
1455
1455
|
.then(config => {
|
|
1456
|
-
|
|
1456
|
+
if(config){
|
|
1457
|
+
Object.assign(this.config.params, config.params)
|
|
1457
1458
|
|
|
1458
|
-
|
|
1459
|
-
|
|
1459
|
+
if(this.$route.query?.search)
|
|
1460
|
+
this.preset.search = this.$route.query.search
|
|
1461
|
+
}
|
|
1460
1462
|
})
|
|
1461
1463
|
}
|
|
1462
1464
|
return new Promise(resolve => resolve())
|