Sfoglia il codice sorgente

refactor: 去掉打印

wu.jian2 1 anno fa
parent
commit
293665ff1a

+ 1 - 6
data-room-ui/packages/DataSetManagement/src/DatasetTypeDialog.vue

@@ -48,12 +48,7 @@ export default {
       dialogVisible: false
     }
   },
-  created () {
-    // eslint-disable-next-line eqeqeq
-    // if (this.datasetTypeList.length == 1) this.spanNum = 24
-    // if ([2, 4].includes(this.datasetTypeList.length)) this.spanNum = 12
-    // if ([3, 5, 6].includes(this.datasetTypeList.length)) this.spanNum = 8
-  },
+  created () { },
   methods: {
     // 选择新增类型
     openAddForm (type, componentName) {

+ 0 - 3
data-room-ui/packages/DataSetManagement/src/index.vue

@@ -458,8 +458,6 @@ export default {
     },
     // 新增数据集-类型
     openAddForm (type, componentName) {
-      console.log('type', type)
-      console.log('componentName', componentName)
       this.datasetType = type
       this.componentData = this.getComponents(componentName)
       this.typeId = this.queryForm.typeId
@@ -475,7 +473,6 @@ export default {
         // 获取远程组件
         remoteComponentData = window.BS_CONFIG?.customDatasetComponents.find(item => item.config.componentName === componentName)
       }
-
       return {
         component: components.find(component => component.name === componentName) || remoteComponentData?.vueFile,
         config: remoteComponentData?.config || null,

+ 1 - 0
data-room-ui/packages/DataSourceManagement/src/setDatasource.vue

@@ -15,6 +15,7 @@
     >
       <el-form
         ref="dataForm"
+        class="bs-el-form"
         :model="dataForm"
         :rules="dataForm.id ? updateRules : rules"
         size="small"

+ 0 - 2
data-room-ui/packages/js/store/actions.js

@@ -73,7 +73,6 @@ export function handleResData (data) {
       if ((!chart.version) || chart.version !== originalConfig.version) {
         chart = compatibility(chart, originalConfig)
       } else {
-        console.log(chart)
         chart.option = _.cloneDeep(setModules[chart.type])
       }
     } else {
@@ -129,7 +128,6 @@ function arrCompare (list1, list2) {
     // 如果存在交集
     if (fieldList.includes(item.field)) {
       // 保留旧数据的value
-      // console.log(list1.filter(j => j.field === item.field))
       value = (list1.filter(j => {
         return j.field === item.field
       }))[0].value