|
@@ -20,6 +20,8 @@ import './index.less'
|
|
|
import $ from "jquery";
|
|
|
import OldInforProject from "../oldInforProject";
|
|
|
|
|
|
+const confirm = Modal.confirm
|
|
|
+
|
|
|
class CheckProject extends Component {
|
|
|
constructor(props) {
|
|
|
super(props)
|
|
@@ -1021,6 +1023,39 @@ class CheckProject extends Component {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
+ //超级管理员
|
|
|
+ superAdminReject() {
|
|
|
+ let _this = this;
|
|
|
+ confirm({
|
|
|
+ title: '提醒',
|
|
|
+ content: '确定要驳回吗?',
|
|
|
+ onOk() {
|
|
|
+ _this.setState({
|
|
|
+ loading: true,
|
|
|
+ })
|
|
|
+ $.ajax({
|
|
|
+ url: globalConfig.context + '/api/admin/outsourceOrg/superAdminReject',
|
|
|
+ method: 'post',
|
|
|
+ data: {
|
|
|
+ id: _this.props.mid,
|
|
|
+ },
|
|
|
+ }).done(
|
|
|
+ function (data) {
|
|
|
+ _this.setState({
|
|
|
+ loading: false,
|
|
|
+ })
|
|
|
+ if (!data.error.length) {
|
|
|
+ message.success('驳回成功!')
|
|
|
+ _this.props.onRefresh()
|
|
|
+ } else {
|
|
|
+ message.warning(data.error[0].message)
|
|
|
+ }
|
|
|
+ }.bind(_this)
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
render() {
|
|
|
return (
|
|
|
<div>
|
|
@@ -1284,6 +1319,32 @@ class CheckProject extends Component {
|
|
|
/> : <div/>}
|
|
|
</div>
|
|
|
}
|
|
|
+ {/*管理员在审核通过的情况下才有此操作*/}
|
|
|
+ {
|
|
|
+ window.adminData.isSuperAdmin && this.props.status === 1 ? <div style={{
|
|
|
+ flex:1,
|
|
|
+ marginTop:'30px',
|
|
|
+ }}>
|
|
|
+ <Button
|
|
|
+ onClick={()=>{
|
|
|
+ this.superAdminReject();
|
|
|
+ }}
|
|
|
+ style={{
|
|
|
+ color: '#ffffff',
|
|
|
+ background: '#f00',
|
|
|
+ border: 'none',
|
|
|
+ width: '30%',
|
|
|
+ height: '40px',
|
|
|
+ display: 'flex',
|
|
|
+ fontSize: '15px',
|
|
|
+ justifyContent: 'center',
|
|
|
+ alignItems: 'center',
|
|
|
+ margin: '0 auto',
|
|
|
+ }}>
|
|
|
+ 驳回
|
|
|
+ </Button>
|
|
|
+ </div> : null
|
|
|
+ }
|
|
|
</div>
|
|
|
)
|
|
|
}
|