diff --git a/Dockerfile b/Dockerfile index 592ef71ff5..668004676e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.cn-qingdao.aliyuncs.com/fit2cloud3/fabric8-java-alpine-openjdk8-jre +FROM registry.cn-qingdao.aliyuncs.com/dataease/fabric8-java-alpine-openjdk8-jre ARG IMAGE_TAG diff --git a/backend/src/main/java/io/dataease/base/mapper/ext/ExtPanelShareMapper.xml b/backend/src/main/java/io/dataease/base/mapper/ext/ExtPanelShareMapper.xml index 6f17c63e55..e880756b87 100644 --- a/backend/src/main/java/io/dataease/base/mapper/ext/ExtPanelShareMapper.xml +++ b/backend/src/main/java/io/dataease/base/mapper/ext/ExtPanelShareMapper.xml @@ -22,11 +22,12 @@ left join panel_group g on g.id = s.panel_group_id where ( s.target_id = #{userId} and s.type = 0 ) or - ( s.target_id = #{deptId} and s.type = 1 ) or - s.target_id in + ( s.target_id = #{deptId} and s.type = 2 ) or + ( s.target_id in #{roleId} + and s.type = 1 ) order by s.create_time desc diff --git a/frontend/src/views/dataset/data/UnionView.vue b/frontend/src/views/dataset/data/UnionView.vue index 8d63b7a93e..bf0d804456 100644 --- a/frontend/src/views/dataset/data/UnionView.vue +++ b/frontend/src/views/dataset/data/UnionView.vue @@ -92,7 +92,7 @@ width="500" trigger="click" > - + {{ targetTable.name || $t('dataset.pls_slc_union_table') }} @@ -161,7 +161,8 @@ export default { editUnion: false, sourceFieldOption: [], targetFieldOption: [], - targetTable: {} + targetTable: {}, + customType: ['db', 'sql', 'excel'] } }, watch: { @@ -191,11 +192,22 @@ export default { }, showUnionEdit() { - this.union.sourceTableId = this.table.id - fieldList(this.table.id).then(response => { - this.sourceFieldOption = response.data + // 校验同步状态 + 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 + }) + } }) - this.editUnion = true }, saveUnion() { // console.log(this.union)
{{ targetTable.name || $t('dataset.pls_slc_union_table') }}