Skip to content

Commit 54c4323

Browse files
committed
fix: bug fix
1 parent 6d3cf4d commit 54c4323

File tree

21 files changed

+88
-19
lines changed

21 files changed

+88
-19
lines changed

frontend/src/components/layout/PwdForm.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ defineExpose({
8585
v-model="pwdForm.pwd"
8686
:placeholder="t('common.please_input', { msg: t('user.upgrade_pwd.old_pwd') })"
8787
type="password"
88+
clearable
8889
show-password
8990
/>
9091
</el-form-item>
@@ -94,6 +95,7 @@ defineExpose({
9495
:placeholder="t('common.please_input', { msg: t('user.upgrade_pwd.new_pwd') })"
9596
type="password"
9697
show-password
98+
clearable
9799
/>
98100
</el-form-item>
99101
<el-form-item prop="confirm_pwd" :label="t('user.upgrade_pwd.confirm_pwd')">
@@ -102,6 +104,7 @@ defineExpose({
102104
:placeholder="t('common.please_input', { msg: t('user.upgrade_pwd.confirm_pwd') })"
103105
type="password"
104106
show-password
107+
clearable
105108
/>
106109
</el-form-item>
107110
</el-form>

frontend/src/views/chat/ChatList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ const handleConfirmPassword = () => {
264264
:placeholder="
265265
$t('datasource.please_enter') + $t('common.empty') + $t('qa.conversation_title')
266266
"
267+
clearable
267268
autocomplete="off"
268269
/>
269270
</el-form-item>

frontend/src/views/chat/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@
290290
ref="inputRef"
291291
v-model="inputMessage"
292292
:disabled="isTyping"
293+
clearable
293294
class="input-area"
294295
type="textarea"
295296
:rows="1"

frontend/src/views/dashboard/common/ResourceGroupOpt.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ defineExpose({
185185
<el-input
186186
v-model="resourceForm.name"
187187
:placeholder="state.placeholder"
188+
clearable
188189
@keydown.stop
189190
@keyup.stop
190191
/>

frontend/src/views/dashboard/components/sq-tab/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,12 @@ defineExpose({
264264
:close-on-click-modal="false"
265265
center
266266
>
267-
<el-input v-model="state.textarea" maxlength="50" :placeholder="t('common.input_content')" />
267+
<el-input
268+
v-model="state.textarea"
269+
maxlength="50"
270+
clearable
271+
:placeholder="t('common.input_content')"
272+
/>
268273
<template #footer>
269274
<span class="dialog-footer">
270275
<el-button @click="state.dialogVisible = false">{{ t('common.cancel') }}</el-button>

frontend/src/views/ds/DataTable.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ const btnSelectClick = (val: any) => {
431431
:placeholder="$t('datasource.please_enter')"
432432
:rows="3"
433433
type="textarea"
434+
clearable
434435
/>
435436
<div style="display: flex; justify-content: flex-end; margin-top: 20px">
436437
<el-button @click="closeTable">{{ t('common.cancel') }}</el-button>
@@ -450,6 +451,7 @@ const btnSelectClick = (val: any) => {
450451
v-model="fieldComment"
451452
:placeholder="$t('datasource.please_enter')"
452453
:rows="3"
454+
clearable
453455
type="textarea"
454456
/>
455457
<div style="display: flex; justify-content: flex-end; margin-top: 20px">

frontend/src/views/ds/DatasourceForm.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ defineExpose({
558558
<el-form-item :label="t('ds.form.name')" prop="name">
559559
<el-input
560560
v-model="form.name"
561+
clearable
561562
:placeholder="$t('datasource.please_enter') + $t('common.empty') + t('ds.form.name')"
562563
/>
563564
</el-form-item>
@@ -570,25 +571,29 @@ defineExpose({
570571
:rows="2"
571572
show-word-limit
572573
maxlength="200"
574+
clearable
573575
type="textarea"
574576
/>
575577
</el-form-item>
576578
<div v-if="form.type !== 'excel'" style="margin-top: 16px">
577579
<el-form-item :label="t('ds.form.host')" prop="host">
578580
<el-input
579581
v-model="form.host"
582+
clearable
580583
:placeholder="$t('datasource.please_enter') + $t('common.empty') + t('ds.form.host')"
581584
/>
582585
</el-form-item>
583586
<el-form-item :label="t('ds.form.port')" prop="port">
584587
<el-input
585588
v-model="form.port"
589+
clearable
586590
:placeholder="$t('datasource.please_enter') + $t('common.empty') + t('ds.form.port')"
587591
/>
588592
</el-form-item>
589593
<el-form-item :label="t('ds.form.username')">
590594
<el-input
591595
v-model="form.username"
596+
clearable
592597
:placeholder="
593598
$t('datasource.please_enter') + $t('common.empty') + t('ds.form.username')
594599
"
@@ -597,6 +602,7 @@ defineExpose({
597602
<el-form-item :label="t('ds.form.password')">
598603
<el-input
599604
v-model="form.password"
605+
clearable
600606
:placeholder="
601607
$t('datasource.please_enter') + $t('common.empty') + t('ds.form.password')
602608
"
@@ -607,6 +613,7 @@ defineExpose({
607613
<el-form-item :label="t('ds.form.database')" prop="database">
608614
<el-input
609615
v-model="form.database"
616+
clearable
610617
:placeholder="
611618
$t('datasource.please_enter') + $t('common.empty') + t('ds.form.database')
612619
"
@@ -625,6 +632,7 @@ defineExpose({
625632
<el-form-item :label="t('ds.form.extra_jdbc')">
626633
<el-input
627634
v-model="form.extraJdbc"
635+
clearable
628636
:placeholder="
629637
$t('datasource.please_enter') + $t('common.empty') + t('ds.form.extra_jdbc')
630638
"
@@ -633,12 +641,19 @@ defineExpose({
633641
<el-form-item v-if="haveSchema.includes(form.type)" label="Schema" prop="dbSchema">
634642
<el-input
635643
v-model="form.dbSchema"
644+
clearable
636645
:placeholder="$t('datasource.please_enter') + $t('common.empty') + 'Schema'"
637646
/>
638647
<el-button v-if="false" link type="primary" :icon="Plus">Get Schema</el-button>
639648
</el-form-item>
640649
<el-form-item :label="t('ds.form.timeout')" prop="timeout">
641-
<el-input-number v-model="form.timeout" :min="0" :max="300" controls-position="right" />
650+
<el-input-number
651+
v-model="form.timeout"
652+
clearable
653+
:min="0"
654+
:max="300"
655+
controls-position="right"
656+
/>
642657
</el-form-item>
643658
</div>
644659
</el-form>

frontend/src/views/ds/TableList.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</div>
1515
<el-input
1616
v-model="searchValue"
17+
clearable
1718
style="margin: 16px 0"
1819
:placeholder="t('ds.Search Datasource')"
1920
/>
@@ -105,7 +106,7 @@
105106
@closed="closeTable"
106107
>
107108
<div>{{ t('ds.edit.table_comment_label') }}</div>
108-
<el-input v-model="tableComment" :rows="3" type="textarea" />
109+
<el-input v-model="tableComment" clearable :rows="3" type="textarea" />
109110
<div style="display: flex; justify-content: flex-end; margin-top: 20px">
110111
<el-button @click="closeTable">{{ t('common.cancel') }}</el-button>
111112
<el-button type="primary" @click="saveTable">{{ t('common.confirm') }}</el-button>
@@ -121,7 +122,7 @@
121122
@closed="closeField"
122123
>
123124
<div>{{ t('ds.edit.field_comment_label') }}</div>
124-
<el-input v-model="fieldComment" :rows="3" type="textarea" />
125+
<el-input v-model="fieldComment" clearable :rows="3" type="textarea" />
125126
<div style="display: flex; justify-content: flex-end; margin-top: 20px">
126127
<el-button @click="closeField">{{ t('common.cancel') }}</el-button>
127128
<el-button type="primary" @click="saveField">{{ t('common.confirm') }}</el-button>

frontend/src/views/ds/form.vue

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
@submit.prevent
3535
>
3636
<el-form-item :label="t('ds.form.name')" prop="name">
37-
<el-input v-model="form.name" />
37+
<el-input v-model="form.name" clearable />
3838
</el-form-item>
3939
<el-form-item :label="t('ds.form.description')">
40-
<el-input v-model="form.description" :rows="2" type="textarea" />
40+
<el-input v-model="form.description" clearable :rows="2" type="textarea" />
4141
</el-form-item>
4242
<el-form-item :label="t('ds.type')" prop="type">
4343
<el-select v-model="form.type" placeholder="Select Type" :disabled="!isCreate">
@@ -68,19 +68,19 @@
6868
</div>
6969
<div v-else>
7070
<el-form-item :label="t('ds.form.host')" prop="host">
71-
<el-input v-model="form.host" />
71+
<el-input v-model="form.host" clearable />
7272
</el-form-item>
7373
<el-form-item :label="t('ds.form.port')" prop="port">
74-
<el-input v-model="form.port" />
74+
<el-input v-model="form.port" clearable />
7575
</el-form-item>
7676
<el-form-item :label="t('ds.form.username')">
77-
<el-input v-model="form.username" />
77+
<el-input v-model="form.username" clearable />
7878
</el-form-item>
7979
<el-form-item :label="t('ds.form.password')">
80-
<el-input v-model="form.password" type="password" show-password />
80+
<el-input v-model="form.password" clearable type="password" show-password />
8181
</el-form-item>
8282
<el-form-item :label="t('ds.form.database')" prop="database">
83-
<el-input v-model="form.database" />
83+
<el-input v-model="form.database" clearable />
8484
</el-form-item>
8585
<el-form-item
8686
v-if="form.type === 'oracle'"
@@ -93,18 +93,24 @@
9393
</el-radio-group>
9494
</el-form-item>
9595
<el-form-item :label="t('ds.form.extra_jdbc')">
96-
<el-input v-model="form.extraJdbc" />
96+
<el-input v-model="form.extraJdbc" clearable />
9797
</el-form-item>
9898
<el-form-item
9999
v-if="haveSchema.includes(form.type)"
100100
:label="t('ds.form.schema')"
101101
prop="dbSchema"
102102
>
103-
<el-input v-model="form.dbSchema" />
103+
<el-input v-model="form.dbSchema" clearable />
104104
<el-button v-if="false" link type="primary" :icon="Plus">Get Schema</el-button>
105105
</el-form-item>
106106
<el-form-item :label="t('ds.form.timeout')" prop="timeout">
107-
<el-input-number v-model="form.timeout" :min="0" :max="300" controls-position="right" />
107+
<el-input-number
108+
v-model="form.timeout"
109+
clearable
110+
:min="0"
111+
:max="300"
112+
controls-position="right"
113+
/>
108114
</el-form-item>
109115
<span>
110116
<span>{{ t('ds.form.support_version') }}:&nbsp;</span>

frontend/src/views/embedded/assistant.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const textareaVal = ref('')
3838
v-model="textareaVal"
3939
:autosize="{ minRows: 1, maxRows: 8.5848 }"
4040
type="textarea"
41+
clearable
4142
:placeholder="$t('embedded.enter_a_question')"
4243
/>
4344
<el-tooltip :offset="10" effect="dark" :content="$t('embedded.send')" placement="top">

0 commit comments

Comments
 (0)