修改删除提示
This commit is contained in:
parent
f3bc668e65
commit
7103ba3cac
@ -33,7 +33,7 @@ export function searchAlgorithmsModelPage(queryParams:any){
|
|||||||
|
|
||||||
|
|
||||||
//单个删除项目
|
//单个删除项目
|
||||||
export function deleteAlgorithms (queryParams:any){
|
export function deleteAlgorithmModels (queryParams:any){
|
||||||
return request({
|
return request({
|
||||||
url:'/algorithm-models/'+queryParams.id ,
|
url:'/algorithm-models/'+queryParams.id ,
|
||||||
method: 'delete'
|
method: 'delete'
|
||||||
@ -41,7 +41,7 @@ export function deleteAlgorithms (queryParams:any){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
//多选删除项目
|
//多选删除项目
|
||||||
export function deleteBatchAlgorithms (queryParams:any){
|
export function deleteBatchAlgorithmModels (queryParams:any){
|
||||||
return request({
|
return request({
|
||||||
url:'/algorithm-models',
|
url:'/algorithm-models',
|
||||||
method: 'delete',
|
method: 'delete',
|
||||||
|
|||||||
@ -168,7 +168,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择算法数据吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
@ -7,9 +7,9 @@ export default {
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref, nextTick } from "vue";
|
import { onMounted, ref, nextTick } from "vue";
|
||||||
import { ElForm, ElMessage, ElMessageBox } from "element-plus";
|
import { ElForm, ElMessage, ElMessageBox } from "element-plus";
|
||||||
import { searchAlgorithmsPage,addAlgorithms,updateAlgorithms,deleteAlgorithms,deleteBatchAlgorithms} from "@/api/business/algorithm";
|
import { searchAlgorithmsPage,addAlgorithms,updateAlgorithms} from "@/api/business/algorithm";
|
||||||
|
|
||||||
import { searchAlgorithmsModelPage} from "@/api/business/algorithmModel";
|
import { searchAlgorithmsModelPage, deleteAlgorithmModels,deleteBatchAlgorithmModels } from "@/api/business/algorithmModel";
|
||||||
|
|
||||||
import Page from '@/components/Pagination/page.vue'
|
import Page from '@/components/Pagination/page.vue'
|
||||||
|
|
||||||
@ -194,9 +194,9 @@ function delAloneClick(row: any) {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
let params = {
|
let params = {
|
||||||
id: row.algorithmId,
|
id: row.algorithmModelId,
|
||||||
};
|
};
|
||||||
deleteAlgorithms(params).then(() => {
|
deleteAlgorithmModels(params).then(() => {
|
||||||
gettableData();
|
gettableData();
|
||||||
ElMessage({
|
ElMessage({
|
||||||
type: "success",
|
type: "success",
|
||||||
@ -209,19 +209,19 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择算法数据吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
let id = [] as any[];
|
let id = [] as any[];
|
||||||
multipleSelection.value.forEach((item: any) => {
|
multipleSelection.value.forEach((item: any) => {
|
||||||
id.push(item.algorithmId)
|
id.push(item.algorithmModelId)
|
||||||
})
|
})
|
||||||
let params = {
|
let params = {
|
||||||
ids: id,
|
ids: id,
|
||||||
};
|
};
|
||||||
deleteBatchAlgorithms(params.ids).then(() => {
|
deleteBatchAlgorithmModels(params.ids).then(() => {
|
||||||
gettableData();
|
gettableData();
|
||||||
ElMessage({
|
ElMessage({
|
||||||
message: "删除成功",
|
message: "删除成功",
|
||||||
|
|||||||
@ -196,7 +196,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择设备吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
@ -256,7 +256,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择设备吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
@ -219,7 +219,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择物料数据吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
@ -150,7 +150,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择项目吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
@ -143,7 +143,7 @@ function delAloneClick(row: any) {
|
|||||||
|
|
||||||
// 多选删除?
|
// 多选删除?
|
||||||
function delClick() {
|
function delClick() {
|
||||||
ElMessageBox.confirm("确定删除已选择角色吗?", "删除提示", {
|
ElMessageBox.confirm("确定删除已选择事故情景吗?", "删除提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
type: "warning",
|
type: "warning",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user