agilebuilder-ui 1.0.40 → 1.0.41-beta1
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/lib/super-ui.js +35 -27
- package/lib/super-ui.umd.cjs +3 -3
- package/package.json +1 -1
- package/packages/super-grid/src/apis.js +2 -1
- package/packages/super-grid/src/dynamic-input.vue +37 -6
- package/packages/super-grid/src/group-column.vue +2 -1
- package/src/views/layout/components/Menubar/index.vue +9 -2
package/package.json
CHANGED
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
@input="cellEvent('input', $event)"
|
|
314
314
|
/>
|
|
315
315
|
<!--mysql数据库--->
|
|
316
|
-
<el-switch
|
|
316
|
+
<!-- <el-switch
|
|
317
317
|
v-else-if="(type === 'switch' || column.dataType === 'BOOLEAN') && dataSourceType === 'mysql'"
|
|
318
318
|
ref="item"
|
|
319
319
|
v-model="innerValue"
|
|
@@ -322,17 +322,19 @@
|
|
|
322
322
|
inactive-color="#ff4949"
|
|
323
323
|
@change="cellEvent('change', $event)"
|
|
324
324
|
@input="cellEvent('input', $event, true)"
|
|
325
|
-
/>
|
|
325
|
+
/> -->
|
|
326
326
|
<!--oracle或sqlserver数据库--->
|
|
327
327
|
<el-switch
|
|
328
328
|
v-else-if="type === 'switch' || column.dataType === 'BOOLEAN'"
|
|
329
329
|
ref="item"
|
|
330
330
|
v-model="innerValue"
|
|
331
|
-
:active-
|
|
331
|
+
:active-text="getSwitchConfig('activeText')"
|
|
332
|
+
:active-value="getSwitchConfig('activeValue')"
|
|
332
333
|
:disabled="disabled"
|
|
333
|
-
:inactive-
|
|
334
|
-
|
|
335
|
-
|
|
334
|
+
:inactive-text="getSwitchConfig('inactiveText')"
|
|
335
|
+
:inactive-value="getSwitchConfig('inactiveValue')"
|
|
336
|
+
:active-color="getSwitchConfig('onColor')"
|
|
337
|
+
:inactive-color="getSwitchConfig('offColor')"
|
|
336
338
|
@change="cellEvent('change', $event)"
|
|
337
339
|
@input="cellEvent('input', $event, true)"
|
|
338
340
|
/>
|
|
@@ -657,6 +659,11 @@ export default {
|
|
|
657
659
|
if (valueSetOptionsObj.dynamicDataSourceCode && valueSetOptionsObj.dynamicDataSourceCode !== '') {
|
|
658
660
|
this.dynamicDataSourceCode = valueSetOptionsObj.dynamicDataSourceCode
|
|
659
661
|
}
|
|
662
|
+
} else if (this.column.componentType === 'switch') {
|
|
663
|
+
const valueSetOptionsObj = JSON.parse(this.column.valueSetOptions)
|
|
664
|
+
if (valueSetOptionsObj) {
|
|
665
|
+
this.valueSetOptions = valueSetOptionsObj
|
|
666
|
+
}
|
|
660
667
|
}
|
|
661
668
|
if (this.column.orgTreeSet) {
|
|
662
669
|
const orgTreeSet = JSON.parse(this.column.orgTreeSet)
|
|
@@ -1425,6 +1432,7 @@ export default {
|
|
|
1425
1432
|
return numberValue
|
|
1426
1433
|
}
|
|
1427
1434
|
}
|
|
1435
|
+
return val
|
|
1428
1436
|
},
|
|
1429
1437
|
refresData(data) {
|
|
1430
1438
|
$emit(this, 'refresData', data)
|
|
@@ -1497,6 +1505,29 @@ export default {
|
|
|
1497
1505
|
},
|
|
1498
1506
|
isInvalidValue(value) {
|
|
1499
1507
|
return value === undefined || value === null || value === ''
|
|
1508
|
+
},
|
|
1509
|
+
getSwitchConfig(switchProp) {
|
|
1510
|
+
if (this.valueSetOptions && this.valueSetOptions[switchProp]) {
|
|
1511
|
+
return this.valueSetOptions[switchProp]
|
|
1512
|
+
} else {
|
|
1513
|
+
if (switchProp === 'activeValue') {
|
|
1514
|
+
if (this.dataSourceType === 'mysql') {
|
|
1515
|
+
return true
|
|
1516
|
+
} else {
|
|
1517
|
+
return 1
|
|
1518
|
+
}
|
|
1519
|
+
} else if (switchProp === 'inactiveValue') {
|
|
1520
|
+
if (this.dataSourceType === 'mysql') {
|
|
1521
|
+
return false
|
|
1522
|
+
} else {
|
|
1523
|
+
return 0
|
|
1524
|
+
}
|
|
1525
|
+
} else if (switchProp === 'offColor') {
|
|
1526
|
+
return '#ff4949'
|
|
1527
|
+
} else if (switchProp === 'onColor') {
|
|
1528
|
+
return '#13ce66'
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1500
1531
|
}
|
|
1501
1532
|
}
|
|
1502
1533
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<el-table-column width="150" :align="column.groupHeader ? 'center' : ''">
|
|
2
|
+
<el-table-column :width="column.width ? column.width : 150" :align="column.groupHeader ? 'center' : ''">
|
|
3
3
|
<template v-slot:header>
|
|
4
4
|
<span class="cell--span" :title="label" v-html="label" />
|
|
5
5
|
</template>
|
|
@@ -79,6 +79,7 @@ export default {
|
|
|
79
79
|
},
|
|
80
80
|
created() {
|
|
81
81
|
this.label = this.getHeader()
|
|
82
|
+
console.log('%c描述-181624','color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px',this.column);
|
|
82
83
|
},
|
|
83
84
|
methods: {
|
|
84
85
|
getHeader() {
|
|
@@ -38,6 +38,7 @@ import tabJs from '../../../../api/tab'
|
|
|
38
38
|
import {getI18nName} from '../../../../utils/menu'
|
|
39
39
|
import Cookies from 'js-cookie'
|
|
40
40
|
import {getMenus} from '../../../../utils/permissionAuth'
|
|
41
|
+
import authApi from "../../../../utils/auth-api"
|
|
41
42
|
|
|
42
43
|
export default {
|
|
43
44
|
name: 'Menubar',
|
|
@@ -64,13 +65,15 @@ export default {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
const isSelectFirst = window.$vueApp.config.globalProperties.showFirstMenu === undefined || window.$vueApp.config.globalProperties.showFirstMenu === null? true : window.$vueApp.config.globalProperties.showFirstMenu
|
|
68
|
+
let isDevp = authApi.isDevpSystem()
|
|
67
69
|
const menus = getMenus()
|
|
68
70
|
return {
|
|
69
71
|
firstLeafMenu: null, // 第一个有权限的叶子菜单,用于默认展开第一个父菜单
|
|
70
72
|
systemName,
|
|
71
73
|
defaultActive: '',
|
|
72
74
|
menus,
|
|
73
|
-
isSelectFirst
|
|
75
|
+
isSelectFirst,
|
|
76
|
+
isDevp
|
|
74
77
|
}
|
|
75
78
|
},
|
|
76
79
|
computed: {
|
|
@@ -131,7 +134,11 @@ export default {
|
|
|
131
134
|
}
|
|
132
135
|
const path = this.firstLeafMenu.fullPath
|
|
133
136
|
this.addTabs(query, this.$store.state.tabContent.openTab, path, path)
|
|
134
|
-
|
|
137
|
+
let routePath = '/tab-content-index'
|
|
138
|
+
if(this.isDevp){
|
|
139
|
+
routePath = '/devp-project/setting'
|
|
140
|
+
}
|
|
141
|
+
this.$router.push({path: routePath , query: query})
|
|
135
142
|
// this.$router.push({ path: this.firstLeafMenu.fullPath })
|
|
136
143
|
}
|
|
137
144
|
}
|