|
@@ -119,6 +119,8 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
= useMonitorModel({ type, id }, options)
|
|
|
const { limit: limitSource, more: moreSource } = source
|
|
|
|
|
|
+ const eleLoading = ref(false)
|
|
|
+
|
|
|
const monitorPopoverConfig = computed(() => {
|
|
|
return {
|
|
|
showTip: !model.value.follow,
|
|
@@ -201,14 +203,9 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
* @return {Promise<void>}
|
|
|
*/
|
|
|
async function doAddFollow() {
|
|
|
- const eleLoading = that.$loading({
|
|
|
- lock: true,
|
|
|
- text: 'Loading',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- })
|
|
|
// 业务流程
|
|
|
if (!model.value.follow) {
|
|
|
+ eleLoading.value = true
|
|
|
// 先弹出选择分组弹框
|
|
|
await doFetchGroup({ type: 'get' })
|
|
|
.then((res) => {
|
|
@@ -231,7 +228,7 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|
|
|
- eleLoading.close()
|
|
|
+ eleLoading.value = false
|
|
|
})
|
|
|
}
|
|
|
}
|
|
@@ -356,7 +353,8 @@ function useEntQuickMonitorModel({ type, id, source }, options) {
|
|
|
doFetchGroup,
|
|
|
groupList,
|
|
|
doChangeGroup,
|
|
|
- doUpdateGroup
|
|
|
+ doUpdateGroup,
|
|
|
+ eleLoading
|
|
|
}
|
|
|
}
|
|
|
|