vue2-client 1.15.42 → 1.15.44

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.
Files changed (127) hide show
  1. package/.history/public/his/editor/editor_20250606134713.html +51 -0
  2. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +509 -0
  3. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +524 -0
  4. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +524 -0
  5. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +524 -0
  6. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +207 -0
  7. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +211 -0
  8. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +212 -0
  9. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +212 -0
  10. package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +1320 -0
  11. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +1332 -0
  12. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +1331 -0
  13. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +1331 -0
  14. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +1331 -0
  15. package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +1339 -0
  16. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +731 -0
  17. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +748 -0
  18. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +748 -0
  19. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +1071 -0
  20. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +1078 -0
  21. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +1077 -0
  22. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +1077 -0
  23. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +1077 -0
  24. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +442 -0
  25. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +442 -0
  26. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +442 -0
  27. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +475 -0
  28. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +475 -0
  29. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +475 -0
  30. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +477 -0
  31. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +477 -0
  32. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +477 -0
  33. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +473 -0
  34. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +473 -0
  35. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +473 -0
  36. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +473 -0
  37. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +473 -0
  38. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +473 -0
  39. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +473 -0
  40. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +473 -0
  41. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +473 -0
  42. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +473 -0
  43. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +474 -0
  44. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +474 -0
  45. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +474 -0
  46. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +472 -0
  47. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +472 -0
  48. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +472 -0
  49. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +472 -0
  50. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +472 -0
  51. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +472 -0
  52. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +501 -0
  53. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +501 -0
  54. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +501 -0
  55. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +504 -0
  56. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +504 -0
  57. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +504 -0
  58. package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +131 -0
  59. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +160 -0
  60. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +160 -0
  61. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +160 -0
  62. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +158 -0
  63. package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +173 -0
  64. package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +222 -0
  65. package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +229 -0
  66. package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +229 -0
  67. package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +229 -0
  68. package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +241 -0
  69. package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +241 -0
  70. package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +241 -0
  71. package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +245 -0
  72. package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +245 -0
  73. package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +245 -0
  74. package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +255 -0
  75. package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +255 -0
  76. package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +255 -0
  77. package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +270 -0
  78. package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +270 -0
  79. package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +270 -0
  80. package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +270 -0
  81. package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +294 -0
  82. package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +294 -0
  83. package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +294 -0
  84. package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +303 -0
  85. package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +303 -0
  86. package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +303 -0
  87. package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +288 -0
  88. package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +288 -0
  89. package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +288 -0
  90. package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +317 -0
  91. package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +306 -0
  92. package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +306 -0
  93. package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +306 -0
  94. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +222 -0
  95. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +183 -0
  96. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +183 -0
  97. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +183 -0
  98. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +206 -0
  99. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +209 -0
  100. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +242 -0
  101. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +242 -0
  102. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +242 -0
  103. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +251 -0
  104. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +251 -0
  105. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +250 -0
  106. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +250 -0
  107. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +250 -0
  108. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +250 -0
  109. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140844.vue +238 -0
  110. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140910.vue +238 -0
  111. package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140912.vue +238 -0
  112. package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +36 -0
  113. package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +1 -0
  114. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +4 -2
  115. package/package.json +1 -1
  116. package/src/base-client/components/TreeList/TreeList.vue +91 -0
  117. package/src/base-client/components/TreeList/TreeNode.vue +81 -0
  118. package/src/base-client/components/common/XButtons/XButtons.vue +33 -2
  119. package/src/base-client/components/common/XCardSet/XTiltle.vue +191 -0
  120. package/src/base-client/components/common/XReport/print.js +186 -186
  121. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +0 -8
  122. package/src/base-client/components/his/XList/XList.vue +209 -35
  123. package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
  124. package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
  125. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
  126. package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
  127. package/src/utils/map-utils.js +47 -47
@@ -311,14 +311,6 @@ export default {
311
311
  showLeftTab: true,
312
312
  })
313
313
  }, this.env === 'dev')
