Feature: Alert Settings

This commit is contained in:
heyanlong 2021-12-30 14:27:10 +08:00
parent 89ff4ac19f
commit 3a1e13abba

View File

@ -24,7 +24,7 @@ limitations under the License. -->
:key="h + index" :key="h + index"
> >
<template #default="scope"> <template #default="scope">
<span v-if="h !== 'operate'">{{ scope.row[h] }}</span> <span v-if="h !== 'action'">{{ scope.row[h] }}</span>
<el-button v-else type="danger" size="mini">{{ <el-button v-else type="danger" size="mini">{{
t("delete") t("delete")
}}</el-button> }}</el-button>
@ -36,12 +36,10 @@ limitations under the License. -->
<script lang="ts" setup> <script lang="ts" setup>
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router";
import { ElButton, ElTable, ElTableColumn } from "element-plus"; import { ElButton, ElTable, ElTableColumn } from "element-plus";
const route = useRoute();
const { t } = useI18n(); const { t } = useI18n();
const tableHeader = ["name", "entityType", "description", "status", "operate"]; const tableHeader = ["name", "entityType", "description", "status", "action"];
const tableData = [ const tableData = [
{ {
name: "xxxx-name", name: "xxxx-name",