From a12283aa23df86081291594dfa72265323380326 Mon Sep 17 00:00:00 2001
From: break60 <790061044@qq.com>
Date: Tue, 18 Aug 2020 14:09:03 +0800
Subject: [PATCH] [ui]Resource delete OK button to increase loading, change the
number of homepage display cursor
---
.../conf/home/pages/dag/_source/formModel/log.vue | 1 +
.../pages/index/_source/processStateCount.vue | 9 +++++++--
.../pages/index/_source/taskCtatusCount.vue | 13 +++++++++----
.../resource/pages/file/pages/list/_source/list.vue | 10 +++++++---
.../pages/file/pages/subdirectory/_source/list.vue | 10 +++++++---
.../pages/udf/pages/function/_source/list.vue | 10 +++++++---
.../pages/udf/pages/resource/_source/list.vue | 10 +++++++---
.../udf/pages/subUdfDirectory/_source/list.vue | 10 +++++++---
8 files changed, 52 insertions(+), 21 deletions(-)
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue
index 39a6989f42..838f429bd3 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/log.vue
@@ -304,6 +304,7 @@
font-size: 12px;
margin-left: 10px;
em {
+ text-decoration: none !important;
vertical-align: middle;
}
}
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue
index d121034932..84665fbe9d 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/processStateCount.vue
@@ -31,7 +31,10 @@
{{$index+1}} |
- {{item.value}} |
+
+ {{item.value}}
+ {{item.value}}
+ |
{{item.key}} |
@@ -57,7 +60,8 @@
return {
isSpin: true,
msg: '',
- processStateList: []
+ processStateList: [],
+ currentName: ''
}
},
props: {
@@ -113,6 +117,7 @@
beforeCreate () {
},
created () {
+ this.currentName = this.$router.currentRoute.name
},
beforeMount () {
},
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue
index 3e56c344f7..f82097ab8e 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/index/_source/taskCtatusCount.vue
@@ -32,8 +32,9 @@
{{$index+1}} |
-
- {{item.value}}
+ {{item.value}}
+
+ {{item.value}}
|
{{item.key}} |
@@ -62,7 +63,8 @@
return {
isSpin: true,
msg: '',
- taskCtatusList: []
+ taskCtatusList: [],
+ currentName: ''
}
},
props: {
@@ -120,6 +122,7 @@
beforeCreate () {
},
created () {
+ this.currentName = this.$router.currentRoute.name
},
beforeMount () {
},
@@ -140,6 +143,8 @@
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/list.vue
index 4f256f8563..ce4d2b7dac 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/list/_source/list.vue
@@ -115,11 +115,11 @@
+ width="190">
{{$t('Delete?')}}
{{$t('Cancel')}}
- {{$t('Confirm')}}
+ {{spinnerLoading ? 'Loading' : $t('Confirm')}}
{
this.$refs[`poptip-${i}`][0].doClose()
this.$emit('on-update')
this.$message.success(res.msg)
+ this.spinnerLoading = false
}).catch(e => {
this.$refs[`poptip-${i}`][0].doClose()
this.$message.error(e.msg || '')
+ this.spinnerLoading = false
})
},
_rename (item, i) {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/_source/list.vue
index 5813a58618..0c22b429f1 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/file/pages/subdirectory/_source/list.vue
@@ -115,11 +115,11 @@
+ width="190">
{{$t('Delete?')}}
{{$t('Cancel')}}
- {{$t('Confirm')}}
+ {{spinnerLoading ? 'Loading' : $t('Confirm')}}
{
this.$refs[`poptip-${i}`][0].doClose()
this.$emit('on-update')
this.$message.success(res.msg)
+ this.spinnerLoading = false
}).catch(e => {
this.$refs[`poptip-${i}`][0].doClose()
this.$message.error(e.msg || '')
+ this.spinnerLoading = false
})
},
_rename (item, i) {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/list.vue
index d77f55722e..8320a17516 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/list.vue
@@ -94,11 +94,11 @@ v-ps
+ width="190">
{{$t('Delete?')}}
{{$t('Cancel')}}
- {{$t('Confirm')}}
+ {{spinnerLoading ? 'Loading' : $t('Confirm')}}
name: 'udf-manage-list',
data () {
return {
- list: []
+ list: [],
+ spinnerLoading: false
}
},
props: {
@@ -139,15 +140,18 @@ v-ps
this.$refs[`poptip-${i}`][0].doClose()
},
_delete (item, i) {
+ this.spinnerLoading = true
this.deleteUdf({
id: item.id
}).then(res => {
this.$refs[`poptip-${i}`][0].doClose()
this.$emit('on-update')
this.$message.success(res.msg)
+ this.spinnerLoading = false
}).catch(e => {
this.$refs[`poptip-${i}`][0].doClose()
this.$message.error(e.msg || '')
+ this.spinnerLoading = false
})
},
_edit (item) {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/list.vue
index 0372403c95..f2244b634d 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/resource/_source/list.vue
@@ -108,11 +108,11 @@
+ width="190">
{{$t('Delete?')}}
{{$t('Cancel')}}
- {{$t('Confirm')}}
+ {{spinnerLoading ? 'Loading' : $t('Confirm')}}
{
this.$refs[`poptip-${i}`][0].doClose()
this.$emit('on-update')
this.$message.success(res.msg)
+ this.spinnerLoading = false
}).catch(e => {
this.$refs[`poptip-${i}`][0].doClose()
this.$message.error(e.msg || '')
+ this.spinnerLoading = false
})
},
_rename (item, i) {
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue
index 610eb1dbd8..f41dcc47ce 100755
--- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/subUdfDirectory/_source/list.vue
@@ -108,11 +108,11 @@
+ width="190">
{{$t('Delete?')}}
{{$t('Cancel')}}
- {{$t('Confirm')}}
+ {{spinnerLoading ? 'Loading' : $t('Confirm')}}
{
this.$refs[`poptip-${i}`][0].doClose()
this.$emit('on-update')
this.$message.success(res.msg)
+ this.spinnerLoading = false
}).catch(e => {
this.$refs[`poptip-${i}`][0].doClose()
this.$message.error(e.msg || '')
+ this.spinnerLoading = false
})
},
_rename (item, i) {