9696 <el-input v-model =" form.dbSchema" />
9797 <el-button v-if =" false" link type =" primary" :icon =" Plus" >Get Schema</el-button >
9898 </el-form-item >
99+ <el-form-item :label =" t('ds.form.timeout')" prop =" timeout" >
100+ <el-input-number v-model =" form.timeout" :min =" 0" :max =" 300" controls-position =" right" />
101+ </el-form-item >
99102 <span >
100103 <span >{{ t('ds.form.support_version') }}:  ; </span >
101104 <span v-if =" form.type === 'sqlServer'" >2012+</span >
@@ -211,6 +214,7 @@ const form = ref<any>({
211214 filename: ' ' ,
212215 sheets: [],
213216 mode: ' service_name' ,
217+ timeout: 30 ,
214218})
215219
216220const close = () => {
@@ -246,6 +250,7 @@ const open = (item: any, editTable: boolean = false) => {
246250 form .value .filename = configuration .filename
247251 form .value .sheets = configuration .sheets
248252 form .value .mode = configuration .mode
253+ form .value .timeout = configuration .timeout ? configuration .timeout : 30
249254 }
250255
251256 if (editTable ) {
@@ -304,6 +309,7 @@ const open = (item: any, editTable: boolean = false) => {
304309 filename: ' ' ,
305310 sheets: [],
306311 mode: ' service_name' ,
312+ timeout: 30 ,
307313 }
308314 }
309315 dialogVisible .value = true
@@ -363,6 +369,7 @@ const buildConf = () => {
363369 filename: form .value .filename ,
364370 sheets: form .value .sheets ,
365371 mode: form .value .mode ,
372+ timeout: form .value .timeout ,
366373 })
367374 )
368375 const obj = JSON .parse (JSON .stringify (form .value ))
@@ -377,6 +384,7 @@ const buildConf = () => {
377384 delete obj .filename
378385 delete obj .sheets
379386 delete obj .mode
387+ delete obj .timeout
380388 return obj
381389}
382390
0 commit comments