wui-components-v2 1.1.41 → 1.1.43

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 (58) hide show
  1. package/api/feishu.ts +20 -0
  2. package/api/menu.ts +1 -1
  3. package/api/page.ts +1 -1
  4. package/api/sys.ts +1 -1
  5. package/components/add-address-list/add-address-list.vue +187 -0
  6. package/components/add-address-page/add-address-page.vue +76 -0
  7. package/components/add-address-page/config.ts +297 -0
  8. package/components/audio-play/audio-play.vue +3 -3
  9. package/components/card-botom-buttons/card-botom-buttons.vue +4 -3
  10. package/components/custom-date-picker/custom-date-picker.vue +114 -0
  11. package/components/custom-select-picker/custom-select-picker.vue +103 -0
  12. package/components/fold-card/fold-card.vue +16 -9
  13. package/components/form-control/form-control.vue +224 -143
  14. package/components/global-loading/global-loading.vue +1 -1
  15. package/components/global-message/global-message.vue +14 -10
  16. package/components/global-toast/global-toast.vue +1 -1
  17. package/components/list-top-buttons/list-top-buttons.vue +2 -2
  18. package/components/mulselect-picker/mulselect-picker.vue +2 -2
  19. package/components/privacy-popup/privacy-popup.vue +1 -1
  20. package/components/product-card/product-card.vue +2 -2
  21. package/components/search/search.vue +11 -6
  22. package/components/tab-search/tab-search.vue +7 -7
  23. package/components/user-choose/user-choose.vue +132 -0
  24. package/components/wui-default/wui-default.vue +1 -2
  25. package/components/wui-edit-page/wui-edit-page.vue +76 -53
  26. package/components/wui-enume-select-control/wui-enume-select-control.vue +35 -33
  27. package/components/wui-list/wui-list.vue +12 -8
  28. package/components/wui-login1/wui-login.vue +1 -1
  29. package/components/wui-menus1/components/banner-carousel.vue +8 -8
  30. package/components/wui-menus1/components/quick-panel.vue +1 -1
  31. package/components/wui-menus1/components/search-bar.vue +1 -1
  32. package/components/wui-menus1/components/section-menus.vue +1 -1
  33. package/components/wui-menus1/wui-menus.vue +6 -3
  34. package/components/wui-notify-info/notify-handle.vue +1 -1
  35. package/components/wui-notify-info/wui-notify-info.vue +7 -7
  36. package/components/wui-search-history-babbar/wui-search-history-babbar.vue +10 -10
  37. package/components/wui-select-list/wui-select-list.vue +48 -39
  38. package/components/wui-tabbar/wui-tabbar.vue +2 -2
  39. package/components/wui-tree-page/wui-tree-page.vue +9 -10
  40. package/components/wui-user/wui-user.vue +5 -5
  41. package/composables/types/theme.ts +1 -1
  42. package/composables/useCompanyFieldFilter.ts +59 -0
  43. package/composables/useEnumes.ts +36 -35
  44. package/composables/useGlobalLoading.ts +2 -2
  45. package/composables/useGlobalMessage.ts +7 -8
  46. package/composables/useGlobalToast.ts +2 -2
  47. package/composables/useLocale.ts +5 -5
  48. package/composables/useMenus.ts +1 -0
  49. package/composables/useTabbar.ts +2 -3
  50. package/index.d.ts +1 -1
  51. package/index.ts +2 -2
  52. package/package.json +1 -1
  53. package/store/language.ts +8 -11
  54. package/store/manualThemeStore.ts +2 -0
  55. package/store/persist.ts +1 -1
  56. package/type.ts +1 -0
  57. package/utils/control-type-supportor.ts +4 -0
  58. package/utils/index.ts +22 -0
