设备列表

This commit is contained in:
白菜
2025-07-12 16:18:15 +08:00
parent 893c690e7d
commit 8fc9f975e1
2 changed files with 26 additions and 15 deletions

View File

@ -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()
//调用接口 更新表格数据