+
{{ config.subTitle }}
-
{{ config.total }}
-
-
- {{ $tc('dashboard.WeekAdd') }}:{{ config.weekAdd }}
-
-
-
-
-
-
+
+ {{ config.total }}
+
+
+ {{ $tc('dashboard.WeekAdd') }}:{{ config.weekAdd }}
+
+
+
+
+
+
+
@@ -48,6 +50,10 @@ export default {
width: 100%;
padding: 20px;
background-color: #FFF;
+ .card-content {
+ padding-bottom: 16px;
+ border-bottom: 1px solid #EFF0F1;
+ }
.title {
margin-bottom: 12px;
}
@@ -67,8 +73,13 @@ export default {
.add {
display: flex;
justify-content: space-between;
- padding-bottom: 16px;
- border-bottom: 1px solid #EFF0F1;
+ }
+ .custom {
+ display: flex;
+ justify-content: space-between;
+ font-weight: 500;
+ font-size: 32px;
+ padding-bottom: 18px;
}
.ring {
padding: 26px 0 10px;
diff --git a/src/views/dashboard/components/RingChart.vue b/src/views/dashboard/components/RingChart.vue
index 61cc3c0e6..a10b2dbbb 100644
--- a/src/views/dashboard/components/RingChart.vue
+++ b/src/views/dashboard/components/RingChart.vue
@@ -64,7 +64,7 @@ export default {
color: [color, 'rgba(43, 147, 124, 0.05)'],
tooltip: {
trigger: 'item',
- formatter: '{a}
{b}: {c} ({d}%)'
+ formatter: '{a}
{b}: {d}%'
},
series: [
{
diff --git a/src/views/myassets/index.vue b/src/views/myassets/index.vue
index e1c104b8f..18054fc19 100644
--- a/src/views/myassets/index.vue
+++ b/src/views/myassets/index.vue
@@ -59,7 +59,7 @@ export default {
value: row.name
},
{
- key: this.$t('assets.Address'),
+ key: this.$t('assets.AssetAddress'),
value: row.address
},
{
@@ -76,7 +76,7 @@ export default {
},
{
key: this.$t('assets.Platform'),
- value: row.platform
+ value: row.platform?.name || ''
},
{
key: this.$t('common.Active'),
diff --git a/src/views/ops/Job/AdhocOpenDialog.vue b/src/views/ops/Job/AdhocOpenDialog.vue
index 1a647d183..320cc1911 100644
--- a/src/views/ops/Job/AdhocOpenDialog.vue
+++ b/src/views/ops/Job/AdhocOpenDialog.vue
@@ -31,8 +31,9 @@ export default {
visible: false,
width: '60%',
tableConfig: {
+ hasSelection: false,
url: `/api/v1/ops/adhocs/`,
- columns: ['name', 'module', 'args', 'actions'],
+ columns: ['name', 'module', 'args', 'comment', 'actions'],
columnsMeta: {
actions: {
formatter: ActionsFormatter,
@@ -42,7 +43,7 @@ export default {
hasDelete: false,
extraActions: [
{
- title: '选择',
+ title: this.$tc('common.Select'),
name: 'select',
can: true,
callback: ({ row }) => {
diff --git a/src/views/ops/Job/JobCodeEditor.vue b/src/views/ops/Job/JobCodeEditor.vue
index 9e2f76dce..320aafd64 100644
--- a/src/views/ops/Job/JobCodeEditor.vue
+++ b/src/views/ops/Job/JobCodeEditor.vue
@@ -65,6 +65,10 @@ export default {
this.showOpenAdhocDialog = true
},
openAdhocSaveDialog() {
+ if (!this.iValue.length > 0) {
+ this.$message.error(this.$tc('ops.CommandNotBeNone'))
+ return
+ }
this.showOpenAdhocSaveDialog = true
},
onSelectAdhoc(adhoc) {
diff --git a/src/views/ops/Job/JobUpdateCreate.vue b/src/views/ops/Job/JobUpdateCreate.vue
index 005702d32..c76bd2954 100644
--- a/src/views/ops/Job/JobUpdateCreate.vue
+++ b/src/views/ops/Job/JobUpdateCreate.vue
@@ -86,6 +86,8 @@ export default {
required: false
}],
el: {
+ baseUrl: '/api/v1/perms/users/self/assets/',
+ baseNodeUrl: '/api/v1/perms/users/self/nodes/',
value: []
}
},
diff --git a/src/views/tasks/TaskDetail/TaskHistory.vue b/src/views/tasks/TaskDetail/TaskHistory.vue
index 27e206191..926694bd9 100644
--- a/src/views/tasks/TaskDetail/TaskHistory.vue
+++ b/src/views/tasks/TaskDetail/TaskHistory.vue
@@ -4,6 +4,7 @@