diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 0854ff6332..8e4f24cc91 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -1219,15 +1219,7 @@ div:focus { } } -.user-drawer, -.user-drawer-task { - .el-drawer__body-cont { - height: 100%; - box-sizing: border-box; - overflow: auto; - width: 100%; - padding-bottom: 80px; - } +.de-user-drawer { .el-drawer__header { padding: 16px 24px; @@ -1269,8 +1261,10 @@ div:focus { } .el-drawer__body { - padding: 12px 24px 24px 24px; - position: relative; + padding: 16px 24px; + position: unset; + overflow-y: auto; + padding-bottom: 80px; } .filter { @@ -1320,37 +1314,6 @@ div:focus { } } } - - .btn { - border-radius: 4px; - padding: 5px 26px 5px 26px; - font-family: PingFang SC; - font-size: 14px; - font-weight: 400; - line-height: 20px; - letter-spacing: 0px; - text-align: center; - border: none; - box-sizing: border-box; - } - - .normal { - color: #1f2329; - border: 1px solid #bbbfc4; - margin-left: 12px; - } - - .foot { - position: absolute; - height: 80px; - width: 100%; - padding: 24px; - right: 0; - bottom: 0; - text-align: right; - background-color: #fff; - box-shadow: 0px -1px 4px rgba(0, 0, 0, 0.05); - } } .user-popper { @@ -1586,4 +1549,87 @@ div:focus { margin-right: 9px; width: 16px !important; height: 12px !important; +} + +.filter-texts { + display: flex; + align-items: center; + margin: 17px 0; + font-family: "PingFang SC"; + font-weight: 400; + + .sum { + color: #1f2329; + } + + .title { + color: #999999; + margin-left: 8px; + } + + .text { + max-width: 280px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + padding: 1px 22px 1px 6px; + display: inline-block; + align-items: center; + color: #0c296e; + font-size: 14px; + line-height: 22px; + background: rgba(51, 112, 255, 0.1); + border-radius: 2px; + margin: 0; + margin-right: 8px; + position: relative; + i { + position: absolute; + right: 2px; + top: 50%; + transform: translateY(-50%); + cursor: pointer; + } + } + + .clear-btn { + color: #646a73; + } + + .clear-btn:hover { + color: #3370ff; + } + + .filter-texts-container::-webkit-scrollbar { + display: none; + } + + .arrow-filter { + font-size: 16px; + width: 24px; + height: 24px; + cursor: pointer; + color: #646a73; + display: flex; + justify-content: center; + align-items: center; + } + .arrow-filter:hover { + background: rgba(31, 35, 41, 0.1); + border-radius: 4px; + } + + .el-icon-arrow-right.arrow-filter { + margin-left: 5px; + } + + .el-icon-arrow-left.arrow-filter { + margin-right: 5px; + } + .filter-texts-container { + flex: 1; + overflow-x: auto; + white-space: nowrap; + height: 24px; + } } \ No newline at end of file diff --git a/frontend/src/views/chart/chart/table/table-info.js b/frontend/src/views/chart/chart/table/table-info.js index 1a5e06c06f..8bc6cba4b7 100644 --- a/frontend/src/views/chart/chart/table/table-info.js +++ b/frontend/src/views/chart/chart/table/table-info.js @@ -3,7 +3,7 @@ import { getCustomTheme, getSize } from '@/views/chart/chart/common/common_table import { DEFAULT_COLOR_CASE, DEFAULT_TOTAL } from '@/views/chart/chart/chart' import { formatterItem, valueFormatter } from '@/views/chart/chart/formatter' import { hexColorToRGBA } from '@/views/chart/chart/util' - +import Vue from 'vue' export function baseTableInfo(s2, container, chart, action, tableData) { const containerDom = document.getElementById(container) @@ -12,6 +12,7 @@ export function baseTableInfo(s2, container, chart, action, tableData) { if (!fields || fields.length === 0) { if (s2) { s2.destroy() + destroyS2() } return } @@ -130,6 +131,7 @@ export function baseTableInfo(s2, container, chart, action, tableData) { // 开始渲染 if (s2) { s2.destroy() + destroyS2 } s2 = new TableSheet(containerDom, s2DataConfig, s2Options) @@ -152,6 +154,7 @@ export function baseTableNormal(s2, container, chart, action, tableData) { if (!fields || fields.length === 0) { if (s2) { s2.destroy() + destroyS2 } return } @@ -257,6 +260,7 @@ export function baseTableNormal(s2, container, chart, action, tableData) { // 开始渲染 if (s2) { s2.destroy() + destroyS2() } s2 = new TableSheet(containerDom, s2DataConfig, s2Options) @@ -293,6 +297,7 @@ export function baseTablePivot(s2, container, chart, action, tableData) { if (!fields || fields.length === 0) { if (s2) { s2.destroy() + destroyS2() } return } @@ -414,6 +419,7 @@ export function baseTablePivot(s2, container, chart, action, tableData) { // 开始渲染 if (s2) { s2.destroy() + destroyS2() } s2 = new PivotSheet(containerDom, s2DataConfig, s2Options) @@ -427,6 +433,13 @@ export function baseTablePivot(s2, container, chart, action, tableData) { return s2 } +function destroyS2(s2) { + for (const i in s2) { + Vue.$delete(s2, i) + } + s2 = null +} + function getCurrentField(valueFieldList, field) { let list = [] let res = null diff --git a/frontend/src/views/chart/components/ChartComponentS2.vue b/frontend/src/views/chart/components/ChartComponentS2.vue index 0f43df2011..d99553a2c6 100644 --- a/frontend/src/views/chart/components/ChartComponentS2.vue +++ b/frontend/src/views/chart/components/ChartComponentS2.vue @@ -220,6 +220,7 @@ export default { }, beforeDestroy() { clearInterval(this.scrollTimer) + this.destroyS2() }, methods: { initData() { @@ -262,6 +263,13 @@ export default { }) } }, + destroyS2() { + if (!this.myChart) return + for (const i in this.myChart) { + this.$delete(this.myChart, i) + } + this.myChart = null + }, drawView() { const chart = this.chart // type @@ -287,6 +295,7 @@ export default { if (this.myChart) { this.antVRenderStatus = false this.myChart.destroy() + this.destroyS2() } } diff --git a/frontend/src/views/dataset/add/AddSQL.vue b/frontend/src/views/dataset/add/AddSQL.vue index b044d5f267..b349980f0b 100644 --- a/frontend/src/views/dataset/add/AddSQL.vue +++ b/frontend/src/views/dataset/add/AddSQL.vue @@ -125,7 +125,10 @@ v-if="dataSource" style="margin-top: 16px" > - + {{ (showTable && dataTable) || selectedDatasource.name }} @@ -154,7 +157,17 @@ class="table-or-field" @click="typeSwitch(ele)" > - {{ ele.name }} + {{ ele.name }} +
- {{ ele.fieldName }} + {{ ele.fieldName }} +
@@ -238,7 +261,7 @@ v-closePress :title="dialogTitle" :visible.sync="showVariableMgm" - custom-class="user-drawer sql-dataset-drawer" + custom-class="de-user-drawer sql-dataset-drawer" size="840px" direction="rtl" > @@ -735,6 +758,10 @@ export default { this.loading = false }) }, + onCopy(e) { + this.openMessageSuccess('commons.copy_success') + }, + onError(e) {}, showSQL(val) { this.sql = val || '' }, @@ -902,9 +929,13 @@ export default { margin: 0; } - :nth-child(2)p { - margin-top: 16px; + .grey-name { + max-width: 80%; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; } + .grey { font-size: 14px; font-weight: 400; @@ -928,6 +959,23 @@ export default { display: flex; align-items: center; padding-left: 4px; + padding-right: 10px; + display: flex; + align-items: center; + justify-content: space-between; + + i { + display: none; + cursor: pointer; + } + + .name { + cursor: pointer; + width: 90%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } &.field { color: var(--deTextPrimary, #1f2329); @@ -938,6 +986,9 @@ export default { } &:hover { + i { + display: block; + } background: rgba(31, 35, 41, 0.1); } } diff --git a/frontend/src/views/dataset/add/AddUnion.vue b/frontend/src/views/dataset/add/AddUnion.vue index 0fdbf49928..b0e28a66fe 100644 --- a/frontend/src/views/dataset/add/AddUnion.vue +++ b/frontend/src/views/dataset/add/AddUnion.vue @@ -80,7 +80,7 @@ v-closePress :title="$t('chart.select_dataset')" :visible.sync="selectDsDialog" - custom-class="user-drawer sql-dataset-drawer" + custom-class="de-user-drawer sql-dataset-drawer" size="600px" direction="rtl" > @@ -116,7 +116,7 @@ : $t('dataset.edit_union_relation') " :visible.sync="editUnion" - custom-class="user-drawer union-dataset-drawer" + custom-class="de-user-drawer union-dataset-drawer" size="840px" direction="rtl" > diff --git a/frontend/src/views/dataset/add/union/NodeItem.vue b/frontend/src/views/dataset/add/union/NodeItem.vue index 9e998010f2..f47e74416e 100644 --- a/frontend/src/views/dataset/add/union/NodeItem.vue +++ b/frontend/src/views/dataset/add/union/NodeItem.vue @@ -82,7 +82,7 @@ v-closePress :title="$t('chart.select_dataset')" :visible.sync="selectDsDialog" - custom-class="user-drawer sql-dataset-drawer" + custom-class="de-user-drawer sql-dataset-drawer" size="600px" direction="rtl" > @@ -114,7 +114,7 @@ v-if="editField" :title="$t('dataset.field_select')" :visible.sync="editField" - custom-class="user-drawer sql-dataset-drawer" + custom-class="de-user-drawer sql-dataset-drawer" size="840px" v-closePress direction="rtl" diff --git a/frontend/src/views/dataset/add/union/UnionNode.vue b/frontend/src/views/dataset/add/union/UnionNode.vue index 80bca5ae6a..ddcf84a85c 100644 --- a/frontend/src/views/dataset/add/union/UnionNode.vue +++ b/frontend/src/views/dataset/add/union/UnionNode.vue @@ -72,7 +72,7 @@ : $t('dataset.edit_union_relation') " :visible.sync="editUnion" - custom-class="user-drawer union-dataset-drawer" + custom-class="de-user-drawer union-dataset-drawer" size="840px" direction="rtl" > diff --git a/frontend/src/views/dataset/data/UpdateInfo.vue b/frontend/src/views/dataset/data/UpdateInfo.vue index 2db667f6bd..cfe09c7f03 100644 --- a/frontend/src/views/dataset/data/UpdateInfo.vue +++ b/frontend/src/views/dataset/data/UpdateInfo.vue @@ -213,7 +213,7 @@ v-closePress :title="$t('dataset.task.record')" :visible.sync="userDrawer" - custom-class="user-drawer-task" + custom-class="de-user-drawer" size="840px" direction="rtl" > @@ -285,7 +285,7 @@ v-closePress :title="header" :visible.sync="update_task" - custom-class="user-drawer update-drawer-task" + custom-class="de-user-drawer update-drawer-task" size="680px" direction="rtl" > @@ -1139,7 +1139,7 @@ export default { } diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index 2bbe586aec..0b32bcd0b3 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -1,33 +1,34 @@ diff --git a/frontend/src/views/system/user/imp-ldap.vue b/frontend/src/views/system/user/imp-ldap.vue deleted file mode 100644 index de077f627e..0000000000 --- a/frontend/src/views/system/user/imp-ldap.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue index 9a60366e0e..168f75c1bc 100644 --- a/frontend/src/views/system/user/index.vue +++ b/frontend/src/views/system/user/index.vue @@ -1,14 +1,13 @@ - diff --git a/frontend/src/views/system/user/userEditer.vue b/frontend/src/views/system/user/userEditer.vue index b0d1c25015..e47bf0b602 100644 --- a/frontend/src/views/system/user/userEditer.vue +++ b/frontend/src/views/system/user/userEditer.vue @@ -214,19 +214,18 @@ slot="footer" class="dialog-footer" > - {{ $t("commons.cancel") - }} - + {{ $t("commons.confirm") - }} + }}
@@ -636,25 +635,6 @@ export default { } } - .btn { - border-radius: 4px; - padding: 5px 26px 5px 26px; - font-family: PingFang SC; - font-size: 14px; - font-weight: 400; - line-height: 20px; - letter-spacing: 0px; - text-align: center; - border: none; - box-sizing: border-box; - } - - .normal { - color: #1f2329; - border: 1px solid #bbbfc4; - margin-left: 12px; - } - .form-gender-select { width: 100%; }