refactor(数据集): 数据集导出权限由管理权限控制

This commit is contained in:
wangjiahao 2023-02-09 15:55:32 +08:00
parent 157d66523f
commit 4dc3e3d877

View File

@ -17,14 +17,14 @@
v-if="table.mode === 0" v-if="table.mode === 0"
class="de-tag primary" class="de-tag primary"
>{{ >{{
$t('dataset.direct_connect') $t('dataset.direct_connect')
}}</span> }}</span>
<span <span
v-if="table.mode === 1" v-if="table.mode === 1"
class="de-tag warning" class="de-tag warning"
>{{ >{{
$t('dataset.sync_data') $t('dataset.sync_data')
}}</span> }}</span>
</template> </template>
<span <span
v-if="syncStatus === 'Underway'" v-if="syncStatus === 'Underway'"
@ -33,7 +33,7 @@
> >
{{ $t('dataset.dataset_sync') }} {{ $t('dataset.dataset_sync') }}
</span> </span>
<el-divider direction="vertical" /> <el-divider direction="vertical"/>
<span class="create-by">{{ $t('dataset.create_by') }}</span> <span class="create-by">{{ $t('dataset.create_by') }}</span>
<span class="create-by">:{{ table.creatorName || 'N/A' }}</span> <span class="create-by">:{{ table.creatorName || 'N/A' }}</span>
<el-popover <el-popover
@ -59,6 +59,7 @@
:span="8" :span="8"
> >
<deBtn <deBtn
v-if="hasDataPermission('manage', param.privileges)"
:disabled="!previewDataSuccess" :disabled="!previewDataSuccess"
type="primary" type="primary"
icon="el-icon-download" icon="el-icon-download"
@ -79,11 +80,11 @@
</deBtn> </deBtn>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item command="0"> <el-dropdown-item command="0">
<svg-icon icon-class="icon_add-entry_outlined" /> <svg-icon icon-class="icon_add-entry_outlined"/>
{{ $t('dataset.excel_replace') + $t('chart.chart_data') }} {{ $t('dataset.excel_replace') + $t('chart.chart_data') }}
</el-dropdown-item> </el-dropdown-item>
<el-dropdown-item command="1"> <el-dropdown-item command="1">
<svg-icon icon-class="icon_doc-replace_outlined" /> <svg-icon icon-class="icon_doc-replace_outlined"/>
{{ $t('dataset.excel_add') + $t('chart.chart_data') }} {{ $t('dataset.excel_add') + $t('chart.chart_data') }}
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
@ -220,7 +221,7 @@
> >
<div class="tree-cont"> <div class="tree-cont">
<div class="content"> <div class="content">
<rowAuth ref="rowAuth" /> <rowAuth ref="rowAuth"/>
</div> </div>
</div> </div>
</el-form-item> </el-form-item>
@ -233,7 +234,8 @@
<deBtn <deBtn
secondary secondary
@click="closeExport" @click="closeExport"
>{{ $t('dataset.cancel') }}</deBtn> >{{ $t('dataset.cancel') }}
</deBtn>
<deBtn <deBtn
type="primary" type="primary"
@click="exportDatasetRequest" @click="exportDatasetRequest"
@ -520,12 +522,14 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid var(--deBorderBase, #DCDFE6); border: 1px solid var(--deBorderBase, #DCDFE6);
overflow: auto; overflow: auto;
.content { .content {
height: 100%; height: 100%;
width: 100%; width: 100%;
} }
} }
} }
.icon-class { .icon-class {
color: #6c6c6c; color: #6c6c6c;
} }
@ -546,6 +550,7 @@ export default {
overflow-y: hidden; overflow-y: hidden;
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
.de-dataset-name { .de-dataset-name {
display: flex; display: flex;
font-family: PingFang SC; font-family: PingFang SC;