update
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
watch(
|
||||
props,
|
||||
() => {
|
||||
console.log(111111111111);
|
||||
init();
|
||||
},
|
||||
{ immediate: true }
|
||||
|
||||
@@ -69,7 +69,7 @@ export function sleepCharts({ time, short, long, awake, type }) {
|
||||
height: 40,
|
||||
itemHeight: 14,
|
||||
top: -5,
|
||||
left: '55%',
|
||||
left: '52%',
|
||||
},
|
||||
color: ['#14B3F8', '#6D7BEB', '#5451DC'],
|
||||
xAxis: {
|
||||
|
||||
@@ -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, () => {
|
||||
|
||||
@@ -42,9 +42,10 @@
|
||||
const { code, result } = await getStep(params);
|
||||
setSpin(true);
|
||||
if (code != 200) {
|
||||
return;
|
||||
return initChart(unref(stepData), 0);
|
||||
}
|
||||
setStep(result);
|
||||
|
||||
initChart(unref(stepData), '15000');
|
||||
} catch {
|
||||
initChart(unref(stepData), 0);
|
||||
@@ -74,7 +75,7 @@
|
||||
|
||||
.count {
|
||||
position: absolute;
|
||||
width: 80%;
|
||||
width: 77%;
|
||||
top: 51%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
Reference in New Issue
Block a user