diff --git a/frontend/src/components/msgCfm/index.js b/frontend/src/components/msgCfm/index.js
index b4bd469128..140c4e6615 100644
--- a/frontend/src/components/msgCfm/index.js
+++ b/frontend/src/components/msgCfm/index.js
@@ -12,7 +12,7 @@ export default {
});
},
handlerConfirm(options) {
- let { title, content, type = 'danger', cb, confirmButtonText = this.$t('commons.delete'), showCancelButton = true, cancelButtonText = this.$t("commons.cancel") } = options;
+ let { title, content, type = 'danger', cb, confirmButtonText = this.$t('commons.delete'), showCancelButton = true, cancelButtonText = this.$t("commons.cancel"), cancelCb = () => {} } = options;
let text = content ? `${ this.$t(title) }
${ this.$t(content) }` : this.$t(title);
const dangerouslyUseHTMLString = Boolean(content);
let customClass = `de-confirm de-confirm-fail ${ dangerouslyUseHTMLString && 'de-use-html'}`
@@ -34,7 +34,9 @@ export default {
.then(() => {
cb();
})
- .catch(() => {});
+ .catch(() => {
+ cancelCb()
+ });
},
},
};
diff --git a/frontend/src/components/msgCfm/keyEnter.js b/frontend/src/components/msgCfm/keyEnter.js
new file mode 100644
index 0000000000..ca0d8f36a0
--- /dev/null
+++ b/frontend/src/components/msgCfm/keyEnter.js
@@ -0,0 +1,16 @@
+export default {
+ mounted() {
+ document.addEventListener('keypress', this.entryKey)
+ },
+ destroyed() {
+ document.removeEventListener('keypress', this.entryKey)
+ },
+ methods: {
+ entryKey(event) {
+ const keyCode = event.keyCode
+ if (keyCode === 13) {
+ this.$refs.search.blur()
+ }
+ },
+ }
+}
\ 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 c78db79bfa..cec51a1614 100644
--- a/frontend/src/components/widget/DeWidget/DeDate.vue
+++ b/frontend/src/components/widget/DeWidget/DeDate.vue
@@ -304,6 +304,31 @@ export default {
color: var(--DateColor, #606266);
}
}
+
+ .el-date-range-picker__time-header,
+ .el-date-picker__time-header {
+ border-bottom: 1px solid var(--BrDateColor, #dfe4ed) !important;
+ }
+
+ .el-picker-panel__footer {
+ border-top: 1px solid var(--BrDateColor, #dfe4ed) !important;
+ background: var(--BgDateColor, #FFFFFF) !important;
+ }
+
+ .el-date-range-picker__time-picker-wrap,
+ .el-date-picker__time-header {
+ .el-input__inner {
+ border:1px solid var(--BrDateColor, #dfe4ed) !important;
+ color: var(--DateColor, #606266);
+ background: var(--BgDateColor, #FFFFFF) !important;
+ }
+ }
+
+ .el-picker-panel__link-btn:nth-child(2) {
+ color: #FFFFFF;
+ background: var(--BgDateColor, #FFFFFF) !important;
+ border:1px solid var(--BrDateColor, #dfe4ed) !important;
+ }
.popper__arrow,
diff --git a/frontend/src/icons/svg/all-msg.svg b/frontend/src/icons/svg/all-msg.svg
index 104bbacee3..320a433a2f 100644
--- a/frontend/src/icons/svg/all-msg.svg
+++ b/frontend/src/icons/svg/all-msg.svg
@@ -1,3 +1,3 @@
-