Compare commits

...

3 Commits

Author SHA1 Message Date
wyw
50dd70aa9c Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe_web 2026-02-02 16:21:59 +08:00
wyw
eb456ab4e0 213 2026-02-02 16:21:52 +08:00
wyw
2b5e1bdd12 培训教育 1、课件显示
考试待办dataID修改  在线考试获取试题修改
2026-02-02 16:21:36 +08:00
3 changed files with 30 additions and 8 deletions

View File

@ -1,7 +1,7 @@
import { message } from "antd/lib/index"; import { message } from "antd/lib/index";
import { Button, Modal, Row, Col, Form, Input, Select, Table } from 'antd'; import { Button, Modal, Row, Col, Form, Input, Select, Table } from 'antd';
import React from 'react'; import React from 'react';
import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, showFiles, GetFileModel } from "../../../utils/common"; import { initFilter, extendRule, extendInclude, setDataFieldValue, getArryPropShow, showFiles, GetFileModel } 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';
@ -52,6 +52,7 @@ class SE013ShowPrint extends React.Component {
extendInclude(json, 'Nav_TrainUserList'); extendInclude(json, 'Nav_TrainUserList');
extendInclude(json, 'Nav_TrainUserList.Nav_User'); extendInclude(json, 'Nav_TrainUserList.Nav_User');
extendInclude(json, 'Nav_Files.Nav_ImgFile'); extendInclude(json, 'Nav_Files.Nav_ImgFile');
extendInclude(json, 'Nav_ListCour.Nav_Cour');
json.IgnoreDataRule = true; json.IgnoreDataRule = true;
this.props.dispatch({ this.props.dispatch({
type: 'app/getDataByPost', type: 'app/getDataByPost',
@ -238,6 +239,16 @@ class SE013ShowPrint extends React.Component {
} }
</td> </td>
</tr> </tr>
<tr>
<td colSpan={4} rowSpan={1} className={styles.fontBold}>课件</td>
<td colSpan={20} rowSpan={1}>{
getArryPropShow(data.Nav_ListCour, "Nav_Cour.NAME")
// data.Nav_ListCour ? data.Nav_ListCour.map(t => {
// return <li>{t.Nav_Cour.NAME}</li>
// }) : ''
}
</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} >{data.TRAIN_PLAN}</td> <td colSpan={20} rowSpan={1} >{data.TRAIN_PLAN}</td>

View File

@ -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} >

View File

@ -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}>