update
parent
b92f61c9fb
commit
d6fa074348
|
@ -449,7 +449,6 @@ let handleShowSvg = async (svgIndex: string) => {
|
||||||
// loadingFlag.value = false
|
// loadingFlag.value = false
|
||||||
// })
|
// })
|
||||||
|
|
||||||
|
|
||||||
// ---------离线的svg 返回结果
|
// ---------离线的svg 返回结果
|
||||||
// 更换result接口
|
// 更换result接口
|
||||||
let svgJSONIndex = {}
|
let svgJSONIndex = {}
|
||||||
|
@ -687,7 +686,7 @@ let handleAnimate = async (result: any) => {
|
||||||
'c0557047-c0e7-4df4-a36b-a4fe4dbdd879'
|
'c0557047-c0e7-4df4-a36b-a4fe4dbdd879'
|
||||||
]
|
]
|
||||||
if (arr.includes(item.sec_id)) {
|
if (arr.includes(item.sec_id)) {
|
||||||
console.log(item.sec_id,'item.sec_id');
|
console.log(item.sec_id, 'item.sec_id')
|
||||||
|
|
||||||
let dom = draw.findOne('#ZQ_' + item.sec_id)
|
let dom = draw.findOne('#ZQ_' + item.sec_id)
|
||||||
|
|
||||||
|
@ -697,9 +696,11 @@ let handleAnimate = async (result: any) => {
|
||||||
const width = polyine.attr('stroke-width')
|
const width = polyine.attr('stroke-width')
|
||||||
let polyineArray2 = polyine.array()
|
let polyineArray2 = polyine.array()
|
||||||
let pathDate = 'M' + polyineArray2.join(' L')
|
let pathDate = 'M' + polyineArray2.join(' L')
|
||||||
console.log(polyine, 'polyine')
|
if (item.Flow_Direction_Flag === '-1') {
|
||||||
handlePolyineAnimate2(polyineArray, pathDate, dom, item)
|
handlePolyineAnimate2(polyineArray, pathDate, dom, item)
|
||||||
|
} else {
|
||||||
|
handlePolyineAnimate(polyineArray, pathDate, dom, item)
|
||||||
|
}
|
||||||
showTextArr.includes(item.sec_id) ? handleLineText2(polyineArray, item, dom) : ''
|
showTextArr.includes(item.sec_id) ? handleLineText2(polyineArray, item, dom) : ''
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -711,8 +712,14 @@ let handleAnimate = async (result: any) => {
|
||||||
const width = polyine.attr('stroke-width')
|
const width = polyine.attr('stroke-width')
|
||||||
let polyineArray2 = polyine.array()
|
let polyineArray2 = polyine.array()
|
||||||
let pathDate = 'M' + polyineArray2.join(' L')
|
let pathDate = 'M' + polyineArray2.join(' L')
|
||||||
console.log(polyine, 'polyine')
|
if (item.sec_id === 'SBID000000FFC30DB26FDC45A0A911E9D2E1BEB0BD') {
|
||||||
handlePolyineAnimate(polyineArray, pathDate, dom, item)
|
console.log(polyineArray, 'polyine222')
|
||||||
|
}
|
||||||
|
if (item.Flow_Direction_Flag === '-1') {
|
||||||
|
handlePolyineAnimate2(polyineArray, pathDate, dom, item)
|
||||||
|
} else {
|
||||||
|
handlePolyineAnimate(polyineArray, pathDate, dom, item)
|
||||||
|
}
|
||||||
|
|
||||||
showTextArr.includes(item.sec_id) ? handleLineText2(polyineArray, item, dom) : ''
|
showTextArr.includes(item.sec_id) ? handleLineText2(polyineArray, item, dom) : ''
|
||||||
}
|
}
|
||||||
|
|
|
@ -536,7 +536,6 @@ const getStatInfo = async () => {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
if (resPonse) {
|
if (resPonse) {
|
||||||
// 成功获取到数据,进行后续处理
|
// 成功获取到数据,进行后续处理
|
||||||
console.log('接口数据:', resPonse)
|
|
||||||
let statInfo: any = JSON.parse(JSON.stringify(resPonse))
|
let statInfo: any = JSON.parse(JSON.stringify(resPonse))
|
||||||
// SourcePv_unit 分布式光伏数据
|
// SourcePv_unit 分布式光伏数据
|
||||||
SourcePv_unit.value = statInfo.data.photo_voltaic_unit as any
|
SourcePv_unit.value = statInfo.data.photo_voltaic_unit as any
|
||||||
|
@ -662,11 +661,9 @@ const alertInfo = () => {
|
||||||
alert_api({
|
alert_api({
|
||||||
orgID: '8af8470a47aad8e20147aad92e400335'
|
orgID: '8af8470a47aad8e20147aad92e400335'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res, '88888889999')
|
|
||||||
if (res?.data.length > 0) {
|
if (res?.data.length > 0) {
|
||||||
alertdata.alertArr = res.data
|
alertdata.alertArr = res.data
|
||||||
tableData.tdate = res.data
|
tableData.tdate = res.data
|
||||||
console.log(alertdata.alertArr, '0')
|
|
||||||
} else {
|
} else {
|
||||||
console.log('没有数据')
|
console.log('没有数据')
|
||||||
}
|
}
|
||||||
|
@ -921,8 +918,12 @@ const handleThree = val => {
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// 获取运行监视---重过载告警统计
|
// 获取运行监视---重过载告警统计
|
||||||
|
let networkSonData = reactive<any>({
|
||||||
|
lineData: [],
|
||||||
|
zoneAreaData: [ ]
|
||||||
|
})
|
||||||
let getRunAlarm = () => {
|
let getRunAlarm = () => {
|
||||||
alert_api({
|
runAlarm_api({
|
||||||
orgID: '8af8470a47aad8e20147aad92e400335'
|
orgID: '8af8470a47aad8e20147aad92e400335'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
console.log(res, '88888889999')
|
console.log(res, '88888889999')
|
||||||
|
|
Loading…
Reference in New Issue