Commit e2f54b01 authored by 崔佳豪's avatar 崔佳豪

fix(EC_QuotaSelect): 修复指标选择器指标异常

parent 9f1a8974
...@@ -54,7 +54,7 @@ const Demo = () => { ...@@ -54,7 +54,7 @@ const Demo = () => {
const fetchData = () => { const fetchData = () => {
getDeviceConf({ getDeviceConf({
user: 'user', user: 'admin',
showAll: true, showAll: true,
deviceType: '二供泵房,二供机组', deviceType: '二供泵房,二供机组',
}) })
......
...@@ -59,14 +59,10 @@ const QuotaSelect = ({ ...@@ -59,14 +59,10 @@ const QuotaSelect = ({
const fetchData = (item = {}) => { const fetchData = (item = {}) => {
// 请求指标列表 // 请求指标列表
getQuataList( getQuataList({
Object.assign(
{
accountName: item.deviceType, accountName: item.deviceType,
}, addrSchemeID: item.pointAddressID,
user ? { user } : { addrSchemeID: item.pointAddressID }, }).then((res) => {
),
).then((res) => {
if (res.code === 0) { if (res.code === 0) {
const data = const data =
res.data.length > 0 res.data.length > 0
......
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