forked from github/dataease
fix(数据源): 新建数据源,在配置信息页点击上一步返回到选择数据源,没有记住数据源类型选择状态,进入下一步报错
This commit is contained in:
parent
33725969f7
commit
7fd8b2ee4a
@ -1866,8 +1866,8 @@ defineExpose({
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="label">选项值数量</div>
|
||||
<div class="value">
|
||||
<div class="label" style="margin-top: 10.5px">选项值数量</div>
|
||||
<div class="value" style="margin-top: 10.5px">
|
||||
<el-radio-group v-model="curComponent.resultMode">
|
||||
<el-radio :label="0">默认</el-radio>
|
||||
<el-radio :label="1">全部</el-radio>
|
||||
|
@ -269,7 +269,7 @@ const tips = computed(() => {
|
||||
<div v-else class="question-or-title">
|
||||
{{ tips }}
|
||||
</div>
|
||||
<div v-if="isWelcome" class="is-welcome">这是一句 Copilot 的功能描述</div>
|
||||
<div v-if="isWelcome" class="is-welcome">您可以问我: 2020年各个销售部门销售额占比的饼图</div>
|
||||
<div
|
||||
v-else-if="copilotInfo.msgType === 'api' && copilotInfo.msgStatus === 1"
|
||||
class="chart-type"
|
||||
|
@ -279,6 +279,21 @@ const handleShowFinishPage = ({ id, name, pid }) => {
|
||||
emitter.on('showFinishPage', handleShowFinishPage)
|
||||
|
||||
const prev = () => {
|
||||
if ((currentDsType.value === 'API' && activeApiStep.value === 1) || activeStep.value === 1) {
|
||||
ElMessageBox.confirm('填写的信息将会清空,确定返回上一步吗?', {
|
||||
confirmButtonType: 'primary',
|
||||
type: 'warning',
|
||||
autofocus: false,
|
||||
showClose: false
|
||||
}).then(() => {
|
||||
prevConfirm()
|
||||
})
|
||||
} else {
|
||||
prevConfirm()
|
||||
}
|
||||
}
|
||||
|
||||
const prevConfirm = () => {
|
||||
if (currentDsType.value === 'API' && activeApiStep.value === 2) {
|
||||
activeApiStep.value = 1
|
||||
activeStep.value = 1
|
||||
|
Loading…
Reference in New Issue
Block a user