diff --git a/backend/src/main/resources/db/migration/V19__area_mapping.sql b/backend/src/main/resources/db/migration/V19__area_mapping.sql index 399d6fd5e4..057e8f8d2e 100644 --- a/backend/src/main/resources/db/migration/V19__area_mapping.sql +++ b/backend/src/main/resources/db/migration/V19__area_mapping.sql @@ -161,6 +161,7 @@ SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for area_mapping -- ---------------------------- +DROP TABLE IF EXISTS `area_mapping`; CREATE TABLE `area_mapping` ( `id` bigint(20) NOT NULL COMMENT 'id', `province_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '省名称', diff --git a/frontend/src/components/Notification/index.vue b/frontend/src/components/Notification/index.vue index aad83b84da..c0a4675f2d 100644 --- a/frontend/src/components/Notification/index.vue +++ b/frontend/src/components/Notification/index.vue @@ -234,7 +234,7 @@ export default { right: 178px; top: 8px; background: red; - color: var(--TextActive); + color: var(--TextActive, #fff); border-radius: 17px; padding: 4px 7px; font-size: 16px; diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index 8e1107895f..220fd6f346 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -296,7 +296,7 @@ function fillPositionBox(maxY) { function removeItemFromPositionBox(item) { const pb = positionBox // console.log('removeItem=>x:' + item.x + ';y:' + item.y + ';sizex:' + item.sizex + ';sizey:' + item.sizey) - if (item.x <= 0 || item.y <= 0) return + if (!item || item.x <= 0 || item.y <= 0) return for (let i = item.x - 1; i < item.x - 1 + item.sizex; i++) { for (let j = item.y - 1; j < item.y - 1 + item.sizey; j++) { if (pb[j][i]) { @@ -1682,7 +1682,7 @@ export default { } }, startMoveIn() { - if (this.dragComponentInfo.auxiliaryMatrix) { + if (this.$store.state.dragComponentInfo.auxiliaryMatrix) { const moveInItemInfo = this.$store.state.dragComponentInfo this.addItemBox(moveInItemInfo) // console.log('startMoveIn:') diff --git a/frontend/src/components/canvas/components/Toolbar.vue b/frontend/src/components/canvas/components/Toolbar.vue index c400d1f7cc..201da4765e 100644 --- a/frontend/src/components/canvas/components/Toolbar.vue +++ b/frontend/src/components/canvas/components/Toolbar.vue @@ -12,8 +12,8 @@
- - + + @@ -22,19 +22,33 @@ - - -
- - {{ $t('panel.matrix_design') }} -
+ + + + + + + + + + + + + + + + + + + - + + @@ -372,6 +386,9 @@ export default { }, cancelLinkageSettingStatus() { this.$store.commit('clearLinkageSettingInfo') + }, + auxiliaryMatrixChange() { + this.canvasStyleData.auxiliaryMatrix = !this.canvasStyleData.auxiliaryMatrix } } } @@ -382,7 +399,7 @@ export default { float: right; height: 35px; line-height: 35px; - min-width: 500px; + min-width: 400px; /*background: #fff;*/ /*border-bottom: 1px solid #ddd;*/ @@ -390,7 +407,6 @@ export default { display: inline-block; margin-left: 10px; font-size: 14px; - color: #606266; input { width: 50px; @@ -398,7 +414,6 @@ export default { outline: none; padding: 0 5px; border: 1px solid #ddd; - color: #606266; } span { @@ -413,7 +428,7 @@ export default { cursor: pointer; background: #FFF; border: 1px solid #DCDFE6; - color: #606266; + color: var(--TextPrimary, #606266); -webkit-appearance: none; text-align: center; box-sizing: border-box; @@ -460,4 +475,12 @@ export default { margin-bottom: 2px; } + .iconfont-tb { + font-family: "iconfont" !important; + font-size: 12px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + } + diff --git a/frontend/src/components/canvas/index.vue b/frontend/src/components/canvas/index.vue index bbdf3fc9fb..201d42e639 100644 --- a/frontend/src/components/canvas/index.vue +++ b/frontend/src/components/canvas/index.vue @@ -55,7 +55,7 @@ export default { created() { this.restore() // 全局监听按键事件 - listenGlobalKeyDown() + // listenGlobalKeyDown() }, methods: { restore() { diff --git a/frontend/src/components/widget/DeWidget/DeTabs.vue b/frontend/src/components/widget/DeWidget/DeTabs.vue index 26ffb9a7b2..18fa38d54a 100644 --- a/frontend/src/components/widget/DeWidget/DeTabs.vue +++ b/frontend/src/components/widget/DeWidget/DeTabs.vue @@ -34,7 +34,7 @@ -
+
@@ -75,7 +75,7 @@ center >
- +
@@ -161,6 +161,10 @@ export default { }, sureViewSelector() { const nodes = this.$refs.viewSelect.getCurrentSelected() + if (!nodes || nodes.length === 0) { + this.viewDialogVisible = false + return + } const node = nodes[0] let component @@ -250,23 +254,8 @@ export default { } .de-tabs { height: 100%; - >>>div.el-tabs__content { - height: calc(100% - 55px); - .el-tab-pane { - height: 100%; - } - } - } - /* .de-tab-i { - transition: 0.1s; - opacity: 0; - transform: translateY(100%); } - .de-tab-drop:hover .de-tab-i { - opacity: 1; - transform: translateY(0); - } */ .de-tab-content { width: 100%; height: 100%; diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index bed0ee3a10..eaecff92fd 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -1320,7 +1320,7 @@ export default { no_drill_field: '缺少關聯字段', matrix: '矩阵', suspension: '悬浮', - new_element_distribution: '新元素分布方式', + new_element_distribution: '当前元素移入分布方式', subject_no_edit: '系统主题不能修改', subject_name_not_null: '主题名称需要1~20字符' }, diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index ee9515228d..de631ad8e4 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -1325,7 +1325,7 @@ export default { no_drill_field: '缺少关联字段', matrix: '矩阵', suspension: '悬浮', - new_element_distribution: '新元素分布方式', + new_element_distribution: '当前元素移入分布方式', subject_no_edit: '系统主题不能修改', subject_name_not_null: '主题名称需要1~20字符' }, diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 36e3cc149a..b368277b04 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -43,9 +43,6 @@ html { box-sizing: border-box; } -#app { - //height: $contentHeight; -} *, *:before, @@ -151,6 +148,18 @@ div:focus { } } +.de-tabs { + .el-tabs__header { + margin: 0 0 0 0 !important; + } + .el-tabs__content { + height: calc(100% - 55px) !important; + .el-tab-pane { + height: 100% !important; + } + } +} + .de-search-header { .el-tabs__header { display: none !important;; @@ -418,6 +427,10 @@ div:focus { border: none !important; } +.blackTheme .el-picker-panel__footer { + background-color: var(--MainBG) !important; +} + .el-pagination { button:disabled { @@ -602,6 +615,10 @@ div:focus { background-color: #000000 ; } +.blackTheme .CodeMirror-line { + background-color: #000000 !important; +} + .blackTheme .el-radio-button__inner { background-color: var(--TableBG); color: var(--TableColor); @@ -616,5 +633,38 @@ div:focus { background: #38393a !important; } +.blackTheme .el-message-box__content { + color:#F2F6FC; +} + +.blackTheme .el-message-box__btns { + .el-button--default:not(.el-button--primary) { + background-color: #171b22 ; + color: #2681ff; + } + .el-button--primary { + color: #21333b; + background-color: #2681ff; + border-color: #2681ff; + } +} + +.blackTheme .vue-treeselect__menu { + border: 1px solid var(--TableBorderColor, #cfcfcf); + background: var(--MainBG, #fff); +} + +.blackTheme .vue-treeselect__option:not(.vue-treeselect__option--highlight) { + color: #606266; +} +.blackTheme .vue-treeselect__option--highlight { + color: #2681ff; + background-color: #000000; +} + +.blackTheme .el-table__body tr.current-row > td { + background-color: #324f62; +} + diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index 4bb044ae7a..1f74048d75 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -613,7 +613,7 @@ :fullscreen="true" > -