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

This commit is contained in:
junjie 2021-06-16 19:25:33 +08:00
parent 1aee440751
commit 8ea018059d
2 changed files with 21 additions and 16 deletions

View File

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

View File

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