提交 71abcc37 authored 作者: wangjiahao's avatar wangjiahao

Merge remote-tracking branch 'origin/main' into main

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 ARG IMAGE_TAG
......
...@@ -22,11 +22,12 @@ ...@@ -22,11 +22,12 @@
left join panel_group g on g.id = s.panel_group_id left join panel_group g on g.id = s.panel_group_id
where where
( s.target_id = #{userId} and s.type = 0 ) or ( s.target_id = #{userId} and s.type = 0 ) or
( s.target_id = #{deptId} and s.type = 1 ) or ( s.target_id = #{deptId} and s.type = 2 ) or
s.target_id in ( s.target_id in
<foreach collection="roleIds" item="roleId" open='(' separator=',' close=')'> <foreach collection="roleIds" item="roleId" open='(' separator=',' close=')'>
#{roleId} #{roleId}
</foreach> </foreach>
and s.type = 1 )
<if test="orderByClause == null"> <if test="orderByClause == null">
order by s.create_time desc order by s.create_time desc
</if> </if>
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
width="500" width="500"
trigger="click" trigger="click"
> >
<dataset-group-selector :mode="1" @getTable="getTable" /> <dataset-group-selector :custom-type="customType" :mode="1" @getTable="getTable" />
<el-button slot="reference" size="mini" style="width: 100%;"> <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> <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> </el-button>
...@@ -161,7 +161,8 @@ export default { ...@@ -161,7 +161,8 @@ export default {
editUnion: false, editUnion: false,
sourceFieldOption: [], sourceFieldOption: [],
targetFieldOption: [], targetFieldOption: [],
targetTable: {} targetTable: {},
customType: ['db', 'sql', 'excel']
} }
}, },
watch: { watch: {
...@@ -191,11 +192,22 @@ export default { ...@@ -191,11 +192,22 @@ export default {
}, },
showUnionEdit() { showUnionEdit() {
this.union.sourceTableId = this.table.id // 校验同步状态
fieldList(this.table.id).then(response => { post('/dataset/table/checkDorisTableIsExists/' + this.table.id, {}, true).then(response => {
this.sourceFieldOption = response.data 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() { saveUnion() {
// console.log(this.union) // console.log(this.union)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论