package/api/feishu.ts ADDED
@@ -0,0 +1,20 @@
1
+ import req from './core/index'
2
+
3
+ export type FeishuHcTokenResponse = {
4
+ token?: string
5
+ message?: string
6
+ }
7
+
8
+ export function feishuHcToken(code: string): Promise<FeishuHcTokenResponse> {
9
+ // 将前端拿到的免登 code 交给业务后端:
10
+ // 1) 后端用 app_id/app_secret 调用飞书接口把 code 换成 user_access_token + user_id/open_id
11
+ // 2) 后端用 user_id/open_id 在你系统内创建/更新用户,并签发你系统自己的 TOKEN(本项目存到 TOKEN)
12
+ return req({
13
+ url: '/v3/auth/feishu/hctoken',
14
+ method: 'POST',
15
+ data: {
16
+ code,
17
+ },
18
+ })
19
+ }
20
+
package/api/menu.ts CHANGED
@@ -18,4 +18,4 @@ export function menuCount(sourceId: string) {
18
18
  return req({
19
19
  url: `/v3/ltmpl/data/count?sourceId=${sourceId}`,
20
20
  })
21
- }
21
+ }
package/api/page.ts CHANGED
@@ -104,4 +104,4 @@ export function deleteData(sourceId: string, code: string) {
104
104
  url: `/v3/ltmpl/data?sourceId=${sourceId}&codes=${code}`,
105
105
  method: 'DELETE',
106
106
  })
