diff --git a/dolphinscheduler-ui/src/js/conf/home/index.js b/dolphinscheduler-ui/src/js/conf/home/index.js
index 6d7655408b..381e2030b7 100644
--- a/dolphinscheduler-ui/src/js/conf/home/index.js
+++ b/dolphinscheduler-ui/src/js/conf/home/index.js
@@ -19,6 +19,7 @@
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
+import locale from 'element-ui/lib/locale/lang/en'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
@@ -43,7 +44,8 @@ import formCreate, {maker} from '@form-create/element-ui'
// Component internationalization
const useOpt = i18n.globalScope.LOCALE === 'en_US' ? { locale: en_US } : {}
-Vue.use(ElementUI)
+i18n.globalScope.LOCALE === 'en_US' ? Vue.use(ElementUI, { locale }) : Vue.use(ElementUI)
+
// Vue.use(ans)
Vue.use(ans, useOpt)
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/list.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/list.vue
index d0029d27fd..0621bf90ff 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/list.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/_source/list.vue
@@ -17,95 +17,43 @@
-
-
-
- {{$t('#')}}
- |
-
- {{$t('Tenant Code')}}
- |
-
- {{$t('Tenant Name')}}
- |
-
- {{$t('Description')}}
- |
-
- {{$t('Queue')}}
- |
-
- {{$t('Create Time')}}
- |
-
- {{$t('Update Time')}}
- |
-
- {{$t('Operation')}}
- |
-
-
-
- {{parseInt(pageNo === 1 ? ($index + 1) : (($index + 1) + (pageSize * (pageNo - 1))))}}
- |
-
-
- {{item.tenantCode}}
-
- |
-
-
- {{item.tenantName}}
-
- |
-
- {{item.description}}
- -
- |
-
- {{item.queueName}}
- |
-
- {{item.createTime | formatDate}}
- -
- |
-
- {{item.updateTime | formatDate}}
- -
- |
-
-
-
-
- {{$t('Delete?')}}
-
- {{$t('Cancel')}}
- {{$t('Confirm')}}
-
-
-
-
-
-
- |
-
-
+
+
+
+
+
+
+
+
+ {{scope.row.createTime | formatDate}}
+
+
+
+
+ {{scope.row.updateTime | formatDate}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -127,18 +75,13 @@
},
methods: {
...mapActions('security', ['deleteQueue']),
- _closeDelete (i) {
- this.$refs[`poptip-${i}`][0].doClose()
- },
_delete (item, i) {
this.deleteQueue({
id: item.id
}).then(res => {
- this.$refs[`poptip-${i}`][0].doClose()
this.$emit('on-update')
this.$message.success(res.msg)
}).catch(e => {
- this.$refs[`poptip-${i}`][0].doClose()
this.$message.error(e.msg || '')
})
},
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
index ca180b1718..0ba6b2ffc6 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/security/pages/tenement/index.vue
@@ -19,7 +19,7 @@
- {{$t('Create Tenant')}}
+ {{$t('Create Tenant')}}
@@ -33,7 +33,16 @@
-
+
+
diff --git a/dolphinscheduler-ui/src/js/conf/login/index.js b/dolphinscheduler-ui/src/js/conf/login/index.js
index ab721a7a87..2cb2a8e1d0 100644
--- a/dolphinscheduler-ui/src/js/conf/login/index.js
+++ b/dolphinscheduler-ui/src/js/conf/login/index.js
@@ -20,6 +20,7 @@
// import $ from 'jquery'
import Vue from 'vue'
import ElementUI from 'element-ui'
+import locale from 'element-ui/lib/locale/lang/en'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import i18n from '@/module/i18n'
@@ -31,7 +32,7 @@ import 'bootstrap/dist/js/bootstrap.min.js'
import formCreate, {maker} from '@form-create/element-ui'
-Vue.use(ElementUI)
+i18n.globalScope.LOCALE === 'en_US' ? Vue.use(ElementUI, { locale }) : Vue.use(ElementUI)
Vue.use(ans)
diff --git a/dolphinscheduler-ui/src/js/module/components/popup/popup.vue b/dolphinscheduler-ui/src/js/module/components/popup/popup.vue
index ac4322a71b..fb2dad1c2e 100644
--- a/dolphinscheduler-ui/src/js/module/components/popup/popup.vue
+++ b/dolphinscheduler-ui/src/js/module/components/popup/popup.vue
@@ -23,8 +23,8 @@
- {{$t('Cancel')}}
- {{spinnerLoading ? 'Loading...' : okText}}
+ {{$t('Cancel')}}
+ {{spinnerLoading ? 'Loading...' : okText}}
diff --git a/dolphinscheduler-ui/src/sass/common/_table.scss b/dolphinscheduler-ui/src/sass/common/_table.scss
index d643053bfc..074ecb6ba5 100644
--- a/dolphinscheduler-ui/src/sass/common/_table.scss
+++ b/dolphinscheduler-ui/src/sass/common/_table.scss
@@ -174,3 +174,9 @@
.el-table--enable-row-hover .el-table__body tr:hover>td {
background-color: #ddecff;
}
+.el-table th>.cell {
+ color: #555;
+}
+.el-table td div {
+ color: #666;
+}
diff --git a/e2e/src/test/java/org/apache/dolphinscheduler/locator/security/TenantManageLocator.java b/e2e/src/test/java/org/apache/dolphinscheduler/locator/security/TenantManageLocator.java
index 2f7a5f9ca3..5eb07049ac 100644
--- a/e2e/src/test/java/org/apache/dolphinscheduler/locator/security/TenantManageLocator.java
+++ b/e2e/src/test/java/org/apache/dolphinscheduler/locator/security/TenantManageLocator.java
@@ -35,9 +35,9 @@ public class TenantManageLocator{
public static final By SUBMIT_BUTTON = By.xpath("//div[3]/button[2]/span");
- public static final By DELETE_TENANT_BUTTON = By.xpath("//div[3]/div[1]/div/table/tr[2]/td[8]/span/button");
+ public static final By DELETE_TENANT_BUTTON = By.xpath("//table/tbody/tr[1]/td[8]/div/span/button/i");
- public static final By CONFIRM_DELETE_TENANT_BUTTON = By.xpath("//div[2]/div/button[2]/span");
+ public static final By CONFIRM_DELETE_TENANT_BUTTON = By.xpath("//div[1]/div/button[2]/span");
- public static final By TENANT_CODE_FIRST = By.xpath("//table/tr[2]/td[2]/span");
+ public static final By TENANT_CODE_FIRST = By.xpath("//table/tbody/tr[1]/td[2]/div");
}