style: 主页状态颜色
This commit is contained in:
@@ -141,9 +141,9 @@ let pronInfo: nfStateType = reactive({
|
||||
});
|
||||
|
||||
/**查询网元状态列表 */
|
||||
function fnGetList() {
|
||||
function fnGetList(one: boolean) {
|
||||
if (tableState.loading) return;
|
||||
tableState.loading = true;
|
||||
one && (tableState.loading = true);
|
||||
listMain().then(res => {
|
||||
tableState.data = res;
|
||||
tableState.loading = false;
|
||||
@@ -174,6 +174,7 @@ function fnGetList() {
|
||||
orient: 'vertical',
|
||||
left: 'left',
|
||||
},
|
||||
color: ['#91cc75', '#ee6666'],
|
||||
series: [
|
||||
{
|
||||
name: t('views.index.realNeStatus'),
|
||||
@@ -393,8 +394,8 @@ function fnLocale() {
|
||||
|
||||
onMounted(() => {
|
||||
fnLocale();
|
||||
fnGetList();
|
||||
timer = setInterval(fnGetList, 10000); // 每隔10秒执行一次
|
||||
fnGetList(true);
|
||||
timer = setInterval(() => fnGetList(false), 10000); // 每隔10秒执行一次
|
||||
});
|
||||
|
||||
// 在组件卸载之前清除定时器
|
||||
|
||||
Reference in New Issue
Block a user