Skip to content

Commit

Permalink
fix(multitenant): 修复设备列表翻页组件问题
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Jul 1, 2022
1 parent 9b29ed2 commit e9aabff
Show file tree
Hide file tree
Showing 9 changed files with 342 additions and 323 deletions.
6 changes: 3 additions & 3 deletions src/dgiot/components/DgiotAmisEditor/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,16 @@
<style lang="scss">
.amis {
width: 100%;
overflow: auto;
height: calc(100vh - 60px * 2.7) !important;
overflow: auto;
#editor {
width: 100%;
overflow: auto;
height: calc(100vh - 60px * 2.7) !important;
overflow: auto;
}
}
.ae-Editor .ae-Editor-inner {
overflow: auto;
height: calc(100vh - 60px * 2.7) !important;
overflow: auto;
}
</style>
4 changes: 2 additions & 2 deletions src/views/CloudFunction/doc/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,11 @@
</template>
<style>
.custom-tree-node {
flex: 1;
display: flex;
flex: 1;
align-items: center;
justify-content: space-between;
font-size: 14px;
padding-right: 8px;
font-size: 14px;
}
</style>
4 changes: 3 additions & 1 deletion src/views/CloudFunction/engine/channel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
</el-table>
<div class="elpagination">
<el-pagination
:key="length + 'key' + total"
:key="paginationKey + 'key' + total"
layout="total, sizes, prev, pager, next, jumper"
:page-size="length"
:page-sizes="[5, 10, 20, 30, 50]"
Expand Down Expand Up @@ -804,6 +804,7 @@
],
},
length: 10,
paginationKey: moment(new Date()).valueOf() + '',
start: 0,
total: 0,
selectregion: {},
Expand Down Expand Up @@ -1198,6 +1199,7 @@
keys: 'count(*)',
where: {},
}
this.paginationKey = moment(new Date()).valueOf() + ''
this.channelformsearch.name
? (params.where.name = {
$regex: this.channelformsearch.name,
Expand Down
12 changes: 6 additions & 6 deletions src/views/CloudFunction/engine/components/DynamicForms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
:value="item.objectId"
>
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ item.objectId }}
</span>
</el-option>
Expand Down Expand Up @@ -176,7 +176,7 @@
:value="deviceName.objectId"
>
<span style="float: left">{{ deviceName.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ deviceName.objectId }}
</span>
</el-option>
Expand Down Expand Up @@ -255,7 +255,7 @@
:value="item.objectId"
>
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ item.objectId }}
</span>
</el-option>
Expand Down Expand Up @@ -292,7 +292,7 @@
:value="deviceName.objectId"
>
<span style="float: left">{{ deviceName.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ deviceName.objectId }}
</span>
</el-option>
Expand Down Expand Up @@ -556,7 +556,7 @@
:value="item.objectId"
>
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ item.objectId }}
</span>
</el-option>
Expand Down Expand Up @@ -594,7 +594,7 @@
:value="deviceName.objectId"
>
<span style="float: left">{{ deviceName.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ deviceName.objectId }}
</span>
</el-option>
Expand Down
2 changes: 1 addition & 1 deletion src/views/CloudFunction/lowcode/components/ViewEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
:value="item.value"
>
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ item.value }}
</span>
</el-option>
Expand Down
2 changes: 1 addition & 1 deletion src/views/CloudFunction/lowcode/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
:value="item.value"
>
<span style="float: left">{{ item.label }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">
<span style="float: right; font-size: 13px; color: #8492a6">
{{ item.value }}
</span>
</el-option>
Expand Down
19 changes: 11 additions & 8 deletions src/views/CloudOT/maintenance/alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
<!-- @pagination="fetchData"-->
<!-- />-->
<dgiot-parser-pagination
:key="list.length + 'forensics'"
:key="paginationKey + 'forensics'"
ref="forensics"
:pagination="paginations"
:query-payload="queryPayload"
Expand All @@ -266,11 +266,13 @@
import { mapGetters } from 'vuex'
import { Promise } from 'q'
import { getView } from '@/api/View'
export default {
name: 'Index',
components: {},
data() {
return {
paginationKey: moment(new Date()).valueOf() + '',
editRow: {},
amisData: {},
paginations: { layout: 'total, sizes, prev, pager, next, jumper' },
Expand Down Expand Up @@ -529,6 +531,7 @@
this.fetchData()
},
async fetchData(args = {}) {
this.paginationKey = moment(new Date()).valueOf() + ''
if (!args.limit) {
args = this.queryForm
}
Expand All @@ -545,7 +548,7 @@
// productid: this.queryForm.productName
// ? this.queryForm.productName
// : 'all',
isprocess: this.queryForm.isprocess,
// isprocess: this.queryForm.isprocess,
include: '',
where: {
'content._productid': {
Expand All @@ -558,7 +561,7 @@
limit: args.limit,
order: args.order,
skip: args.skip,
count: args.keys,
count: 'objectId',
// productid: this.queryForm.productName
// ? this.queryForm.productName
// : 'all',
Expand All @@ -570,11 +573,11 @@
// ? (this.queryPayload.where.content['_productid'] = )
// : 'all'
this.queryForm.isprocess
? (this.queryPayload.where['process'] = {
$regex: this.queryForm.isprocess,
})
: ''
// this.queryForm.isprocess
// ? (this.queryPayload.where['process'] = {
// $regex: this.queryForm.isprocess,
// })
// : ''
if (this.queryForm.searchDate.length) {
this.queryPayload.where['createdAt'] = {
$gt: {
Expand Down
2 changes: 1 addition & 1 deletion src/views/CloudOT/maintenance/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
limit: args.limit,
order: args.order,
skip: args.skip,
keys: args.keys,
keys: 'objectId',
where: {},
}
this.queryForm.number
Expand Down

0 comments on commit e9aabff

Please sign in to comment.