vue2-client 1.8.212 → 1.8.214
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/XForm/XFormItem.vue +1 -0
- package/src/base-client/components/common/XForm/XTreeSelect.vue +20 -23
- package/src/base-client/components/common/XFormTable/XFormTable.vue +3 -1
- package/src/base-client/components/common/XTable/XTable.vue +2 -3
package/package.json
CHANGED
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<a-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</a-
|
|
21
|
-
</
|
|
22
|
-
<template v-else>
|
|
23
|
-
<a-skeleton active />
|
|
24
|
-
</template>
|
|
3
|
+
<!-- 树形选择框 -->
|
|
4
|
+
<a-form-model-item :ref="model" :label="attr.name" :prop="model">
|
|
5
|
+
<a-spin v-if="!loaded" size="small "/>
|
|
6
|
+
<a-tree-select
|
|
7
|
+
v-else
|
|
8
|
+
v-model="localValue"
|
|
9
|
+
:disabled="disabled"
|
|
10
|
+
:tree-data="getTreeData()"
|
|
11
|
+
:tree-checkable="mode === '查询' && queryType !== 'RIGHT_LIKE'"
|
|
12
|
+
:placeholder="`请选择${name||''}`"
|
|
13
|
+
:dropdown-style="{ maxHeight: '400px' }"
|
|
14
|
+
tree-node-filter-prop="label"
|
|
15
|
+
:show-checked-strategy="queryType === 'RIGHT_LIKE' ? 'SHOW_ALL' : undefined"
|
|
16
|
+
allow-clear
|
|
17
|
+
:showArrow="true"
|
|
18
|
+
class="tree-select"
|
|
19
|
+
@change="onTreeSelectChange">
|
|
20
|
+
</a-tree-select>
|
|
21
|
+
</a-form-model-item>
|
|
25
22
|
</div>
|
|
26
23
|
</template>
|
|
27
24
|
<script>
|
|
@@ -34,7 +31,7 @@ export default {
|
|
|
34
31
|
prop: 'value',
|
|
35
32
|
event: 'onChange'
|
|
36
33
|
},
|
|
37
|
-
props: ['value'],
|
|
34
|
+
props: ['value', 'attr'],
|
|
38
35
|
watch: {
|
|
39
36
|
value (newVal) {
|
|
40
37
|
if (newVal.length && !newVal[0]) {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<slot name="rightBtnExpand" :selectedRowKeys="selectedRowKeys" :selectedRows="selectedRows"></slot>
|
|
61
61
|
<a-tooltip title="收起查询条件">
|
|
62
62
|
<a-button @click="toggleIsFormShow">
|
|
63
|
-
<a-icon :style="iconStyle" type="
|
|
63
|
+
<a-icon :style="iconStyle" :type="toggleIsFormIcon"/>
|
|
64
64
|
</a-button>
|
|
65
65
|
</a-tooltip>
|
|
66
66
|
</template>
|
|
@@ -118,6 +118,7 @@ export default {
|
|
|
118
118
|
loadError: false,
|
|
119
119
|
// 实际查询配置内容
|
|
120
120
|
realQueryConfig: {},
|
|
121
|
+
toggleIsFormIcon: 'vertical-align-top',
|
|
121
122
|
table_selectedRowKeys: [],
|
|
122
123
|
table_selectedRows: []
|
|
123
124
|
}
|
|
@@ -453,6 +454,7 @@ export default {
|
|
|
453
454
|
* 查询表单部分显示/隐藏切换
|
|
454
455
|
*/
|
|
455
456
|
toggleIsFormShow () {
|
|
457
|
+
this.toggleIsFormIcon = this.toggleIsFormIcon === 'vertical-align-top' ? 'vertical-align-bottom' : 'vertical-align-top'
|
|
456
458
|
this.$refs.xForm.toggleVisible()
|
|
457
459
|
this.$refs.xTable.setScrollYHeight({})
|
|
458
460
|
},
|
|
@@ -310,8 +310,6 @@ export default {
|
|
|
310
310
|
totalWidth = totalWidth + 180
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
|
-
// 设置表格高度为固定值
|
|
314
|
-
this.setScrollYHeight({ type: 'default' })
|
|
315
313
|
// 横向滚动长度大于所有宽度,才能实现固定表头
|
|
316
314
|
this.scrollXWidth = totalWidth
|
|
317
315
|
// 加载筛选列完成
|
|
@@ -335,6 +333,8 @@ export default {
|
|
|
335
333
|
}
|
|
336
334
|
this.clearRowKeys()
|
|
337
335
|
this.$emit('afterQuery', result, requestParameters.conditionParams)
|
|
336
|
+
// 设置表格高度为固定值
|
|
337
|
+
this.setScrollYHeight({ type: 'default' })
|
|
338
338
|
return result
|
|
339
339
|
},
|
|
340
340
|
/**
|
|
@@ -387,7 +387,6 @@ export default {
|
|
|
387
387
|
extraHeight = 48 + 32
|
|
388
388
|
}
|
|
389
389
|
let tHeader = null
|
|
390
|
-
console.log(document.getElementById(id))
|
|
391
390
|
if (id) {
|
|
392
391
|
tHeader = document.getElementById(id) ? document.getElementById(id).getElementsByClassName('ant-table-thead')[0] : null
|
|
393
392
|
} else {
|