@@ -118,14 +79,9 @@
-
+
{{ item.text }}
@@ -225,29 +181,36 @@ const handlerCommand = (item: OptButton) => {
.m-10 {
margin: 4px;
}
+
.ba-render-image {
text-align: center;
}
+
.images-item {
width: 50px;
margin: 0 5px;
}
+
.el-image {
height: 36px;
width: 36px;
}
+
.table-operate-text {
padding-left: 5px;
font-size: 12px;
}
+
.table-operate {
padding: 4px 5px;
height: auto;
}
+
.cn-render-buttons {
display: flex;
align-items: center;
justify-content: center;
+
.icon {
font-size: 12px !important;
// color: var(--ba-bg-color-overlay) !important;
@@ -257,18 +220,22 @@ const handlerCommand = (item: OptButton) => {
.move-button {
cursor: move;
}
+
.ml-6 {
display: inline-flex;
vertical-align: middle;
margin-left: 6px;
}
-.ml-6 + .el-button {
+
+.ml-6+.el-button {
margin-left: 6px;
}
+
.ba-render-color {
height: 25px;
width: 100%;
}
+
.cn-render-buttons {
:deep(.el-button) {
margin-left: 0;
diff --git a/src/views/govern/alarm/Transient.vue b/src/views/govern/alarm/Transient.vue
index 06f9dfc..67204c1 100644
--- a/src/views/govern/alarm/Transient.vue
+++ b/src/views/govern/alarm/Transient.vue
@@ -122,18 +122,19 @@ const tableStore = new TableStore({
type: 'primary',
icon: 'el-icon-DataLine',
render: 'basicButton',
+ loading: 'loading1',
disabled: row => {
return !row.wavePath && row.evtParamTm < 20
},
click: async row => {
- row.loading = true
+ row.loading1 = true
boxoList.value = row
boxoList.value.systemType = 'WX'
boxoList.value.featureAmplitude = row.evtParamVVaDepth != '-' ? (row.evtParamVVaDepth - 0) : null
boxoList.value.persistTime = row.evtParamTm != '-' ? (row.evtParamTm - 0) : null
await analyseWave(row.id)
.then(res => {
- row.loading = false
+ row.loading1 = false
if (res != undefined) {
wp.value = res.data
view.value = false
@@ -141,7 +142,7 @@ const tableStore = new TableStore({
}
})
.catch(() => {
- row.loading = false
+ row.loading1 = false
})
}
},
@@ -150,18 +151,19 @@ const tableStore = new TableStore({
title: '波形下载',
type: 'primary',
icon: 'el-icon-Check',
+ loading: 'loading2',
render: 'basicButton',
disabled: row => {
// && row.evtParamTm < 20
return !row.wavePath
},
click: row => {
- row.loading = true
+ row.loading2 = true
const url = window.location.origin + '/api/cs-harmonic-boot/event/getFileZip?eventId=' + row.id
window.open(url, '_self')
setTimeout(() => {
ElMessage.success('波形下载成功!')
- row.loading = false
+ row.loading2 = false
}, 1500)
}
},
diff --git a/src/views/govern/device/control/tabs/event.vue b/src/views/govern/device/control/tabs/event.vue
index 327bc59..0d15b13 100644
--- a/src/views/govern/device/control/tabs/event.vue
+++ b/src/views/govern/device/control/tabs/event.vue
@@ -83,16 +83,17 @@ const tableStore: any = new TableStore({
type: 'primary',
icon: 'el-icon-Check',
render: 'basicButton',
+ loading:'loading1',
disabled: row => {
// && row.evtParamTm < 20
return !row.wavePath
},
click: async row => {
- row.loading = true
+ row.loading1 = true
await analyseWave(row.id)
.then(res => {
- row.loading = false
+ row.loading1 = false
if (res != undefined) {
boxoList.value = row
boxoList.value.systemType = 'WX'
@@ -102,7 +103,7 @@ const tableStore: any = new TableStore({
}
})
.catch(() => {
- row.loading = false
+ row.loading1 = false
})
isWaveCharts.value = true
nextTick(() => {
@@ -124,6 +125,7 @@ const tableStore: any = new TableStore({
name: 'edit',
title: '波形下载',
type: 'primary',
+ loading:'loading2',
icon: 'el-icon-Check',
render: 'basicButton',
disabled: row => {
@@ -131,12 +133,12 @@ const tableStore: any = new TableStore({
return !row.wavePath
},
click: row => {
- row.loading = true
+ row.loading2 = true
const url = window.location.origin + '/api/cs-harmonic-boot/event/getFileZip?eventId=' + row.id
window.open(url, '_self')
setTimeout(() => {
ElMessage.success('波形下载成功!')
- row.loading = false
+ row.loading2 = false
}, 1500)
}
}
diff --git a/types/table.d.ts b/types/table.d.ts
index f86be46..61a4d3e 100644
--- a/types/table.d.ts
+++ b/types/table.d.ts
@@ -81,6 +81,7 @@ declare global {
title?: string
text?: string
class?: string
+ loading?: string
type: ButtonType
icon: string
popconfirm?: Partial>