소스 검색

模型开发和推理服务,增加文件下载功能,增加下载按钮置灰控制功能

zouzz 2 년 전
부모
커밋
94ccc7c800
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/containers/DownLoad/DownloadTool.jsx

+ 3 - 0
src/containers/DownLoad/DownloadTool.jsx

@@ -577,6 +577,9 @@ class DownloadTool extends React.Component {
                 </Form>
               )}
               <div className="model-buttons">
+                {!this.state.canDownload && (
+                  <span style={{ marginLeft: 40, color: 'red', fontSize: 12 }}>用户权限不够,无法使用导出功能</span>
+                )}
                 <Button
                   onClick={() => this.submit()}
                   type="primary"