File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -44,10 +44,11 @@ export function updateConfig(data) {
44
44
}
45
45
46
46
// 删除参数配置
47
- export function delConfig ( configId ) {
47
+ export function delConfig ( data ) {
48
48
return request ( {
49
- url : '/api/v1/config/' + configId ,
50
- method : 'delete'
49
+ url : '/api/v1/config' ,
50
+ method : 'delete' ,
51
+ data : data
51
52
} )
52
53
}
53
54
Original file line number Diff line number Diff line change @@ -316,13 +316,13 @@ export default {
316
316
},
317
317
/** 删除按钮操作 */
318
318
handleDelete (row ) {
319
- const configIds = row .id || this .ids
320
- this .$confirm (' 是否确认删除参数编号为"' + configIds + ' "的数据项?' , ' 警告' , {
319
+ const data = ( row .id && [ row . id ]) || this .ids
320
+ this .$confirm (' 是否确认删除参数编号为"' + data + ' "的数据项?' , ' 警告' , {
321
321
confirmButtonText: ' 确定' ,
322
322
cancelButtonText: ' 取消' ,
323
323
type: ' warning'
324
324
}).then (function () {
325
- return delConfig (configIds )
325
+ return delConfig ({ ' ids ' : data } )
326
326
}).then (() => {
327
327
this .getList ()
328
328
this .msgSuccess (' 删除成功' )
You can’t perform that action at this time.
0 commit comments