Merge pull request #412 from dataease/pr@dev@feat_数据集字段支持公式运算等(UI和CRUD)

feat(数据集): 数据集字段支持公式运算等操作(UI和CRUD)
This commit is contained in:
XiaJunjie2020 2021-07-29 16:00:57 +08:00 committed by GitHub
commit 46f56cc576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@
</el-row>
<el-divider />
<el-tabs v-model="tabActive" @tab-click="initTable(param.id)">
<el-tabs v-model="tabActive" @tab-click="tabClick">
<el-tab-pane :label="$t('dataset.data_preview')" name="dataPreview">
<tab-data-preview :param="param" :table="table" :fields="fields" :data="data" :page="page" :form="tableViewRowForm" @reSearch="reSearch" />
</el-tab-pane>
@ -62,7 +62,7 @@
</template>
<script>
import { getTable, post } from '@/api/dataset/dataset'
import { post } from '@/api/dataset/dataset'
import TabDataPreview from './TabDataPreview'
import UpdateInfo from './UpdateInfo'
import DatasetChartDetail from '../common/DatasetChartDetail'
@ -207,6 +207,12 @@ export default {
pageSize: 100,
show: 1000
}
},
tabClick() {
if (this.tabActive === 'dataPreview') {
this.initTable(this.param.id)
}
}
}
}