|
@@ -502,14 +502,18 @@ export default {
|
|
|
},
|
|
},
|
|
|
/// 删除
|
|
/// 删除
|
|
|
deleteHandler(id) {
|
|
deleteHandler(id) {
|
|
|
|
|
+ var ids = id? [Number(id)]: this.dataListSelections.map(item => {
|
|
|
|
|
+ return Number(item.id);
|
|
|
|
|
+ });
|
|
|
this.$confirm('确认删除吗?', '提示', {
|
|
this.$confirm('确认删除吗?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.$http({
|
|
this.$http({
|
|
|
- url: `/predict-conf/delete/${id}`,
|
|
|
|
|
- method: 'delete',
|
|
|
|
|
|
|
+ url: `/predict-conf/delete`,
|
|
|
|
|
+ method: "post",
|
|
|
|
|
+ data: ids
|
|
|
}).then(({ data }) => {
|
|
}).then(({ data }) => {
|
|
|
if (data && data.code === 0) {
|
|
if (data && data.code === 0) {
|
|
|
this.$message({
|
|
this.$message({
|