|
@@ -21,6 +21,7 @@ import { RouteComponentProps } from 'react-router'
|
|
|
import { apiGetQualityDetail, apiResfulQualityAudit } from './api'
|
|
|
import AuditModal from './components/Modal'
|
|
|
import styles from './index.module.scss'
|
|
|
+import Authorization from '@/components/Authorization'
|
|
|
const { TextArea } = Input
|
|
|
interface iModalObj {
|
|
|
ossModal: boolean
|
|
@@ -236,9 +237,11 @@ const Detail: React.FC<RouteComponentProps> = props => {
|
|
|
if (!status) {
|
|
|
return (
|
|
|
<div className="pi-flex-row pi-align-center">
|
|
|
- <ZhCloseButton size="small" onClick={() => btnClick('delete')}>
|
|
|
- 删除巡检
|
|
|
- </ZhCloseButton>
|
|
|
+ <Authorization type="quality" auth="delete">
|
|
|
+ <ZhCloseButton size="small" onClick={() => btnClick('delete')}>
|
|
|
+ 删除巡检
|
|
|
+ </ZhCloseButton>
|
|
|
+ </Authorization>
|
|
|
<ZhSubmitButton size="small" className="pi-mg-left-5" onClick={() => btnClick('start')}>
|
|
|
提交审批
|
|
|
</ZhSubmitButton>
|