vue2-client 1.8.212 → 1.8.213
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
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]) {
|
|
@@ -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 {
|