优化监控中心样式

This commit is contained in:
fks-yangshouda
2024-08-19 15:45:48 +08:00
parent 45d914b16e
commit fbe0796d7d
9 changed files with 113 additions and 37 deletions

View File

@@ -5,7 +5,8 @@
:data-source="data"
bordered
:pagination="false"
:row-selection="rowSelection">
:row-selection="rowSelection"
style="width: 99%; margin-left: 0.5%">
<template #bodyCell="{ column, record }">
<template v-if="column.title === '操作'">
<a-button type="link" @click="setStandard(record)" v-if="record.id != selectedKey[0]"
@@ -123,7 +124,9 @@
(_newValue, _oldValue) => {
// 深度拷贝
data.value = JSON.parse(JSON.stringify(pageData.analysisTableList));
setStandard(data.value[0]);
if (data.value.length != 0) {
setStandard(data.value[0]);
}
},
{ deep: true },
);
@@ -131,7 +134,9 @@
// 深度拷贝
data.value = JSON.parse(JSON.stringify(pageData.analysisTableList));
// selectedKey.value = [data.value[0]];
setStandard(data.value[0]);
if (data.value.length != 0) {
setStandard(data.value[0]);
}
});
const setStandard = (record: any) => {
selectedKey.value = [record.id];