工作台
This commit is contained in:
@ -75,6 +75,9 @@
|
||||
<uni-data-select :clear="false" v-model="search.clusterId"
|
||||
:localdata="clusterOptions"></uni-data-select>
|
||||
</uni-forms-item>
|
||||
<uni-forms-item label="编号">
|
||||
<uni-easyinput type="text" v-model="search.batteryId" placeholder="请输入编号" />
|
||||
</uni-forms-item>
|
||||
</uni-forms>
|
||||
<view class="button-group" style="text-align: center;">
|
||||
<button type="default" size="mini" @click="onReset">重置</button>
|
||||
@ -116,7 +119,8 @@
|
||||
clusterOptions: [],
|
||||
search: {
|
||||
stackId: '',
|
||||
clusterId: ''
|
||||
clusterId: '',
|
||||
batteryId: ''
|
||||
},
|
||||
list: [],
|
||||
siteId: '',
|
||||
@ -166,7 +170,8 @@
|
||||
onReset() {
|
||||
this.search = {
|
||||
stackId: '',
|
||||
clusterId: ''
|
||||
clusterId: '',
|
||||
batteryId: ''
|
||||
}
|
||||
this.clusterOptions = []
|
||||
this.pageNum = 1
|
||||
@ -215,7 +220,8 @@
|
||||
}
|
||||
const {
|
||||
stackId: stackDeviceId,
|
||||
clusterId: clusterDeviceId
|
||||
clusterId: clusterDeviceId,
|
||||
batteryId
|
||||
} = this.search
|
||||
const {
|
||||
siteId,
|
||||
@ -225,11 +231,12 @@
|
||||
getClusterDataInfoList({
|
||||
stackDeviceId,
|
||||
clusterDeviceId,
|
||||
batteryId,
|
||||
siteId,
|
||||
pageNum,
|
||||
pageSize
|
||||
}).then(response => {
|
||||
this.list = this.list.concat(response?.rows || []);
|
||||
this.list = this.list.concat(response?.rows?.[0]?.batteryList || []);
|
||||
this.total = response?.total || 0
|
||||
}).finally(() => {
|
||||
uni.hideLoading()
|
||||
|
||||
Reference in New Issue
Block a user