|
|
@ -73,17 +73,17 @@ |
|
|
|
@click="handleDelete" |
|
|
|
>删除</el-button> |
|
|
|
</el-col> |
|
|
|
<el-col :span="1.5"> |
|
|
|
<!-- <el-col :span="1.5"> |
|
|
|
<el-button |
|
|
|
type="warning" |
|
|
|
icon="Download" |
|
|
|
@click="handleExport" |
|
|
|
>导出</el-button> |
|
|
|
</el-col> |
|
|
|
</el-col> --> |
|
|
|
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> |
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="alertList"> |
|
|
|
<el-table ref="deviceParamsTable" v-loading="loading" :data="alertList"> |
|
|
|
<el-table-column type="selection" width="55" align="center" /> |
|
|
|
<!-- <el-table-column label="主键" align="center" prop="id" /> --> |
|
|
|
<el-table-column label="中台设备ID" align="center" prop="deviceUuid" /> |
|
|
@ -586,7 +586,28 @@ function submitForm() { |
|
|
|
} |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
function handleDelete(row) { |
|
|
|
function handleDelete() { |
|
|
|
const rows = proxy.$refs.deviceParamsTable.getSelectionRows(); |
|
|
|
let names = ""; |
|
|
|
let _ids = []; |
|
|
|
rows.forEach(item=>{ |
|
|
|
_ids.push(item.id); |
|
|
|
if(names == ""){ |
|
|
|
names = item.deviceName + item.paramName; |
|
|
|
}else{ |
|
|
|
names = names + "," + item.deviceName + item.paramName; |
|
|
|
} |
|
|
|
}) |
|
|
|
proxy.$modal.confirm('是否确认删除设备参数名称为"' + names + '"的数据项?').then(function() { |
|
|
|
return delAlert(_ids); |
|
|
|
}).then(() => { |
|
|
|
getList(); |
|
|
|
proxy.$modal.msgSuccess("删除成功"); |
|
|
|
}).catch(() => {}); |
|
|
|
} |
|
|
|
|
|
|
|
/** 删除按钮操作 */ |
|
|
|
function handleDeleteRow(row) { |
|
|
|
const _ids = row.id || ids.value; |
|
|
|
proxy.$modal.confirm('是否确认删除设备告警编号为"' + _ids + '"的数据项?').then(function() { |
|
|
|
return delAlert(_ids); |
|
|
|