Browse Source

Merge remote-tracking branch 'origin/master'

wangkang4 1 year ago
parent
commit
ab54c3fa2a

+ 71 - 0
.gitee/ISSUE_TEMPLATE/bug.yml

@@ -0,0 +1,71 @@
+name: Bug 反馈
+description: 当你在代码中发现了一个 Bug,导致应用崩溃或抛出异常,或者有一个组件存在问题,或者某些地方看起来不对劲。
+title: "[Bug]: "
+labels: ["bug"]
+body:
+  - type: markdown
+    attributes:
+      value: |
+        感谢对项目的支持与关注。在提出问题之前,请确保你已查看相关开发或使用文档:
+        - [https://www.yuque.com/chuinixiongkou/bigscreen/index](https://www.yuque.com/chuinixiongkou/bigscreen/index)
+  - type: checkboxes
+    attributes:
+      label: 这个问题是否已经存在?
+      options:
+        - label: 我已经搜索过现有的[问题](https://gitee.com/gcpaas/DataRoom/issues)
+          required: true
+  - type: textarea
+    attributes:
+      label: 如何复现
+      description: 请详细告诉我们如何复现你遇到的问题,如涉及代码,可提供一个最小代码示例,并使用反引号```附上它
+      placeholder: |
+        1. ...
+        2. ...
+        3. ...
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: 预期结果
+      description: 请告诉我们你预期会发生什么。
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: 实际结果
+      description: 请告诉我们实际发生了什么。
+    validations:
+      required: true
+  - type: textarea
+    attributes:
+      label: bug截图
+      description: 如果可以的话,上传任何关于 bug 的截图。
+      placeholder: [在这里上传图片]
+  - type: input
+    id: jdkVersion
+    attributes:
+      label: JDK版本
+      description: 你当前正在使用的JDK版本号是多少?
+    validations:
+      required: false
+  - type: input
+    id: nodeVersion
+    attributes:
+      label: Node版本
+      description: 你当前正在使用的Node版本号是多少?
+    validations:
+      required: false
+  - type: input
+    id: 前端软件版本
+    attributes:
+      label: 前端软件版本
+      description: 你当前正在使用的前端软件版本号是多少?[即您的package.json中的版本号]
+    validations:
+        required: false
+  - type: input
+    id: 后端软件版本
+    attributes:
+        label: 后端软件版本
+        description: 你当前正在使用的后端软件版本号是多少?[即您的pom.xml中的版本号]
+    validations:
+        required: false

+ 1 - 0
.gitee/ISSUE_TEMPLATE/config.yml

@@ -0,0 +1 @@
+blank_issues_enabled: false

+ 43 - 0
.gitee/ISSUE_TEMPLATE/feature.yml

@@ -0,0 +1,43 @@
+name: 功能建议
+description: 对本项目提出一个功能建议
+title: "[功能建议]: "
+labels: ["enhancement"]
+body:
+  - type: markdown
+    attributes:
+      value: |
+        感谢提出功能建议,我们将仔细考虑!
+  - type: textarea
+    id: related-problem
+    attributes:
+      label: 你的功能建议是否和某个问题相关?
+      description: 清晰并简洁地描述问题是什么,例如,当我...时,我总是感到困扰。
+    validations:
+      required: false
+  - type: textarea
+    id: desired-solution
+    attributes:
+      label: 你希望看到什么解决方案?
+      description: 清晰并简洁地描述你希望发生的事情。
+    validations:
+      required: true
+  - type: textarea
+    id: alternatives
+    attributes:
+      label: 你考虑过哪些替代方案?
+      description: 清晰并简洁地描述你考虑过的任何替代解决方案或功能。
+    validations:
+      required: false
+  - type: textarea
+    id: additional-context
+    attributes:
+      label: 你有其他上下文或截图吗?
+      description: 在此处添加有关功能请求的任何其他上下文或截图。
+    validations:
+      required: false
+  - type: checkboxes
+    attributes:
+      label: 意向参与贡献
+      options:
+        - label: 我有意向参与具体功能的开发实现并将代码贡献回到上游社区
+          required: false

+ 3 - 0
DataRoom/dataroom-core/src/main/java/com/gccloud/dataroom/core/module/chart/components/ScreenMarqueeChart.java

@@ -19,6 +19,9 @@ public class ScreenMarqueeChart extends Chart{
     @ApiModelProperty(notes = "类型")
     private String type = PageDesignConstant.BigScreen.Type.MARQUEE;
 
+    @ApiModelProperty(notes = "自定义处理数据源脚本")
+    private String dataHandler;
+
     @ApiModelProperty(notes = "个性化")
     private Customize customize = new Customize();
 

+ 9 - 0
data-room-ui/packages/BasicComponents/Marquee/index.vue

@@ -87,6 +87,8 @@ import Speech from 'speak-tts'
 import { EventBus } from 'data-room-ui/js/utils/eventBus'
 import commonMixins from 'data-room-ui/js/mixins/commonMixins'
 import paramsMixins from 'data-room-ui/js/mixins/paramsMixins'
+import {settingToTheme} from "data-room-ui/js/utils/themeFormatting";
+import _ from "lodash";
 export default {
   props: {
     // 卡片的属性
@@ -233,7 +235,14 @@ export default {
       }
     },
     changeStyle (config) {
+      config = { ...this.config, ...config }
       this.voiceBroadcast(config)
+      // 样式改变时更新主题配置
+      config.theme = settingToTheme(_.cloneDeep(config), this.customTheme)
+      this.changeChartConfig(config)
+      if (config.code === this.activeCode) {
+        this.changeActiveItemConfig(config)
+      }
     },
     // 监听页面是否可见
     handleVisibilityChange () {

+ 1 - 1
data-room-ui/packages/js/utils/themeFormatting.js

@@ -24,7 +24,7 @@ export function settingToTheme (config, type) {
       // 如果是普通组件
       if (config.customize && Object.keys(config.customize).length) {
         for (const item in config.customize) {
-          if (item.includes('color') || item.includes('Color')) {
+          if (item.includes('color') || item.includes('Color') || item.includes('BGC')) {
             theme[type][item] = config.customize[item]
           }
         }