优化监控中心样式
This commit is contained in:
@@ -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];
|
||||
|
@@ -3,7 +3,7 @@
|
||||
:columns="columns"
|
||||
:data-source="data"
|
||||
bordered
|
||||
style="width: 100%; height: 90%"
|
||||
style="width: 99%; height: 90%; margin-left: 0.5%"
|
||||
:pagination="false"
|
||||
:scroll="{ x: '2000' }" />
|
||||
<a-pagination
|
||||
|
Reference in New Issue
Block a user