agilebuilder-ui 1.1.22 → 1.1.23
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/{401-4a0b2ff3.js → 401-3aa5e355.js} +1 -1
- package/lib/{404-675a2b11.js → 404-aa4b2c13.js} +1 -1
- package/lib/{iframe-page-38a9c584.js → iframe-page-12433672.js} +1 -1
- package/lib/{index-e23f840f.js → index-4fa4df3f.js} +34463 -35111
- package/lib/super-ui.css +1 -1
- package/lib/super-ui.js +1 -1
- package/lib/super-ui.umd.cjs +93 -93
- package/lib/{tab-content-iframe-index-e6bc24b5.js → tab-content-iframe-index-911248d7.js} +1 -1
- package/lib/{tab-content-index-5a36eab4.js → tab-content-index-d82e9431.js} +11 -11
- package/lib/{tache-subprocess-history-59bda1ed.js → tache-subprocess-history-d52e150e.js} +1 -1
- package/package.json +1 -1
- package/packages/fs-upload-new/src/fs-upload-new.vue +0 -12
- package/packages/index.js +0 -11
- package/packages/row-form/operation.vue +2 -1
- package/packages/super-grid/src/apis.js +1 -55
- package/packages/super-grid/src/components/mobile-table-card.jsx +1 -1
- package/packages/super-grid/src/dynamic-input.vue +0 -1
- package/packages/super-grid/src/group-column.vue +1 -1
- package/packages/super-grid/src/index-column.vue +1 -1
- package/packages/super-grid/src/normal-column-content.vue +11 -175
- package/packages/super-grid/src/normal-column.vue +1 -1
- package/packages/super-grid/src/row-operation.vue +7 -7
- package/packages/super-grid/src/search-button.vue +2 -7
- package/packages/super-grid/src/search-form-advancedQuery.vue +4 -0
- package/packages/super-grid/src/search-form-item.vue +13 -6
- package/packages/super-grid/src/search-form-open.vue +83 -75
- package/packages/super-grid/src/search-form-ordinarySearch.vue +34 -28
- package/packages/super-grid/src/search-form.vue +7 -6
- package/packages/super-grid/src/selection-column.vue +1 -1
- package/packages/super-grid/src/super-grid.vue +8 -139
- package/packages/super-nine-grid/src/super-nine-grid.vue +0 -1
- package/src/i18n/langs/cn.js +0 -6
- package/src/i18n/langs/en.js +0 -6
- package/src/store/getters.js +0 -7
- package/src/store/index.js +0 -4
- package/src/styles/_layout-custom-properties.scss +3 -10
- package/src/styles/display-layout.scss +27 -76
- package/src/styles/index.scss +15 -44
- package/src/styles/theme/black/index.scss +34 -0
- package/src/styles/theme/blue/index.scss +21 -0
- package/src/styles/theme/blue2/index.scss +22 -0
- package/src/styles/theme/dark-blue/button.scss +12 -0
- package/src/styles/theme/dark-blue/index.scss +60 -0
- package/src/styles/theme/dark-blue/sidebar.scss +5 -0
- package/src/styles/theme/gray/index.scss +29 -0
- package/src/styles/theme/gray/sidebar.scss +5 -0
- package/src/styles/theme/green/button.scss +10 -0
- package/src/styles/theme/green/index.scss +60 -0
- package/src/styles/theme/green/sidebar.scss +5 -0
- package/src/styles/theme/ocean-blue/button.scss +10 -0
- package/src/styles/theme/ocean-blue/index.scss +60 -0
- package/src/styles/theme/ocean-blue/sidebar.scss +5 -0
- package/src/styles/theme/tiffany-blue-mobile/button.scss +10 -0
- package/src/styles/theme/tiffany-blue-mobile/index.scss +54 -0
- package/src/styles/theme/tiffany-blue-mobile/sidebar.scss +5 -0
- package/src/views/dsc-component/tabs/tab-content.vue +37 -28
- package/src/views/layout/components/AppMain.vue +1 -1
- package/src/views/layout/components/tabs/tab-content.vue +37 -28
- package/src/components/Affix/index.vue +0 -265
- package/src/store/modules/system.js +0 -34
- package/src/store/modules/table.js +0 -76
- package/src/styles/page-list.scss +0 -75
- package/src/styles/theme/default.scss +0 -39
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/insert_css.js +0 -33
- package/src/utils/resize.js +0 -19
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-form-item
|
|
3
|
-
:label-width="
|
|
3
|
+
:label-width="
|
|
4
|
+
column.querySetting ? getLabelWidth(column.querySetting) : '110px'
|
|
5
|
+
"
|
|
4
6
|
:prop="column.prop"
|
|
5
7
|
>
|
|
6
8
|
<template v-slot:label>
|
|
7
|
-
|
|
9
|
+
<span
|
|
10
|
+
v-if="column.searchLabel && column.searchLabel !== ''"
|
|
11
|
+
:title="column.searchLabel.replace(/\\n/g, '</br>')"
|
|
12
|
+
v-html="column.searchLabel.replace(/\\n/g, '</br>')"
|
|
13
|
+
/>
|
|
14
|
+
<span
|
|
15
|
+
v-else
|
|
16
|
+
:title="column.label.replace(/\\n/g, '</br>')"
|
|
17
|
+
v-html="column.label.replace(/\\n/g, '</br>')"
|
|
18
|
+
/>
|
|
8
19
|
</template>
|
|
9
20
|
<span v-if="customComponent(column) === true">
|
|
10
21
|
<component
|
|
@@ -273,10 +284,6 @@ export default {
|
|
|
273
284
|
type: Boolean,
|
|
274
285
|
default: false,
|
|
275
286
|
},
|
|
276
|
-
labelWidth: {
|
|
277
|
-
type: [String, Number, undefined],
|
|
278
|
-
default: undefined,
|
|
279
|
-
},
|
|
280
287
|
},
|
|
281
288
|
data() {
|
|
282
289
|
const customComponentNames = new Set()
|
|
@@ -1,26 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
<
|
|
4
|
-
<el-
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<div class="grid-search-row">
|
|
4
|
+
<el-row v-for="r of rowNum" v-show="myOpen || r === 1" :key="r">
|
|
5
|
+
<el-col
|
|
6
|
+
v-for="n of fieldNum"
|
|
7
|
+
:key="n"
|
|
8
|
+
:xs="spanNum"
|
|
9
|
+
:sm="spanNum"
|
|
10
|
+
:md="spanNum"
|
|
11
|
+
:lg="spanNum"
|
|
12
|
+
:xl="spanNum"
|
|
13
|
+
>
|
|
14
|
+
<template
|
|
15
|
+
v-if="fieldNum * (r - 1) + (n - 1) < searchableColumns.length"
|
|
16
|
+
>
|
|
17
|
+
<!--初始进入台账页面时 或 展开时显示按钮--->
|
|
18
|
+
<search-form-item
|
|
19
|
+
v-show="(!myOpen && r === 1 && n < fieldNum) || myOpen"
|
|
20
|
+
:search-form="searchForm"
|
|
21
|
+
:column="searchableColumns[fieldNum * (r - 1) + (n - 1)]"
|
|
22
|
+
:code="code"
|
|
23
|
+
:is-sql="isSql"
|
|
24
|
+
:table-name="tableName"
|
|
25
|
+
:is-join-table="isJoinTable"
|
|
26
|
+
/>
|
|
27
|
+
</template>
|
|
28
|
+
<!--初始进入台账页面时 或 展开时显示按钮--->
|
|
29
|
+
<search-button
|
|
30
|
+
v-if="
|
|
31
|
+
(!myOpen && r === 1 && n === fieldNum) ||
|
|
32
|
+
(myOpen && !isButtonNewRow && r === rowNum && n === fieldNum)
|
|
33
|
+
"
|
|
34
|
+
ref="searchBtnOpen"
|
|
35
|
+
:is-open="myOpen"
|
|
36
|
+
@submit-form="$emit('submit-form')"
|
|
37
|
+
@reset-form="$emit('reset-form')"
|
|
38
|
+
@save-condition="$emit('save-condition')"
|
|
39
|
+
@open-fold="openFold"
|
|
40
|
+
/>
|
|
41
|
+
</el-col>
|
|
42
|
+
</el-row>
|
|
43
|
+
</div>
|
|
44
|
+
<!--按钮单独一行放置时--->
|
|
45
|
+
<el-row v-if="isShowNewBtnRow">
|
|
46
|
+
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
|
|
16
47
|
<search-button
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@open-fold="openFold"
|
|
48
|
+
ref="searchBtnOpen"
|
|
49
|
+
:is-open="myOpen"
|
|
50
|
+
@submit-form="$emit('submit-form')"
|
|
51
|
+
@reset-form="$emit('reset-form')"
|
|
52
|
+
@save-condition="$emit('save-condition')"
|
|
53
|
+
@open-fold="openFold"
|
|
24
54
|
/>
|
|
25
55
|
</el-col>
|
|
26
56
|
</el-row>
|
|
@@ -30,8 +60,6 @@
|
|
|
30
60
|
import searchMethods from './search-methods'
|
|
31
61
|
import SearchFormItem from './search-form-item.vue'
|
|
32
62
|
import SearchButton from './search-button.vue'
|
|
33
|
-
import storeVuex from '../../../src/store';
|
|
34
|
-
|
|
35
63
|
export default {
|
|
36
64
|
name: 'SearchFormOpen',
|
|
37
65
|
components: {
|
|
@@ -86,66 +114,42 @@ export default {
|
|
|
86
114
|
},
|
|
87
115
|
},
|
|
88
116
|
data() {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
117
|
+
let isButtonNewRow = false
|
|
118
|
+
let isShowNewBtnRow = false
|
|
119
|
+
const myOpen = this.isOpen
|
|
120
|
+
if (
|
|
121
|
+
this.searchableColumns.length % this.fieldNum === 0 ||
|
|
122
|
+
this.rowNum > 6
|
|
123
|
+
) {
|
|
124
|
+
// 表示查询字段正好占满行,或行数大于6时,需要另起一行放查询按钮
|
|
125
|
+
isButtonNewRow = true
|
|
126
|
+
isShowNewBtnRow = true
|
|
94
127
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return (this.showColumn - this.searchableColumns.length) > 1
|
|
104
|
-
},
|
|
105
|
-
filterSearchableColumns() {
|
|
106
|
-
return this.searchableColumns.filter((_, index) => !this.myOpen && this.isShowOpen && index > (this.showColumn - 2) ? false : true)
|
|
107
|
-
},
|
|
108
|
-
// 检测label 最大宽度
|
|
109
|
-
labelWidth() {
|
|
110
|
-
try {
|
|
111
|
-
if (!this.maxLength || !this.minLength) return ''
|
|
112
|
-
if (this.maxLength >= 10) return 82
|
|
113
|
-
if (this.maxLength === this.minLength && this.minLength <= 4) return 45
|
|
114
|
-
return 72
|
|
115
|
-
} catch (error) {
|
|
116
|
-
return ''
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
// 列布局
|
|
120
|
-
span() {
|
|
121
|
-
return 24 / this.showColumn
|
|
122
|
-
},
|
|
123
|
-
// 显示多少列
|
|
124
|
-
showColumn() {
|
|
125
|
-
if (this.rowWidth) {
|
|
126
|
-
if (this.rowWidth >= 1500) return 4
|
|
127
|
-
if (this.rowWidth <= 768) return 2
|
|
128
|
-
}
|
|
129
|
-
return 3
|
|
128
|
+
if (isButtonNewRow && !myOpen) {
|
|
129
|
+
// 需要另起一行,但是当前是收起状态,暂不显示最后一行按钮
|
|
130
|
+
isShowNewBtnRow = false
|
|
131
|
+
}
|
|
132
|
+
return {
|
|
133
|
+
isButtonNewRow,
|
|
134
|
+
isShowNewBtnRow,
|
|
135
|
+
myOpen,
|
|
130
136
|
}
|
|
131
137
|
},
|
|
132
138
|
watch: {
|
|
133
|
-
filterSearchableColumns() {
|
|
134
|
-
const combinedArray = this.filterSearchableColumns.map(({ label, searchLabel }) => ( (searchLabel ?? label)?.replace(/[\u4e00-\u9fa5]/g, '**') ?? '').length)
|
|
135
|
-
this.maxLength = Math.max(...combinedArray)
|
|
136
|
-
this.minLength = Math.max(...combinedArray)
|
|
137
|
-
},
|
|
138
139
|
myOpen() {
|
|
140
|
+
if (this.isButtonNewRow) {
|
|
141
|
+
if (!this.myOpen) {
|
|
142
|
+
// 需要另起一行,但是当前是收起状态,暂不显示最后一行按钮
|
|
143
|
+
this.isShowNewBtnRow = false
|
|
144
|
+
} else {
|
|
145
|
+
// 需要另起一行,当前是展开状态,显示最后一行按钮
|
|
146
|
+
this.isShowNewBtnRow = true
|
|
147
|
+
}
|
|
148
|
+
}
|
|
139
149
|
},
|
|
140
150
|
},
|
|
141
151
|
methods: {
|
|
142
152
|
...searchMethods,
|
|
143
|
-
onResize(entry) {
|
|
144
|
-
this.rowWidth = entry.contentRect.width
|
|
145
|
-
// console.log('新尺寸:', entry.contentRect)
|
|
146
|
-
// console.log('宽度:', entry.contentRect.width)
|
|
147
|
-
// console.log('高度:', entry.contentRect.height)
|
|
148
|
-
},
|
|
149
153
|
openFold(isOpen) {
|
|
150
154
|
this.myOpen = isOpen
|
|
151
155
|
this.$emit('open-fold', isOpen)
|
|
@@ -166,5 +170,9 @@ export default {
|
|
|
166
170
|
}
|
|
167
171
|
</script>
|
|
168
172
|
|
|
169
|
-
<style
|
|
173
|
+
<style scoped>
|
|
174
|
+
.grid-search-row {
|
|
175
|
+
overflow: auto;
|
|
176
|
+
max-height: 320px;
|
|
177
|
+
}
|
|
170
178
|
</style>
|
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
2
|
+
<div>
|
|
3
|
+
<el-form
|
|
4
|
+
v-if="searchableColumns.length > 0"
|
|
5
|
+
ref="searchForm"
|
|
6
|
+
:model="searchForm"
|
|
7
|
+
:rules="rules"
|
|
8
|
+
class="grid-search-form"
|
|
9
|
+
label-position="right"
|
|
10
|
+
size="default"
|
|
11
|
+
>
|
|
12
|
+
<search-form-open
|
|
13
|
+
ref="searchFormContent"
|
|
14
|
+
:code="code"
|
|
15
|
+
:field-num="fieldNum"
|
|
16
|
+
:is-join-table="isJoinTable"
|
|
17
|
+
:is-open="isOpen"
|
|
18
|
+
:is-sql="isSql"
|
|
19
|
+
:load-complete-query="loadCompleteQuery"
|
|
20
|
+
:row-num="rowNum"
|
|
21
|
+
:search-form="searchForm"
|
|
22
|
+
:searchable-columns="searchableColumns"
|
|
23
|
+
:span-num="spanNum"
|
|
24
|
+
:table-name="tableName"
|
|
25
|
+
@submit-form="$emit('submit-form')"
|
|
26
|
+
@reset-form="$emit('reset-form')"
|
|
27
|
+
@save-condition="$emit('save-condition')"
|
|
28
|
+
@open-fold="openFold"
|
|
29
|
+
/>
|
|
30
|
+
</el-form>
|
|
31
|
+
</div>
|
|
30
32
|
</template>
|
|
31
33
|
|
|
32
34
|
<script>
|
|
@@ -191,6 +193,10 @@ export default {
|
|
|
191
193
|
</script>
|
|
192
194
|
|
|
193
195
|
<style lang="scss" scoped>
|
|
196
|
+
.grid-search-form {
|
|
197
|
+
overflow: auto;
|
|
198
|
+
}
|
|
199
|
+
|
|
194
200
|
.grid-search-form {
|
|
195
201
|
:deep(.el-form-item) {
|
|
196
202
|
margin-bottom: 0px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div>
|
|
3
3
|
<el-drawer v-if="isMobile" v-model="isShowMobileForm" :close-on-click-modal="false" :close-on-press-escape="false" direction="rtl" size="50%" @close="closeMobileSearch()">
|
|
4
4
|
<div class="search-condition-mobile">
|
|
5
5
|
<search-condition-list
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@save-condition="saveCondition()"
|
|
27
27
|
/>
|
|
28
28
|
</el-drawer>
|
|
29
|
-
<
|
|
29
|
+
<div v-else>
|
|
30
30
|
<search-condition-list
|
|
31
31
|
v-if="searchConditions.length > 0"
|
|
32
32
|
ref="searchConditionList"
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</el-button>
|
|
115
115
|
</span>
|
|
116
116
|
</div>
|
|
117
|
-
</
|
|
117
|
+
</div>
|
|
118
118
|
<search-condition-input
|
|
119
119
|
v-if="isShowSearchCondition"
|
|
120
120
|
@close="saveConditionValue"
|
|
@@ -815,6 +815,10 @@ export default {
|
|
|
815
815
|
</script>
|
|
816
816
|
|
|
817
817
|
<style scoped>
|
|
818
|
+
.grid-search-form {
|
|
819
|
+
overflow: auto;
|
|
820
|
+
}
|
|
821
|
+
|
|
818
822
|
.grid-search-form :deep(.el-form-item) {
|
|
819
823
|
margin-bottom: 0px;
|
|
820
824
|
}
|
|
@@ -829,9 +833,6 @@ export default {
|
|
|
829
833
|
width: 100%;
|
|
830
834
|
}
|
|
831
835
|
|
|
832
|
-
.amb-agilebuilder-search-form-view:empty {
|
|
833
|
-
display: none;
|
|
834
|
-
}
|
|
835
836
|
|
|
836
837
|
.search-condition-mobile {
|
|
837
838
|
padding-bottom: 10px;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div data-v="1.0.0" class="super-grid-main-view" :style="subTableStyle"
|
|
2
|
+
<div data-v="1.0.0" class="super-grid-main-view" :style="subTableStyle">
|
|
3
3
|
<search-form
|
|
4
4
|
v-if="!isFormSubTable && hasLoadedColumns && query && query.showType === 'embedded'"
|
|
5
5
|
v-show="!isMobile || (isMobile && isShowMobileSearch)"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
@reset="resetSearch"
|
|
36
36
|
@close="closeSearchFormDialog"
|
|
37
37
|
/>
|
|
38
|
-
<div
|
|
38
|
+
<div :class="'grid-area ' + code" class="super-grid-main-body">
|
|
39
39
|
<MobileCard
|
|
40
40
|
v-if="isShowCard"
|
|
41
41
|
:selection="selectionTableData"
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
:header-cell-style="changeHeaderStyle"
|
|
73
73
|
:highlight-current-row="true"
|
|
74
74
|
:span-method="rowSpan"
|
|
75
|
-
:max-height="
|
|
76
|
-
:height="
|
|
75
|
+
:max-height="maxHeight"
|
|
76
|
+
:height="tableHeight"
|
|
77
77
|
:class="tableClass"
|
|
78
78
|
:tree-props="getTreeProps(parentProp, isSql, isLazy, dataSourceType)"
|
|
79
79
|
class="super-grid-main-table-view"
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
:title="$t('superGrid.columnConfig')"
|
|
112
112
|
@click="configColumns"
|
|
113
113
|
>
|
|
114
|
-
<el-icon-setting style="width:
|
|
114
|
+
<el-icon-setting style="width: 1em; height: 1em; color: #777; cursor: pointer;" />
|
|
115
115
|
</div>
|
|
116
116
|
|
|
117
117
|
<div
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
:title="$t('superGrid.refresh')"
|
|
121
121
|
@click="refreshGridData"
|
|
122
122
|
>
|
|
123
|
-
<el-icon-refresh style="width:
|
|
123
|
+
<el-icon-refresh style="width: 1em; height: 1em; color: #777; cursor: pointer;" />
|
|
124
124
|
</div>
|
|
125
125
|
|
|
126
126
|
</div>
|
|
@@ -453,21 +453,6 @@ export default {
|
|
|
453
453
|
}
|
|
454
454
|
},
|
|
455
455
|
computed: {
|
|
456
|
-
// 限制高度最低值
|
|
457
|
-
hasMaxHeight() {
|
|
458
|
-
if (this.maxHeight) {
|
|
459
|
-
return this.maxHeight <= 100 ? 100 : this.maxHeight
|
|
460
|
-
}
|
|
461
|
-
return undefined
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
// 是指固钉高度最低值
|
|
465
|
-
hasTableHeight() {
|
|
466
|
-
if (this.maxHeight) {
|
|
467
|
-
return this.tableHeight <= 100 ? 100 : this.tableHeight
|
|
468
|
-
}
|
|
469
|
-
return undefined
|
|
470
|
-
},
|
|
471
456
|
isMobileListCard() {
|
|
472
457
|
return storeVuex.getters.isMobileListCard
|
|
473
458
|
},
|
|
@@ -904,10 +889,6 @@ export default {
|
|
|
904
889
|
...publicMethods,
|
|
905
890
|
...superGridService,
|
|
906
891
|
...apis,
|
|
907
|
-
onClickMain() {
|
|
908
|
-
// 清理编辑选中
|
|
909
|
-
storeVuex?.dispatch?.('clearAllEditing')
|
|
910
|
-
},
|
|
911
892
|
isDeleteChange(boole) {
|
|
912
893
|
this.isDelete = boole
|
|
913
894
|
},
|
|
@@ -1322,11 +1303,6 @@ export default {
|
|
|
1322
1303
|
},
|
|
1323
1304
|
changeRowStyle(param) {
|
|
1324
1305
|
// param的格式:{row, rowIndex}
|
|
1325
|
-
|
|
1326
|
-
// 新增表格编辑背景颜色
|
|
1327
|
-
if (param.row.$editing) {
|
|
1328
|
-
return { background: `var(--el-table-row-hover-bg-color)` }
|
|
1329
|
-
}
|
|
1330
1306
|
const gridParams = store.get(this.code)
|
|
1331
1307
|
if (this.lineEdit && this.lineEdit.editable) {
|
|
1332
1308
|
if (param.rowIndex === gridParams.$rowIndex) {
|
|
@@ -3328,117 +3304,16 @@ export default {
|
|
|
3328
3304
|
height: 100% !important;
|
|
3329
3305
|
}
|
|
3330
3306
|
}
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
.flex-gap-15 {
|
|
3334
|
-
display: flex;
|
|
3335
|
-
gap: var(--layout-form-flex-gap, 15px);
|
|
3336
|
-
align-items: center;
|
|
3337
|
-
|
|
3338
|
-
& .el-button {
|
|
3339
|
-
margin: 0;
|
|
3340
|
-
& + .el-button {
|
|
3341
|
-
margin: 0;
|
|
3342
|
-
}
|
|
3343
|
-
}
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
3307
|
.super-grid-main-view ::v-deep {
|
|
3347
3308
|
display: flex;
|
|
3348
|
-
flex-
|
|
3309
|
+
flex-wrap: wrap;
|
|
3349
3310
|
align-items: stretch;
|
|
3350
3311
|
max-width: 100%;
|
|
3312
|
+
flex: 1 1 auto;
|
|
3351
3313
|
gap: var(--super-grid-main-view-gap, 10px);
|
|
3352
3314
|
|
|
3353
3315
|
.super-grid-main-search-view {
|
|
3354
3316
|
width: 100%;
|
|
3355
|
-
.grid-search-row {
|
|
3356
|
-
@extend .flex-gap-15;
|
|
3357
|
-
flex-wrap: wrap;
|
|
3358
|
-
width: 100%;
|
|
3359
|
-
}
|
|
3360
|
-
[load-complete-query] {
|
|
3361
|
-
@extend .flex-gap-15;
|
|
3362
|
-
flex-direction: column;
|
|
3363
|
-
}
|
|
3364
|
-
.el-row {
|
|
3365
|
-
@extend .flex-gap-15;
|
|
3366
|
-
flex-wrap: wrap;
|
|
3367
|
-
margin: 0;
|
|
3368
|
-
padding: 0;
|
|
3369
|
-
flex: 1 1 auto;
|
|
3370
|
-
width: 100%;
|
|
3371
|
-
align-items: self-start;
|
|
3372
|
-
|
|
3373
|
-
.el-col {
|
|
3374
|
-
@extend .flex-gap-15;
|
|
3375
|
-
padding: 0;
|
|
3376
|
-
flex: 1 1 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
|
|
3377
|
-
max-width: calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
|
|
3378
|
-
|
|
3379
|
-
&.el-col-6 {
|
|
3380
|
-
flex: 1 1 calc((100% - var(--layout-form-flex-gap, 15px) * 3) / 4);
|
|
3381
|
-
max-width: calc((100% - var(--layout-form-flex-gap, 15px) * 3) / 4);
|
|
3382
|
-
}
|
|
3383
|
-
|
|
3384
|
-
&.el-col-8 {
|
|
3385
|
-
flex: 1 1 calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
|
|
3386
|
-
max-width: calc((100% - var(--layout-form-flex-gap, 15px) * 2) / 3);
|
|
3387
|
-
}
|
|
3388
|
-
|
|
3389
|
-
&.el-col-12 {
|
|
3390
|
-
flex: 1 1 calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
|
|
3391
|
-
max-width: calc((100% - var(--layout-form-flex-gap, 15px) * 1) / 2);
|
|
3392
|
-
}
|
|
3393
|
-
|
|
3394
|
-
.el-form-item {
|
|
3395
|
-
width: 100%;
|
|
3396
|
-
align-items: center;
|
|
3397
|
-
|
|
3398
|
-
.el-form-item__label {
|
|
3399
|
-
display: block;
|
|
3400
|
-
width: 82px;
|
|
3401
|
-
height: auto;
|
|
3402
|
-
line-height: 1.2em;
|
|
3403
|
-
word-wrap: break-word !important;
|
|
3404
|
-
max-height: 2.4em;
|
|
3405
|
-
text-align: left;
|
|
3406
|
-
word-break: normal;
|
|
3407
|
-
white-space: normal;
|
|
3408
|
-
}
|
|
3409
|
-
|
|
3410
|
-
& > .el-form-item__content {
|
|
3411
|
-
& > .el-select,& > .el-input, & > .el-textarea {
|
|
3412
|
-
width: calc(100% - 1px);
|
|
3413
|
-
}
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3416
|
-
|
|
3417
|
-
&:has(.search-button) {
|
|
3418
|
-
&:not(.no-show-open) {
|
|
3419
|
-
margin-left: auto;
|
|
3420
|
-
margin-top: auto;
|
|
3421
|
-
flex: 1 1 auto;
|
|
3422
|
-
max-width: none;
|
|
3423
|
-
}
|
|
3424
|
-
|
|
3425
|
-
&.no-search-button-auto {
|
|
3426
|
-
.search-button {
|
|
3427
|
-
margin-left: var(--layout-form-flex-gap, 15px);
|
|
3428
|
-
margin-top: 0;
|
|
3429
|
-
margin-right: auto;
|
|
3430
|
-
}
|
|
3431
|
-
}
|
|
3432
|
-
}
|
|
3433
|
-
}
|
|
3434
|
-
}
|
|
3435
|
-
|
|
3436
|
-
.search-button {
|
|
3437
|
-
@extend .flex-gap-15;
|
|
3438
|
-
gap: var(--super-grid-main-btn-view-gap, 10px);
|
|
3439
|
-
margin-left: auto;
|
|
3440
|
-
margin-top: auto;
|
|
3441
|
-
}
|
|
3442
3317
|
}
|
|
3443
3318
|
.el-table {
|
|
3444
3319
|
.el-scrollbar__bar {
|
|
@@ -3456,7 +3331,6 @@ export default {
|
|
|
3456
3331
|
flex-wrap: wrap;
|
|
3457
3332
|
align-items: stretch;
|
|
3458
3333
|
max-width: 100%;
|
|
3459
|
-
flex: 1 1 auto;
|
|
3460
3334
|
gap: var(--super-grid-main-view-gap, 10px);
|
|
3461
3335
|
|
|
3462
3336
|
.super-grid-main-table-view {
|
|
@@ -3478,11 +3352,6 @@ export default {
|
|
|
3478
3352
|
flex-wrap: wrap;
|
|
3479
3353
|
gap: var(--super-grid-main-view-gap, 10px);
|
|
3480
3354
|
width: 100%;
|
|
3481
|
-
|
|
3482
|
-
.el-pagination {
|
|
3483
|
-
flex-wrap: wrap;
|
|
3484
|
-
gap: var(--layout-form-flex-gap, 15px) 0;
|
|
3485
|
-
}
|
|
3486
3355
|
}
|
|
3487
3356
|
}
|
|
3488
3357
|
}
|
package/src/i18n/langs/cn.js
CHANGED
|
@@ -88,12 +88,6 @@ const cn = {
|
|
|
88
88
|
},
|
|
89
89
|
// 列表组件
|
|
90
90
|
superGrid: {
|
|
91
|
-
rowEditMessageBox: {
|
|
92
|
-
title: "操作确认",
|
|
93
|
-
content: "当前行有未保存的修改,是否进行保存修改切换?",
|
|
94
|
-
confirmButton: "保存修改",
|
|
95
|
-
cancelButton: "放弃修改"
|
|
96
|
-
},
|
|
97
91
|
columnConfig: '字段配置',
|
|
98
92
|
pleaseSaveOrCancelEditingLine: '请先保存或撤销编辑第 {row} 行数据',
|
|
99
93
|
pleaseSaveLine: '请先保存第 {row} 行数据',
|
package/src/i18n/langs/en.js
CHANGED
|
@@ -89,12 +89,6 @@ const en = {
|
|
|
89
89
|
mustFill: '{label} must fill'
|
|
90
90
|
},
|
|
91
91
|
superGrid: {
|
|
92
|
-
rowEditMessageBox: {
|
|
93
|
-
title: "Operation Confirmation",
|
|
94
|
-
content: "There are unsaved modifications in the current row. Do you want to save the modifications and switch?",
|
|
95
|
-
confirmButton: "Save edit",
|
|
96
|
-
cancelButton: "Discard edit"
|
|
97
|
-
},
|
|
98
92
|
columnConfig: 'Column Config',
|
|
99
93
|
pleaseSaveOrCancelEditingLine:
|
|
100
94
|
'Please Save Or Cancel Editing Line {row} Data First',
|
package/src/store/getters.js
CHANGED
|
@@ -5,13 +5,6 @@ const getters = {
|
|
|
5
5
|
windowHeight: (state) => state.app.windowHeight,
|
|
6
6
|
isMobileResize: (state) => state.app.isMobileResize,
|
|
7
7
|
isMobileListCard: (state) => state.app.windowWidth <= 768, // 是否显示卡片
|
|
8
|
-
tableEditingDatas: (state) => state.table.tableEditingDatas,
|
|
9
|
-
isConfigEditing: (state) => state.table.tableEditingDatas.length > 0,
|
|
10
|
-
isEditing: (state) => ($rowDataGuId) => state.table.tableEditingDatas.includes($rowDataGuId),
|
|
11
|
-
isRowEditing: (state) => ($rowGuId) => state.table.tableEditingDatas.some(v => v.includes($rowGuId)),
|
|
12
|
-
theme: (state) => state.system.theme, // 主题
|
|
13
|
-
navExpanded: (state) => state.system.navExpanded, // 是否展开导航
|
|
14
|
-
locale: (state) => state.system.locale, // 国际化
|
|
15
8
|
token: (state) => state.user.token,
|
|
16
9
|
name: (state) => state.user.name,
|
|
17
10
|
// routers: state => state.permission.routers,
|
package/src/store/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import * as Vue from 'vue'
|
|
2
2
|
import * as Vuex from 'vuex'
|
|
3
3
|
import app from './modules/app'
|
|
4
|
-
import table from './modules/table'
|
|
5
4
|
import user from './modules/user'
|
|
6
|
-
import system from './modules/system'
|
|
7
5
|
import permission from './modules/permission'
|
|
8
6
|
import tabContent from './modules/tab-content'
|
|
9
7
|
import getters from './getters'
|
|
@@ -11,9 +9,7 @@ import getters from './getters'
|
|
|
11
9
|
const store = Vuex.createStore({
|
|
12
10
|
modules: {
|
|
13
11
|
app,
|
|
14
|
-
table,
|
|
15
12
|
user,
|
|
16
|
-
system,
|
|
17
13
|
permission,
|
|
18
14
|
tabContent,
|
|
19
15
|
},
|