vue2-client 1.9.61 → 1.9.63
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/src/base-client/components/common/XDataCard/XDataCard.vue +7 -7
- package/src/base-client/components/common/XForm/XForm.vue +8 -2
- package/src/base-client/components/common/XForm/XTreeSelect.vue +25 -18
- package/src/base-client/components/common/XTable/XTable.vue +3 -3
- package/src/router/async/router.map.js +2 -2
package/package.json
CHANGED
|
@@ -271,8 +271,9 @@ export default {
|
|
|
271
271
|
</script>
|
|
272
272
|
|
|
273
273
|
<style lang="less" scoped>
|
|
274
|
-
.hide-page-numbers /deep/ .ant-pagination-item
|
|
275
|
-
|
|
274
|
+
.hide-page-numbers /deep/ .ant-pagination-item,
|
|
275
|
+
.hide-page-numbers /deep/ .ant-pagination-jump-next {
|
|
276
|
+
display: none; /* 隐藏数字页码和多页跳转 */
|
|
276
277
|
}
|
|
277
278
|
.hide-page-numbers /deep/ .ant-pagination-prev,
|
|
278
279
|
.hide-page-numbers /deep/ .ant-pagination-next {
|
|
@@ -285,14 +286,14 @@ export default {
|
|
|
285
286
|
justify-content: space-between;
|
|
286
287
|
|
|
287
288
|
.data-card {
|
|
288
|
-
height: 32vh;
|
|
289
289
|
width: 15vw;
|
|
290
|
+
margin: 10px 0;
|
|
290
291
|
border: 2px solid rgb(244,244,244);
|
|
291
292
|
border-radius: 5px;
|
|
292
293
|
margin-bottom: 1%;
|
|
293
294
|
|
|
294
295
|
.header {
|
|
295
|
-
height:
|
|
296
|
+
height: 30px;
|
|
296
297
|
width: 100%;
|
|
297
298
|
background-color: rgb(244,244,244);
|
|
298
299
|
padding-top: 3%;
|
|
@@ -305,12 +306,11 @@ export default {
|
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
.body {
|
|
308
|
-
height: 70%;
|
|
309
309
|
width: 100%;
|
|
310
310
|
padding: 3%;
|
|
311
311
|
|
|
312
312
|
.body-item {
|
|
313
|
-
height:
|
|
313
|
+
height: 20px;
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
.body-split {
|
|
@@ -364,7 +364,7 @@ export default {
|
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
.footer {
|
|
367
|
-
height:
|
|
367
|
+
height: 35px;
|
|
368
368
|
width: 100%;
|
|
369
369
|
background-color: rgb(244,244,244);
|
|
370
370
|
padding-top: 5%;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<a-row :gutter="24">
|
|
11
11
|
<x-form-item
|
|
12
12
|
v-for="(item, index) in realJsonData.slice(0,7)"
|
|
13
|
+
:showLabel="!simpleMode"
|
|
13
14
|
:key="index"
|
|
14
15
|
:attr="item"
|
|
15
16
|
:form="form"
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
<div v-for="(groupItem, groupIndex) in groupJsonData" :key="'group-' + groupIndex">
|
|
23
24
|
<x-form-item
|
|
24
25
|
v-for="(item, index) in groupItem.groupItems"
|
|
26
|
+
:showLabel="!simpleMode"
|
|
25
27
|
:key="index"
|
|
26
28
|
:attr="item"
|
|
27
29
|
:form="form"
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
<div v-show="advanced">
|
|
35
37
|
<x-form-item
|
|
36
38
|
v-for="(item, index) in realJsonData.slice(7)"
|
|
39
|
+
:showLabel="!simpleMode"
|
|
37
40
|
:key="'advanced'+index"
|
|
38
41
|
:attr="item"
|
|
39
42
|
:form="form"
|
|
@@ -60,12 +63,13 @@
|
|
|
60
63
|
<a-divider type="vertical"/>
|
|
61
64
|
</template>
|
|
62
65
|
<a-button
|
|
66
|
+
v-show="!simpleMode"
|
|
63
67
|
htmlType="submit"
|
|
64
68
|
type="primary"
|
|
65
69
|
@click="onSubmit">
|
|
66
70
|
<a-icon :style="iconStyle" type="search"/>查询
|
|
67
71
|
</a-button>
|
|
68
|
-
<a-button style="margin-left: 8px" @click="resetForm">重置</a-button>
|
|
72
|
+
<a-button v-show="!simpleMode" style="margin-left: 8px" @click="resetForm">重置</a-button>
|
|
69
73
|
<slot></slot>
|
|
70
74
|
</span>
|
|
71
75
|
</a-col>
|
|
@@ -235,7 +239,9 @@ export default {
|
|
|
235
239
|
} else {
|
|
236
240
|
formData[item.model] = item.queryFormDefault
|
|
237
241
|
}
|
|
238
|
-
|
|
242
|
+
if (item.forceQueryDefault) {
|
|
243
|
+
this.defaultMap[item.model] = formData[item.model]
|
|
244
|
+
}
|
|
239
245
|
} else {
|
|
240
246
|
if (item.type === 'intervalPicker') {
|
|
241
247
|
formData[item.model] = ['', '']
|
|
@@ -86,18 +86,21 @@ export default {
|
|
|
86
86
|
if (this.option.length > 0 && this.option[0].value.toString().indexOf('-') !== -1) {
|
|
87
87
|
this.value = model + '-' + value
|
|
88
88
|
} else {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
if (this.mode === '查询') {
|
|
90
|
+
const values = []
|
|
91
|
+
for (const item of this.option) {
|
|
92
|
+
if (value.includes(item.value)) {
|
|
93
|
+
values.push(item.value)
|
|
94
|
+
if (item.children && item.children.length) {
|
|
95
|
+
this.getValues(item.children, value, values)
|
|
96
|
+
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
+
this.$emit('onChange', values)
|
|
100
|
+
} else {
|
|
101
|
+
this.value = value
|
|
99
102
|
}
|
|
100
|
-
|
|
103
|
+
// value = option 自身和所有子得集合
|
|
101
104
|
}
|
|
102
105
|
} else {
|
|
103
106
|
this.value = undefined
|
|
@@ -179,18 +182,22 @@ export default {
|
|
|
179
182
|
// 从单一数据源组成的树可以直接赋值
|
|
180
183
|
// this.form[this.model] = value
|
|
181
184
|
// 获取所有选中节点的value
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
185
|
+
if (this.mode === '查询') {
|
|
186
|
+
const values = []
|
|
187
|
+
if (extra.allCheckedNodes) {
|
|
188
|
+
for (const item of extra.allCheckedNodes) {
|
|
189
|
+
if (item.node.key) {
|
|
190
|
+
values.push(item.node.key)
|
|
191
|
+
}
|
|
192
|
+
if (item.children && item.children.length) {
|
|
193
|
+
this.getNodeValues(item.children, value, values)
|
|
194
|
+
}
|
|
190
195
|
}
|
|
191
196
|
}
|
|
197
|
+
this.$emit('onChange', values)
|
|
198
|
+
} else {
|
|
199
|
+
this.$emit('onChange', value)
|
|
192
200
|
}
|
|
193
|
-
this.$emit('onChange', values)
|
|
194
201
|
}
|
|
195
202
|
}
|
|
196
203
|
},
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
{{ button.buttonName }}
|
|
74
74
|
</a-button>
|
|
75
75
|
|
|
76
|
-
<a-button v-if="allowedCardMode" @click="changeViewMode" :type="isTableMode ? '' : 'primary'">
|
|
76
|
+
<a-button v-if="allowedCardMode && !simpleMode" @click="changeViewMode" :type="isTableMode ? '' : 'primary'">
|
|
77
77
|
看板模式
|
|
78
78
|
</a-button>
|
|
79
79
|
<slot name="button" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
</a-col>
|
|
103
103
|
</a-row>
|
|
104
104
|
<!-- 如果当前是表格模式 -->
|
|
105
|
-
<template v-if="isTableMode">
|
|
105
|
+
<template v-if="isTableMode && !simpleMode">
|
|
106
106
|
<s-table
|
|
107
107
|
ref="table"
|
|
108
108
|
:id="uniqueId"
|
|
@@ -721,7 +721,7 @@ export default {
|
|
|
721
721
|
} else {
|
|
722
722
|
result = query(Object.assign(requestParameters, { userId: this.currUser?.id }), this.serviceName, this.env === 'dev')
|
|
723
723
|
}
|
|
724
|
-
if (this.isTableMode) {
|
|
724
|
+
if (this.isTableMode && !this.simpleMode) {
|
|
725
725
|
this.clearRowKeys()
|
|
726
726
|
}
|
|
727
727
|
this.$emit('afterQuery', result, requestParameters.conditionParams)
|
|
@@ -85,9 +85,9 @@ routerResource.example = {
|
|
|
85
85
|
name: '示例页面',
|
|
86
86
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
|
87
87
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
|
88
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
88
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
|
89
89
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
|
90
|
-
|
|
90
|
+
component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
|
|
91
91
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
92
92
|
meta: {
|
|
93
93
|
// 菜单中不显示
|