|
@@ -17,7 +17,7 @@
|
|
|
type="primary"
|
|
|
icon="el-icon-search"
|
|
|
class="search-button"
|
|
|
- @click="SearchData()"
|
|
|
+ @click="platformList()"
|
|
|
>
|
|
|
搜索
|
|
|
</el-button>
|
|
@@ -184,27 +184,12 @@ export default defineComponent({
|
|
|
.platformList({
|
|
|
size: pageSize.value,
|
|
|
current: currentPage.value,
|
|
|
- })
|
|
|
- .then((requset) => {
|
|
|
- if (requset.status === 'SUCCESS') {
|
|
|
- tableData.value = requset.data.records
|
|
|
- total.value = requset.data.total
|
|
|
- } else {
|
|
|
- ElMessage.error(requset.msg)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- //筛选设备列表
|
|
|
- function SearchData() {
|
|
|
- api
|
|
|
- .platformList({
|
|
|
platformAreaName: platformAreaName.value,
|
|
|
})
|
|
|
.then((requset) => {
|
|
|
if (requset.status === 'SUCCESS') {
|
|
|
tableData.value = requset.data.records
|
|
|
- // total.value = requset.data.total
|
|
|
+ total.value = requset.data.total
|
|
|
} else {
|
|
|
ElMessage.error(requset.msg)
|
|
|
}
|
|
@@ -295,7 +280,7 @@ export default defineComponent({
|
|
|
pageSize,
|
|
|
currentPage,
|
|
|
|
|
|
- SearchData,
|
|
|
+ platformList,
|
|
|
goSiteList,
|
|
|
getMsgFormSon,
|
|
|
headClass,
|