vue2-client 1.22.13 → 1.22.15

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.
@@ -1,3 +1,3 @@
1
- import AmapPointRendering from './AmapPointRendering'
2
-
3
- export default AmapPointRendering
1
+ import AmapPointRendering from './AmapPointRendering'
2
+
3
+ export default AmapPointRendering
@@ -1,3 +1,3 @@
1
- import XDetailsView from './XDetailsView'
2
-
3
- export default XDetailsView
1
+ import XDetailsView from './XDetailsView'
2
+
3
+ export default XDetailsView
@@ -1,3 +1,3 @@
1
- import XFormGroupDetails from './XFormGroupDetails'
2
-
3
- export default XFormGroupDetails
1
+ import XFormGroupDetails from './XFormGroupDetails'
2
+
3
+ export default XFormGroupDetails
@@ -223,7 +223,7 @@ import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
223
223
  import { getRealKeyData } from '@vue2-client/utils/util'
224
224
  import * as util from '@vue2-client/utils/util'
225
225
  import UserInfoDetailManage from '@vue2-client/pages/userInfoDetailManage/index.vue'
226
- import SummaryStatCard from '@/base-client/components/common/XFormTable/SummaryStatCard.vue'
226
+ import SummaryStatCard from '@vue2-client/base-client/components/common/XFormTable/SummaryStatCard.vue'
227
227
 
228
228
  export default {
229
229
  name: 'XFormTable',
@@ -51,7 +51,17 @@
51
51
  class="info-tag"
52
52
  >
53
53
  <span class="tag-label">[{{ field.label }}]</span>
54
- <span class="tag-value">{{ formatFieldValue(field) }}</span>
54
+ <div v-if="isImageArray(field.value)">
55
+ <file-image-group
56
+ :file-ids="field.value"
57
+ :service-name="serviceName"
58
+ :columns="3"
59
+ :image-size="60"
60
+ :gap="8"
61
+ :alt-prefix="field.label + '图片'"
62
+ />
63
+ </div>
64
+ <span v-else class="tag-value">{{ formatFieldValue(field) }}</span>
55
65
  </span>
56
66
  </div>
57
67
  </div>
@@ -190,6 +200,13 @@ export default {
190
200
  return photos.filter(photo => photo.fileId).map(photo => photo.fileId)
191
201
  },
192
202
 
203
+ /**
204
+ * 判断字段值是否为图片数组(包含 url 字段的对象数组)
205
+ */
206
+ isImageArray (value) {
207
+ return Array.isArray(value) && value.length > 0 && value[0] && value[0].url
208
+ },
209
+
193
210
  /**
194
211
  * 获取状态徽章样式类
195
212
  */
@@ -2,12 +2,12 @@
2
2
  <div class="inspection-detail-demo">
3
3
  <a-card title="安检详情 Demo" :bordered="false">
4
4
  <p class="demo-desc">
5
- 点击下方按钮打开安检结果详情抽屉,默认展示安检 ID 为 <strong>1016079</strong> 的详情。
5
+ 点击下方按钮打开安检结果详情抽屉,默认展示安检 ID 为 <strong>1016126</strong> 的详情。
6
6
  </p>
7
7
  <a-space>
8
- <a-button type="primary" @click="openDetail(1016079)">
8
+ <a-button type="primary" @click="openDetail(1016126)">
9
9
  <a-icon type="file-search" />
10
- 查看安检详情 (ID: 1016079)
10
+ 查看安检详情 (ID: 1016126)
11
11
  </a-button>
12
12
  <a-input-number
13
13
  v-model="customId"