314
- } else if (cell.slotType === 'x-buttons') {
315
- // 按钮组需要主动调用初始化方法
316
- getConfigByName(cell.slotConfig, cell.serviceName, (res) => {
317
- this.$refs[`dynamicComponent_${cell.slotRef || cellIndex}`][0].init({
318
- ...res,
319
- serviceName: cell.serviceName,
320
- })
321
- }, this.env === 'dev')
322
314
  } else if (cell.slotType === 'x-label-select') {
323
315
  // 按钮组需要主动调用初始化方法
324
316
  getConfigByName(cell.slotConfig, cell.serviceName, (res) => {
@@ -1,20 +1,74 @@
1
1
  <template>
2
- <div class="list-wrapper">
2
+ <!-- 列表卡片模式 listMode: card -->
3
+ <div v-if="true"
4
+ class="demo-infinite-container"
5
+ ref="listRef">
6
+ <a-list :grid="{ gutter: 16, xs: 1, sm: 2, md: 2, lg: 3, xl: 3, xxl: 4 }"
7
+ :data-source="localData">
8
+ <a-list-item slot="renderItem" slot-scope="item, index">
9
+ <div style="background-color: #E5E9F0; height: 297px; width: auto; border-radius: 6px;">
10
+ <a-row class="card-row">
11
+ <a-col class="id-a-col" :span="4" v-for="(detail,idx) in item" :key="idx" v-if="detail.label == label">
12
+ {{detail.value}}<span style="font-size: 16px;font-weight: 400 !important;">床</span>
13
+ </a-col>
14
+ <a-col :span="20" class="id-a-col-2">
15
+ <template v-for="(detail,idx) in item">
16
+ <span class="describe-list-a-col" :class="{name: detail.bold}" :key="idx" v-if="detail.type == 'title'">{{detail.value}}</span>
17
+ <span :key="idx" class="component-a-col" v-else-if="detail.type == 'component' && detail.label != label">
18
+ {{`${detail.label}:`}}
19
+ <component
20
+ :is="detail.slotType"
21
+ :key="idx"
22
+ :ref="`dynamicComponent_${ idx.slotType || idx}_${idx}`"
23
+ :serviceName="serviceName"
24
+ v-on="forwardAllEvents"
25
+ :queryParamsName="detail.value"
26
+ :countVisible="false"
27
+ />
28
+ </span>
29
+ <span :key="idx" class="component-a-col" v-else-if="detail.type == 'date'">
30
+ {{`${detail.label}:`}}
31
+ <a-date-picker @change="onChange" />
32
+ </span>
33
+ <span class="describe-list-a-col" :class="{name: detail.bold}" :key="idx" v-else-if="detail.label != label">{{`${detail.label}:${detail.value}`}}</span>
34
+ </template>
35
+ <a-button v-for="(btn, i) in buttonNames"
36
+ :key="i"
37
+ icon="search"
38
+ v-if="1"
39
+ class="button-a-col"
40
+ @click.stop="click(item, index)">
41
+ {{btn}}
42
+ </a-button>
43
+ </a-col>
44
+ </a-row>
45
+ </div>
46
+ </a-list-item>
47
+ <div v-if="loading" class="demo-loading-container">
48
+ <a-spin />
49
+ </div>
50
+ <div v-if="allLoaded">
51
+ <div class="demo-infinite-list-bottom">
52
+ 已经显示全部数据
53
+ </div>
54
+ </div>
55
+ </a-list>
56
+ </div>
57
+
58
+ <!-- 默认标签模式 -->
59
+ <div class="list-wrapper" v-else>
3
60
  <a-list size="large" :data-source="data" itemLayout="horizontal" class="list-container" ref="listRef">
4
- <a-list-item
5
- slot="renderItem"
61
+ <a-list-item slot="renderItem"
6
62
  slot-scope="item, index"
7
63
  class="list-item"
8
64
  @click="handleClick(index)"
9
65
  @mouseenter="enableHoverOptions && handleMouseEnter(index)"
10
66
  @mouseleave="handleMouseLeave"
11
- :class="{ 'hover-active': enableHoverOptions && hoveredIndex === index }"
12
- >
13
- <i
14
- v-if="icon"
67
+ :class="{ 'hover-active': enableHoverOptions && hoveredIndex === index }">
68
+ <i v-if="icon"
15
69
  class="icon-menu"
16
- :style="getIconStyle(item)"
17
- ></i>
70
+ :style="getIconStyle(item)">
71
+ </i>
18
72
  <span
19
73
  class="item-text">
20
74
  {{ item.number }} {{ item.name }}
@@ -26,26 +80,21 @@
26
80
  :key="idx"
27
81
  type="link"
28
82
  :class="['confirm-btn', buttonMode ? 'hover-btn' : '']"
29
- @click.stop="click(index, idx)"
30
- >
83
+ @click.stop="click(index, idx)">
31
84
  <span :class="{ 'hover-active': enableHoverOptions && hoveredIndex === index }">{{ name }}</span>
32
85
  </a-button>
33
86
  </div>
34
87
 
35
88
  <!-- 悬浮选项框 -->
36
- <div
37
- v-show="enableHoverOptions && hoveredIndex === index"
89
+ <div v-show="enableHoverOptions && hoveredIndex === index"
38
90
  class="hover-options"
39
91
  @mouseenter="handleOptionsEnter"
40
- @mouseleave="handleOptionsLeave"
41
- >
92
+ @mouseleave="handleOptionsLeave">
42
93
  <div class="hover-options-content">
43
- <div
44
- v-for="(item, idx) in select_options"
94
+ <div v-for="(item, idx) in select_options"
45
95
  :key="idx"
46
96
  class="option-item"
47
- @click="handleOptionClick(index, item)"
48
- >
97
+ @click="handleOptionClick(index, item)">
49
98
  {{ item }}
50
99
  </div>
51
100
  </div>
@@ -61,6 +110,16 @@ import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
61
110
 
62
111
  export default {
63
112
  name: 'XList',
113
+ components: {
114
+ XReport: () => import('@vue2-client/base-client/components/common/XReport/XReport.vue'),
115
+ XButtons: () => import('@vue2-client/base-client/components/common/XButtons/XButtons.vue'),
116
+ XInput: () => import('@vue2-client/base-client/components/common/XInput/XInput.vue'),
117
+ XRadio: () => import('@vue2-client/base-client/components/his/XRadio/XRadio.vue'),
118
+ XTimeSelect: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelect.vue'),
119
+ XCheckbox: () => import('@vue2-client/base-client/components/his/XCheckbox/XCheckbox.vue'),
120
+ XTitle: () => import('@vue2-client/base-client/components/his/XTitle/XTitle.vue'),
121
+ XSelect: () => import('@vue2-client/base-client/components/his/XSelect/XSelect.vue')
122
+ },
64
123
  props: {
65
124
  queryParamsName: {
66
125
  type: Object,
@@ -73,43 +132,108 @@ export default {
73
132
  enableHoverOptions: {
74
133
  type: Boolean,
75
134
  default: true
135
+ },
136
+ serviceName: {
137
+ type: String,
138
+ default: 'af-his'
76
139
  }
77
140
  },
78
141
  inject: ['getComponentByName'],
79
142
  data () {
80
143
  return {
81
- data: [],
144
+ data: [], // 数据源
145
+ localData: [], // 本地数据源
146
+ loading: false, // 加载中
147
+ busy: false, // 繁忙状态
82
148
  button: false,
83
149
  icon: false,
84
150
  buttonNames: [],
85
- buttonMode: false,
86
- hoveredIndex: -1,
87
- isOptionsHovered: false,
88
- hoverTimer: null,
89
- leaveTimer: null,
90
- select_options: []
151
+ listMode: undefined, // 列表模式
152
+ buttonMode: true,
153
+ hoveredIndex: -1, // 当前悬浮的索引
154
+ isOptionsHovered: false, // 悬浮选项框是否悬浮
155
+ hoverTimer: null, // 悬浮选项框定时器
156
+ leaveTimer: null, // 离开选项框定时器
157
+ select_options: [], // 悬浮选项框
158
+ logicName: '',
159
+ nowPage: 0, // 当前页
160
+ pageSize: 12,
161
+ allLoaded: false,
162
+ label: 'id'
91
163
  }
92
164
  },
93
165
  created () {
94
166
  this.getData(this.queryParamsName, this.fixedQueryForm)
95
167
  },
168
+ mounted () {
169
+ // 卡片模式绑定滚动事件
170
+ this.$refs.listRef.addEventListener('scroll', this.handleInfiniteOnLoad)
171
+ },
172
+ computed: {
173
+ forwardAllEvents () {
174
+ return {
175
+ // 监听所有事件并转发给父组件
176
+ '*': (eventName, ...payload) => {
177
+ this.$emit(eventName, ...payload)
178
+ }
179
+ }
180
+ }
181
+ },
96
182
  methods: {
183
+ onChange (date, dateString) {
184
+ this.$emit('dateChange', date, dateString)
185
+ },
186
+ handleInfiniteOnLoad (event) {
187
+ const container = event.target // 获取列表容器元素
188
+ const scrollTop = container.scrollTop // 获取滚动条的当前位置
189
+ const scrollHeight = container.scrollHeight // 获取列表容器的总高度
190
+ const clientHeight = container.clientHeight // 获取列表容器的可见高度
191
+ const bottomOffset = 20
192
+ // 判断是否滚动到底部
193
+ if (scrollTop + clientHeight >= scrollHeight - bottomOffset) {
194
+ if (this.busy || this.allLoaded) return // 防止重复加载
195
+ this.busy = true
196
+ this.loading = true
197
+ try {
198
+ this.nowPage = this.nowPage + this.pageSize
199
+ this.fixedQueryForm.condition = `Limit ${this.nowPage}, ${this.pageSize}`
200
+ runLogic(this.logicName, this.fixedQueryForm, 'af-his').then(async (res) => {
201
+ this.localData = [...this.localData, ...res]
202
+ // 如果返回的数据长度小于每页的记录数,则认为已经加载完所有数据
203
+ if (res.length < this.pageSize) {
204
+ this.allLoaded = true
205
+ }
206
+ })
207
+ } catch (e) {
208
+ this.$message.error(e.message)
209
+ } finally {
210
+ this.loading = false
211
+ this.busy = false
212
+ }
213
+ }
214
+ },
97
215
  async getData (config, param) {
98
216
  const that = this
99
- getConfigByName(config, 'af-his', res => {
100
- that.button = res.button
101
- that.icon = res.icon
102
- that.buttonNames = res.buttonNames || []
103
- that.buttonMode = res.buttonMode || false
104
- this.enableHoverOptions = res.enableHoverOptions || false
217
+ getConfigByName(config, 'af-his', async (res) => {
218
+ that.listMode = await res.listMode == 'card'
219
+ that.logicName = await res.data
220
+ that.button = await res.button // 按钮
221
+ that.icon = await res.icon // 图标
222
+ that.label = await res.label // 标签
223
+ that.buttonNames = await res.buttonNames || []// 按钮文本
224
+ that.buttonMode = await res.buttonMode || false// 按钮模式
225
+ this.enableHoverOptions = await res.enableHoverOptions || false// 悬浮选项框
105
226
  if (this.enableHoverOptions) {
106
- this.select_options = res.select_options
227
+ this.select_options = await res.select_options
107
228
  }
108
- runLogic(res.data, param, 'af-his').then(ress => {
109
- that.data = ress
229
+ if (that.listMode) { param.condition = `Limit ${that.nowPage}, ${that.pageSize}` }
230
+ runLogic(res.data, param, 'af-his').then(result => {
231
+ that.data = result
232
+ if (that.nowPage == 0) { this.localData = result }
110
233
  })
111
234
  })
112
235
  },
236
+ // 点击列表项
113
237
  handleClick (index) {
114
238
  this.$emit('listClick', this.data[index])
115
239
  },
@@ -129,11 +253,13 @@ export default {
129
253
  this.data = res.data
130
254
  })
131
255
  },
256
+ // 鼠标进入列表项
132
257
  handleMouseEnter (index) {
133
258
  this.clearAllTimers()
134
259
  this.hoveredIndex = index
135
260
  this.isOptionsHovered = true
136
261
  },
262
+ // 鼠标离开列表项
137
263
  handleMouseLeave () {
138
264
  this.clearAllTimers()
139
265
  this.leaveTimer = setTimeout(() => {
@@ -141,10 +267,12 @@ export default {
141
267
  this.hoveredIndex = -1
142
268
  }, 100)
143
269
  },
270
+ // 鼠标进入悬浮选项框
144
271
  handleOptionsEnter () {
145
272
  this.clearAllTimers()
146
273
  this.isOptionsHovered = true
147
274
  },
275
+ // 鼠标离开悬浮选项框
148
276
  handleOptionsLeave () {
149
277
  this.clearAllTimers()
150
278
  this.leaveTimer = setTimeout(() => {
@@ -152,6 +280,7 @@ export default {
152
280
  this.hoveredIndex = -1
153
281
  }, 100)
154
282
  },
283
+ // 清除所有定时器
155
284
  clearAllTimers () {
156
285
  if (this.hoverTimer) {
157
286
  clearTimeout(this.hoverTimer)
@@ -162,6 +291,7 @@ export default {
162
291
  this.leaveTimer = null
163
292
  }
164
293
  },
294
+ // 选项框点击
165
295
  handleOptionClick (index, action) {
166
296
  this.$emit('optionClick', { data: this.data[index], action })
167
297
  }
@@ -303,4 +433,48 @@ export default {
303
433
  .option-item:active {
304
434
  background-color: #e6f7ff;
305
435
  }
436
+
437
+ .demo-loading-container {
438
+ position: absolute;
439
+ bottom: 40px;
440
+ width: 100%;
441
+ text-align: center;
442
+ }
443
+
444
+ .demo-infinite-container{
445
+ overflow-x: hidden;
446
+ overflow-y: auto;
447
+ height: 80vh;
448
+ }
449
+ .card-row{
450
+ height: 100%;
451
+ width: 100%;
452
+ border-radius: 6px;
453
+ padding: 6px;
454
+ }
455
+ .id-a-col{
456
+ font-size: 22px;
457
+ font-weight: 700;
458
+ display: flex;
459
+ justify-content: space-evenly;
460
+ align-items: center;
461
+ }
462
+ .id-a-col-2{}
463
+ .describe-list-a-col{
464
+ display: block;
465
+ font-size: 16px;
466
+ }
467
+ .name{
468
+ font-size: 18px;
469
+ font-weight: 700;
470
+ }
471
+ .component-a-col{
472
+ display: flex;
473
+ align-items: center;
474
+ }
475
+ .button-a-col{
476
+ position: absolute;
477
+ top: 245px;
478
+ left: 225px;
479
+ }
306
480
  </style>