vue2-client 1.14.39 → 1.14.41
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/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +36 -0
- package/package.json +1 -1
- package/src/base-client/components/TreeList/TreeList.vue +91 -0
- package/src/base-client/components/TreeList/TreeNode.vue +81 -0
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/XCardSet/XTiltle.vue +191 -0
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XFormTable/XFormTable.vue +1 -0
- package/src/base-client/components/common/XTable/ExportExcel.vue +6 -0
- package/src/base-client/components/common/XTable/XTable.vue +12 -0
- package/src/base-client/components/common/XTable/XTableWrapper.vue +2 -0
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/base-client/components/his/threeTestOrders/threeTestOrders.vue +386 -386
- package/src/components/STable/index.js +42 -5
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
default: false
|
|
71
71
|
},
|
|
72
72
|
showPagination: {
|
|
73
|
-
type: String
|
|
73
|
+
type: [String, Boolean],
|
|
74
74
|
default: 'auto'
|
|
75
75
|
},
|
|
76
76
|
// 是否隐藏翻页,如果隐藏,彻底不显示翻译
|
|
@@ -95,6 +95,11 @@ export default {
|
|
|
95
95
|
pageURI: {
|
|
96
96
|
type: Boolean,
|
|
97
97
|
default: false
|
|
98
|
+
},
|
|
99
|
+
// 最大分页大小,如果设置则使用该值作为分页大小并隐藏分页组件
|
|
100
|
+
pageMaxSize: {
|
|
101
|
+
type: Number,
|
|
102
|
+
default: null
|
|
98
103
|
}
|
|
99
104
|
}),
|
|
100
105
|
computed: {
|
|
@@ -136,11 +141,33 @@ export default {
|
|
|
136
141
|
Object.assign(this.localPagination, {
|
|
137
142
|
showSizeChanger: val
|
|
138
143
|
})
|
|
144
|
+
},
|
|
145
|
+
pageMaxSize: {
|
|
146
|
+
handler (val) {
|
|
147
|
+
if (val) {
|
|
148
|
+
this.pageSize = val
|
|
149
|
+
this.hidePagination = true
|
|
150
|
+
// 更新 localPagination
|
|
151
|
+
if (this.localPagination) {
|
|
152
|
+
Object.assign(this.localPagination, {
|
|
153
|
+
pageSize: val
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
immediate: true
|
|
139
159
|
}
|
|
140
160
|
},
|
|
141
161
|
created () {
|
|
142
162
|
const { pageNo } = this.$route.params
|
|
143
163
|
const localPageNum = this.pageURI && (pageNo && parseInt(pageNo)) || this.pageNum
|
|
164
|
+
|
|
165
|
+
// 如果设置了 pageMaxSize,则使用该值作为分页大小并隐藏分页
|
|
166
|
+
if (this.pageMaxSize) {
|
|
167
|
+
this.pageSize = this.pageMaxSize
|
|
168
|
+
this.hidePagination = true
|
|
169
|
+
}
|
|
170
|
+
|
|
144
171
|
this.localPagination = ['auto', true].includes(this.showPagination) && Object.assign({}, this.localPagination, {
|
|
145
172
|
current: localPageNum,
|
|
146
173
|
pageSize: this.pageSize,
|
|
@@ -176,12 +203,23 @@ export default {
|
|
|
176
203
|
if (sorter && sorter.order) {
|
|
177
204
|
this.sortOrder = sorter.order
|
|
178
205
|
}
|
|
206
|
+
|
|
207
|
+
// 确定 pageSize
|
|
208
|
+
let finalPageSize = this.pageSize
|
|
209
|
+
if (this.showPagination === false) {
|
|
210
|
+
// 当 showPagination 为 false 时,优先使用传入的 pageSize
|
|
211
|
+
finalPageSize = pagination?.pageSize || this.pageSize
|
|
212
|
+
} else if (pagination && pagination.pageSize) {
|
|
213
|
+
finalPageSize = pagination.pageSize
|
|
214
|
+
} else if (this.localPagination && this.localPagination.pageSize) {
|
|
215
|
+
finalPageSize = this.localPagination.pageSize
|
|
216
|
+
}
|
|
217
|
+
|
|
179
218
|
const parameter = Object.assign({
|
|
180
219
|
querySummary: !pagination && this.showSummary, // 分页查询的情况不重新获取汇总数据
|
|
181
220
|
pageNo: (pagination && pagination.current) ||
|
|
182
221
|
this.showPagination && this.localPagination.current || this.pageNum,
|
|
183
|
-
pageSize:
|
|
184
|
-
this.showPagination && this.localPagination.pageSize || this.pageSize
|
|
222
|
+
pageSize: finalPageSize
|
|
185
223
|
},
|
|
186
224
|
(this.sortField && { sortField: this.sortField }) || {},
|
|
187
225
|
(this.sortOrder && { sortOrder: this.sortOrder }) || {},
|
|
@@ -208,7 +246,7 @@ export default {
|
|
|
208
246
|
current: r.pageNo, // 返回结果中的当前分页数
|
|
209
247
|
total: r.totalCount, // 返回结果中的总记录数
|
|
210
248
|
showSizeChanger: this.showSizeChanger,
|
|
211
|
-
pageSize:
|
|
249
|
+
pageSize: finalPageSize
|
|
212
250
|
}) || false
|
|
213
251
|
// 为防止删除数据后导致页面当前页面数据长度为 0 ,自动翻页到上一页
|
|
214
252
|
if (r.data.length === 0 && this.showPagination && this.localPagination.current > 1) {
|
|
@@ -437,7 +475,6 @@ export default {
|
|
|
437
475
|
{Object.keys(this.$slots).map(name => (<template slot={name}>{this.$slots[name]}</template>))}
|
|
438
476
|
</a-table>
|
|
439
477
|
)
|
|
440
|
-
|
|
441
478
|
return (
|
|
442
479
|
<div class="table-wrapper">
|
|
443
480
|
{showAlert && this.showSelected && this.selectRowMode === 'default' ? this.renderAlert() : null}
|