@@ -116,6 +116,7 @@ const form = ref<any>({
116116 sheets: [],
117117 mode: ' service_name' ,
118118 timeout: 30 ,
119+ lowVersion: false ,
119120})
120121
121122const close = () => {
@@ -159,6 +160,10 @@ const initForm = (item: any, editTable: boolean = false) => {
159160 form .value .sheets = configuration .sheets
160161 form .value .mode = configuration .mode
161162 form .value .timeout = configuration .timeout ? configuration .timeout : 30
163+ form .value .lowVersion =
164+ configuration .lowVersion !== null && configuration .lowVersion !== undefined
165+ ? configuration .lowVersion
166+ : true
162167 }
163168
164169 if (editTable ) {
@@ -230,6 +235,7 @@ const initForm = (item: any, editTable: boolean = false) => {
230235 sheets: [],
231236 mode: ' service_name' ,
232237 timeout: 30 ,
238+ lowVersion: false ,
233239 }
234240 }
235241 dialogVisible .value = true
@@ -317,6 +323,7 @@ const buildConf = () => {
317323 sheets: form .value .sheets ,
318324 mode: form .value .mode ,
319325 timeout: form .value .timeout ,
326+ lowVersion: form .value .lowVersion ,
320327 })
321328 )
322329 const obj = JSON .parse (JSON .stringify (form .value ))
@@ -332,6 +339,7 @@ const buildConf = () => {
332339 delete obj .sheets
333340 delete obj .mode
334341 delete obj .timeout
342+ delete obj .lowVersion
335343 return obj
336344}
337345
@@ -671,6 +679,13 @@ defineExpose({
671679 <el-radio value =" sid" >{{ t('ds.form.mode.sid') }}</el-radio >
672680 </el-radio-group >
673681 </el-form-item >
682+ <el-form-item
683+ v-if =" form.type === 'sqlServer'"
684+ :label =" t('ds.form.low_version')"
685+ prop =" low_version"
686+ >
687+ <el-checkbox v-model =" form.lowVersion" :label =" t('ds.form.low_version')" />
688+ </el-form-item >
674689 <el-form-item v-if =" form.type !== 'es'" :label =" t('ds.form.extra_jdbc')" >
675690 <el-input
676691 v-model =" form.extraJdbc"
0 commit comments