添加强制删除

This commit is contained in:
wanxiaoli 2025-11-04 11:01:56 +08:00
parent b2eb4e6048
commit d290381927
3 changed files with 31 additions and 2 deletions

View File

@ -4,7 +4,7 @@ window.webConfig = {
"webApiBaseApp": "https://edu.mmhyvision.com/parent", "webApiBaseApp": "https://edu.mmhyvision.com/parent",
"mapUrl":"http://192.168.1.166", "mapUrl":"http://192.168.1.166",
"WebSocketUrl":"ws://192.168.1.166:8087", "WebSocketUrl":"ws://192.168.1.166:8087",
"title": "文档与数据管理系统(单机版)", "title": "文档与数据管理系统",
"bgImg": "beijing.jpg", "bgImg": "beijing.jpg",
"loginLogo": "uplogo.png", "loginLogo": "uplogo.png",
"headerLogo": "logo.png", "headerLogo": "logo.png",

Binary file not shown.

After

Width:  |  Height:  |  Size: 518 B

View File

@ -216,6 +216,33 @@ function delproject(row: any) {
}) })
}) })
} }
//
function reforcedelproject(row: any) {
ElMessageBox.confirm(
'强制删除将删除该试验任务的所有内容:包括本地存储空间文件及备份存储空间文件。建议限于测试数据或者已有其他备份的的试验任务数据。您确认要强制删除吗?',
'警告',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
deleteTsTaskById({ id: row.id }).then((res: any) => {
if (res.code == 0) {
getdata()
ElMessage({
type: 'success',
message: '强制删除成功',
})
}
else {
ElMessage.warning("强制删除失败!")
return
}
})
})
}
function expproject(row: any) { function expproject(row: any) {
ElMessageBox.confirm( ElMessageBox.confirm(
'您确定要导出该任务吗?', '您确定要导出该任务吗?',
@ -515,7 +542,7 @@ function importSubmit(formEl: any) {
if (res.code == '0') { if (res.code == '0') {
isconnect.value = false isconnect.value = false
importDialog.value = false importDialog.value = false
ElMessage.success('上传成功') ElMessage.success('导入成功')
getdata() getdata()
} else { } else {
isconnect.value = false isconnect.value = false
@ -645,6 +672,8 @@ function importClose() {
style="cursor: pointer;"> style="cursor: pointer;">
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" @click="delproject(scope.row)" <img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" @click="delproject(scope.row)"
style="cursor: pointer;"> style="cursor: pointer;">
<img v-if="standAlone == false" src="@/assets/MenuIcon/lbcz_qzsc.png" alt="" title="强制删除" @click="reforcedelproject(scope.row)"
style="cursor: pointer;">
<img v-if="standAlone" src="@/assets/MenuIcon/lbcz_dc.png" alt="" title="导出" <img v-if="standAlone" src="@/assets/MenuIcon/lbcz_dc.png" alt="" title="导出"
@click="expproject(scope.row)" style="cursor: pointer;"> @click="expproject(scope.row)" style="cursor: pointer;">
</span> </span>