文件查看

This commit is contained in:
wyw 2026-03-09 16:48:10 +08:00
parent c7abdfb37d
commit 4449771d36

View File

@ -1,7 +1,7 @@
import { message } from "antd/lib/index";
import { Button, Popconfirm, Row, Col, Checkbox, Radio, Form, Input, Select, Table, Upload, Icon, PageHeader, Modal, Spin } from 'antd';
import React from 'react';
import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, initQueryFilter, showFiles, getFileShow } from "../../../utils/common";
import { initFilter, extendRule, extendInclude, setDataFieldValue, guid, initQueryFilter, GetFileModel, showFiles, getFileShow } from "../../../utils/common";
import ReactToPrint from "react-to-print";
import styles from '../../CustomPages/HI/StepForm.css';
import SEstyles from './SE.css';
@ -9,6 +9,7 @@ import XLSX from 'xlsx';
import { connect } from 'dva';
import moment from 'moment';
import configc from "../../../config.js";
import FormPage from '../../../components/FormPage'
const Option = Select.Option;
const answer = {
@ -46,7 +47,12 @@ class SE018PaperPage extends React.Component {
btnText: '提交问卷', //'下一题'
perPaper: [], //每次的答题 wyw 20260306
listPath: [],
indexCour: -1 //课件
indexCour: -1, //课件,
fileData: [],
fileForm: {
title: "",
visible: false,
},
};
};
componentDidMount() {
@ -511,6 +517,7 @@ class SE018PaperPage extends React.Component {
)
}
</div>
<FormPage {...this.state.tmpData} />
<div ref={el => (this.componentRef = el)} id={'tableId' + this.props.data.id}>
<h1 style={{ textAlign: 'center' }}>培训在线答题</h1>
<Spin spinning={this.state.loading}>
@ -685,6 +692,9 @@ class SE018PaperPage extends React.Component {
</table>
</Spin>
</div>
{
GetFileModel(Modal, FormPage, this, this.state.fileForm.visible)
}
</div>
}
}