doway-coms 2.10.44 → 2.10.46
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 +1 -1
- package/packages/BaseGrid/src/SeqSetting.vue +316 -278
- package/packages/BaseGrid/src/index.vue +27 -11
package/package.json
CHANGED
|
@@ -1,279 +1,317 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="content-card">
|
|
3
|
-
<!-- 查询框 -->
|
|
4
|
-
<div style="margin: 10px 10px 10px 0px">
|
|
5
|
-
<a-input
|
|
6
|
-
ref="searchInput"
|
|
7
|
-
v-model="searchField"
|
|
8
|
-
placeholder="搜索添加更多字段"
|
|
9
|
-
><a-icon slot="prefix" type="search" />
|
|
10
|
-
</a-input>
|
|
11
|
-
</div>
|
|
12
|
-
<div :style="{ height: height-250+'px', overflow:'auto' }" class="field-content">
|
|
13
|
-
<div class="field-card">
|
|
14
|
-
<div class="card-tltle">显示字段</div>
|
|
15
|
-
<div ref="dragForm">
|
|
16
|
-
<div
|
|
17
|
-
:class="{ 'not-sort': searchField }"
|
|
18
|
-
v-for="item in columns.filter(x=> x.visible)"
|
|
19
|
-
:key="item.currentKey"
|
|
20
|
-
:data-id="item.currentKey"
|
|
21
|
-
class="drag-row show-sort"
|
|
22
|
-
v-show="showField(item.title)"
|
|
23
|
-
>
|
|
24
|
-
<div style="margin-right: 7px;" class="move">
|
|
25
|
-
<img src="../../styles/icon/drag.svg" alt="" style="width: 20px" >
|
|
26
|
-
</div>
|
|
27
|
-
<div style="flex: 1;" class="move">{{ item.title }}</div>
|
|
28
|
-
<div style="margin-left: auto;"><a-switch v-model="item.visible" @change="onCheckboxChange(item)" size="small"/></div>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div class="field-card">
|
|
33
|
-
<div class="card-tltle">未显示字段</div>
|
|
34
|
-
<div ref="notShownField">
|
|
35
|
-
<div
|
|
36
|
-
v-for="(item, index) in columns.filter(x=> !x.visible)"
|
|
37
|
-
:key="index"
|
|
38
|
-
:data-id="index"
|
|
39
|
-
class="drag-row"
|
|
40
|
-
>
|
|
41
|
-
<div>{{ item.title }}</div>
|
|
42
|
-
<div style="margin-left: auto;">
|
|
43
|
-
<a-switch
|
|
44
|
-
:disabled="!item.sysVisible"
|
|
45
|
-
v-model="item.visible"
|
|
46
|
-
@change="onCheckboxChange(item)"
|
|
47
|
-
size="small"
|
|
48
|
-
/></div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
<script>
|
|
56
|
-
import {
|
|
57
|
-
Row,
|
|
58
|
-
Col,
|
|
59
|
-
Input,
|
|
60
|
-
Checkbox,
|
|
61
|
-
Button,
|
|
62
|
-
Icon,
|
|
63
|
-
Switch,
|
|
64
|
-
} from "ant-design-vue";
|
|
65
|
-
import Sortable from 'sortablejs'
|
|
66
|
-
import { saveUserModuleDataFieldApi } from "../../utils/api";
|
|
67
|
-
export default {
|
|
68
|
-
components: {
|
|
69
|
-
"a-icon": Icon,
|
|
70
|
-
"a-row": Row,
|
|
71
|
-
"a-col": Col,
|
|
72
|
-
"a-input": Input,
|
|
73
|
-
"a-checkbox": Checkbox,
|
|
74
|
-
"a-button": Button,
|
|
75
|
-
"a-switch": Switch,
|
|
76
|
-
},
|
|
77
|
-
props: {
|
|
78
|
-
userDefineColumns: {
|
|
79
|
-
type: Array,
|
|
80
|
-
default: function () {
|
|
81
|
-
return [];
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
height: {
|
|
85
|
-
type: Number,
|
|
86
|
-
default: function () {
|
|
87
|
-
return 0;
|
|
88
|
-
},
|
|
89
|
-
},
|
|
90
|
-
moduleCode: {
|
|
91
|
-
type: String,
|
|
92
|
-
default: function () {
|
|
93
|
-
return '';
|
|
94
|
-
},
|
|
95
|
-
},
|
|
96
|
-
dataCode: {
|
|
97
|
-
type: String,
|
|
98
|
-
default: function () {
|
|
99
|
-
return '';
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
data() {
|
|
104
|
-
return {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
this.
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
//
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
//
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
.
|
|
258
|
-
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
.field-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="content-card">
|
|
3
|
+
<!-- 查询框 -->
|
|
4
|
+
<div style="margin: 10px 10px 10px 0px">
|
|
5
|
+
<a-input
|
|
6
|
+
ref="searchInput"
|
|
7
|
+
v-model="searchField"
|
|
8
|
+
placeholder="搜索添加更多字段"
|
|
9
|
+
><a-icon slot="prefix" type="search" />
|
|
10
|
+
</a-input>
|
|
11
|
+
</div>
|
|
12
|
+
<div :style="{ height: height-250+'px', overflow:'auto' }" class="field-content">
|
|
13
|
+
<div class="field-card">
|
|
14
|
+
<div class="card-tltle">显示字段</div>
|
|
15
|
+
<div ref="dragForm">
|
|
16
|
+
<div
|
|
17
|
+
:class="{ 'not-sort': searchField }"
|
|
18
|
+
v-for="item in columns.filter(x=> x.visible)"
|
|
19
|
+
:key="item.currentKey"
|
|
20
|
+
:data-id="item.currentKey"
|
|
21
|
+
class="drag-row show-sort"
|
|
22
|
+
v-show="showField(item.title)"
|
|
23
|
+
>
|
|
24
|
+
<div style="margin-right: 7px;" class="move">
|
|
25
|
+
<img src="../../styles/icon/drag.svg" alt="" style="width: 20px" >
|
|
26
|
+
</div>
|
|
27
|
+
<div style="flex: 1;" class="move">{{ item.title }}</div>
|
|
28
|
+
<div style="margin-left: auto;"><a-switch v-model="item.visible" @change="onCheckboxChange(item)" size="small"/></div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="field-card">
|
|
33
|
+
<div class="card-tltle">未显示字段</div>
|
|
34
|
+
<div ref="notShownField">
|
|
35
|
+
<div
|
|
36
|
+
v-for="(item, index) in columns.filter(x=> !x.visible)"
|
|
37
|
+
:key="index"
|
|
38
|
+
:data-id="index"
|
|
39
|
+
class="drag-row"
|
|
40
|
+
>
|
|
41
|
+
<div>{{ item.title }}</div>
|
|
42
|
+
<div style="margin-left: auto;">
|
|
43
|
+
<a-switch
|
|
44
|
+
:disabled="!item.sysVisible"
|
|
45
|
+
v-model="item.visible"
|
|
46
|
+
@change="onCheckboxChange(item)"
|
|
47
|
+
size="small"
|
|
48
|
+
/></div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
<script>
|
|
56
|
+
import {
|
|
57
|
+
Row,
|
|
58
|
+
Col,
|
|
59
|
+
Input,
|
|
60
|
+
Checkbox,
|
|
61
|
+
Button,
|
|
62
|
+
Icon,
|
|
63
|
+
Switch,
|
|
64
|
+
} from "ant-design-vue";
|
|
65
|
+
import Sortable from 'sortablejs'
|
|
66
|
+
import { saveUserModuleDataFieldApi } from "../../utils/api";
|
|
67
|
+
export default {
|
|
68
|
+
components: {
|
|
69
|
+
"a-icon": Icon,
|
|
70
|
+
"a-row": Row,
|
|
71
|
+
"a-col": Col,
|
|
72
|
+
"a-input": Input,
|
|
73
|
+
"a-checkbox": Checkbox,
|
|
74
|
+
"a-button": Button,
|
|
75
|
+
"a-switch": Switch,
|
|
76
|
+
},
|
|
77
|
+
props: {
|
|
78
|
+
userDefineColumns: {
|
|
79
|
+
type: Array,
|
|
80
|
+
default: function () {
|
|
81
|
+
return [];
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
height: {
|
|
85
|
+
type: Number,
|
|
86
|
+
default: function () {
|
|
87
|
+
return 0;
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
moduleCode: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: function () {
|
|
93
|
+
return '';
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
dataCode: {
|
|
97
|
+
type: String,
|
|
98
|
+
default: function () {
|
|
99
|
+
return '';
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
data() {
|
|
104
|
+
return {
|
|
105
|
+
windowHeight: window.innerHeight, // 添加这一行
|
|
106
|
+
searchField: null,
|
|
107
|
+
// 接收所有字段数据
|
|
108
|
+
adjustUserDefineColumns: [],
|
|
109
|
+
// 可显示字段数据
|
|
110
|
+
columns:[],
|
|
111
|
+
// 改变后顺序记录数组
|
|
112
|
+
currentSortKeys: [],
|
|
113
|
+
// 拖拽表单配置
|
|
114
|
+
options: {}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
created() {
|
|
118
|
+
this.setColumnsOptions()
|
|
119
|
+
},
|
|
120
|
+
mounted() {
|
|
121
|
+
// 初始排序数组
|
|
122
|
+
// 监听窗口大小变化
|
|
123
|
+
window.addEventListener('resize', this.handleResize)
|
|
124
|
+
this.currentSortKeys = this.columns.map(x=>x.currentKey)
|
|
125
|
+
this.setOptions()
|
|
126
|
+
},
|
|
127
|
+
beforeDestroy() {
|
|
128
|
+
// 组件销毁时移除监听
|
|
129
|
+
window.removeEventListener('resize', this.handleResize)
|
|
130
|
+
},
|
|
131
|
+
methods: {
|
|
132
|
+
handleResize() {
|
|
133
|
+
this.windowHeight = window.innerHeight
|
|
134
|
+
},
|
|
135
|
+
updateColumns(currentColumns) {
|
|
136
|
+
this.adjustUserDefineColumns = JSON.parse(JSON.stringify(currentColumns))
|
|
137
|
+
this.setColumnsOptions()
|
|
138
|
+
},
|
|
139
|
+
setColumnsOptions() {
|
|
140
|
+
this.adjustUserDefineColumns = this.userDefineColumns
|
|
141
|
+
// 设置唯一标识,用于保存时找到字段并重新排序
|
|
142
|
+
this.adjustUserDefineColumns.forEach((x, index)=> x.currentKey = index + x.field)
|
|
143
|
+
this.columns = [];
|
|
144
|
+
this.adjustUserDefineColumns.forEach((item) => {
|
|
145
|
+
// 去除操作列和序号、多选框列
|
|
146
|
+
if (item.field === "operation" || item.field == undefined) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const column = {
|
|
150
|
+
currentKey: item.currentKey,
|
|
151
|
+
field: item.field,
|
|
152
|
+
title: item.title,
|
|
153
|
+
visible: item.visible,
|
|
154
|
+
sysVisible: item.params.sysVisible, // 系统隐藏字段不可操作
|
|
155
|
+
width: item.width,
|
|
156
|
+
filters: item.filters,
|
|
157
|
+
order: item.order,
|
|
158
|
+
}
|
|
159
|
+
this.columns.push(column);
|
|
160
|
+
})
|
|
161
|
+
},
|
|
162
|
+
// 配置方法
|
|
163
|
+
setOptions() {
|
|
164
|
+
var vm = this
|
|
165
|
+
//获取对象
|
|
166
|
+
var el = vm.$refs.dragForm
|
|
167
|
+
//设置配置
|
|
168
|
+
vm.options = {
|
|
169
|
+
group:'sortableDrag',
|
|
170
|
+
animation: 200,
|
|
171
|
+
handle:".move",
|
|
172
|
+
sort: true,
|
|
173
|
+
filter: ".not-sort", // not-sort用来控制筛选时不可拖拽
|
|
174
|
+
forceFallback: true, // 禁用html5原生拖拽行为,使得可以同时使用拖拽及鼠标滚轴
|
|
175
|
+
//拖动结束
|
|
176
|
+
onEnd: function (evt) {
|
|
177
|
+
//获取拖动后的排序
|
|
178
|
+
vm.currentSortKeys = sortable.toArray()
|
|
179
|
+
// 调取保存
|
|
180
|
+
vm.saveSortable()
|
|
181
|
+
},
|
|
182
|
+
};
|
|
183
|
+
//初始化
|
|
184
|
+
var sortable = Sortable.create(el, vm.options);
|
|
185
|
+
},
|
|
186
|
+
onCheckboxChange() {
|
|
187
|
+
let vm = this
|
|
188
|
+
// 在渲染切换后获取渲染后div内容,进行赋值
|
|
189
|
+
this.$nextTick(()=>{
|
|
190
|
+
|
|
191
|
+
let sortableElement = vm.$refs.dragForm
|
|
192
|
+
let sortKeys = []
|
|
193
|
+
for (let i = 0; i < sortableElement.children.length; i++) {
|
|
194
|
+
sortKeys.push(sortableElement.children[i].dataset.id)
|
|
195
|
+
}
|
|
196
|
+
vm.currentSortKeys = sortKeys
|
|
197
|
+
this.saveSortable()
|
|
198
|
+
})
|
|
199
|
+
// 保存之前将显示字段数组删除当前的
|
|
200
|
+
},
|
|
201
|
+
// 保存拖拽后排序
|
|
202
|
+
saveSortable() {
|
|
203
|
+
let vm = this
|
|
204
|
+
let postData = {
|
|
205
|
+
moduleCode: vm.moduleCode,
|
|
206
|
+
dataCode: vm.dataCode,
|
|
207
|
+
fields: [],
|
|
208
|
+
}
|
|
209
|
+
let currentDrag = JSON.parse(JSON.stringify(vm.currentSortKeys))
|
|
210
|
+
// 将不显示数组最后放入
|
|
211
|
+
let notShowColumns = vm.columns.filter(x=>!x.visible).map(i=>i.currentKey)
|
|
212
|
+
currentDrag.push(...notShowColumns)
|
|
213
|
+
// 循环按照当前顺序赋值序号
|
|
214
|
+
currentDrag.forEach((item, index) => {
|
|
215
|
+
let tempObject = vm.columns.find(x => x.currentKey == item)
|
|
216
|
+
let tempData = {
|
|
217
|
+
field: tempObject.field,
|
|
218
|
+
sort: index + 1,
|
|
219
|
+
hidden: !tempObject.visible,
|
|
220
|
+
width: tempObject.width,
|
|
221
|
+
extraInfo:{}
|
|
222
|
+
}
|
|
223
|
+
if (tempObject.filters && tempObject.filters[0].data && tempObject.filters[0].data.bindingValues.length) {
|
|
224
|
+
tempObject.filters[0].checked = true;
|
|
225
|
+
tempData.extraInfo.filterExpression = tempObject.filters
|
|
226
|
+
}
|
|
227
|
+
if (tempObject.order) {
|
|
228
|
+
tempData.extraInfo.order = tempObject.order
|
|
229
|
+
}
|
|
230
|
+
postData.fields.push(tempData)
|
|
231
|
+
})
|
|
232
|
+
saveUserModuleDataFieldApi(postData)
|
|
233
|
+
.then(res => {
|
|
234
|
+
// 返回表格组件触发更新
|
|
235
|
+
vm.$emit('saveSeqConfig',postData, res.content)
|
|
236
|
+
})
|
|
237
|
+
.catch((err) => {
|
|
238
|
+
console.debug(err)
|
|
239
|
+
})
|
|
240
|
+
.finally(() => {})
|
|
241
|
+
},
|
|
242
|
+
showField(title) {
|
|
243
|
+
let isShow = true
|
|
244
|
+
if (this.searchField && (title.indexOf(this.searchField) == -1)) {
|
|
245
|
+
isShow = false
|
|
246
|
+
}
|
|
247
|
+
return isShow
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
}
|
|
251
|
+
</script>
|
|
252
|
+
<style scoped lang="scss">
|
|
253
|
+
.content-card {
|
|
254
|
+
font-weight: 600;
|
|
255
|
+
min-width: 240px;
|
|
256
|
+
}
|
|
257
|
+
.show-sort:hover {
|
|
258
|
+
background-color: #f7f7f7;
|
|
259
|
+
}
|
|
260
|
+
.drag-row {
|
|
261
|
+
cursor: pointer;
|
|
262
|
+
padding-right: 5px;
|
|
263
|
+
height: 36px;
|
|
264
|
+
display: flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
}
|
|
267
|
+
/* 修改滚动条整体样式 */
|
|
268
|
+
.field-content::-webkit-scrollbar {
|
|
269
|
+
width: 7px; /* 设置滚动条宽度 */
|
|
270
|
+
}
|
|
271
|
+
/* 修改滚动条轨道样式 */
|
|
272
|
+
.field-content::-webkit-scrollbar-track {
|
|
273
|
+
background-color: #f1f1f1; /* 设置轨道背景色 */
|
|
274
|
+
}
|
|
275
|
+
/* 修改滚动条滑块样式 */
|
|
276
|
+
.field-content::-webkit-scrollbar-thumb {
|
|
277
|
+
background-color: #888; /* 设置滑块背景色 */
|
|
278
|
+
}
|
|
279
|
+
/* 修改滚动条滑块在hover状态下的样式 */
|
|
280
|
+
.field-content::-webkit-scrollbar-thumb:hover {
|
|
281
|
+
background-color: #555; /* 设置滑块hover时背景色 */
|
|
282
|
+
}
|
|
283
|
+
.field-card {
|
|
284
|
+
margin: 10px 10px 0px 0px;
|
|
285
|
+
font-size: 15px;
|
|
286
|
+
.card-tltle {
|
|
287
|
+
margin-bottom: 10px;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
.content-card {
|
|
291
|
+
padding: 0 16px;
|
|
292
|
+
min-height: 400px;
|
|
293
|
+
max-height: v-bind('windowHeight - 100 + "px"'); /* 减去100px留出一些边距空间 */
|
|
294
|
+
overflow: auto;
|
|
295
|
+
|
|
296
|
+
.field-content {
|
|
297
|
+
height: auto !important;
|
|
298
|
+
min-height: 200px;
|
|
299
|
+
overflow: auto;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
/* 美化滚动条样式 */
|
|
305
|
+
.content-card::-webkit-scrollbar {
|
|
306
|
+
width: 6px;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.content-card::-webkit-scrollbar-thumb {
|
|
310
|
+
background-color: #e8e8e8;
|
|
311
|
+
border-radius: 3px;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.content-card::-webkit-scrollbar-track {
|
|
315
|
+
background-color: #f5f5f5;
|
|
316
|
+
}
|
|
279
317
|
</style>
|
|
@@ -122,7 +122,6 @@
|
|
|
122
122
|
<SeqSetting
|
|
123
123
|
:moduleCode="moduleCode"
|
|
124
124
|
:dataCode="dataCode"
|
|
125
|
-
:height="height"
|
|
126
125
|
:userDefineColumns="userDefineColumns"
|
|
127
126
|
ref="baseAdjustGridView"
|
|
128
127
|
@saveSeqConfig="saveSeqConfig"
|
|
@@ -1226,8 +1225,8 @@ export default {
|
|
|
1226
1225
|
}
|
|
1227
1226
|
}
|
|
1228
1227
|
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
1229
|
-
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
1230
|
-
|
|
1228
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
1229
|
+
|
|
1231
1230
|
|
|
1232
1231
|
// 初始化排序和筛选
|
|
1233
1232
|
if (this.sortRemote) {
|
|
@@ -1394,8 +1393,8 @@ export default {
|
|
|
1394
1393
|
}
|
|
1395
1394
|
}
|
|
1396
1395
|
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
1397
|
-
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
1398
|
-
|
|
1396
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
1397
|
+
|
|
1399
1398
|
},
|
|
1400
1399
|
// 关闭所有展开行
|
|
1401
1400
|
closeAllExpand() {
|
|
@@ -1691,7 +1690,7 @@ export default {
|
|
|
1691
1690
|
case 'copyRow':
|
|
1692
1691
|
if(this.gridEdit){
|
|
1693
1692
|
this.copySaveRow=JSON.parse(JSON.stringify(row))
|
|
1694
|
-
|
|
1693
|
+
|
|
1695
1694
|
}
|
|
1696
1695
|
break
|
|
1697
1696
|
case 'paste':
|
|
@@ -2117,7 +2116,7 @@ export default {
|
|
|
2117
2116
|
if (originCol.children) {
|
|
2118
2117
|
colInfo['children'] = []
|
|
2119
2118
|
for (let x = 0; x < originCol.children.length; x++) {
|
|
2120
|
-
colInfo['children'].push(this.initColumns(originCol.children[
|
|
2119
|
+
colInfo['children'].push(this.initColumns(originCol.children[x]))
|
|
2121
2120
|
}
|
|
2122
2121
|
}
|
|
2123
2122
|
//防止报错 有slots值就走前面 没有slots这个键key就走后面
|
|
@@ -2942,8 +2941,8 @@ export default {
|
|
|
2942
2941
|
this.internalColumns.push(this.initColumns(column))
|
|
2943
2942
|
})
|
|
2944
2943
|
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
2945
|
-
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
2946
|
-
|
|
2944
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
2945
|
+
|
|
2947
2946
|
this.$refs.baseGrid.refreshColumn()
|
|
2948
2947
|
},
|
|
2949
2948
|
addRules(fields, rules) {
|
|
@@ -2953,8 +2952,8 @@ export default {
|
|
|
2953
2952
|
// this.$set(this.validRules, field, rules)
|
|
2954
2953
|
})
|
|
2955
2954
|
//设置验证规则信息,如果没有验证规则的情况下一定要设置null值,设置{}的话会导致点击编辑行会有问题
|
|
2956
|
-
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
2957
|
-
|
|
2955
|
+
this.editRules =XEUtils.isEmpty(this.validRules)?null:this.validRules
|
|
2956
|
+
|
|
2958
2957
|
this.$refs.baseGrid.refreshColumn()
|
|
2959
2958
|
},
|
|
2960
2959
|
displayValueSearchTextChange(colInfo) {
|
|
@@ -3697,6 +3696,23 @@ export default {
|
|
|
3697
3696
|
</script>
|
|
3698
3697
|
|
|
3699
3698
|
<style>
|
|
3699
|
+
|
|
3700
|
+
/* 添加到你的组件样式中 */
|
|
3701
|
+
.popover-content-card {
|
|
3702
|
+
max-height: none !important; /* 移除最大高度限制 */
|
|
3703
|
+
overflow: visible !important; /* 允许内容溢出 */
|
|
3704
|
+
}
|
|
3705
|
+
|
|
3706
|
+
.popover-content-card .ant-popover-inner-content {
|
|
3707
|
+
padding: 0;
|
|
3708
|
+
max-height: none !important;
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
/* 确保popover在其他元素之上 */
|
|
3712
|
+
.ant-popover {
|
|
3713
|
+
z-index: 1050;
|
|
3714
|
+
}
|
|
3715
|
+
|
|
3700
3716
|
.base-grid-view .ant-btn-link {
|
|
3701
3717
|
padding: 0 6px;
|
|
3702
3718
|
}
|