Merge pull request #4161 from dataease/pr@dev@fixds

fix: 数据源复制不提示修改信息
This commit is contained in:
maninhill 2022-12-21 21:41:25 +08:00 committed by GitHub
commit 6c6449c7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -1000,7 +1000,7 @@ export default {
method = this.formType === 'add' ? appApply : appEdit method = this.formType === 'add' ? appApply : appEdit
} }
if ( if (
this.formType === 'modify' && this.formType === 'modify' && this.$route.query.showModel !== 'copy' &&
this.originConfiguration !== form.configuration this.originConfiguration !== form.configuration
) { ) {
if (repeat && !isAppMarket) { if (repeat && !isAppMarket) {

View File

@ -174,7 +174,10 @@
{{ $t('chart.edit') }} {{ $t('chart.edit') }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="copy" v-show="showView === 'Datasource'"> <el-dropdown-item command="copy" v-show="showView === 'Datasource'">
<i class="el-icon-edit" /> <svg-icon
icon-class="de-copy"
class="de-copy-icon"
/>
{{ $t('commons.copy') }} {{ $t('commons.copy') }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="delete"> <el-dropdown-item command="delete">
@ -899,4 +902,9 @@ export default {
margin-left: 0; margin-left: 0;
} }
} }
.de-copy-icon {
cursor: pointer;
margin-right: 5px;
color: var(--deTextSecondary, #646a73);
}
</style> </style>