This commit is contained in:
何美荣 2026-03-13 16:59:55 +08:00
commit 9c4f15f715
3 changed files with 48 additions and 13 deletions

View File

@ -48,6 +48,7 @@ class SE018PaperPage extends React.Component {
perPaper: [], //每次的答题 wyw 20260306
listPath: [],
indexCour: -1, //课件,
STATUS_RECORD: 1,//培训记录状态 2 审阅中 、3 归档 可查看答案是否正确
fileData: [],
fileForm: {
title: "",
@ -183,6 +184,7 @@ class SE018PaperPage extends React.Component {
isCourEdit = true //考试 有 课件
this.state.listPath = ret.listPath
}
let STATUS_RECORD = ret.STATUS_RECORD
if (ret.listPath.length > 1) {
this.state.btnText = '下一题'
}
@ -215,6 +217,7 @@ class SE018PaperPage extends React.Component {
isCourEdit: isCourEdit,
listPath: this.state.listPath,
btnText: this.state.btnText,
STATUS_RECORD: STATUS_RECORD
})
if (isCourEdit == true) {
this.onSave()
@ -477,7 +480,7 @@ class SE018PaperPage extends React.Component {
}
}
render() {
const { record, perPaper, SelUsrID, UserList, notify, btnText, filepath, isViedo, isCourEdit, isVideoEnd, filepathf } = this.state;
const { record, perPaper, SelUsrID, UserList, notify, btnText, filepath, isViedo, isCourEdit, isVideoEnd, filepathf, STATUS_RECORD } = this.state;
const SelUsr = SelUsrID && UserList.find(it => it.ID === SelUsrID);
return <div>
<div style={{ padding: '10px' }}>
@ -611,11 +614,11 @@ class SE018PaperPage extends React.Component {
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 1) != 0) ? answer : null}>
{
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) && (STATUS_RECORD > 1) ? styles.answer : null}>
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 1) != 0} onChange={evt => this.doOptionChange(it, idx, 1, evt)} >正确</Radio>
</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) && (STATUS_RECORD > 1) ? styles.answer : null}>
{
it.Nav_Test.TYPE === 1 ?
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 1) != 0} onChange={evt => this.doOptionChange(it, idx, 1, evt)} >A.{it.Nav_Test.OPTION_A}</Radio>
@ -628,11 +631,11 @@ class SE018PaperPage extends React.Component {
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 2) != 0) ? answer : null}>
{
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) && (STATUS_RECORD > 1) ? styles.answer : null}>
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 2) != 0} onChange={evt => this.doOptionChange(it, idx, 2, evt)} >错误</Radio>
</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) && (STATUS_RECORD > 1) ? styles.answer : null}>
{
it.Nav_Test.TYPE === 1 ?
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 2) != 0} onChange={evt => this.doOptionChange(it, idx, 2, evt)} >B.{it.Nav_Test.OPTION_B}</Radio>
@ -645,7 +648,7 @@ class SE018PaperPage extends React.Component {
{
it.Nav_Test.TYPE !== 0 &&
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 4) != 0) ? answer : null}>
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 4) != 0) ? styles.answer : null}>
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 4) != 0) && (STATUS_RECORD > 1) ? styles.answer : null}>
{
it.Nav_Test.TYPE === 1 ?
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 4) != 0} onChange={evt => this.doOptionChange(it, idx, 4, evt)} >C.{it.Nav_Test.OPTION_C}</Radio>
@ -658,7 +661,7 @@ class SE018PaperPage extends React.Component {
{
it.Nav_Test.TYPE !== 0 && it.Nav_Test.OPTION_D != "" && it.Nav_Test.OPTION_D != undefined &&
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 8) != 0) ? answer : null}>
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 8) != 0) ? styles.answer : null}>
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 8) != 0) && (STATUS_RECORD > 1) ? styles.answer : null}>
{
it.Nav_Test.TYPE === 1 ?
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 8) != 0} onChange={evt => this.doOptionChange(it, idx, 8, evt)} >D.{it.Nav_Test.OPTION_D}</Radio>
@ -671,7 +674,7 @@ class SE018PaperPage extends React.Component {
{
it.Nav_Test.TYPE !== 0 && it.Nav_Test.OPTION_E != "" && it.Nav_Test.OPTION_E != undefined &&
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 16) != 0) ? answer : null}>
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 16) != 0) ? styles.answer : null}>
<td colSpan={24} rowSpan={1} className={this.state.readonly && ((it.Nav_Test.ANSWER & 16) != 0) && (STATUS_RECORD > 1) ? styles.answer : null}>
{
it.Nav_Test.TYPE === 1 ?
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 16) != 0} onChange={evt => this.doOptionChange(it, idx, 16, evt)} >E.{it.Nav_Test.OPTION_E}</Radio>

View File

@ -8,23 +8,23 @@ import moment from 'moment';
//销售订单
export default {
btnImport: (params) => {
var selectRows = params.getSelectedRecords()
btnImport: ({ getSelectedRecords, dispatch, clearSelectedRowKeys, props }) => {
var selectRows = getSelectedRecords()
if (selectRows == null || selectRows.length < 1) {
message.success("请勾选法律法规信息后再同步!");
}
var data = {
ListModel: selectRows
}
params.dispatch({
dispatch({
type: 'app/getDataByPost',
payload: data,
url: "LR/LRLaw/SyncToLocal",
onComplete: (ret) => {
if (ret) {
message.success("同步成功!");
params.clearSelectedRowKeys()
params.props.data.close()
clearSelectedRowKeys()
props.data.close()
}
}
});

32
src/files/list/SE074.js Normal file
View File

@ -0,0 +1,32 @@
import React from 'react';
import FormPage from '../../components/FormPage'
import { ConfirmButton } from '@woowalker/feui'
import { initQueryFilter } from "../../utils/common";
import { message } from "antd/lib/index";
import moment from 'moment';
//销售订单
export default {
btnImport: ({ getSelectedRecords, dispatch, clearSelectedRowKeys, props }) => {
var selectRows = getSelectedRecords()
if (selectRows == null || selectRows.length < 1) {
message.success("请勾选法律法规信息后再同步!");
}
var data = {
ListModel: selectRows
}
dispatch({
type: 'app/getDataByPost',
payload: data,
url: "SE/SETest/SyncToLocal",
onComplete: (ret) => {
if (ret) {
message.success("同步成功!");
clearSelectedRowKeys()
props.data.close()
}
}
});
},
}