forked from github/dataease
refactor(应用): 复用数据源的应用记录允许编辑
This commit is contained in:
parent
7fe50fa920
commit
6ca72d0ba8
@ -1068,10 +1068,11 @@ public class PanelGroupService {
|
||||
datasetGroupHistoryInfo.setName(request.getDatasetGroupName());
|
||||
datasetGroupHistoryInfo.setPid(request.getDatasetGroupPid());
|
||||
datasetGroupMapper.updateByPrimaryKey(datasetGroupHistoryInfo);
|
||||
|
||||
if ("new".equals(request.getDatasourceFrom())) {
|
||||
//数据源变更
|
||||
panelAppTemplateService.editDatasource(request.getDatasourceList());
|
||||
}
|
||||
}
|
||||
|
||||
public void toTop(String panelId) {
|
||||
Long time = System.currentTimeMillis();
|
||||
|
@ -246,7 +246,8 @@
|
||||
v-if="
|
||||
formType === 'add'
|
||||
? true
|
||||
: hasDataPermission('manage', params.privileges)
|
||||
: (hasDataPermission('manage', outerParams.panelPrivileges)
|
||||
||hasDataPermission('manage', outerParams.datasetPrivileges))
|
||||
"
|
||||
@click="validaDatasource"
|
||||
>{{ $t('commons.validate') }}
|
||||
@ -270,7 +271,11 @@
|
||||
>{{ $t('commons.cancel') }}
|
||||
</deBtn>
|
||||
<deBtn
|
||||
v-if="formType === 'add'"
|
||||
v-if="
|
||||
formType === 'add'
|
||||
? true
|
||||
: hasDataPermission('manage', params.privileges)
|
||||
"
|
||||
type="primary"
|
||||
@click="saveAppMarketHistory"
|
||||
>{{ $t('commons.save') }}
|
||||
@ -720,7 +725,7 @@ export default {
|
||||
res.data.apiConfiguration = JSON.parse(Base64.decode(res.data.apiConfigurationStr))
|
||||
}
|
||||
this.params = { ...res.data, showModel }
|
||||
if(showModel === 'copy'){
|
||||
if (showModel === 'copy') {
|
||||
this.params.id = ''
|
||||
}
|
||||
this.$emit('setParams', { ...this.params })
|
||||
|
Loading…
Reference in New Issue
Block a user