vue2-client 1.8.211 → 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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.211",
3
+ "version": "1.8.213",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -316,6 +316,7 @@
316
316
  :flex="attr.flex">
317
317
  <x-tree-select
318
318
  v-model="form[attr.model]"
319
+ :attr="attr"
319
320
  ref="xTreeSelect">
320
321
  </x-tree-select>
321
322
  </x-form-col>
@@ -1,27 +1,24 @@
1
1
  <template>
2
2
  <div>
3
- <template v-if="loaded">
4
- <!-- 树形选择框 -->
5
- <a-form-model-item v-if="loaded" :ref="model" :label="name" :prop="model">
6
- <a-tree-select
7
- v-model="localValue"
8
- :disabled="disabled"
9
- :tree-data="getTreeData()"
10
- :tree-checkable="mode === '查询' && queryType !== 'RIGHT_LIKE'"
11
- :placeholder="'请选择' + name"
12
- :dropdown-style="{ maxHeight: '400px' }"
13
- tree-node-filter-prop="label"
14
- :show-checked-strategy="queryType === 'RIGHT_LIKE' ? 'SHOW_ALL' : undefined"
15
- allow-clear
16
- :showArrow="true"
17
- class="tree-select"
18
- @change="onTreeSelectChange">
19
- </a-tree-select>
20
- </a-form-model-item>
21
- </template>
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 {