|
@@ -119,6 +119,13 @@
|
|
<el-table-column label="操作" align="center" width="160">
|
|
<el-table-column label="操作" align="center" width="160">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
<div class="flex items-center justify-center">
|
|
<div class="flex items-center justify-center">
|
|
|
|
+ <el-button
|
|
|
|
+ type="primary"
|
|
|
|
+ link
|
|
|
|
+ @click="openDetail(scope.row.id)"
|
|
|
|
+ >
|
|
|
|
+ <Icon icon="ep:edit" />查看
|
|
|
|
+ </el-button>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
link
|
|
link
|
|
@@ -178,6 +185,7 @@ const treeStore = useTreeStore();
|
|
const message = useMessage() // 消息弹窗
|
|
const message = useMessage() // 消息弹窗
|
|
const { t } = useI18n() // 国际化
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
+const { push } = useRouter()
|
|
const loading = ref(true) // 列表的加载中
|
|
const loading = ref(true) // 列表的加载中
|
|
const total = ref(0) // 列表的总页数
|
|
const total = ref(0) // 列表的总页数
|
|
const list = ref([]) // 列表的数
|
|
const list = ref([]) // 列表的数
|
|
@@ -231,6 +239,12 @@ const openForm = (type: string, id?: number) => {
|
|
formRef.value.open(type, id)
|
|
formRef.value.open(type, id)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/** 打开详情 */
|
|
|
|
+const openDetail = (id: number) => {
|
|
|
|
+ debugger
|
|
|
|
+ push({ name: 'DeviceAttrTemplateDetail', params: { id } })
|
|
|
|
+}
|
|
|
|
+
|
|
/** 修改 设备属性模板 状态 */
|
|
/** 修改 设备属性模板 状态 */
|
|
const handleStatusChange = async (row: DeviceTemplateApi.DeviceAttrTemplateVO) => {
|
|
const handleStatusChange = async (row: DeviceTemplateApi.DeviceAttrTemplateVO) => {
|
|
try {
|
|
try {
|