|
|
@@ -696,13 +696,17 @@ const selectMeasure = (item: UTSJSONObject): void => {
|
|
|
})
|
|
|
}
|
|
|
}).catch((e) => {
|
|
|
- console.log(e)
|
|
|
const error = e as UTSError
|
|
|
const errMsg = error?.message
|
|
|
- uni.showToast({ title: errMsg.toString(), icon: 'none'})
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: errMsg.toString(),
|
|
|
+ showCancel: false,
|
|
|
+ confirmText: '确定'
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
// 确认申请
|
|
|
const confirmApplication = (): void => {
|
|
|
if (selectedItems.value.length === 0) {
|
|
|
@@ -737,11 +741,17 @@ const selectMeasure = (item: UTSJSONObject): void => {
|
|
|
}).catch((e) => {
|
|
|
const error = e as UTSError
|
|
|
const errMsg = error?.message
|
|
|
- uni.showToast({ title: errMsg.toString(), icon: 'none'})
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: errMsg.toString(),
|
|
|
+ showCancel: false,
|
|
|
+ confirmText: '确定'
|
|
|
+ })
|
|
|
})
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
// 处理图片更新
|
|
|
const handleImageUpdate = (value: UploadResponse[]): void => {
|
|
|
newMaterial.value.imageUrls = value
|
|
|
@@ -817,7 +827,12 @@ const handleAddMaterial = async (): Promise<void> => {
|
|
|
} catch (e) {
|
|
|
const error = e as UTSError
|
|
|
const errMsg = error?.message
|
|
|
- uni.showToast({ title: errMsg.toString(), icon: 'none'})
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: errMsg.toString(),
|
|
|
+ showCancel: false,
|
|
|
+ confirmText: '确定'
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
|