Commit 34a3675e authored by lei's avatar lei

线上启用停用状态更改

parent c1e04c3f
......@@ -25,7 +25,6 @@ declare module 'vue' {
'IconIc:baselinePlus': typeof import('~icons/ic/baseline-plus')['default']
'IconIc:baselinePowerSettingsNew': typeof import('~icons/ic/baseline-power-settings-new')['default']
'IconIc:baselineSearch': typeof import('~icons/ic/baseline-search')['default']
'IconIc:baselineSlowMotionVideo': typeof import('~icons/ic/baseline-slow-motion-video')['default']
'IconIc:outlineVideoCameraFront': typeof import('~icons/ic/outline-video-camera-front')['default']
'IconIc:roundFileUpload': typeof import('~icons/ic/round-file-upload')['default']
'IconIc:roundTableView': typeof import('~icons/ic/round-table-view')['default']
......
......@@ -15,12 +15,12 @@ const getCardData = async () => {
updateOptions((opts) => {
opts.series[0].data = [
{
name: `已启动 ${res.data.data[1].count} 个`,
value: res.data.data[1].count,
name: `已启动 ${res.data.data[0].count} 个`,
value: res.data.data[0].count,
},
{
name: `已停用 ${res.data.data[0].count} 个`,
value: res.data.data[0].count,
name: `已停用 ${res.data.data[1].count} 个`,
value: res.data.data[1].count,
},
];
return opts;
......
......@@ -113,8 +113,8 @@ const getCardData = async () => {
if (res.data.code === 200) {
updateOptions((opts) => {
opts.series[0].data = [
{ name: `已启动`, value: res.data.data[1].count },
{ name: `已停用`, value: res.data.data[0].count },
{ name: `已启动`, value: res.data.data[0].count },
{ name: `已停用`, value: res.data.data[1].count },
];
return opts;
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment