|
@@ -366,6 +366,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
jobResumeHandle (info) {
|
|
|
+ this.measDataListLoading = true
|
|
|
MessageBox.confirm(
|
|
|
`确定对[任务名=${info.jobName}]进行[恢复]操作?`,
|
|
|
'提示',
|
|
@@ -398,8 +399,10 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
})
|
|
|
+ this.measDataListLoading = false
|
|
|
},
|
|
|
jobPauseHandle (info) {
|
|
|
+ this.measDataListLoading = true
|
|
|
MessageBox.confirm(
|
|
|
`确定对[任务名=${info.jobName}]进行[暂停]操作?`,
|
|
|
'提示',
|
|
@@ -432,8 +435,10 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
})
|
|
|
+ this.measDataListLoading = false
|
|
|
},
|
|
|
jobDeleteHandle (info) {
|
|
|
+ this.measDataListLoading = true
|
|
|
MessageBox.confirm(
|
|
|
`确定对[任务名=${info.jobName}]进行 [删除] 操作?`,
|
|
|
'提示',
|
|
@@ -467,9 +472,11 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
})
|
|
|
+ this.measDataListLoading = false
|
|
|
},
|
|
|
// ********** 删除
|
|
|
measureDeleteHandle (info) {
|
|
|
+ this.measDataListLoading = true
|
|
|
MessageBox.confirm(
|
|
|
`确定对[${info.measureName}]进行[删除]操作? 删除后,对应job也会被删除`,
|
|
|
'提示',
|
|
@@ -484,14 +491,12 @@ export default {
|
|
|
url: this.$http.adornUrl('/v1/measures/') + info.measureID,
|
|
|
method: 'delete'
|
|
|
}).then(({data}) => {
|
|
|
- this.measDataListLoading = true
|
|
|
if (!data.data) {
|
|
|
Message({
|
|
|
message: '操作成功',
|
|
|
type: 'success',
|
|
|
duration: 1500
|
|
|
})
|
|
|
- this.measDataListLoading = false
|
|
|
this.getMeasureList()
|
|
|
this.pageIndex = 1
|
|
|
} else {
|
|
@@ -501,9 +506,11 @@ export default {
|
|
|
})
|
|
|
.catch(() => {
|
|
|
})
|
|
|
+ this.measDataListLoading = false
|
|
|
},
|
|
|
async measureAndJobDelete () {
|
|
|
var waitSecond = 1
|
|
|
+ this.measDataListLoading = true
|
|
|
if (this.classificationtag === '度量') {
|
|
|
var allMeasureName = []
|
|
|
for (var index in this.dataListSelections) {
|
|
@@ -518,7 +525,6 @@ export default {
|
|
|
type: 'warning'
|
|
|
}
|
|
|
).then(() => {
|
|
|
- this.measDataListLoading = true
|
|
|
let failure = []
|
|
|
for (var index = 0; index < this.dataListSelections.length; index++) {
|
|
|
waitSecond = waitSecond + 0.5
|
|
@@ -531,7 +537,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
if (failure.length === 0) {
|
|
|
MessageBox({
|
|
|
message: '操作成功',
|
|
@@ -546,7 +551,6 @@ export default {
|
|
|
MessageBox.error(msg)
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
- this.measDataListLoading = false
|
|
|
this.getMeasureList()
|
|
|
}, waitSecond * 1000)
|
|
|
}).catch(() => {
|
|
@@ -600,6 +604,7 @@ export default {
|
|
|
}).catch(() => {
|
|
|
|
|
|
})
|
|
|
+ this.measDataListLoading = false
|
|
|
}
|
|
|
}
|
|
|
}
|