Commit 0a1985b0 by zhaochengxiang

模型配置权限

parent 3638feac
......@@ -105,10 +105,14 @@ const WordTemplate = (props) => {
},
]}
>
<Upload {...uploadProps}>
<Button icon={<UploadOutlined />}>
<Upload disabled={(permissions||[]).findIndex(item=>item==='选择文件上传') === -1} {...uploadProps}>
<PermissionButton
icon={<UploadOutlined />}
permissionKey='选择文件上传'
permissions={permissions}
>
选择文件上传
</Button>
</PermissionButton>
</Upload>
</Form.Item>
</Col>
......@@ -117,7 +121,7 @@ const WordTemplate = (props) => {
className='ml-3'
icon={<DownloadOutlined />}
onClick={ downloadTemplate }
permissionKey='编辑'
permissionKey='模板下载'
permissions={permissions}
>
模版下载
......@@ -130,7 +134,7 @@ const WordTemplate = (props) => {
type="primary"
htmlType="submit"
loading={confirmLoading}
permissionKey='新增'
permissionKey='选择文件上传'
permissions={permissions}
>
确定
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment