diff --git a/src/components/CustomPages/SE/SE018PaperPage.js b/src/components/CustomPages/SE/SE018PaperPage.js index 68bba33..555312d 100644 --- a/src/components/CustomPages/SE/SE018PaperPage.js +++ b/src/components/CustomPages/SE/SE018PaperPage.js @@ -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
@@ -611,11 +614,11 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE === 0 ? - + 1) ? styles.answer : null}> this.doOptionChange(it, idx, 1, evt)} >正确 : - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 1, evt)} >A.{it.Nav_Test.OPTION_A} @@ -628,11 +631,11 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE === 0 ? - + 1) ? styles.answer : null}> this.doOptionChange(it, idx, 2, evt)} >错误 : - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 2, evt)} >B.{it.Nav_Test.OPTION_B} @@ -645,7 +648,7 @@ class SE018PaperPage extends React.Component { { it.Nav_Test.TYPE !== 0 && - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 4, evt)} >C.{it.Nav_Test.OPTION_C} @@ -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 && - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 8, evt)} >D.{it.Nav_Test.OPTION_D} @@ -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 && - + 1) ? styles.answer : null}> { it.Nav_Test.TYPE === 1 ? this.doOptionChange(it, idx, 16, evt)} >E.{it.Nav_Test.OPTION_E} diff --git a/src/files/list/LR026.js b/src/files/list/LR026.js index b7f48d9..ef5249c 100644 --- a/src/files/list/LR026.js +++ b/src/files/list/LR026.js @@ -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() } } }); diff --git a/src/files/list/SE074.js b/src/files/list/SE074.js new file mode 100644 index 0000000..d9dacf7 --- /dev/null +++ b/src/files/list/SE074.js @@ -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() + } + } + }); + }, +}