update
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, onUnmounted, ref, watch } from 'vue';
|
||||
import { onUnmounted, ref, watch } from 'vue';
|
||||
import PublicTitle from '/@/components/publicTitle.vue';
|
||||
import { getMonitorList } from '/@/components/secondaryScreen/commonApi.ts';
|
||||
import { monitorColumns } from '/@/components/secondaryScreen/screen-right/screenRightHooks.ts';
|
||||
@@ -58,7 +58,6 @@
|
||||
tableHeight.value == 0 && setHeight();
|
||||
window.addEventListener('resize', setHeight);
|
||||
timer.value && clearInterval(timer.value);
|
||||
// interval();
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
@@ -74,7 +73,7 @@
|
||||
}
|
||||
|
||||
async function init(page) {
|
||||
const { pageSize, current } = pagination.value;
|
||||
const { pageSize } = pagination.value;
|
||||
const { code, result } = await getMonitorList({ pageSize, pageNo: page, orgCode: props.orgCode });
|
||||
if (code == 200) {
|
||||
dataSource.value = result.records;
|
||||
@@ -91,10 +90,8 @@
|
||||
}
|
||||
|
||||
function interval() {
|
||||
// timer.value = setInterval(() => {
|
||||
let page = pagination.value.current < pages.value ? pagination.value.current + 1 : 1;
|
||||
init(page);
|
||||
// }, 3000);
|
||||
}
|
||||
|
||||
const { refreshState } = useRefresh(PAGE_SWITCH, () => {
|
||||
|
||||
Reference in New Issue
Block a user