Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe_web
This commit is contained in:
commit
9c4f15f715
@ -48,6 +48,7 @@ class SE018PaperPage extends React.Component {
|
|||||||
perPaper: [], //每次的答题 wyw 20260306
|
perPaper: [], //每次的答题 wyw 20260306
|
||||||
listPath: [],
|
listPath: [],
|
||||||
indexCour: -1, //课件,
|
indexCour: -1, //课件,
|
||||||
|
STATUS_RECORD: 1,//培训记录状态 2 审阅中 、3 归档 可查看答案是否正确
|
||||||
fileData: [],
|
fileData: [],
|
||||||
fileForm: {
|
fileForm: {
|
||||||
title: "",
|
title: "",
|
||||||
@ -183,6 +184,7 @@ class SE018PaperPage extends React.Component {
|
|||||||
isCourEdit = true //考试 有 课件
|
isCourEdit = true //考试 有 课件
|
||||||
this.state.listPath = ret.listPath
|
this.state.listPath = ret.listPath
|
||||||
}
|
}
|
||||||
|
let STATUS_RECORD = ret.STATUS_RECORD
|
||||||
if (ret.listPath.length > 1) {
|
if (ret.listPath.length > 1) {
|
||||||
this.state.btnText = '下一题'
|
this.state.btnText = '下一题'
|
||||||
}
|
}
|
||||||
@ -215,6 +217,7 @@ class SE018PaperPage extends React.Component {
|
|||||||
isCourEdit: isCourEdit,
|
isCourEdit: isCourEdit,
|
||||||
listPath: this.state.listPath,
|
listPath: this.state.listPath,
|
||||||
btnText: this.state.btnText,
|
btnText: this.state.btnText,
|
||||||
|
STATUS_RECORD: STATUS_RECORD
|
||||||
})
|
})
|
||||||
if (isCourEdit == true) {
|
if (isCourEdit == true) {
|
||||||
this.onSave()
|
this.onSave()
|
||||||
@ -477,7 +480,7 @@ class SE018PaperPage extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
render() {
|
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);
|
const SelUsr = SelUsrID && UserList.find(it => it.ID === SelUsrID);
|
||||||
return <div>
|
return <div>
|
||||||
<div style={{ padding: '10px' }}>
|
<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}>
|
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 1) != 0) ? answer : null}>
|
||||||
{
|
{
|
||||||
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) && (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>
|
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 1) != 0} onChange={evt => this.doOptionChange(it, idx, 1, evt)} >正确</Radio>
|
||||||
</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) && (STATUS_RECORD > 1) ? styles.answer : null}>
|
||||||
{
|
{
|
||||||
it.Nav_Test.TYPE === 1 ?
|
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>
|
<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}>
|
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 2) != 0) ? answer : null}>
|
||||||
{
|
{
|
||||||
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) && (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>
|
<Radio disabled={this.state.readonly} checked={(it.ANSWER & 2) != 0} onChange={evt => this.doOptionChange(it, idx, 2, evt)} >错误</Radio>
|
||||||
</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) && (STATUS_RECORD > 1) ? styles.answer : null}>
|
||||||
{
|
{
|
||||||
it.Nav_Test.TYPE === 1 ?
|
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>
|
<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 &&
|
it.Nav_Test.TYPE !== 0 &&
|
||||||
<tr style={this.state.readonly && ((it.Nav_Test.ANSWER & 4) != 0) ? answer : null}>
|
<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 ?
|
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>
|
<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 &&
|
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}>
|
<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 ?
|
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>
|
<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 &&
|
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}>
|
<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 ?
|
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>
|
<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>
|
||||||
|
|||||||
@ -8,23 +8,23 @@ import moment from 'moment';
|
|||||||
|
|
||||||
//销售订单
|
//销售订单
|
||||||
export default {
|
export default {
|
||||||
btnImport: (params) => {
|
btnImport: ({ getSelectedRecords, dispatch, clearSelectedRowKeys, props }) => {
|
||||||
var selectRows = params.getSelectedRecords()
|
var selectRows = getSelectedRecords()
|
||||||
if (selectRows == null || selectRows.length < 1) {
|
if (selectRows == null || selectRows.length < 1) {
|
||||||
message.success("请勾选法律法规信息后再同步!");
|
message.success("请勾选法律法规信息后再同步!");
|
||||||
}
|
}
|
||||||
var data = {
|
var data = {
|
||||||
ListModel: selectRows
|
ListModel: selectRows
|
||||||
}
|
}
|
||||||
params.dispatch({
|
dispatch({
|
||||||
type: 'app/getDataByPost',
|
type: 'app/getDataByPost',
|
||||||
payload: data,
|
payload: data,
|
||||||
url: "LR/LRLaw/SyncToLocal",
|
url: "LR/LRLaw/SyncToLocal",
|
||||||
onComplete: (ret) => {
|
onComplete: (ret) => {
|
||||||
if (ret) {
|
if (ret) {
|
||||||
message.success("同步成功!");
|
message.success("同步成功!");
|
||||||
params.clearSelectedRowKeys()
|
clearSelectedRowKeys()
|
||||||
params.props.data.close()
|
props.data.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
32
src/files/list/SE074.js
Normal file
32
src/files/list/SE074.js
Normal 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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user