af-mobile-client-vue3 1.4.46 → 1.4.48

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,7 +1,7 @@
1
1
  {
2
2
  "name": "af-mobile-client-vue3",
3
3
  "type": "module",
4
- "version": "1.4.46",
4
+ "version": "1.4.48",
5
5
  "packageManager": "pnpm@10.13.1",
6
6
  "description": "Vue + Vite component lib",
7
7
  "engines": {
@@ -21,7 +21,9 @@
21
21
  "prepare": "simple-git-hooks"
22
22
  },
23
23
  "dependencies": {
24
+ "@devui-design/icons": "^1.4.0",
24
25
  "@iconify/vue": "4.3.0",
26
+ "@matechat/core": "^1.10.0",
25
27
  "@micro-zoe/micro-app": "1.0.0-rc.26",
26
28
  "@unhead/vue": "2.0.12",
27
29
  "@vant/area-data": "^2.0.0",
@@ -29,9 +31,11 @@
29
31
  "@vant/use": "^1.6.0",
30
32
  "@vueuse/core": "^13.5.0",
31
33
  "axios": "^1.10.0",
34
+ "bcryptjs": "^2.4.3",
32
35
  "crypto-js": "^4.2.0",
33
36
  "dayjs": "^1.11.13",
34
37
  "echarts": "^5.6.0",
38
+ "jsencrypt": "^3.3.2",
35
39
  "lodash-es": "^4.17.21",
36
40
  "nprogress": "^0.2.0",
37
41
  "ol": "^10.5.0",
@@ -41,12 +45,11 @@
41
45
  "vant": "^4.9.21",
42
46
  "vconsole": "^3.15.1",
43
47
  "vue": "^3.5.17",
48
+ "vue-devui": "^1.6.34",
44
49
  "vue-i18n": "^11.1.10",
45
50
  "vue-router": "^4.5.1",
46
51
  "vue3-hash-calendar": "^1.1.3",
47
- "weixin-js-sdk": "^1.6.5",
48
- "jsencrypt": "^3.3.2",
49
- "bcryptjs": "^2.4.3"
52
+ "weixin-js-sdk": "^1.6.5"
50
53
  },
51
54
  "devDependencies": {
52
55
  "@antfu/eslint-config": "4.17.0",
@@ -26,6 +26,7 @@ const props = defineProps({
26
26
  uploadMode: { default: 'server' },
27
27
  attr: { type: Object as () => { addOrEdit?: string, acceptCount?: number, uploadImage?: boolean, watermark?: WatermarkConfig }, default: () => ({}) },
28
28
  mode: { default: '新增' }, // 预览
29
+ serviceName: { type: String, default: '' },
29
30
  // 整体只读:只允许预览,禁止拍照/上传/删除
30
31
  readonly: { type: Boolean, default: false },
31
32
  isAsyncUpload: { type: Boolean, default: false },
@@ -93,7 +94,7 @@ function uploadFileViaHttp(file: File, previewUrl: string, temp: any) {
93
94
  formData.append('filesize', (file.size / 1024 / 1024).toFixed(4))
94
95
  formData.append('f_operator', 'server')
95
96
 
96
- upload(formData, import.meta.env.VITE_APP_SYSTEM_NAME, { 'Content-Type': 'multipart/form-data' }).then((res: any) => {
97
+ upload(formData, props.serviceName || import.meta.env.VITE_APP_SYSTEM_NAME, { 'Content-Type': 'multipart/form-data' }).then((res: any) => {
97
98
  const index = imageList.value.findIndex(item => item.uid === temp.uid)
98
99
  if (res?.data?.id) {
99
100
  if (index !== -1) {
@@ -216,7 +217,7 @@ function handlePhotoUpload(photoData: any) {
216
217
  filesize: photoData.size,
217
218
  f_operator: 'server',
218
219
  imgPath: photoData.filePath,
219
- urlPath: `/api/${import.meta.env.VITE_APP_SYSTEM_NAME}/resource/upload`,
220
+ urlPath: `/api/${props.serviceName || import.meta.env.VITE_APP_SYSTEM_NAME}/resource/upload`,
220
221
  commonId: parentData?.commonId?.value ?? '',
221
222
  }
222
223
  if (props.isAsyncUpload) {