提交 8ea01805 authored 作者: junjie's avatar junjie

feat(fix):关联视图,去除必须同步的限制

上级 1aee4407
......@@ -132,6 +132,11 @@ export default {
type: Object,
required: false,
default: null
},
showMode: {
type: String,
required: false,
default: null
}
},
data() {
......@@ -283,7 +288,7 @@ export default {
return
}
// check mode=1的数据集是否创建doris表
if (data.mode === 1) {
if (data.mode === 1 && !this.showMode) {
post('/dataset/table/checkDorisTableIsExists/' + data.id, {}, false).then(response => {
if (response.data) {
this.$nextTick(function() {
......
......@@ -92,7 +92,7 @@
width="500"
trigger="click"
>
<dataset-group-selector :custom-type="customType" :mode="1" @getTable="getTable" />
<dataset-group-selector show-mode="union" :custom-type="customType" :mode="1" @getTable="getTable" />
<el-button slot="reference" size="mini" style="width: 100%;">
<p class="table-name-css" :title="targetTable.name || $t('dataset.pls_slc_union_table')">{{ targetTable.name || $t('dataset.pls_slc_union_table') }}</p>
</el-button>
......@@ -193,21 +193,21 @@ export default {
showUnionEdit() {
// 校验同步状态
post('/dataset/table/checkDorisTableIsExists/' + this.table.id, {}, true).then(response => {
if (response.data) {
this.union.sourceTableId = this.table.id
fieldList(this.table.id).then(response => {
this.sourceFieldOption = response.data
})
this.editUnion = true
} else {
this.$message({
type: 'error',
message: this.$t('dataset.invalid_table_check'),
showClose: true
})
}
// post('/dataset/table/checkDorisTableIsExists/' + this.table.id, {}, true).then(response => {
// if (response.data) {
this.union.sourceTableId = this.table.id
fieldList(this.table.id).then(response => {
this.sourceFieldOption = response.data
})
this.editUnion = true
// } else {
// this.$message({
// type: 'error',
// message: this.$t('dataset.invalid_table_check'),
// showClose: true
// })
// }
// })
},
saveUnion() {
// console.log(this.union)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论