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