sale-client 4.2.84 → 4.2.85
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/.gradle/5.2.1/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/checksums/checksums.lock +0 -0
- package/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.10/executionHistory/executionHistory.lock +0 -0
- package/.gradle/8.10/fileChanges/last-build.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.bin +0 -0
- package/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/.gradle/8.10/gc.properties +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/.gradle/file-system.probe +0 -0
- package/build/dev-server.js +3 -3
- package/package.json +1 -1
- package/src/filiale/yangchun/BlackList/BlackListList.vue +26 -4
- package/src/filiale/yuncheng/FileManageService.js +469 -469
- package/src/main.js +1 -1
- package/src/components/FilesManage/addressts/FileUserFilests.vue +0 -671
- package/src/components/FilesManage/ncUserinfoList.vue +0 -315
- package/src/components/SellGasCharge/MeterCharge/CardDataRewrite.vue +0 -107
- package/src/components/SendCard/SendCardData.vue +0 -208
- package/src/components/accounts/accountAdd.vue +0 -276
- package/src/components/accounts/accountsList.vue +0 -183
- package/src/components/accounts/accountsManage.vue +0 -87
- package/src/components/common/chargeinfo/chargeinfo.vue +0 -55
- package/src/components/common/userinfo_detail/config/exportConfig.js +0 -85
- package/src/components/ncarchives/ncArchivesAdd.vue +0 -468
- package/src/components/ncarchives/ncArchivesList.vue +0 -159
- package/src/components/ncarchives/ncUserfilesList.vue +0 -373
- package/src/components/ncarchives/ncarchivesmanage.vue +0 -80
- package/src/components/revenue/IOTArrears/arrears.vue +0 -323
- package/src/components/revenue/IOTArrears/iotRechargeAudit.vue +0 -369
- package/src/components/revenue/base/rightview/carddetail/cardiotfeeChangeDetail.vue +0 -59
- package/src/components/revenue/base/rightview/carddetail/reduceChangeDetail.vue +0 -59
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchCancellationts.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/BatchChange/BatchEnablets.vue +0 -73
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/ReduceAddGas.vue +0 -199
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icdeductionYSManage.vue +0 -24
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/IcFeeDeduction/icfeeYSDeduction.vue +0 -185
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/ChangeFlowMeter.vue +0 -356
- package/src/components/revenue/comprehen/ComprehenOperation/newchangemeter/CorrectionMeter.vue +0 -148
- package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackUserList.vue +0 -136
- package/src/components/revenue/recordMainten/sellinggas/AddWarehousemain.vue +0 -65
- package/src/components/revenue/recordMainten/sellinggas/MeterOperateAdd.vue +0 -483
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemain.vue +0 -279
- package/src/components/revenue/recordMainten/sellinggas/MeterOperatemainImport.vue +0 -265
- package/src/components/thirdapply/thirdAdd.vue +0 -289
- package/src/components/thirdapply/thirdList.vue +0 -162
- package/src/components/thirdapply/thirdManage.vue +0 -74
- package/src/components/webMeter/InstructQuery.vue +0 -414
- package/src/components/webMeter/ParamSet/ParamSet.vue +0 -556
- package/src/components/webMeter/ParamSet/ParamSetForm.vue +0 -296
- package/src/components/webMeter/WebUserHand.vue +0 -483
- package/src/components/webMeter/instructionView/NewQueryInstruct.vue +0 -509
- package/src/components/webMeter/instructionView/NewQueryInstructMain.vue +0 -48
- package/src/components/webMeter/webManage/NewMeterList.vue +0 -461
- package/src/plugins/FileManageServicets.js +0 -214
- package/src/plugins/GetImg.js +0 -53
package/src/plugins/GetImg.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import axios from 'axios'
|
|
2
|
-
export async function fetchImage (imagePath, options = {}) {
|
|
3
|
-
const defaultOptions = {
|
|
4
|
-
timeout: 3000, // 默认超时时间,单位为毫秒
|
|
5
|
-
maxRetries: 1, // 默认最大重试次数
|
|
6
|
-
onTimeout: () => {
|
|
7
|
-
console.log('请求超时')
|
|
8
|
-
},
|
|
9
|
-
onError: (error) => {
|
|
10
|
-
console.log('请求失败', error)
|
|
11
|
-
},
|
|
12
|
-
onSuccess: () => {}
|
|
13
|
-
}
|
|
14
|
-
const finalOptions = Object.assign({}, defaultOptions, options)
|
|
15
|
-
let retries = 0
|
|
16
|
-
|
|
17
|
-
const fetch = async () => {
|
|
18
|
-
try {
|
|
19
|
-
const response = await axios.get(imagePath, {
|
|
20
|
-
responseType: 'blob',
|
|
21
|
-
timeout: finalOptions.timeout
|
|
22
|
-
})
|
|
23
|
-
return URL.createObjectURL(response.data)
|
|
24
|
-
} catch (error) {
|
|
25
|
-
finalOptions.onError(error)
|
|
26
|
-
retries++
|
|
27
|
-
if (retries < finalOptions.maxRetries) {
|
|
28
|
-
return fetch()
|
|
29
|
-
} else {
|
|
30
|
-
return ''
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return fetch()
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export async function fetchImages (imageItems,rowName) {
|
|
38
|
-
const fetchPromises = imageItems.map(async (item) => {
|
|
39
|
-
return fetchImage(item[rowName], {
|
|
40
|
-
onSuccess: () => {
|
|
41
|
-
console.log(`图片 ${item.id} 请求成功`)
|
|
42
|
-
},
|
|
43
|
-
onError: (error) => {
|
|
44
|
-
console.log(`图片 ${item.id} 请求失败`, error)
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
})
|
|
48
|
-
const results = await Promise.all(fetchPromises);
|
|
49
|
-
results.forEach((imageUrl, index) => {
|
|
50
|
-
imageItems[index][rowName] = imageUrl
|
|
51
|
-
})
|
|
52
|
-
return imageItems
|
|
53
|
-
}
|