培训教育 1、课件显示
考试待办dataID修改 在线考试获取试题修改
This commit is contained in:
parent
d0b3903772
commit
2b5e1bdd12
@ -1,7 +1,7 @@
|
|||||||
import { message } from "antd/lib/index";
|
import { message } from "antd/lib/index";
|
||||||
import { Button, Popconfirm, Row, Col, Checkbox, Radio, Form, Input, Select, Table, Upload, Icon, PageHeader, Modal } from 'antd';
|
import { Button, Popconfirm, Row, Col, Checkbox, Radio, Form, Input, Select, Table, Upload, Icon, PageHeader, Modal } from 'antd';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { initFilter, extendRule, extendInclude, showUserSign, showFiles, GetFileModel } from "../../../utils/common";
|
import { initFilter, extendRule, extendInclude, showUserSign, showFiles, GetFileModel, getArryPropShow } from "../../../utils/common";
|
||||||
import ReactToPrint from "react-to-print";
|
import ReactToPrint from "react-to-print";
|
||||||
import styles from '../../CustomPages/HI/StepForm.css';
|
import styles from '../../CustomPages/HI/StepForm.css';
|
||||||
import XLSX from 'xlsx';
|
import XLSX from 'xlsx';
|
||||||
@ -58,6 +58,7 @@ class SE018EditPage extends React.Component {
|
|||||||
extendInclude(json, 'Nav_Notify.Nav_LaunchDepartment');
|
extendInclude(json, 'Nav_Notify.Nav_LaunchDepartment');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_LaunchUser');
|
extendInclude(json, 'Nav_Notify.Nav_LaunchUser');
|
||||||
extendInclude(json, 'Nav_Notify.Nav_TrainType');
|
extendInclude(json, 'Nav_Notify.Nav_TrainType');
|
||||||
|
extendInclude(json, 'Nav_Notify.Nav_ListCour.Nav_Cour');
|
||||||
// extendInclude(json, 'Nav_Notify.Nav_TrainCheckType');
|
// extendInclude(json, 'Nav_Notify.Nav_TrainCheckType');
|
||||||
extendInclude(json, 'Nav_Users.Nav_User');
|
extendInclude(json, 'Nav_Users.Nav_User');
|
||||||
extendInclude(json, 'Nav_Files.Nav_ImgFile');
|
extendInclude(json, 'Nav_Files.Nav_ImgFile');
|
||||||
@ -283,6 +284,12 @@ class SE018EditPage extends React.Component {
|
|||||||
}).join('、')
|
}).join('、')
|
||||||
}</td>
|
}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>培训课件</td>
|
||||||
|
<td colSpan={20} rowSpan={1} >{
|
||||||
|
getArryPropShow(data?.Nav_Notify?.Nav_ListCour, "Nav_Cour.NAME")
|
||||||
|
}</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={4} rowSpan={1} className={styles.fontBold}>请假人员</td>
|
<td colSpan={4} rowSpan={1} className={styles.fontBold}>请假人员</td>
|
||||||
<td colSpan={20} rowSpan={1} >
|
<td colSpan={20} rowSpan={1} >
|
||||||
|
|||||||
@ -62,7 +62,8 @@ class SE018PaperPage extends React.Component {
|
|||||||
let json = initFilter(this.props.login.OrgId);
|
let json = initFilter(this.props.login.OrgId);
|
||||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
json.OrgType = 2;
|
json.OrgType = 2;
|
||||||
extendRule(json, 'RECORD_ID', 1, this.props.data.id);
|
// extendRule(json, 'RECORD_ID', 1, this.props.data.id);
|
||||||
|
extendRule(json, 'TEXT_ID', 1, this.props.data.id);
|
||||||
extendInclude(json, 'Nav_User');
|
extendInclude(json, 'Nav_User');
|
||||||
this.state.loading = true;
|
this.state.loading = true;
|
||||||
this.props.dispatch({
|
this.props.dispatch({
|
||||||
@ -111,7 +112,8 @@ class SE018PaperPage extends React.Component {
|
|||||||
let json = initFilter(this.props.login.OrgId, '', 'Nav_Test.TYPE', 1);
|
let json = initFilter(this.props.login.OrgId, '', 'Nav_Test.TYPE', 1);
|
||||||
json.Parameter22 = this.props.data.ORG_ID_HV;
|
json.Parameter22 = this.props.data.ORG_ID_HV;
|
||||||
json.OrgType = 2;
|
json.OrgType = 2;
|
||||||
extendRule(json, 'RECORD_ID', 1, this.props.data.id);
|
// extendRule(json, 'RECORD_ID', 1, this.props.data.id);
|
||||||
|
extendRule(json, 'TEXT_ID', 1, this.props.data.id);
|
||||||
extendRule(json, 'USER_ID', 1, SelUsrID);
|
extendRule(json, 'USER_ID', 1, SelUsrID);
|
||||||
extendInclude(json, 'Nav_Record');
|
extendInclude(json, 'Nav_Record');
|
||||||
extendInclude(json, 'Nav_Record.Nav_Notify');
|
extendInclude(json, 'Nav_Record.Nav_Notify');
|
||||||
@ -440,8 +442,9 @@ class SE018PaperPage extends React.Component {
|
|||||||
{
|
{
|
||||||
it.Nav_Test.TYPE === 0 ?
|
it.Nav_Test.TYPE === 0 ?
|
||||||
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 1) != 0) ? styles.answer : null}>
|
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 1) != 0) ? styles.answer : null}>
|
||||||
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 1) != 0} onChange={evt => this.doOptionChange(it, idx, 1, evt)} />
|
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 1) != 0} onChange={evt => this.doOptionChange(it, idx, 1, evt)} >正确</Radio>
|
||||||
<span>正确</span>
|
{/* <Radio disabled={this.state.readonly} checked={(it.ANSWER & 1) != 0} onChange={evt => this.doOptionChange(it, idx, 1, evt)} />
|
||||||
|
<span>正确</span> */}
|
||||||
</td>
|
</td>
|
||||||
:
|
:
|
||||||
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 1) != 0) ? styles.answer : null}>
|
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 1) != 0) ? styles.answer : null}>
|
||||||
@ -460,8 +463,9 @@ class SE018PaperPage extends React.Component {
|
|||||||
{
|
{
|
||||||
it.Nav_Test.TYPE === 0 ?
|
it.Nav_Test.TYPE === 0 ?
|
||||||
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 2) != 0) ? styles.answer : null}>
|
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 2) != 0) ? styles.answer : null}>
|
||||||
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 2) != 0} onChange={evt => this.doOptionChange(it, idx, 2, evt)} />
|
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 2) != 0} onChange={evt => this.doOptionChange(it, idx, 2, evt)} >错误</Radio>
|
||||||
<span>错误</span>
|
{/* <Radio disabled={this.state.readonly} checked={(it.ANSWER & 2) != 0} onChange={evt => this.doOptionChange(it, idx, 2, evt)} />
|
||||||
|
<span>错误</span> */}
|
||||||
</td>
|
</td>
|
||||||
:
|
:
|
||||||
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 2) != 0) ? styles.answer : null}>
|
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 2) != 0) ? styles.answer : null}>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user