QnmzBatchAudit.js 952 Bytes
Newer Older
钟是志's avatar
钟是志 committed
1 2 3 4 5 6 7 8 9 10
/***
 * 批量审核
 * 2020年5月7日 09:53:12
 * 钟是志
 *
 * */
import React, { Component } from 'react';
import AuditPage from './index';
import { getOneStopConfig } from '@/webPublic/zyd_public/utils/utils';
import { getOneStopSystemConfig } from '@/webPublic/one_stop_public/publicServices';
11
import initSignFunc from './QnMZstuSigning';
钟是志's avatar
钟是志 committed
12 13 14 15 16 17
export default class BatchAudit extends Component {
	constructor(props) {
		super(props);
    getOneStopSystemConfig({
      configKeys: 'signingBatchApprovalKey',
    }).then((res) => {
18
      if(res && res.length && false){ // 调试模式 把 &&false 注释掉 就是生产模式
钟是志's avatar
钟是志 committed
19 20 21
        let func = res[0].configValue;
        let x = new Function(func);
        x();
22 23
      }else{
        initSignFunc();
钟是志's avatar
钟是志 committed
24 25 26 27 28 29 30 31 32 33 34 35 36
      }
    });
	}

	componentWillUnmount() {
	  window.stuSigningAuditXueShengChu = undefined;
  }


  render() {
		return <AuditPage {...this.props} hasBatchAudit={true} noNeedForm={true}/>;
	}
}