refactor: sql server support selecting compatibility with lower versions

This commit is contained in:
junjun
2026-02-02 14:07:06 +08:00
committed by Junjun
parent 16617a0336
commit 19c38321c0
6 changed files with 46 additions and 14 deletions
+2 -1
View File
@@ -348,7 +348,8 @@
"failed": "Connect failed"
},
"timeout": "Timeout(second)",
"address": "Address"
"address": "Address",
"low_version": "Compatible with lower versions"
},
"sync_fields": "Sync Fields"
},
+2 -1
View File
@@ -348,7 +348,8 @@
"failed": "연결 실패"
},
"timeout": "쿼리 시간 초과(초)",
"address": "주소"
"address": "주소",
"low_version": "낮은 버전 호환"
},
"sync_fields": "동기화된 테이블 구조"
},
+2 -1
View File
@@ -348,7 +348,8 @@
"failed": "连接失败"
},
"timeout": "查询超时(秒)",
"address": "地址"
"address": "地址",
"low_version": "兼容低版本"
},
"sync_fields": "同步表结构"
},
+15
View File
@@ -116,6 +116,7 @@ const form = ref<any>({
sheets: [],
mode: 'service_name',
timeout: 30,
lowVersion: false,
})
const close = () => {
@@ -159,6 +160,10 @@ const initForm = (item: any, editTable: boolean = false) => {
form.value.sheets = configuration.sheets
form.value.mode = configuration.mode
form.value.timeout = configuration.timeout ? configuration.timeout : 30
form.value.lowVersion =
configuration.lowVersion !== null && configuration.lowVersion !== undefined
? configuration.lowVersion
: true
}
if (editTable) {
@@ -230,6 +235,7 @@ const initForm = (item: any, editTable: boolean = false) => {
sheets: [],
mode: 'service_name',
timeout: 30,
lowVersion: false,
}
}
dialogVisible.value = true
@@ -317,6 +323,7 @@ const buildConf = () => {
sheets: form.value.sheets,
mode: form.value.mode,
timeout: form.value.timeout,
lowVersion: form.value.lowVersion,
})
)
const obj = JSON.parse(JSON.stringify(form.value))
@@ -332,6 +339,7 @@ const buildConf = () => {
delete obj.sheets
delete obj.mode
delete obj.timeout
delete obj.lowVersion
return obj
}
@@ -671,6 +679,13 @@ defineExpose({
<el-radio value="sid">{{ t('ds.form.mode.sid') }}</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-if="form.type === 'sqlServer'"
:label="t('ds.form.low_version')"
prop="low_version"
>
<el-checkbox v-model="form.lowVersion" :label="t('ds.form.low_version')" />
</el-form-item>
<el-form-item v-if="form.type !== 'es'" :label="t('ds.form.extra_jdbc')">
<el-input
v-model="form.extraJdbc"