vue2-client 1.8.422 → 1.8.424

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.422",
3
+ "version": "1.8.424",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1,19 +1,18 @@
1
1
  <template>
2
2
  <div id="test">
3
- <!-- <XReport-->
4
- <!-- @updateImg="updateImg"-->
5
- <!-- ref="main"-->
6
- <!-- :use-oss-for-img="false"-->
7
- <!-- config-name="skinTestExecuActionCover"-->
8
- <!-- server-name="af-his"-->
9
- <!-- :show-img-in-cell="true"-->
10
- <!-- :display-only="displayOnly"-->
11
- <!-- :edit-mode="false"-->
12
- <!-- :show-save-button="false"-->
13
- <!-- :dont-format="true"/>-->
14
- <x-add-report
15
- ref="xAddReport"
16
- />
3
+ <XReport
4
+ ref="main"
5
+ :use-oss-for-img="false"
6
+ config-name="ces"
7
+ server-name="af-his"
8
+ :show-img-in-cell="true"
9
+ :display-only="true"
10
+ :edit-mode="false"
11
+ :show-save-button="false"
12
+ :dont-format="true"/>
13
+ <!-- <x-add-report-->
14
+ <!-- ref="xAddReport"-->
15
+ <!-- />-->
17
16
  </div>
18
17
  </template>
19
18
 
@@ -29,11 +28,11 @@ export default {
29
28
  XReport, XAddReport
30
29
  },
31
30
  mounted () {
32
- this.$refs.xAddReport.init({
33
- configName: 'skinTestExecuActionCover',
34
- selectedId: '11111',
35
- mixinData: {}
36
- })
31
+ // this.$refs.xAddReport.init({
32
+ // configName: 'skinTestExecuActionCover',
33
+ // selectedId: '11111',
34
+ // mixinData: {}
35
+ // })
37
36
  },
38
37
  data () {
39
38
  return {
@@ -20,10 +20,17 @@
20
20
  @click="edit()">
21
21
  <a-icon :style="iconStyle" type="edit"/>修改
22
22
  </a-button>
23
- <a-button v-if="!buttonState || buttonState.delete && buttonRendering('delete')" :disabled="!isDelete" type="danger" @click="deleteItem">
23
+ <a-button
24
+ v-if="!buttonState || buttonState.delete && buttonRendering('delete')"
25
+ :disabled="!isDelete"
26
+ type="danger"
27
+ @click="deleteItem">
24
28
  <a-icon :style="iconStyle" type="delete"/>删除
25
29
  </a-button>
26
- <a-button v-if="!buttonState || buttonState.import && buttonRendering('import')" type="dashed" @click="importData">
30
+ <a-button
31
+ v-if="!buttonState || buttonState.import && buttonRendering('import')"
32
+ type="dashed"
33
+ @click="importData">
27
34
  <a-icon :style="iconStyle" type="import"/>导入
28
35
  </a-button>
29
36
  <a-dropdown v-if="!buttonState || buttonState.export && buttonRendering('export')">
@@ -132,15 +139,15 @@
132
139
  </span>
133
140
  <!-- 两位小数 -->
134
141
  <span v-else-if="item.slotType === 'towDecimal'" :key="'towDecimal-' + c_index">
135
- {{ numberFormat(text,2) }}
142
+ {{ numberFormat(text, 2) }}
136
143
  </span>
137
144
  <!-- 四位小数 -->
138
145
  <span v-else-if="item.slotType === 'fourDecimal'" :key="'fourDecimal-' + c_index">
139
- {{ numberFormat(text,4) }}
146
+ {{ numberFormat(text, 4) }}
140
147
  </span>
141
148
  <!-- 整数 -->
142
149
  <span v-else-if="item.slotType === 'int'" :key="'int-' + c_index">
143
- {{ numberFormat(text,0) }}
150
+ {{ numberFormat(text, 0) }}
144
151
  </span>
145
152
  <!-- 操作列(action) -->
146
153
  <span v-else-if="item.slotType === 'action'" :key="'action-' + c_index">
@@ -455,12 +462,7 @@ export default {
455
462
  tableColumns,
456
463
  buttonState,
457
464
  buttonPermissions,
458
- editButtonStateData = [
459
- {
460
- buttonName: '测试',
461
- functionName: '测试函数'
462
- }
463
- ],
465
+ editButtonStateData = [],
464
466
  title,
465
467
  form,
466
468
  serviceName,
@@ -608,6 +610,7 @@ export default {
608
610
  this.$nextTick(() => {
609
611
  setTimeout(() => {
610
612
  const curDocument = window?.rawDocument || document
613
+ const innerHeight = window?.rawWindow?.innerHeight || window.innerHeight || 0
611
614
  if (typeof extraHeight == 'undefined') {
612
615
  // 默认底部分页32 + 边距48
613
616
  extraHeight = 48 + 32
@@ -642,10 +645,13 @@ export default {
642
645
  if (modalElement) {
643
646
  const modalRect = modalElement.getBoundingClientRect()
644
647
  // 48 是 modal 通常的边距 32 是分页
645
- const innerHeight = window?.rawWindow?.innerHeight || window.innerHeight || 0
646
648
  extraHeight = innerHeight - modalRect.bottom + 32 + 48
647
649
  }
648
650
  }
651
+ if (innerHeight - (tHeaderBottom + extraHeight) < 0) {
652
+ this.scrollYHeight = 'calc(100vh - 31rem)'
653
+ return
654
+ }
649
655
  // 窗体高度-表格内容顶部的高度-表格内容底部的高度
650
656
  // this.scrollYHeight = document.body.clientHeight - tHeaderBottom - extraHeight
651
657
  this.scrollYHeight = `calc(100vh - ${tHeaderBottom + extraHeight}px)`
@@ -78,7 +78,7 @@ routerResource.example = {
78
78
  {
79
79
  path: 'default',
80
80
  name: '示例页面',
81
- component: () => import('@vue2-client/base-client/components/common/XLicensePlate/XLicensePlateDemo.vue'),
81
+ component: () => import('@vue2-client/base-client/components/common/XReportGrid/XReportDemo.vue'),
82
82
  meta: {
83
83
  // 菜单中不显示
84
84
  invisible: true,