提交 b6d6bb64 编写于 作者: B break60 提交者: lgcareer

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
上级 74a5506b
......@@ -60,7 +60,6 @@
},
created () {
this.$nextTick(() => {
console.log(this.sqlType)
if (this.sqlType != 0) {
this.sqlTypeId = this.sqlType
} else {
......
......@@ -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 = ''
......
......@@ -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>
......
......@@ -24,6 +24,7 @@
<x-input
type="input"
v-model="projectName"
maxlength="60"
:placeholder="$t('Please enter name')"
autocomplete="off">
</x-input>
......
......@@ -24,6 +24,7 @@
<x-input
type="input"
v-model="fileName"
maxlength="60"
style="width: 300px;"
:placeholder="$t('Please enter name')"
autocomplete="off">
......
......@@ -24,6 +24,7 @@
<x-input
type="input"
v-model="name"
maxlength="60"
:placeholder="$t('Please enter name')"
autocomplete="off">
</x-input>
......
......@@ -28,6 +28,7 @@
<x-input
type="input"
v-model="queueName"
maxlength="60"
:placeholder="$t('Please enter name')"
autocomplete="off">
</x-input>
......@@ -39,6 +40,7 @@
<x-input
type="input"
v-model="queue"
maxlength="60"
:placeholder="$t('Please enter queue value')"
autocomplete="off">
</x-input>
......
......@@ -29,6 +29,7 @@
type="input"
:disabled="item ? true : false"
v-model="tenantCode"
maxlength="60"
:placeholder="$t('Please enter name')">
</x-input>
</template>
......@@ -39,6 +40,7 @@
<x-input
type="input"
v-model="tenantName"
maxlength="60"
:placeholder="$t('Please enter name')"
autocomplete="off">
</x-input>
......
......@@ -28,6 +28,7 @@
<x-input
type="input"
v-model="groupName"
maxlength="60"
:placeholder="$t('Please enter group name')">
</x-input>
</template>
......
......@@ -28,6 +28,7 @@
<x-input
type="input"
v-model="name"
maxlength="60"
:placeholder="$t('Please enter group name')">
</x-input>
</template>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册