调整超时时间 和确认提示

This commit is contained in:
浅念
2026-01-22 15:30:45 +08:00
parent 7be735aca1
commit 5a7cff53f2
4 changed files with 55 additions and 25 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { HttpError, handleError, showError } from './error'
import { $t } from '@/locales'
// 常量定义
const REQUEST_TIMEOUT = 15000 // 请求超时时间(毫秒)
const REQUEST_TIMEOUT = 30000 // 请求超时时间(毫秒)
const LOGOUT_DELAY = 1000 // 退出登录延迟时间(毫秒)
const MAX_RETRIES = 2 // 最大重试次数
const RETRY_DELAY = 1000 // 重试延迟时间(毫秒)
+10
View File
@@ -722,6 +722,12 @@
}
// 标记售出
const statusfn = (row: any) => {
ElMessageBox.confirm('确定要标记售出吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
manageService
.updatestatus({ id: row.id, status: 2 })
.then(() => {
@@ -732,6 +738,10 @@
console.log(err)
ElMessage.error('操作失败,请稍后重试')
})
})
.catch(() => {
// 用户点击了取消
})
}
</script>
@@ -1350,6 +1350,12 @@
}
// 标记售出
const statusfn = (row: any) => {
ElMessageBox.confirm('确定要标记售出吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
manageService
.updatestatus({ id: row.id, status: 2 })
.then(() => {
@@ -1360,6 +1366,10 @@
console.log(err)
ElMessage.error('操作失败,请稍后重试')
})
})
.catch(() => {
// 用户点击了取消
})
}
// 抓取相关
@@ -1350,6 +1350,12 @@
}
// 标记售出
const statusfn = (row: any) => {
ElMessageBox.confirm('确定要标记售出吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(async () => {
manageService
.updatestatus({ id: row.id, status: 2 })
.then(() => {
@@ -1360,6 +1366,10 @@
console.log(err)
ElMessage.error('操作失败,请稍后重试')
})
})
.catch(() => {
// 用户点击了取消
})
}
// 抓取相关