Selaa lähdekoodia

refactor: 代码合并

wu.jian2 1 vuosi sitten
vanhempi
sitoutus
5783ffe2d9

+ 12 - 11
data-room-ui/packages/DataSetManagement/src/HttpEditForm.vue

@@ -764,7 +764,7 @@ export default {
       const reg = /(https?|ftp|file):\/\/[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]/
       if (!reg.test(value)) {
         // eslint-disable-next-line no-template-curly-in-string
-        callback(new Error('请输入请求地址'))
+        callback(new Error('请输入正确的请求地址'))
       } else {
         callback()
       }
@@ -1123,17 +1123,18 @@ export default {
           this.getData()
         }
       } else {
-        this.$refs.form.validate((valid) => {
-          if (valid) {
-            this.getPramsList()
-            // 每次执行时只要有动态参数就会打开参数配置的弹窗进行设置
-            if (this.dataForm.config.paramsList && this.dataForm.config.paramsList.length && !isInit) {
-              this.openParamsSetDialog(true)
-            } else {
-              this.getData()
-            }
+        // 点击解析时校验是否填写请求地址
+        if (this.dataForm.config.url) {
+          this.getPramsList()
+          // 每次执行时只要有动态参数就会打开参数配置的弹窗进行设置
+          if (this.dataForm.config.paramsList && this.dataForm.config.paramsList.length && !isInit) {
+            this.openParamsSetDialog(true)
+          } else {
+            this.getData()
           }
-        })
+        } else {
+          this.$message.error('请输入请求地址')
+        }
       }
     },
     // 调接口

+ 2 - 1
data-room-ui/packages/G2Plots/条形图/分组条形图.js

@@ -97,7 +97,8 @@ const setting = [
     // 对应options中的字段
     optionField: 'radiusNum',
     value: 10,
-    tabName: 'custom'
+    tabName: 'custom',
+    groupName: 'graph'
   },
   {
     label: '数据标签',