修改删除提示

This commit is contained in:
17630416519 2026-01-05 00:12:37 +08:00
parent a76eb58c8a
commit f50862ea54
7 changed files with 13 additions and 12 deletions

View File

@ -305,10 +305,10 @@ function submitForm() {
//
function handleDelete(row) {
console.log(row);
const Ids = row.siteId || ids.value
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.$confirm('是否确认删除参数编号为"' + row.siteName + '"的数据项?')
.then(function () {
return delPlantFactorySite(Ids)
})

View File

@ -392,7 +392,7 @@ function handleDelete(row) {
const Ids = row.lineId || ids.value
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.$confirm('是否确认删除产线名称为"' + row.lineName + '"的数据项?')
.then(function () {
return delPlantProductlinebody(Ids)
})

View File

@ -313,9 +313,8 @@ function submitForm() {
//
function handleDelete(row) {
const Ids = row.workshopId || ids.value
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.$confirm('是否确认删除车间名称为"' + row.workshopName + '"的数据项?')
.then(function () {
return delPlantWorkshop(Ids)
})

View File

@ -409,9 +409,9 @@ function submitForm() {
//
function handleDelete(row) {
const Ids = row.workstationId || ids.value
console.log(row);
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.$confirm('是否确认删除工站名称为"' + row.workstationName + '"的数据项?')
.then(function () {
return delPlantWorkstation(Ids)
})

View File

@ -68,7 +68,7 @@
<el-tag v-if="scope.row.status == 0" type="info">停用</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" width="160">
<el-table-column label="操作" width="160" fixed="right">
<template #default="scope">
<el-button type="primary" size="small" icon="view" title="查看" @click="handleView(scope.row)"></el-button>
<el-button type="success" size="small" icon="edit" title="编辑" v-hasPermi="['business:processoperation:edit']"
@ -1066,9 +1066,10 @@ function submitForm() {
}
//
function handleDelete(row) {
console.log(row);
const Ids = row.operationId || ids.value
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.$confirm('是否确认删除工序名称为"' + row.operationName + '"的数据项?')
.then(function () {
return delProcessOperation(Ids)
})

View File

@ -983,9 +983,9 @@ function submitForm() {
//
function handleDelete(row) {
const Ids = row.id || ids.value
console.log(row);
proxy
.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
.$confirm('是否确认删除工序编码为"' + row.fkRoutingCode + '"的数据项?')
.then(function () {
return delProcessOperationWorkstationMapping(Ids)
})

View File

@ -413,8 +413,9 @@ function submitForm() {
}
function handleDelete(row) {
console.log(row);
const Ids = row.routingId || ids.value
proxy.$confirm('是否确认删除参数编号为"' + Ids + '"的数据项?')
proxy.$confirm('是否确认删除工艺路线名称为"' + row.routingName + '"的数据项?')
.then(function () {
return delProcessRouting(Ids)
})