refactor(应用): 复用数据源的应用记录允许编辑

This commit is contained in:
wangjiahao 2023-01-03 12:46:26 +08:00
parent 7fe50fa920
commit 6ca72d0ba8
2 changed files with 29 additions and 23 deletions

View File

@ -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();

View File

@ -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') }}