From 319f29d3aa0072a648572cb405db50cc0891e33f Mon Sep 17 00:00:00 2001
From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com>
Date: Mon, 29 Aug 2022 18:16:07 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=96=B0=E5=A2=9E=20=E6=A8=A1=E7=89=88?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E4=BC=98=E5=8C=96=20=E5=9B=BD=E9=99=85?=
=?UTF-8?q?=E5=8C=96=E6=A0=B7=E5=BC=8Fbug=20=20=E6=97=A5=E6=9C=9F=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E8=87=AA=E5=AE=9A=E4=B9=89=E4=B8=BB=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/deCustomCm/deDatePick.vue | 56 +++
frontend/src/components/deCustomCm/dePwd.vue | 76 +++
.../src/components/widget/DeWidget/DeDate.vue | 14 +
frontend/src/icons/svg/de-search.svg | 3 +
frontend/src/icons/svg/de_pwd_invisible.svg | 3 +
frontend/src/icons/svg/de_pwd_visible.svg | 3 +
frontend/src/icons/svg/pwd_invisible.svg | 3 +
frontend/src/icons/svg/pwd_visible.svg | 3 +
.../src/layout/components/Sidebar/index.vue | 4 +-
frontend/src/styles/index.scss | 16 +
.../panel/template/component/TemplateItem.vue | 2 +-
.../panel/template/component/TemplateList.vue | 26 +-
frontend/src/views/panel/template/index.vue | 10 +-
.../views/system/SysParam/BasicSetting.vue | 20 +-
.../system/SysParam/ClusterModeSetting.vue | 4 +-
.../views/system/SysParam/EmailSetting.vue | 19 +-
.../views/system/SysParam/KettleSetting.vue | 7 +-
frontend/src/views/system/log/filterUser.vue | 403 +++++++++++++++
frontend/src/views/system/log/index.vue | 473 +++++++++++++-----
frontend/src/views/system/task/TaskRecord.vue | 9 +-
frontend/src/views/system/task/filterUser.vue | 14 +-
.../views/system/task/filterUserRecord.vue | 249 +++++----
22 files changed, 1110 insertions(+), 307 deletions(-)
create mode 100644 frontend/src/components/deCustomCm/deDatePick.vue
create mode 100644 frontend/src/components/deCustomCm/dePwd.vue
create mode 100644 frontend/src/icons/svg/de-search.svg
create mode 100644 frontend/src/icons/svg/de_pwd_invisible.svg
create mode 100644 frontend/src/icons/svg/de_pwd_visible.svg
create mode 100644 frontend/src/icons/svg/pwd_invisible.svg
create mode 100644 frontend/src/icons/svg/pwd_visible.svg
create mode 100644 frontend/src/views/system/log/filterUser.vue
diff --git a/frontend/src/components/deCustomCm/deDatePick.vue b/frontend/src/components/deCustomCm/deDatePick.vue
new file mode 100644
index 0000000000..ce1f42316f
--- /dev/null
+++ b/frontend/src/components/deCustomCm/deDatePick.vue
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/components/deCustomCm/dePwd.vue b/frontend/src/components/deCustomCm/dePwd.vue
new file mode 100644
index 0000000000..48dc37697c
--- /dev/null
+++ b/frontend/src/components/deCustomCm/dePwd.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/components/widget/DeWidget/DeDate.vue b/frontend/src/components/widget/DeWidget/DeDate.vue
index ab557e31cf..c78db79bfa 100644
--- a/frontend/src/components/widget/DeWidget/DeDate.vue
+++ b/frontend/src/components/widget/DeWidget/DeDate.vue
@@ -296,6 +296,16 @@ export default {
border:1px solid var(--BrDateColor, #dfe4ed) !important;
background: var(--BgDateColor, #FFFFFF) !important;
+ .el-picker-panel__sidebar {
+ background: var(--BgDateColor, #FFFFFF) !important;
+ border-right: 1px solid var(--BrDateColor, #dfe4ed) !important;
+
+ .el-picker-panel__shortcut {
+ color: var(--DateColor, #606266);
+ }
+ }
+
+
.popper__arrow,
.popper__arrow::after {
display: none !important;
@@ -310,6 +320,10 @@ export default {
border-bottom:1px solid var(--BrDateColor, #e6ebf5) !important;
}
+ .el-date-table td.in-range:not(.end-date):not(.start-date) div span {
+ color: #3370ff;
+ }
+
.el-date-range-picker__header,
.el-date-table th,
.el-date-table__row,
diff --git a/frontend/src/icons/svg/de-search.svg b/frontend/src/icons/svg/de-search.svg
new file mode 100644
index 0000000000..0986c29cd5
--- /dev/null
+++ b/frontend/src/icons/svg/de-search.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/src/icons/svg/de_pwd_invisible.svg b/frontend/src/icons/svg/de_pwd_invisible.svg
new file mode 100644
index 0000000000..661ebba33e
--- /dev/null
+++ b/frontend/src/icons/svg/de_pwd_invisible.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/src/icons/svg/de_pwd_visible.svg b/frontend/src/icons/svg/de_pwd_visible.svg
new file mode 100644
index 0000000000..4e7ba5e799
--- /dev/null
+++ b/frontend/src/icons/svg/de_pwd_visible.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/src/icons/svg/pwd_invisible.svg b/frontend/src/icons/svg/pwd_invisible.svg
new file mode 100644
index 0000000000..661ebba33e
--- /dev/null
+++ b/frontend/src/icons/svg/pwd_invisible.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/src/icons/svg/pwd_visible.svg b/frontend/src/icons/svg/pwd_visible.svg
new file mode 100644
index 0000000000..4e7ba5e799
--- /dev/null
+++ b/frontend/src/icons/svg/pwd_visible.svg
@@ -0,0 +1,3 @@
+
diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue
index fa60246509..2cf79107b9 100644
--- a/frontend/src/layout/components/Sidebar/index.vue
+++ b/frontend/src/layout/components/Sidebar/index.vue
@@ -97,8 +97,8 @@ export default {
font-family: PingFang SC;
font-size: 14px;
font-weight: 400;
- color: #646a73;
- background: #fff;
+ color: var(--SiderTextColor, #646a73);
+ background-color: var(--SiderBG, #ffffff);
cursor: pointer;
i {
diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss
index 8702b16346..c2925ce407 100644
--- a/frontend/src/styles/index.scss
+++ b/frontend/src/styles/index.scss
@@ -1196,4 +1196,20 @@ div:focus {
position: absolute;
right: 12px;
bottom: 12px;
+}
+
+
+.de-input-search {
+ .el-input__inner {
+ padding-left: 36px;
+ }
+ .el-input__prefix {
+ left: 12px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ svg {
+ font-size: 16px;
+ }
+ }
}
\ No newline at end of file
diff --git a/frontend/src/views/panel/template/component/TemplateItem.vue b/frontend/src/views/panel/template/component/TemplateItem.vue
index c093e27048..dd7de4be51 100644
--- a/frontend/src/views/panel/template/component/TemplateItem.vue
+++ b/frontend/src/views/panel/template/component/TemplateItem.vue
@@ -72,7 +72,7 @@ export default {
background: #ffffff;
border: 1px solid var(--deCardStrokeColor, #dee0e3);
border-radius: 4px;
- margin: 0 12.5px 25px 12.5px;
+ margin: 0 24px 25px 0;
.card-img-model {
border-bottom: 1px solid var(--deCardStrokeColor, #dee0e3);
height: 144px;
diff --git a/frontend/src/views/panel/template/component/TemplateList.vue b/frontend/src/views/panel/template/component/TemplateList.vue
index c678e112ee..c17737d7b2 100644
--- a/frontend/src/views/panel/template/component/TemplateList.vue
+++ b/frontend/src/views/panel/template/component/TemplateList.vue
@@ -2,11 +2,13 @@
+ >
+
+
this.$emit("templateDelete", template.id),
- };
- this.handlerConfirm(options);
+ title: "system_parameter_setting.delete_this_category",
+ content: "system_parameter_setting.also_be_deleted",
+ type: "primary",
+ cb: () => this.$emit("templateDelete", template.id),
+ };
+ this.handlerConfirm(options);
},
templateEdit(template) {
this.$emit("templateEdit", template);
@@ -163,7 +165,7 @@ export default {
display: flex;
align-items: center;
border-radius: 4px;
- color: var(--deTextPrimary, #1F2329);
+ color: var(--deTextPrimary, #1f2329);
font-family: "PingFang SC";
font-style: normal;
font-weight: 500;
diff --git a/frontend/src/views/panel/template/index.vue b/frontend/src/views/panel/template/index.vue
index 7ddfabdca4..49d7028e63 100644
--- a/frontend/src/views/panel/template/index.vue
+++ b/frontend/src/views/panel/template/index.vue
@@ -152,8 +152,8 @@ export default {
currentTemplateLabel: "",
currentTemplateId: "",
templateList: [],
- templateMiniWidth: 262,
- templateCurWidth: 262,
+ templateMiniWidth: 286,
+ templateCurWidth: 286,
formType: "",
originName: "",
templateDialog: {
@@ -187,9 +187,8 @@ export default {
const curSeparator = Math.trunc(
templateMainDom.offsetWidth / _this.templateMiniWidth
);
- console.log(1, curSeparator);
_this.templateCurWidth =
- Math.trunc(templateMainDom.offsetWidth / curSeparator) - 50;
+ Math.trunc(templateMainDom.offsetWidth / curSeparator) - 24 - curSeparator;
});
});
},
@@ -387,7 +386,7 @@ export default {
.de-tabs-right {
flex: 1;
background: #fff;
- padding: 24px 12px 24px 12px;
+ padding: 24px 0 24px 24px;
overflow: hidden;
.template-box {
@@ -403,6 +402,7 @@ export default {
.active-template {
margin: 4px 0 20px 0;
+ padding-right: 24px;
font-family: "PingFang SC";
font-style: normal;
font-weight: 500;
diff --git a/frontend/src/views/system/SysParam/BasicSetting.vue b/frontend/src/views/system/SysParam/BasicSetting.vue
index 4d7b2f0482..685b230111 100644
--- a/frontend/src/views/system/SysParam/BasicSetting.vue
+++ b/frontend/src/views/system/SysParam/BasicSetting.vue
@@ -15,9 +15,10 @@
-
+
{{ $t('system_parameter_setting.request_timeout')}}
+
@@ -253,9 +254,8 @@ export default {
+
\ No newline at end of file
diff --git a/frontend/src/views/system/SysParam/ClusterModeSetting.vue b/frontend/src/views/system/SysParam/ClusterModeSetting.vue
index f87c81dc49..cc108c5b3c 100644
--- a/frontend/src/views/system/SysParam/ClusterModeSetting.vue
+++ b/frontend/src/views/system/SysParam/ClusterModeSetting.vue
@@ -41,7 +41,7 @@
-
+
-
@@ -90,13 +85,9 @@
-
@@ -134,12 +125,13 @@
import { emailInfo, updateInfo, validate } from "@/api/system/email";
import operater from "./operater";
import msgCfm from '@/components/msgCfm'
-
+import dePwd from '@/components/deCustomCm/dePwd.vue'
export default {
name: "EmailSetting",
mixins: [msgCfm],
components: {
operater,
+ dePwd
},
data() {
return {
@@ -183,9 +175,6 @@ export default {
this.query();
},
methods: {
- changeType() {
- this.$refs.input = "password";
- },
query() {
emailInfo().then((response) => {
this.formInline = response.data;
diff --git a/frontend/src/views/system/SysParam/KettleSetting.vue b/frontend/src/views/system/SysParam/KettleSetting.vue
index 0787e3aca4..c7d32330f2 100644
--- a/frontend/src/views/system/SysParam/KettleSetting.vue
+++ b/frontend/src/views/system/SysParam/KettleSetting.vue
@@ -93,7 +93,7 @@
:label="$t('kettle.passwd')"
prop="configuration.passwd"
>
-
+
@@ -122,11 +122,12 @@ import {
} from "@/api/system/kettle";
import i18n from "@/lang";
import GridTable from "@/components/gridTable/index.vue";
+import dePwd from '@/components/deCustomCm/dePwd.vue'
import msgCfm from '@/components/msgCfm'
export default {
name: "KettleSetting",
- components: { GridTable },
+ components: { GridTable, dePwd },
mixins: [msgCfm],
data() {
return {
@@ -339,7 +340,7 @@ export default {
justify-content: center;
align-items: center;
border-radius: 2px;
- width: 40px;
+ padding: 1px 6px;
height: 24px;
}
\ No newline at end of file
diff --git a/frontend/src/views/system/log/filterUser.vue b/frontend/src/views/system/log/filterUser.vue
new file mode 100644
index 0000000000..88b9f22c42
--- /dev/null
+++ b/frontend/src/views/system/log/filterUser.vue
@@ -0,0 +1,403 @@
+
+
+
+
{{ $t("log.optype") }}
+
+ {{ $t(item.label) }}
+
+
+
+
+
{{ $t("log.user") }}
+
+ {{ ele.username }}
+
+
+
+
+ + {{ $t("panel.more") }}
+
+
+
+
+
{{ $t("dedaterange.label") }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/views/system/log/index.vue b/frontend/src/views/system/log/index.vue
index 76f62fbb8b..33819ebe83 100644
--- a/frontend/src/views/system/log/index.vue
+++ b/frontend/src/views/system/log/index.vue
@@ -1,162 +1,393 @@
-
-
+
+
+ {{
+ $t("zip.export")
+ }}
+
+
+
+
+
+ {{ $t("user.filter")
+ }}
+ ({{ cacheCondition.length }})
+
+
+
+
+
+
{{ paginationConfig.total }}
+
{{ $t("user.result_one") }}
+
+
+
+
+
{{ $t("user.clear_filter") }}
+
+
-
- {{ $t('log.export') }}
-
-
-
-
- {{ row.opType + row.sourceType }}
-
-
-
-
-
-
- {{ scope.row.time | timestampFormatDate }}
-
-
-
-
+
+
+
+ {{ row.opType + row.sourceType }}
+
+
+
+
+
+
+ {{ scope.row.time | timestampFormatDate }}
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/system/task/TaskRecord.vue b/frontend/src/views/system/task/TaskRecord.vue
index a9da44989e..6f8cce5cfe 100644
--- a/frontend/src/views/system/task/TaskRecord.vue
+++ b/frontend/src/views/system/task/TaskRecord.vue
@@ -13,8 +13,8 @@
clearable
ref="search"
v-model="nikeName"
- @blur="clearSearch"
- @clear="clearSearch"
+ @blur="initSearch"
+ @clear="initSearch"
>
{{ $t("dedaterange.label") }}
-
-
+
@@ -143,8 +135,12 @@ import { filterDataset, dateFormat } from "./options";
import { allRoles } from "@/api/system/user";
import { getDatasetTree, treeByDatasetId } from "@/api/system/dept";
import { queryAuthModel } from "@/api/authModel/authModel";
+import DeDatePick from '@/components/deCustomCm/deDatePick.vue'
export default {
+ components: {
+ DeDatePick
+ },
data() {
return {
treeLoading: false,
diff --git a/frontend/src/views/system/task/filterUserRecord.vue b/frontend/src/views/system/task/filterUserRecord.vue
index 186edc0a6e..d910d12974 100644
--- a/frontend/src/views/system/task/filterUserRecord.vue
+++ b/frontend/src/views/system/task/filterUserRecord.vue
@@ -7,127 +7,120 @@
v-closePress
direction="rtl"
>
-
-
-
-
{{ $t("dataset.datalist") }}
-
-
{{ ele.name }}
-
+
+
+
{{ $t("dataset.datalist") }}
+
+ {{ ele.name }}
-
-
-
-
- {{ data.name }}
-
-
-
-
+
+
+
+
+ {{ data.name }}
+
+
+
+
+
+ {{ data.name }}
- {{ data.name }}
-
-
+
-
-
-
+
+
+
+
+ + {{ $t("panel.more") }}
- + {{ $t("panel.more") }}
-
+
-
-
-
{{ $t(ele.name) }}
-
-
{{ $t(item.name) }}
+
+
{{ $t(ele.name) }}
+
+ {{ $t(item.name) }}
+
-
-
-
{{ $t("dedaterange.label") }}
-
-
-
+
+
{{ $t("dedaterange.label") }}
+
+
+
-