fix: 修复组件选择数据集时,不选择直接点击确定,出现接口404的情况

main
wu.jian2 2 years ago
parent 9d1a6b5669
commit 97fbc9769a

@ -28,11 +28,7 @@
<data-set-select
:dataset-name="datasetName"
:ds-id="config.dataSource.businessKey"
@getDsId="
dsId => {
getDataSetDetailsById(dsId, 'treeTable');
}
"
@getDsId="dsId => { getDataSetDetailsById(dsId, 'treeTable');}"
/>
</el-form-item>
</div>
@ -713,6 +709,7 @@ export default {
},
//
getDataSetDetailsById (id, type) {
if (id) {
this.config.dataSource.businessKey = id
getDataSetDetails(id).then(res => {
this.fieldsList = res.fields
@ -778,6 +775,7 @@ export default {
}) || []
}
})
}
},
//
dimensionFieldListChange (list) {

@ -139,8 +139,6 @@ export default {
// return
// }
getUpdateChartInfo(params).then((res) => {
console.log('更新组件数据', res)
console.log('更新组件数据', config)
// 数据集脚本前端执行
if (res.executionByFrontend) {
try {

@ -38,7 +38,6 @@ export default {
// 初始化缓存数据集字段
getCacheDataFields ({ commit, dispatch }, { dataSetId }) {
getDataSetDetails(dataSetId).then(data => {
console.log(2, data)
commit('changeCacheDataFields', { dataSetId, data })
commit('changeCacheDataParams', { dataSetId, data })
})

Loading…
Cancel
Save