107
- }
107
+ }
package/api/sys.ts CHANGED
@@ -4,4 +4,4 @@ export function language(language: string): Promise<any> {
4
4
  return req({
5
5
  url: `/v3/multilingual?language=${language}`,
6
6
  })
7
- }
7
+ }
@@ -0,0 +1,187 @@
1
+ <script setup>
2
+ import { computed, onMounted, ref } from 'vue'
3
+ import { useGlobalMessage } from '@/core-components/composables/useGlobalMessage'
4
+
5
+ defineOptions({
6
+ name: 'AddAddressList',
7
+ })
8
+ const { addAddressPath } = defineProps({
9
+ addAddressPath: {
10
+ type: String,
11
+ default: '',
12
+ },
13
+ })
14
+
15
+ function addAddress() {
16
+ uni.navigateTo({
17
+ url: addAddressPath,
18
+ })
19
+ }
20
+
21
+ // 搜索关键词
22
+ const keyword = ref('')
23
+ // 分页配置
24
+ const page = ref(1)
25
+ const pageSize = ref(5)
26
+ const isNoMore = ref(false)
27
+ const loadingText = ref('上拉加载更多')
28
+
29
+ // 全部数据源
30
+ const allAddressList = ref([])
31
+ // 页面展示列表
32
+ const showList = ref([])
33
+
34
+ // 模拟后端批量数据
35
+ function mockAllData() {
36
+ const arr = []
37
+ for (let i = 1; i <= 30; i++) {
38
+ arr.push({
39
+ name: `用户${i}`,
40
+ phone: `138${String(i).padStart(8, '0')}`,
41
+ address: `测试地址${i}号 某某小区${i}栋${i}单元`,
42
+ })
43
+ }
44
+ allAddressList.value = arr
45
+ }
46
+
47
+ // 分页截取数据
48
+ function getPageData() {
49
+ const start = (page.value - 1) * pageSize.value
50
+ const end = page.value * pageSize.value
51
+ return allAddressList.value.slice(start, end)
52
+ }
53
+
54
+ // 加载更多
55
+ function loadMore() {
56
+ if (isNoMore.value)
57
+ return
58
+ loadingText.value = '加载中...'
59
+ // 模拟接口延迟
60
+ setTimeout(() => {
61
+ const newData = getPageData()
62
+ if (newData.length === 0) {
63
+ isNoMore.value = true
64
+ loadingText.value = '没有更多了'
65
+ return
66
+ }
67
+ showList.value.push(...newData)
68
+ page.value++
69
+ loadingText.value = '上拉加载更多'
70
+ }, 600)
71
+ }
72
+
73
+ // 搜索过滤
74
+ const filterList = computed(() => {
75
+ if (!keyword.value)
76
+ return showList.value
77
+ return showList.value.filter(item =>
78
+ item.name.includes(keyword.value)
79
+ || item.phone.includes(keyword.value)
80
+ || item.address.includes(keyword.value),
81
+ )
82
+ })
83
+
84
+ // 返回
85
+ const goBack = () => history.back()
86
+ // 编辑
87
+ function editAddress() {}
88
+ // 删除
89
+ function deleteAddress(idx) {
90
+ uni.showModal({
91
+ title: '提示',
92
+ content: '确定删除该地址?',
93
+ success: (res) => {
94
+ if (res.confirm)
95
+ showList.value.splice(idx, 1)
96
+ },
97
+ })
98
+ }
99
+ function selectAddress(item) {
100
+ console.log('item', item)
101
+ uni.$emit('addressListBack', {...item,id:1111})
102
+ uni.navigateBack({
103
+ delta: 1,
104
+ })
105
+ }
106
+
107
+ onMounted(() => {
108
+ mockAllData()
109
+ loadMore()
110
+ })
111
+ </script>
112
+
113
+ <template>
114
+ <view class="min-h-screen bg-gray-50 pb-20">
115
+ <!-- 搜索框 -->
116
+ <view class="p-4">
117
+ <view class="flex items-center rounded-full bg-gray-100 px-4 py-2">
118
+ <svg class="mr-2 h-4 w-4 text-gray-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
119
+ <circle cx="11" cy="11" r="7" />
120
+ <path d="M16 16l4 4" stroke-linecap="round" />
121
+ </svg>
122
+ <input
123
+ v-model="keyword"
124
+ type="text"
125
+ placeholder="请输入姓名/手机号/公司名称"
126
+ class="flex-1 bg-transparent text-sm text-gray-700 outline-none placeholder-gray-400"
127
+ >
128
+ </view>
129
+ </view>
130
+
131
+ <!-- 列表区域 开启滚动监听 -->
132
+ <view
133
+ class="overflow-y-auto px-4 space-y-3"
134
+ @scrolltolower="loadMore"
135
+ >
136
+ <view
137
+ v-for="(item, index) in showList"
138
+ :key="index"
139
+ class="rounded-lg bg-white p-4 shadow-sm"
140
+ @click="selectAddress(item)"
141
+ >
142
+ <view class="mb-2 flex items-center">
143
+ <text class="mr-3 text-gray-900 font-medium">
144
+ {{ item.name }}
145
+ </text>
146
+ <text class="text-sm text-gray-500">
147
+ {{ item.phone }}
148
+ </text>
149
+ </view>
150
+ <text class="mb-3 block text-sm text-gray-500 leading-relaxed">
151
+ {{ item.address }}
152
+ </text>
153
+ <view class="flex justify-end text-sm space-x-6">
154
+ <view class="flex items-center text-gray-500" @click="editAddress(item, index)">
155
+ <svg class="mr-1 h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
156
+ <path d="M12 20h9M16.5 3.5a2.121 2.121 0 013 3L7 19l-4 1 1-4L16.5 3.5z" />
157
+ </svg>
158
+ 编辑
159
+ </view>
160
+ <view class="flex items-center text-gray-500" @click="deleteAddress(index)">
161
+ <svg class="mr-1 h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
162
+ <path d="M3 6h18M8 6V4a2 2 0 012-2h4a2 2 0 012 2v2M10 11v6M14 11v6M5 6h14v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6z" />
163
+ </svg>
164
+ 删除
165
+ </view>
166
+ </view>
167
+ </view>
168
+
169
+ <!-- 加载提示 -->
170
+ <view class="py-4 text-center text-sm text-gray-400">
171
+ {{ loadingText }}
172
+ </view>
173
+ </view>
174
+
175
+ <!-- 底部新增按钮 -->
176
+ <view
177
+ class="fixed bottom-6 left-1/2 h-12 w-11/12 flex items-center justify-center rounded-full bg-blue-500 text-white font-medium -translate-x-1/2"
178
+ @click="addAddress"
179
+ >
180
+ 新增地址
181
+ </view>
182
+ </view>
183
+ </template>
184
+
185
+ <style scoped>
186
+
187
+ </style>
@@ -0,0 +1,76 @@
1
+ <template>
2
+ <view class=" rounded-md mb-3" >
3
+ <view class=" rounded-md shadow-md bg-white pb-3">
4
+ <wd-textarea v-model="personDetail" placeholder="「粘贴识别」或输入文本,智能拆分、姓名、电话和地址" />
5
+ <view class=" flex justify-end align-center px-3">
6
+ <view class=" px-3 text-white bg-[#007AFF] rounded-md py-1 text-sm box-border" @click="identifyingFn">智能识别</view>
7
+ </view>
8
+ </view>
9
+ </view>
10
+ </template>
11
+ <script setup lang="ts">
12
+ import { ref } from 'vue'
13
+ import { useGlobalToast } from '../../composables/useGlobalToast'
14
+ import AddressParse from 'address-parse'
15
+ const toast = useGlobalToast()
16
+ defineOptions({
17
+ name: 'AddAddressPage',
18
+ })
19
+ const props = defineProps<{
20
+ group: any
21
+ }>()
22
+ const model = defineModel<any>()
23
+ const personDetail = ref('')
24
+ const loading = ref(false)
25
+ const form=ref(null)
26
+ /**
27
+ * @description: 智能识别
28
+ */
29
+ function identifyingFn(){
30
+ if(!personDetail.value){
31
+ toast.info('请输入内容')
32
+ return
33
+ }
34
+ const currentValue = AddressParse.parse(personDetail.value)
35
+ if (!currentValue || !currentValue[0]) {
36
+ toast.info('无法识别地址')
37
+ return
38
+ }
39
+ if (!model.value) {
40
+ model.value = {}
41
+ }
42
+ props.group?.fields?.forEach((item: any, index: number) => {
43
+ switch (index) {
44
+ case 0:
45
+ model.value[item.sourceId] = currentValue[0].name || ''
46
+ break;
47
+ case 1:
48
+ model.value[item.sourceId] = currentValue[0].mobile || currentValue[0].phone || ''
49
+ break;
50
+ case 2:
51
+ model.value[item.sourceId] = currentValue[0].province || ''
52
+ break;
53
+ case 3:
54
+ model.value[item.sourceId] = currentValue[0].city || ''
55
+ break;
56
+ case 4:
57
+ model.value[item.sourceId] = currentValue[0].area || ''
58
+ break;
59
+ case 5:
60
+ model.value[item.sourceId] = currentValue[0].details || ''
61
+ break;
62
+ default:
63
+ break;
64
+ }
65
+ })
66
+ console.log('智能识别', currentValue)
67
+ }
68
+
69
+
70
+ </script>
71
+
72
+ <style scoped>
73
+ .custom-border{
74
+ border-bottom: 0.6px solid #e8e8e8;
75
+ }
76
+ </style>
@@ -0,0 +1,297 @@
1
+ export const config = [
2
+ {
3
+ "actions": null,
4
+ "aggFunc": null,
5
+ "buttons": [],
6
+ "colSpan": 1,
7
+ "colWidth": null,
8
+ "columnGroupName": null,
9
+ "comparator": null,
10
+ "contentColor": null,
11
+ "controlType": "yes-no-select",
12
+ "dataUnit": null,
13
+ "defaultValue": null,
14
+ "disabled": false,
15
+ "ellipsisLength": -1,
16
+ "exportColWidth": null,
17
+ "extControlType": "yes-no-select",
18
+ "extRefCustomPage": null,
19
+ "extRefPageIcon": null,
20
+ "extRefPageId": null,
21
+ "extRefPageTitle": null,
22
+ "hidden": false,
23
+ "iGroupAggFunc": false,
24
+ "id": "498840945837252611",
25
+ "itemBreakLine": true,
26
+ "max": null,
27
+ "maxColWidth": null,
28
+ "min": null,
29
+ "minColWidth": null,
30
+ "mstrucId": "db0a599cc3a6b8b54308733f84bba17b",
31
+ "order": "22",
32
+ "placeholder": null,
33
+ "relDeduplication": false,
34
+ "relValueField": null,
35
+ "required": true,
36
+ "requiredRuleCriterias": [],
37
+ "rowEditType": "editable",
38
+ "rules": [],
39
+ "serverKey": null,
40
+ "sortable": true,
41
+ "sourceId": "49884094583725222611",
42
+ "subRelValueField": null,
43
+ "themeColor": null,
44
+ "themeIcon": null,
45
+ "tip": null,
46
+ "title": "寄件人姓名",
47
+ "transDefaultValue": null,
48
+ "unusableMode": null,
49
+ "usableRuleCriterias": []
50
+ },
51
+ {
52
+ "actions": null,
53
+ "aggFunc": null,
54
+ "buttons": [],
55
+ "colSpan": 1,
56
+ "colWidth": null,
57
+ "columnGroupName": null,
58
+ "comparator": null,
59
+ "contentColor": null,
60
+ "controlType": "yes-no-select",
61
+ "dataUnit": null,
62
+ "defaultValue": null,
63
+ "disabled": false,
64
+ "ellipsisLength": -1,
65
+ "exportColWidth": null,
66
+ "extControlType": "yes-no-select",
67
+ "extRefCustomPage": null,
68
+ "extRefPageIcon": null,
69
+ "extRefPageId": null,
70
+ "extRefPageTitle": null,
71
+ "hidden": false,
72
+ "iGroupAggFunc": false,
73
+ "id": "498840945837252611",
74
+ "itemBreakLine": true,
75
+ "max": null,
76
+ "maxColWidth": null,
77
+ "min": null,
78
+ "minColWidth": null,
79
+ "mstrucId": "db0a599cc3a6b8b54308733f84bba17b",
80
+ "order": "22",
81
+ "placeholder": null,
82
+ "relDeduplication": false,
83
+ "relValueField": null,
84
+ "required": true,
85
+ "requiredRuleCriterias": [],
86
+ "rowEditType": "editable",
87
+ "rules": [],
88
+ "serverKey": null,
89
+ "sortable": true,
90
+ "sourceId": "4988409458372re35261133",
91
+ "subRelValueField": null,
92
+ "themeColor": null,
93
+ "themeIcon": null,
94
+ "tip": null,
95
+ "title": "寄件人手机号",
96
+ "transDefaultValue": null,
97
+ "unusableMode": null,
98
+ "usableRuleCriterias": []
99
+ },
100
+ {
101
+ "actions": null,
102
+ "aggFunc": null,
103
+ "buttons": [],
104
+ "colSpan": 1,
105
+ "colWidth": null,
106
+ "columnGroupName": null,
107
+ "comparator": null,
108
+ "contentColor": null,
109
+ "controlType": "yes-no-select",
110
+ "dataUnit": null,
111
+ "defaultValue": null,
112
+ "disabled": false,
113
+ "ellipsisLength": -1,
114
+ "exportColWidth": null,
115
+ "extControlType": "yes-no-select",
116
+ "extRefCustomPage": null,
117
+ "extRefPageIcon": null,
118
+ "extRefPageId": null,
119
+ "extRefPageTitle": null,
120
+ "hidden": false,
121
+ "iGroupAggFunc": false,
122
+ "id": "498840945837252611",
123
+ "itemBreakLine": true,
124
+ "max": null,
125
+ "maxColWidth": null,
126
+ "min": null,
127
+ "minColWidth": null,
128
+ "mstrucId": "db0a599cc3a6b8b54308733f84bba17b",
129
+ "order": "22",
130
+ "placeholder": null,
131
+ "relDeduplication": false,
132
+ "relValueField": null,
133
+ "required": true,
134
+ "requiredRuleCriterias": [],
135
+ "rowEditType": "editable",
136
+ "rules": [],
137
+ "serverKey": null,
138
+ "sortable": true,
139
+ "sourceId": "49884094583725261133",
140
+ "subRelValueField": null,
141
+ "themeColor": null,
142
+ "themeIcon": null,
143
+ "tip": null,
144
+ "title": "寄件人省",
145
+ "transDefaultValue": null,
146
+ "unusableMode": null,
147
+ "usableRuleCriterias": []
148
+ },
149
+ {
150
+ "actions": null,
151
+ "aggFunc": null,
152
+ "buttons": [],
153
+ "colSpan": 1,
154
+ "colWidth": null,
155
+ "columnGroupName": null,
156
+ "comparator": null,
157
+ "contentColor": null,
158
+ "controlType": "yes-no-select",
159
+ "dataUnit": null,
160
+ "defaultValue": null,
161
+ "disabled": false,
162
+ "ellipsisLength": -1,
163
+ "exportColWidth": null,
164
+ "extControlType": "yes-no-select",
165
+ "extRefCustomPage": null,
166
+ "extRefPageIcon": null,
167
+ "extRefPageId": null,
168
+ "extRefPageTitle": null,
169
+ "hidden": false,
170
+ "iGroupAggFunc": false,
171
+ "id": "498840945837252611",
172
+ "itemBreakLine": true,
173
+ "max": null,
174
+ "maxColWidth": null,
175
+ "min": null,
176
+ "minColWidth": null,
177
+ "mstrucId": "db0a599cc3a6b8b54308733f84bba17b",
178
+ "order": "22",
179
+ "placeholder": null,
180
+ "relDeduplication": false,
181
+ "relValueField": null,
182
+ "required": true,
183
+ "requiredRuleCriterias": [],
184
+ "rowEditType": "editable",
185
+ "rules": [],
186
+ "serverKey": null,
187
+ "sortable": true,
188
+ "sourceId": "49884094583725261441",
189
+ "subRelValueField": null,
190
+ "themeColor": null,
191
+ "themeIcon": null,
192
+ "tip": null,
193
+ "title": "寄件人市",
194
+ "transDefaultValue": null,
195
+ "unusableMode": null,
196
+ "usableRuleCriterias": []
197
+ },
198
+ {
199
+ "actions": null,
200
+ "aggFunc": null,
201
+ "buttons": [],
202
+ "colSpan": 1,
203
+ "colWidth": null,
204
+ "columnGroupName": null,
205
+ "comparator": null,
206
+ "contentColor": null,
207
+ "controlType": "yes-no-select",
208
+ "dataUnit": null,
209
+ "defaultValue": null,
210
+ "disabled": false,
211
+ "ellipsisLength": -1,
212
+ "exportColWidth": null,
213
+ "extControlType": "yes-no-select",
214
+ "extRefCustomPage": null,
215
+ "extRefPageIcon": null,
216
+ "extRefPageId": null,
217
+ "extRefPageTitle": null,
218
+ "hidden": false,
219
+ "iGroupAggFunc": false,
220
+ "id": "498840945837252611",
221
+ "itemBreakLine": true,
222
+ "max": null,
223
+ "maxColWidth": null,
224
+ "min": null,
225
+ "minColWidth": null,
226
+ "mstrucId": "db0a599cc3a6b8b54308733f84bba17b",
227
+ "order": "22",
228
+ "placeholder": null,
229
+ "relDeduplication": false,
230
+ "relValueField": null,
231
+ "required": true,
232
+ "requiredRuleCriterias": [],
233
+ "rowEditType": "editable",
234
+ "rules": [],
235
+ "serverKey": null,
236
+ "sortable": true,
237
+ "sourceId": "49884094583557252611",
238
+ "subRelValueField": null,
239
+ "themeColor": null,
240
+ "themeIcon": null,
241
+ "tip": null,
242
+ "title": "寄件人区/县",
243
+ "transDefaultValue": null,
244
+ "unusableMode": null,
245
+ "usableRuleCriterias": []
246
+ },
247
+ {
248
+ "actions": null,
249
+ "aggFunc": null,
250
+ "buttons": [],
251
+ "colSpan": 1,
252
+ "colWidth": null,
253
+ "columnGroupName": null,
254
+ "comparator": null,
255
+ "contentColor": null,
256
+ "controlType": "yes-no-select",
257
+ "dataUnit": null,
258
+ "defaultValue": null,
259
+ "disabled": false,
260
+ "ellipsisLength": -1,
261
+ "exportColWidth": null,
262
+ "extControlType": "yes-no-select",
263
+ "extRefCustomPage": null,
264
+ "extRefPageIcon": null,
265
+ "extRefPageId": null,
266
+ "extRefPageTitle": null,
267
+ "hidden": false,
268
+ "iGroupAggFunc": false,
269
+ "id": "498840945837252611",
270
+ "itemBreakLine": true,
271
+ "max": null,
272
+ "maxColWidth": null,
273
+ "min": null,
274
+ "minColWidth": null,
275
+ "mstrucId": "db0a599cc3a6b8b54308733f84bba17b",
276
+ "order": "22",
277
+ "placeholder": null,
278
+ "relDeduplication": false,
279
+ "relValueField": null,
280
+ "required": true,
281
+ "requiredRuleCriterias": [],
282
+ "rowEditType": "editable",
283
+ "rules": [],
284
+ "serverKey": null,
285
+ "sortable": true,
286
+ "sourceId": "498840945837554252611",
287
+ "subRelValueField": null,
288
+ "themeColor": null,
289
+ "themeIcon": null,
290
+ "tip": null,
291
+ "title": "寄件详细地址",
292
+ "transDefaultValue": null,
293
+ "unusableMode": null,
294
+ "usableRuleCriterias": []
295
+ },
296
+
297
+ ]
@@ -28,7 +28,7 @@ const progressPercent = computed(() => {
28
28
  })
