mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 03:22:56 +08:00
fix(数据集): 使用自定义SQL创建数据集失败
This commit is contained in:
parent
7af802f78b
commit
76bf7991a4
@ -224,10 +224,17 @@ const handleSearchVariableApi = async () => {
|
||||
fieldFormList.value = res?.data || []
|
||||
})
|
||||
}
|
||||
const showSystemParams = ref(true)
|
||||
onMounted(async () => {
|
||||
dsChange(sqlNode.value.datasourceId)
|
||||
if (!desktop) {
|
||||
await handleSearchVariableApi()
|
||||
try {
|
||||
await handleSearchVariableApi()
|
||||
} catch (e) {
|
||||
if (e) {
|
||||
showSystemParams.value = false
|
||||
}
|
||||
}
|
||||
}
|
||||
sql = Base64.decode(sqlNode.value.sql)
|
||||
codeCom.value = myCm.value.codeComInit(setNameIdTrans('id', 'name', sql), true)
|
||||
@ -549,7 +556,7 @@ const mousedownDrag = () => {
|
||||
</template>
|
||||
{{ t('data_set.parameter_settings') }}
|
||||
</el-button>
|
||||
<el-button v-if="!desktop" @click="sysParams" class="system-text_bg" text>
|
||||
<el-button v-if="!desktop && showSystemParams" @click="sysParams" class="system-text_bg" text>
|
||||
<template #icon>
|
||||
<el-icon>
|
||||
<Icon><icon_preferences_outlined class="svg-icon" /></Icon>
|
||||
|
Loading…
Reference in New Issue
Block a user