添加强制删除
This commit is contained in:
parent
b2eb4e6048
commit
d290381927
@ -4,7 +4,7 @@ window.webConfig = {
|
||||
"webApiBaseApp": "https://edu.mmhyvision.com/parent",
|
||||
"mapUrl":"http://192.168.1.166",
|
||||
"WebSocketUrl":"ws://192.168.1.166:8087",
|
||||
"title": "文档与数据管理系统(单机版)",
|
||||
"title": "文档与数据管理系统",
|
||||
"bgImg": "beijing.jpg",
|
||||
"loginLogo": "uplogo.png",
|
||||
"headerLogo": "logo.png",
|
||||
|
||||
BIN
web/src/assets/MenuIcon/lbcz_qzsc.png
Normal file
BIN
web/src/assets/MenuIcon/lbcz_qzsc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 518 B |
31
web/src/views/testdata/testtask/index.vue
vendored
31
web/src/views/testdata/testtask/index.vue
vendored
@ -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) {
|
||||
ElMessageBox.confirm(
|
||||
'您确定要导出该任务吗?',
|
||||
@ -515,7 +542,7 @@ function importSubmit(formEl: any) {
|
||||
if (res.code == '0') {
|
||||
isconnect.value = false
|
||||
importDialog.value = false
|
||||
ElMessage.success('上传成功')
|
||||
ElMessage.success('导入成功')
|
||||
getdata()
|
||||
} else {
|
||||
isconnect.value = false
|
||||
@ -645,6 +672,8 @@ function importClose() {
|
||||
style="cursor: pointer;">
|
||||
<img src="@/assets/MenuIcon/lbcz_sc.png" alt="" title="删除" @click="delproject(scope.row)"
|
||||
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="导出"
|
||||
@click="expproject(scope.row)" style="cursor: pointer;">
|
||||
</span>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user