29
29
 
30
30
  // 格式化时间显示
31
- function formatTime(seconds:any) {
31
+ function formatTime(seconds: any) {
32
32
  if (Number.isNaN(seconds))
33
33
  return '00:00'
34
34
  const mins = Math.floor(seconds / 60)
@@ -53,8 +53,8 @@ function initAudio() {
53
53
  })
54
54
 
55
55
  innerAudioContext.value.onTimeUpdate(() => {
56
- currentTime.value = innerAudioContext.value?.currentTime||0
57
- duration.value = innerAudioContext.value?.duration||0
56
+ currentTime.value = innerAudioContext.value?.currentTime || 0
57
+ duration.value = innerAudioContext.value?.duration || 0
58
58
  })
59
59
 
60
60
  innerAudioContext.value.onError((err) => {
@@ -136,6 +136,7 @@ function del() {
136
136
  props.zpaging.reload()
137
137
  toast.success({ msg: '删除成功!' })
138
138
  }
139
+ message.close()
139
140
  }
140
141
  catch (error) {
141
142
  console.log(error)
@@ -242,12 +243,12 @@ function select({ item }: { item: any }) {
242
243
  <wd-button v-if="props.item.buttons.includes('detail')" size="small" type="info" @click="detail()">
243
244
  详情
244
245
  </wd-button>
245
- <wd-button v-if="props.item.buttons.includes('singleDelete')" size="small" type="error" @click="del()">
246
+ <wd-button v-if="props.item.buttons.includes('singleDelete')" size="small" type="danger" @click="del()">
246
247
  删除
247
248
  </wd-button>
248
- <ActionPopup
249
+ <ActionPopup
249
250
  v-model:show="actionItemShow" :enum-column="props.enumColumn" :zpaging="props.zpaging"
250
- :field-group="actionItem" :code="props.code"
251
+ :field-group="actionItem" :code="props.code"
251
252
  />
252
253
  <!-- 更多按钮 -->
253
254
  <wd-action-sheet v-model="showMoreButn" :actions="morebutns" @close="closeMoreButn" @select="select" />