forked from github/dataease
feat(X-Pack): 数据填报前端根据权限矩阵配置进行展示
This commit is contained in:
parent
4f4dead823
commit
ed698ea93b
@ -1,5 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="view-table">
|
<div
|
||||||
|
v-if="hasDataPermission('use', param.privileges)"
|
||||||
|
class="view-table"
|
||||||
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col
|
<el-col
|
||||||
class="de-dataset-name"
|
class="de-dataset-name"
|
||||||
@ -87,6 +90,7 @@
|
|||||||
name="record"
|
name="record"
|
||||||
/>
|
/>
|
||||||
<el-tab-pane
|
<el-tab-pane
|
||||||
|
v-if="hasDataPermission('grant', param.privileges)"
|
||||||
:label="$t('data_fill.form.task_manage')"
|
:label="$t('data_fill.form.task_manage')"
|
||||||
:lazy="true"
|
:lazy="true"
|
||||||
name="task"
|
name="task"
|
||||||
@ -108,11 +112,13 @@
|
|||||||
@click="addData"
|
@click="addData"
|
||||||
>{{ $t('data_fill.data.add_data') }}</el-button>
|
>{{ $t('data_fill.data.add_data') }}</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="hasDataPermission('write', param.privileges)"
|
||||||
icon="el-icon-download"
|
icon="el-icon-download"
|
||||||
size="small"
|
size="small"
|
||||||
@click="downloadTemplate"
|
@click="downloadTemplate"
|
||||||
>{{ $t('data_fill.data.download_template') }}</el-button>
|
>{{ $t('data_fill.data.download_template') }}</el-button>
|
||||||
<el-upload
|
<el-upload
|
||||||
|
v-if="hasDataPermission('write', param.privileges)"
|
||||||
:action="`${baseUrl}dataFilling/form/${param.id}/excel/upload`"
|
:action="`${baseUrl}dataFilling/form/${param.id}/excel/upload`"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
@ -213,6 +219,7 @@
|
|||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="hasDataPermission('write', param.privileges)"
|
||||||
type="text"
|
type="text"
|
||||||
@click="updateRow(scope.row.data)"
|
@click="updateRow(scope.row.data)"
|
||||||
>
|
>
|
||||||
@ -225,6 +232,7 @@
|
|||||||
{{ $t('data_fill.form.show') }}
|
{{ $t('data_fill.form.show') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="hasDataPermission('write', param.privileges)"
|
||||||
type="text"
|
type="text"
|
||||||
@click="deleteRow(scope.row.data[paginationConfig.key])"
|
@click="deleteRow(scope.row.data[paginationConfig.key])"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user