From dcf125fa7bb55bddc8b213ea9d7c0250772d8931 Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 24 Feb 2023 14:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A7=86=E9=A2=91=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/assets/images/tiptop.png | Bin 0 -> 27590 bytes .../fillion/components/editGuanlang.js | 213 ++++++++++++++ .../sections/fillion/containers/videois.js | 273 +++++++++++++++--- web/client/src/sections/fillion/nav-item.js | 4 +- 4 files changed, 452 insertions(+), 38 deletions(-) create mode 100644 web/client/assets/images/tiptop.png create mode 100644 web/client/src/sections/fillion/components/editGuanlang.js diff --git a/web/client/assets/images/tiptop.png b/web/client/assets/images/tiptop.png new file mode 100644 index 0000000000000000000000000000000000000000..4110aef0eccd5543ce66c54c50216fec1dbd6617 GIT binary patch literal 27590 zcmZ_0c|4T;7dPHc$zBN|Dq8GhiJ2)xg^=!$kaa9GBpHlhDzc`jWXm!ksXO~JV;hs5 zEMv-qiuXu@1`E$4GS=bZQZyw60M-ZkJpCUR`wzJ1)c zZ|U9Jx9=bp__=}e2=LlN(|-c|x8LWUfzH0Xjx%$>FNdHvjBo7QSBT--wm%H~e)P#L zE1!M)c>a=g4hxKi}8~6Qf=>)$IVhz9YcXpP7sH6SszQORP_d2Yea~{xB zlMbnQZj7ki4|`qnqv82&X<_*j+ndOPQ~AqYzaXfPRUR{;N{`zNRxkl3gwe~Q=h%}H{gwkQ`s4; zD!)}xMDGO^3)!HK0V~Es;$&mE+l7cR2-o`0WcI_tFUp}1h8LHGY~1q3sAdm+WD1*O z>1eMtaVEZhXLqH%QLSzLh1(g6|6HnmDBX%8Xeq(f@RV;_E8E2O=Joi=b@g_9he3?3 zF!&_)cMCHa`{+!(SiPKgqJyqUO3A&`hNxrz+@2oYt%Rjl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vWsgHUKGTSoCxy}_Zr*kPs z?@_&MN*#B#MEbY&xjx$4Kgd!aj=P*69?D#tK@PdGIymQtR!iW175D!+vrOWT(fdt= z*RNx(1!L0_tLv`Vk%g5=!zKeKCy-9&b|=pU@^!#a?MTDZ?JulY;kc1>|v1^9T72Ll0P| z)Uu={Y>Q?N!AKHFFuS%U^CsE547y2f+HKKPCbY>P_l_FAWea7EkfCSVR26_siMkf7 zaA5-~uWtUCh_ck4{x+nfScA0)2>8@m@EJ~fi=ICo8gpAC=g7fIemcr?L>QTUWZ0=A z5j%$lv>i4W%w1VubL;cCT?+3v?Hqk;f!>`0!N0Eu0C<*^IK3KyrOz$rbcqV=j*!(;Mk!;X6an#G#@ zcUoM}>3-z&!1>WEKKs3Oh0)?_Uyg`g8Vkv>qb;lFI4&Gbyix?wggQxd7s~-oBY|b? z>b+8bXf1X4e;`bL7%%(y{Yn;-t$IxH7o8am&$Wh*H9%phlW}&Ux*%$1hdjCTK+}Q5 zL#|OPZoe2+%VCN(#m(iTQ3l8EsXx1ecx&@TKfePg*$t$`FO_TGKc4*STj2H=;7u;^ zE?XY5_DYRiN { + const { visible, onCancel, editData, handleSaveScore, readOnly, companys, searchCompany, applyState } = props; + const [form] = Form.useForm(); + const [replyFiles, setReplyFiles] = useState([]); + const [companyOpts, setCompanyOpts] = useState([]); + const [stationItem, setStationItem] = useState(null); + const [deviceList, setDeviceList] = useState([]); + + useEffect(() => { + if (!visible) { + form.resetFields() + } + }, [visible]) + + useEffect(() => { + if (editData) { + let revertData = Object.assign({}, editData); + Object.keys(editData).forEach(key => { + if (key == 'accidentTime') { + revertData[key] = editData[key] && moment(editData[key]); + } + if (key == 'images') { + // const list = (editData[key] || '').split(',') || [] + if (editData[key]) { + + revertData[key] = JSON.parse(editData[key]); + } + } + }); + form.setFieldsValue({ ...revertData }); + } + }, [editData]) + + useEffect(() => { + if (companys && companys.length) { + let list = []; + companys.forEach(item => { + list.push({ label: item.company, value: item.company }) + }) + setCompanyOpts(list); + } + }, [companys]) + + useEffect(() => { + if (editData && companys && companys.length) { + handleSelectCompany(null, { value: editData.companyName }) + let list = ((editData || {}).accidentStations || []).map(item => item.stationId) + form.setFieldsValue({ stations: list }) + } + }, [companys, editData]) + + + const handleSave = () => { + const data = form.getFieldsValue(true); + console.log(data,'data') + handleSaveScore(); + } + + const onFileUploaded = (fileList) => { + setReplyFiles(fileList); + } + + const handleSelectCompany = (v, opt) => { + const { value } = opt; + const target = companys.filter(c => c.company == value); + setDeviceList(target[0]?.deviceInfos || []); + + } + + return ( + +
+ + + 配置属性 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ ) +} + + +export default EditGuanlang; diff --git a/web/client/src/sections/fillion/containers/videois.js b/web/client/src/sections/fillion/containers/videois.js index 289d19ae..71d92f91 100644 --- a/web/client/src/sections/fillion/containers/videois.js +++ b/web/client/src/sections/fillion/containers/videois.js @@ -1,42 +1,243 @@ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; +import { Input, Table, Button, Select, message, Popconfirm } from 'antd'; +// import { getAccidentInfo, createAccidentInfo, deleteAccidentInfo, editAccidentInfo, getAllCompany } from '../actions/device'; + +// import EditAccidentModal from '../components/editAccidentModal'; +import EditGuanlang from '../components/editGuanlang'; import '../style.less'; -import { getDepMessage, getReportStatistic } from "../actions/infor" -import VideoTable from '../components/videoTable'; -const superagent = require('superagent'); -const Videois = (props) => { - const { dispatch, user } = props - const [data, setData] = useState() - useEffect(() => { - // dispatch(getDepMessage()) - - setData(props) - }, []); - //批量导出 - const exports = (ids, counts) => { - // console.log(user); - let reportIds = []; - if (ids.length) - reportIds = ids - else - reportIds = (counts || {}).ids || []; - superagent.post('/_report/http') - .send({ id: reportIds.map(i => Number(i)) }).end((err, res) => { - const resTextIs = res.text.split('/').pop() - window.open( - '/_api/' + - `attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`) - }) - } - return ( - <> - - ) +import { Func } from '$utils'; + +import moment from 'moment'; +var recordId = null; +const Guanlang = (props) => { + const { dispatch, user, totalPage, companys, creditScore } = props + const [data, setData] = useState([]) + const [modalVisible, setModalVisible] = useState(false); + const [modalRecord, setModalRecord] = useState(); + const [companyName, setCompanyName] = useState(null) + const [creditCode, setCreditCode] = useState(null) + const [pageSize, setPageSize] = useState(10); + const [currentPage, setCurrentPage] = useState(1); + const [applyStatus, setApplyStatus] = useState(null); + const [applyState, setApplyState] = useState('check'); // check 查看;create 新增; apply 初审; approve 复审 + const [editModal, setEditModal] = useState(false); + const [readOnly, setReadOnly] = useState(false); + + const accidentInfo= [] + // const initial = (params, search = false) => { + // dispatch(getAccidentInfo(params)).then(() => { if (search) setCurrentPage(1) }) + // } + + useEffect(() => { + const params = { limit: pageSize, offset: currentPage } + // initial(params) + }, [true]) + + + const openModal = (record, state) => { + if (state == 'check') { + setReadOnly(true) + } else { + setReadOnly(false) + } + searchCompany(record.companyName) + setApplyState(state); + setModalVisible(true); + setModalRecord(record); + } + const search = () => { + const params = { company: companyName, applyStatus, limit: pageSize, offset: 1 } + // initial(params, true) + } + const clearSearch = () => { + setCompanyName(null) + setCreditCode(null) + const params = { limit: pageSize, offset: currentPage } + // initial(params) + } + const columns = [ + { + title: '序号', + dataIndex: 'companyName', + key: 'companyName', + + }, + { + title: '设备名称', + dataIndex: 'accidentTime', + key: 'accidentTime', + + render: (text) => { + return moment(text).format('YYYY-MM-DD') + } + }, + { + title: '设备状态', + dataIndex: 'stationName', + key: 'stationName', + + render: (v, t) => { + let list = t.accidentStations.map(item => item.stationName); + return list.join(','); + } + }, + { + title: '接入类型', + dataIndex: 'stationName', + key: 'stationName', + + render: (v, t) => { + let list = t.accidentStations.map(item => item.stationName); + return list.join(','); + } + }, + { + title: '设备厂家', + dataIndex: 'stationName', + key: 'stationName', + + render: (v, t) => { + let list = t.accidentStations.map(item => item.stationName); + return list.join(','); + } + }, + { + title: '操作', + render: (record) => { + return ( + + openModal(record, 'check')}>查看   + openModal(record, 'edit')}>编辑   + { + // console.log(record) + // dispatch(deleteAccidentInfo(record.id)).then((res) => { + // if (res.success) { + // message.success('删除记录成功'); + // search(); + // } + // } + // ) + } + } + > + 删除   + + + ) + } + } + ]; + + const handleSaveScore = (data) => { + console.log('执行了') + setModalVisible(false); + // if (applyState == 'create') + // dispatch(createAccidentInfo(data)).then(res => { + // if (res.success) { + // message.success('事故资讯添加成功'); + // setModalVisible(false); + // search(); + // } + // }) + // else if (applyState == 'edit') { + // dispatch(editAccidentInfo(data)).then(res => { + // if (res.success) { + // message.success('事故资讯编辑成功'); + // setModalVisible(false); + // search(); + // } + // }) + // } + } + var timer = null; + const searchCompany = (companyName) => { + if (timer) { + clearTimeout(timer) + } else { + timer = setTimeout(() => { + // dispatch(getAllCompany({ companyName })); + }, 400); + } + } + + const spanStyle = { diplay: 'inline-block', marginLeft: 10 } + const inputStyle = { width: 200 } + return ( +
+
+ + 设备搜索: + setCompanyName(v.target.value)}> + + + 接入类型: + setCompanyName(v.target.value)}> + + + 厂家筛选: + setCompanyName(v.target.value)}> + + + 查询状态: + setCompanyName(v.target.value)}> + + + +
+ +
+ { + return {`共${Math.ceil(total / pageSize)}页,${total}项`} + }, + onShowSizeChange: (currentPage, pageSize) => { + setCurrentPage(currentPage); + setPageSize(pageSize); + const params = { company: companyName, creditCode, limit: pageSize, offset: currentPage } + // initial(params) + }, + onChange: (page, pageSize) => { + setCurrentPage(page); + setPageSize(pageSize); + const params = { company: companyName, creditCode, limit: pageSize, offset: page } + // initial(params) + } + }} + /> + + {modalVisible ? { setModalVisible(false) }} + handleSaveScore={handleSaveScore} + // searchCompany={searchCompany} + companys={companys} + editData={modalRecord} + readOnly={readOnly} + applyState={applyState} + > : ''} + + + ) } function mapStateToProps(state) { - const { auth } = state - return { - user: auth.user, - } + const { auth, accidentInfo, allCompany } = state + return { + // user: auth?.user, + // accidentInfo: accidentInfo?.data && accidentInfo?.data.rows || [], + // totalPage: accidentInfo.data && accidentInfo.data.count, + // companys: allCompany.data && allCompany.data.rows || [] + } } -export default connect(mapStateToProps)(Videois); \ No newline at end of file +export default connect(mapStateToProps)(Guanlang); + diff --git a/web/client/src/sections/fillion/nav-item.js b/web/client/src/sections/fillion/nav-item.js index 89d0770b..391d8be7 100644 --- a/web/client/src/sections/fillion/nav-item.js +++ b/web/client/src/sections/fillion/nav-item.js @@ -35,9 +35,9 @@ export function getNavItem(user, dispatch) { 档案管理 - {/* + 视频管理 - */} + 宣传视频