{
operation_id: 0,
response_schema_id: 0,
department_id: 0,
+ elec_id: null,
asset_number: "",
topic: "",
sub_device: [],
@@ -141,6 +143,18 @@ watch(
IoT
+
+
+
{{ $t("assetManagement.asset_number") }}
{
setPoints(
res.data.map((d, index) => ({
...d,
- title: d.points,
+ title: d.full_name,
key: d.points,
active: false,
}))
diff --git a/src/views/alert/components/AlertSetting/AlertOutliersTable.vue b/src/views/alert/components/AlertSetting/AlertOutliersTable.vue
index 00ad084..994d302 100644
--- a/src/views/alert/components/AlertSetting/AlertOutliersTable.vue
+++ b/src/views/alert/components/AlertSetting/AlertOutliersTable.vue
@@ -4,6 +4,7 @@ import {
getOutliersList,
getOutliersDevList,
getOutliersPoints,
+ delOutliersSetting,
} from "@/apis/alert";
import useSearchParam from "@/hooks/useSearchParam";
import AlertOutliersTableAddModal from "./AlertOutliersTableAddModal.vue";
@@ -11,6 +12,7 @@ import AlertOutliersTableAddModal from "./AlertOutliersTableAddModal.vue";
import { useI18n } from "vue-i18n";
const { t } = useI18n();
const { noticeList, timesList } = inject("notify_table");
+const { openToast, cancelToastOpen } = inject("app_toast");
const { searchParams, changeParams } = useSearchParam();
const tableData = ref([]);
@@ -70,7 +72,7 @@ const columns = computed(() => [
{
title: t("alert.operation"),
key: "operation",
- width: 150,
+ width: 300,
},
]);
@@ -162,6 +164,19 @@ const openModal = (record) => {
outliers_add_table_item.showModal();
};
+const remove = async (Id) => {
+ openToast("warning", t("msg.sure_to_delete"), "body", async () => {
+ await cancelToastOpen();
+ const res = await delOutliersSetting(Id);
+ if (res.isSuccess) {
+ getOutliersData();
+ openToast("success", t("msg.delete_success"));
+ } else {
+ openToast("error", res.msg);
+ }
+ });
+};
+
const onCancel = () => {
editRecord.value = null;
outliers_add_table_item.close();
@@ -188,6 +203,12 @@ const onCancel = () => {
>
{{ $t("button.edit") }}