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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.8.212",
3
+ "version": "1.8.214",
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]) {
@@ -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="vertical-align-top"/>
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 {