fix: 数据集编辑后空白

This commit is contained in:
junjie 2021-07-12 19:27:34 +08:00
parent 381febe4cb
commit 4f9abf5af6
4 changed files with 9 additions and 5 deletions

View File

@ -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)";

View File

@ -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: '' })
}

View File

@ -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() {

View File

@ -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: '' })
}