master
zhaoqiang 2024-07-17 23:37:59 +08:00
parent a9f0028e93
commit 22574db714
2 changed files with 66 additions and 70 deletions

10
components.d.ts vendored
View File

@ -7,16 +7,12 @@ export {}
/* prettier-ignore */ /* prettier-ignore */
declare module 'vue' { declare module 'vue' {
export interface GlobalComponents { export interface GlobalComponents {
ElButton: typeof import('element-plus/es')['ElButton'] ElOption: typeof import('element-plus/es')['ElOption']
ElCarousel: typeof import('element-plus/es')['ElCarousel'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElInput: typeof import('element-plus/es')['ElInput']
ElPopover: typeof import('element-plus/es')['ElPopover'] ElPopover: typeof import('element-plus/es')['ElPopover']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElTable: typeof import('element-plus/es')['ElTable'] ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn'] ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTimeSelect: typeof import('element-plus/es')['ElTimeSelect']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
} }

View File

@ -1178,6 +1178,49 @@ const send3d_xuehua = () => {
// svg svg // svg svg
let handleEnter2 = () => { let handleEnter2 = () => {
dialogVisible.value = true dialogVisible.value = true
// let res = {
// msg: '',
// code: 200,
// data: [
// {
// transformerId: 'eda7801f768af8514b6dc01fde016deda70283627a',
// TotW: '1',
// TotVar: '1',
// A_phsA: '1',
// A_phsB: '1',
// A_phsC: '1',
// dataTime: '1'
// },
// {
// transformerId: 'ed6eb345698af8514b6dc01fde016ded6e383e5dbb',
// TotW: '2',
// TotVar: '2',
// A_phsA: '2',
// A_phsB: '2',
// A_phsC: '2',
// dataTime: '2'
// },
// {
// transformerId: 'ed7d892d4f8af8514b6dc01fde016ded7d0dc55e58',
// TotW: '3',
// TotVar: '3',
// A_phsA: '3',
// A_phsB: '3',
// A_phsC: '3',
// dataTime: '3'
// },
// {
// transformerId: 'f10e98af158af8514b6dc01fde016df10e18b3663c',
// TotW: '4',
// TotVar: '4',
// A_phsA: '4',
// A_phsB: '4',
// A_phsC: '4',
// dataTime: '4'
// }
// ]
// }
getSvgData_api({}) getSvgData_api({})
.then(res => { .then(res => {
nextTick(() => { nextTick(() => {
@ -1192,41 +1235,41 @@ let handleEnter2 = () => {
name: '55607', name: '55607',
id: 'ed6eb345698af8514b6dc01fde016ded6e383e5dbb', id: 'ed6eb345698af8514b6dc01fde016ded6e383e5dbb',
x: 153, x: 153,
y: 127, y: 77,
endX: 100, endX: 50,
endY: 150, endY: 77,
textX: 30, textX: -10,
textY: 160 textY: 80
}, },
{ {
name: '55603', name: '55603',
id: 'eda7801f768af8514b6dc01fde016deda70283627a', id: 'eda7801f768af8514b6dc01fde016deda70283627a',
x: 402, x: 402,
y: 127, y: 77,
endX: 350, endX: 300,
endY: 150, endY: 77,
textX: 280, textX: 240,
textY: 160 textY: 80
}, },
{ {
name: '55518', name: '55518',
id: 'ed7d892d4f8af8514b6dc01fde016ded7d0dc55e58', id: 'ed7d892d4f8af8514b6dc01fde016ded7d0dc55e58',
x: 651, x: 651,
y: 127, y: 77,
endX: 600, endX: 550,
endY: 150, endY: 77,
textX: 530, textX: 490,
textY: 160 textY: 80
}, },
{ {
name: '55517', name: '55517',
id: 'f10e98af158af8514b6dc01fde016df10e18b3663c', id: 'f10e98af158af8514b6dc01fde016df10e18b3663c',
x: 900, x: 900,
y: 127, y: 77,
endX: 850, endX: 800,
endY: 150, endY: 77,
textX: 780, textX: 730,
textY: 160 textY: 80
} }
] ]
data.forEach(item => { data.forEach(item => {
@ -1271,49 +1314,6 @@ let handleEnter2 = () => {
draw.size('100%', '100%') draw.size('100%', '100%')
draw.zoom(0.7) draw.zoom(0.7)
}) })
// let res = {
// msg: '',
// code: 200,
// data: [
// {
// transformerId: 'eda7801f768af8514b6dc01fde016deda70283627a',
// TotW: '1',
// TotVar: '1',
// A_phsA: '1',
// A_phsB: '1',
// A_phsC: '1',
// dataTime: '1'
// },
// {
// transformerId: 'ed6eb345698af8514b6dc01fde016ded6e383e5dbb',
// TotW: '2',
// TotVar: '2',
// A_phsA: '2',
// A_phsB: '2',
// A_phsC: '2',
// dataTime: '2'
// },
// {
// transformerId: 'ed7d892d4f8af8514b6dc01fde016ded7d0dc55e58',
// TotW: '3',
// TotVar: '3',
// A_phsA: '3',
// A_phsB: '3',
// A_phsC: '3',
// dataTime: '3'
// },
// {
// transformerId: 'f10e98af158af8514b6dc01fde016df10e18b3663c',
// TotW: '4',
// TotVar: '4',
// A_phsA: '4',
// A_phsB: '4',
// A_phsC: '4',
// dataTime: '4'
// }
// ]
// }
} }
let handleShowSvg = async (svgIndex: string) => { let handleShowSvg = async (svgIndex: string) => {
loadingFlag.value = true loadingFlag.value = true