Unverified 提交 afcc88f4 authored 作者: XiaJunjie2020's avatar XiaJunjie2020 提交者: GitHub

Merge pull request #219 from dataease/pr@dev@fix_数据集编辑后空白

fix: 数据集编辑后空白
......@@ -24,7 +24,7 @@ public class DorisConstants extends SQLConstants {
public static final String DEFAULT_DATE_FORMAT = "%Y-%m-%d %H:%i:%S";
public static final String DEFAULT_INT_FORMAT = "DECIMAL(20,0)";
public static final String DEFAULT_INT_FORMAT = "BIGINT";
public static final String DEFAULT_FLOAT_FORMAT = "DECIMAL(20,2)";
......
......@@ -233,7 +233,7 @@ export default {
cancel() {
// this.dataReset()
if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: this.param.tableId })
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }})
} else {
this.$emit('switchComponent', { name: '' })
}
......
......@@ -232,7 +232,11 @@ export default {
cancel() {
this.dataReset()
// this.$router.push('/dataset/home')
this.$emit('switchComponent', { name: '' })
if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }})
} else {
this.$emit('switchComponent', { name: '' })
}
},
dataReset() {
......
......@@ -37,7 +37,7 @@
</el-select>
</el-form-item>
<el-form-item class="form-item" v-if="mode === '1'">
<el-form-item v-if="mode === '1'" class="form-item">
<el-select v-model="syncType" filterable :placeholder="$t('dataset.connect_mode')" size="mini">
<el-option :label="$t('dataset.sync_now')" value="sync_now" />
<el-option :label="$t('dataset.sync_latter')" value="sync_latter" />
......@@ -283,7 +283,7 @@ export default {
cancel() {
// this.dataReset()
if (this.param.tableId) {
this.$emit('switchComponent', { name: 'ViewTable', param: this.param.tableId })
this.$emit('switchComponent', { name: 'ViewTable', param: { id: this.param.tableId }})
} else {
this.$emit('switchComponent', { name: '' })
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论