Commit b6d6bb64 authored by 向偲彪's avatar 向偲彪 Committed by lgcareer
Browse files

Fixed some input box length restrictions and udfs not getting values #109 (#1778)

* Fix api url

* Fixed DAG zoom in and zoom out nodes separated from arrows

* Fix front-end code specifications

* Fix front-end code specifications

* Fix front-end code specifications

* jest unit test demo

* jest unit test demo

* Fix delete operation, no query interface request is made on the list page

* Fix delete operation, no query interface request is made on the list page

* Fixed some input box length restrictions and udfs not getting values
parent 74a5506b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@
    },
    created () {
      this.$nextTick(() => {
        console.log(this.sqlType)
        if (this.sqlType != 0) {
          this.sqlTypeId = this.sqlType
        } else {
+4 −2
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@
       * verification
       */
      _verifUdfs () {
        this.$emit('on-udfsData', _.map(this.udfsStr, v => v.id).join(','))
        this.$emit('on-udfsData', this.udfsStr.join(','))
        return true
      },
      /**
@@ -68,7 +68,6 @@
              code: v.funcName
            }
          })

          let udfs = _.cloneDeep(this.udfs.split(','))
          if (udfs.length) {
            let arr = []
@@ -87,6 +86,9 @@
      }
    },
    watch: {
      udfsStr (val) {
        this._verifUdfs()
      },
      type (a) {
        // The props parameter needs to be changed due to the scene.
        this.udfs = ''
+4 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@
            <x-input
                    type="input"
                    v-model="name"
                    maxlength="60"
                    :placeholder="$t('Please enter datasource name')"
                    autocomplete="off">
            </x-input>
@@ -64,6 +65,7 @@
            <x-input
                    type="input"
                    v-model="host"
                    maxlength="60"
                    :placeholder="$t('Please enter IP')"
                    autocomplete="off">
            </x-input>
@@ -97,6 +99,7 @@
            <x-input
                    type="input"
                    v-model="userName"
                    maxlength="60"
                    :placeholder="$t('Please enter user name')"
                    autocomplete="off">
            </x-input>
@@ -119,6 +122,7 @@
            <x-input
                    type="input"
                    v-model="database"
                    maxlength="60"
                    :placeholder="$t('Please enter database name')"
                    autocomplete="off">
            </x-input>
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
            <x-input
                    type="input"
                    v-model="projectName"
                    maxlength="60"
                    :placeholder="$t('Please enter name')"
                    autocomplete="off">
            </x-input>
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
            <x-input
                    type="input"
                    v-model="fileName"
                    maxlength="60"
                    style="width: 300px;"
                    :placeholder="$t('Please enter name')"
                    autocomplete="off">
Loading