|
@@ -1,12 +1,6 @@
|
|
|
<template>
|
|
|
<div class="table_item">
|
|
|
- <s-table
|
|
|
- ref="tableRef"
|
|
|
- :columns="columns"
|
|
|
- :data="loadData"
|
|
|
- :row-key="(record) => record.id"
|
|
|
- :show-pagination="false"
|
|
|
- >
|
|
|
+ <s-table ref="tableRef" :columns="columns" :data="loadData" :row-key="(record) => record.id">
|
|
|
<template #operator>
|
|
|
<!-- 搜索区域 -->
|
|
|
<div class="table-search">
|
|
@@ -82,7 +76,7 @@
|
|
|
|
|
|
{
|
|
|
title: '监控对象',
|
|
|
- dataIndex: 'monitorTargetId',
|
|
|
+ dataIndex: 'targetName',
|
|
|
align: 'center',
|
|
|
ellipsis: true
|
|
|
},
|
|
@@ -132,7 +126,7 @@
|
|
|
]
|
|
|
|
|
|
const loadData = () => {
|
|
|
- return locationApi.locationTree(Object.assign(searchFormState.value)).then((res) => {
|
|
|
+ return locationApi.locationPage(Object.assign(searchFormState.value)).then((res) => {
|
|
|
if (res) {
|
|
|
return res
|
|
|
}
|