设备列表
This commit is contained in:
@ -158,7 +158,7 @@ export default {
|
||||
this.$refs.addDevice.dialogTableVisible = true;
|
||||
},
|
||||
//删除设备
|
||||
deleteDevice(){
|
||||
deleteDevice(row){
|
||||
this.$confirm(`确认要设备${row.deviceName}吗?`, {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
@ -168,7 +168,7 @@ export default {
|
||||
beforeClose: (action, instance, done) => {
|
||||
if (action === 'confirm') {
|
||||
instance.confirmButtonLoading = true;
|
||||
deleteService({id:row.id}).then(response => {
|
||||
deleteService(row.id).then(response => {
|
||||
response.code === 200 && done();
|
||||
}).finally(() => {
|
||||
instance.confirmButtonLoading = false;
|
||||
@ -181,7 +181,7 @@ export default {
|
||||
//只有在废弃成功的情况下会走到这里
|
||||
this.$message({
|
||||
type: 'success',
|
||||
message: '废弃成功!'
|
||||
message: '删除成功!'
|
||||
});
|
||||
this.getData()
|
||||
//调用接口 更新表格数据
|
||||
|
||||
Reference in New Issue
Block a user