fix: 数据集更新信息 加权限 数据源bug修复

This commit is contained in:
dataeaseShu 2022-11-02 15:35:23 +08:00
parent 6e95a05ccd
commit c25060ff2b
2 changed files with 4 additions and 2 deletions

View File

@ -3,10 +3,12 @@
<el-row style="margin: 6px 0 16px 0">
<el-col :span="12">
<deBtn
v-if="hasDataPermission('manage', param.privileges)"
secondary
icon="el-icon-plus"
@click="() => addTask()"
>{{ $t('dataset.add_task') }}</deBtn>
&nbsp;
</el-col>
<el-col
style="text-align: right"
@ -926,7 +928,7 @@ export default {
getIncrementalConfig() {
post('/dataset/table/incrementalConfig', { tableId: this.table.id }).then(response => {
this.incrementalConfig = response.data
if (this.incrementalConfig.incrementalAdd.length === 0 && this.incrementalConfig.incrementalDelete.length === 0) {
if (this.incrementalConfig?.incrementalAdd?.length === 0 && this.incrementalConfig?.incrementalDelete?.length === 0) {
this.incrementalUpdateType = 'incrementalAdd'
this.sql = ''
return

View File

@ -692,7 +692,7 @@ export default {
return newArr
},
setType() {
this.form.type = this.params.type
this.$set(this.form, 'type', this.params.type)
this.form.configuration = {
initialPoolSize: 5,
extraParams: '',