From 6329bdc20dae22398bd29bf7873d29156835e4e0 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Fri, 4 Aug 2023 14:11:29 +0800 Subject: [PATCH 01/21] =?UTF-8?q?(*)=E7=9F=AD=E4=BF=A1=E6=8F=90=E9=86=92?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data/anspectionNotificationPhone.js | 2 +- .../src/sections/fillion/components/patrolTable.js | 14 ++++---------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/api/app/lib/controllers/data/anspectionNotificationPhone.js b/api/app/lib/controllers/data/anspectionNotificationPhone.js index 2b965152..079f37bc 100644 --- a/api/app/lib/controllers/data/anspectionNotificationPhone.js +++ b/api/app/lib/controllers/data/anspectionNotificationPhone.js @@ -36,7 +36,7 @@ async function addAnspectionNotificationPhone(ctx) { }) }) await models.AnspectionNotificationPhone.bulkCreate(dataList); - await transaction.commit(); + // await transaction.commit(); ctx.status = 204 } catch (error) { ctx.fs.logger.error(`path: ${ctx.path}, error: ${error}`); diff --git a/web/client/src/sections/fillion/components/patrolTable.js b/web/client/src/sections/fillion/components/patrolTable.js index 69cd3670..be4f401b 100644 --- a/web/client/src/sections/fillion/components/patrolTable.js +++ b/web/client/src/sections/fillion/components/patrolTable.js @@ -713,6 +713,7 @@ const PatrolTable = (props) => { const isPatrol = !isRoad && !isAnomaly const reportType = isRoad ? 'road' : isAnomaly ? 'anomaly' : 'patrol'; const [isModalOpen, setIsModalOpen] = useState(false); + const [phoneList, setPhoneList] = useState([]); const [form] = Form.useForm(); useEffect(() => { queryData(); @@ -823,6 +824,7 @@ const PatrolTable = (props) => { }) } console.log(phoneList, '789789789789'); + setPhoneList(phoneList) }, [anspectionNotificationPhoneList]) const showModal = () => { @@ -924,17 +926,9 @@ const PatrolTable = (props) => {
- { - // if (!names || names.length < 1) { - // return Promise.reject(new Error('At least 2 passengers')); - // } - // }, - // }, - // ]} + initialValue={phoneList} > {(fields, { add, remove }, { errors }) => ( <> From ff5f45b3d70c52a4d80d5497556194d70613d965 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Fri, 4 Aug 2023 14:17:59 +0800 Subject: [PATCH 02/21] ignore --- .gitignore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index d1ff1eb2..2cff9c17 100644 --- a/.gitignore +++ b/.gitignore @@ -139,8 +139,8 @@ dist *package-lock.json *log/ *downloadFiles/ -web/client/assets/color.less -package-lock.json -development.text -web/package-lock.json -web/log/development.txt +web/client/assets/color.less* +package-lock.json* +development.text* +web/package-lock.json* +web/log/development.txt* From f21e3f4dede68679fd54098d21c49bc40e31f2ba Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Fri, 4 Aug 2023 14:27:13 +0800 Subject: [PATCH 03/21] =?UTF-8?q?=EF=BC=88+=EF=BC=89=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E6=8F=90=E9=86=92=E9=85=8D=E7=BD=AE=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1.3.1/schema/1create_table_telephone.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 scripts/1.3.1/schema/1create_table_telephone.sql diff --git a/scripts/1.3.1/schema/1create_table_telephone.sql b/scripts/1.3.1/schema/1create_table_telephone.sql new file mode 100644 index 00000000..f0f79700 --- /dev/null +++ b/scripts/1.3.1/schema/1create_table_telephone.sql @@ -0,0 +1,19 @@ +CREATE SEQUENCE "public"."inspection_notification_phone_seq" +INCREMENT 1 +MINVALUE 1 +MAXVALUE 9223372036854775807 +START 1 +CACHE 1; + + + +CREATE TABLE "public"."inspection_notification_phone" ( + "id" int4 NOT NULL DEFAULT nextval('inspection_notification_phone_seq'::regclass), + "phone" varchar(255) COLLATE "pg_catalog"."default", + PRIMARY KEY ("id") +) +; + + +COMMENT ON COLUMN "public"."inspection_notification_phone"."phone" IS '电话号码'; + From 4d93d90500295a34217ae731b5d95a7a24d6078d Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 4 Aug 2023 14:29:48 +0800 Subject: [PATCH 04/21] =?UTF-8?q?=E8=84=9A=E6=9C=AC=E6=8C=AA=E4=BD=8D?= =?UTF-8?q?=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../schema/2.roadadministration.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename scripts/{1.3.0/schema/6.roadadministration.sql => 1.3.1/schema/2.roadadministration.sql} (100%) diff --git a/scripts/1.3.0/schema/6.roadadministration.sql b/scripts/1.3.1/schema/2.roadadministration.sql similarity index 100% rename from scripts/1.3.0/schema/6.roadadministration.sql rename to scripts/1.3.1/schema/2.roadadministration.sql From 2b3c6215ada94fa6f4107792b6f8a8104373849a Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 4 Aug 2023 15:52:41 +0800 Subject: [PATCH 05/21] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B7=AF=E6=94=BF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/luzheng/index.js | 3 +- .../fillion/components/luzhengmodel.js | 41 ++++++++++------ .../sections/fillion/containers/luzheng.js | 47 ++++++++++++------- 3 files changed, 58 insertions(+), 33 deletions(-) diff --git a/api/app/lib/controllers/luzheng/index.js b/api/app/lib/controllers/luzheng/index.js index 6299fffe..3d2e6090 100644 --- a/api/app/lib/controllers/luzheng/index.js +++ b/api/app/lib/controllers/luzheng/index.js @@ -1,5 +1,6 @@ 'use strict' //查询路政 +const moment = require('moment'); async function getRoadadministration(ctx, next) { try { @@ -10,7 +11,7 @@ async function getRoadadministration(ctx, next) { if(startTime && endTime){ where.enforcementdate = { - where: { enforcementdate: { $between: [moment(startTime).format('YYYY-MM-DD'), moment(endTime).format('YYYY-MM-DD')] } }, + $between: [moment(startTime).format('YYYY-MM-DD'), moment(endTime).format('YYYY-MM-DD')] } } diff --git a/web/client/src/sections/fillion/components/luzhengmodel.js b/web/client/src/sections/fillion/components/luzhengmodel.js index 991c3d6c..57d96842 100644 --- a/web/client/src/sections/fillion/components/luzhengmodel.js +++ b/web/client/src/sections/fillion/components/luzhengmodel.js @@ -6,9 +6,11 @@ import { getAssess, delAssess, editAssess } from '../actions/assess'; import moment from 'moment'; import { getRoadadministration,addRoadadministration,delRoadadministration,modifyRoadadministration } from '../actions/luzheng'; // import Uploads from "../../../../components/Upload/index" +import Uploads from '../../../components/Upload/index' + const { Option } = Select; -const AssessModal = ({ editData, check, visible, onCancel, dispatch }) => { +const LuzhengModel = ({ editData, check, visible, onCancel, dispatch }) => { const [form] = Form.useForm(); return ( @@ -24,15 +26,24 @@ const AssessModal = ({ editData, check, visible, onCancel, dispatch }) => { return onCancel() } form.validateFields().then(values => { - dispatch(editAssess({ - ...values, - month: moment(values.month).format('YYYY-MM-DD'), - assessId: editData ? editData.id : undefined - })).then(res => { - if (res.success) { - onCancel() - } - }) + if(editData){ + dispatch(modifyRoadadministration(editData?.id,{ + ...values + })).then(res => { + if (res.success) { + onCancel() + } + }) + }else{ + dispatch(addRoadadministration({ + ...values, + })).then(res => { + if (res.success) { + onCancel() + } + }) + } + }) }} onCancel={() => { @@ -43,7 +54,7 @@ const AssessModal = ({ editData, check, visible, onCancel, dispatch }) => { form={form} initialValues={editData ? { ...editData, - month: moment(editData.month), + enforcementdate: moment(editData.enforcementdate) } : {}} disabled={check} labelCol={{ @@ -73,11 +84,11 @@ const AssessModal = ({ editData, check, visible, onCancel, dispatch }) => { - {/* */} + />
@@ -91,4 +102,4 @@ function mapStateToProps (state) { assess: assess.data || [] } } -export default connect(mapStateToProps)(AssessModal); +export default connect(mapStateToProps)(LuzhengModel); diff --git a/web/client/src/sections/fillion/containers/luzheng.js b/web/client/src/sections/fillion/containers/luzheng.js index 918da324..584d558a 100644 --- a/web/client/src/sections/fillion/containers/luzheng.js +++ b/web/client/src/sections/fillion/containers/luzheng.js @@ -4,8 +4,9 @@ import { getAssess, delAssess, editAssess } from '../actions/assess'; import { getRoadadministration,addRoadadministration,delRoadadministration,modifyRoadadministration } from '../actions/luzheng'; import ProTable from '@ant-design/pro-table'; import AssessModal from '../components/luzhengmodel'; -import { Form, Space, DatePicker, Button, Select, Popconfirm } from 'antd' +import { Form, Space, DatePicker, Button, Select, Popconfirm ,Image} from 'antd' import moment from 'moment'; +import { values } from 'lodash'; export const unitList = [ '县道', @@ -34,9 +35,12 @@ function Assess(props) { const [query, setQuery] = useState({ page: 1, pageSize: 10 }) const [loading, setLoading] = useState(false); const [isCheck, setIsCheck] = useState(false) + const [datasource,setdatasource] = useState([]) + const [dateRange, setDateRange] = useState(['1970-1-1', '2099-12-31']); + const { RangePicker } = DatePicker const [editAble, setEditAble] = useState(user?.username !== 'SuperAdmin' && user?.userResources?.find(i => i.resourceId === 'ASSESSMANAGE')?.isshow === "true" ? true : '') useEffect(() => { - dispatch(getRoadadministration()).then(res=>{console.log(res,'res')}) + return () => { }; }, []); @@ -47,7 +51,10 @@ function Assess(props) { const getData = () => { setLoading(true) dispatch(getRoadadministration(query)).then(res => { - setLoading(false) + if(res?.success){ + setdatasource(res?.payload?.data?.rows) + setLoading(false) + } }) } @@ -55,20 +62,14 @@ function Assess(props) {
{ - setQuery({ ...query, unit: v.unit, month: v.month ? moment(v.month).format() : undefined }) + + setQuery({ ...query, unit: v.unit,startTime : moment(v?.time[0]).startOf('day').format('YYYY-MM-DD HH:mm:ss'), + endTime :moment(v?.time[1]).add(1, 'days').endOf('day').format('YYYY-MM-DD HH:mm:ss') }) }}> - - - + - - + + { setDateRange(dateString) }} style={{ marginRight: '50px' }} /> @@ -86,6 +87,9 @@ function Assess(props) { title: '执法日期', dataIndex: 'enforcementdate', key: 'enforcementdate', + render:(t,r)=>{ + return r?.enforcementdate?moment(r?.enforcementdate).format('YYYY-MM-DD'):'--' + } }, { title: '执法道路', @@ -101,6 +105,15 @@ function Assess(props) { title: '执法图片', dataIndex: 'picfile', key: 'picfile', + render:(t,r)=>{ + return r?.picfile?.map(i=>{ + return + }) + + } }, { title: '操作', @@ -121,7 +134,7 @@ function Assess(props) { title="确定删除此条数据吗?" onConfirm={() => { setLoading(true) - dispatch(delAssess({ id: record.id })).then(res => { + dispatch(delRoadadministration(record.id)).then(res => { setLoading(false) if (res.success) { getData() @@ -134,7 +147,7 @@ function Assess(props) { ), },]} - dataSource={assess.rows || []} + dataSource={datasource || []} loading={loading} pagination={{ total: assess?.count || 0, From 5919ea8b77e03dbcb9c9c7b1e0f151a341fc6be3 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Fri, 4 Aug 2023 15:54:37 +0800 Subject: [PATCH 06/21] =?UTF-8?q?(*)=E7=9F=AD=E4=BF=A1=E6=8F=90=E9=86=92?= =?UTF-8?q?=E5=8F=AA=E5=9C=A8=E5=BC=82=E5=B8=B8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sections/fillion/components/patrolTable.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web/client/src/sections/fillion/components/patrolTable.js b/web/client/src/sections/fillion/components/patrolTable.js index be4f401b..36449bd5 100644 --- a/web/client/src/sections/fillion/components/patrolTable.js +++ b/web/client/src/sections/fillion/components/patrolTable.js @@ -95,7 +95,6 @@ const DetailForm = (props) => { ]; const changeBoolean = (bool) => { - //console.log('bool', bool) return bool ? '无异常' : '有异常' } const renderContent = (data) => { @@ -616,7 +615,6 @@ const PatrolNameList = (props) => { } } - // console.log('selectedKeys', selectedKeys, selected, selectedNodes, node) }; @@ -816,14 +814,12 @@ const PatrolTable = (props) => { } } useEffect(() => { - console.log(anspectionNotificationPhoneList, '数据'); let phoneList = [] if (anspectionNotificationPhoneList && anspectionNotificationPhoneList.length) { phoneList = anspectionNotificationPhoneList.map(e => { return e.phone }) } - console.log(phoneList, '789789789789'); setPhoneList(phoneList) }, [anspectionNotificationPhoneList]) @@ -834,7 +830,6 @@ const PatrolTable = (props) => { const handleOk = () => { // setIsModalOpen(false); form.validateFields().then(values => { - console.log(values, '----------'); dispatch(addAnspectionNotificationPhone(values)).then(res => { if (res.success) { setIsModalOpen(false); @@ -864,7 +859,10 @@ const PatrolTable = (props) => { sm: { span: 20, offset: 4 }, }, }; + let routerUrl = window.location.href + routerUrl = routerUrl.substring(routerUrl.length - 14) + console.log(routerUrl, '========='); return (
@@ -910,7 +908,10 @@ const PatrolTable = (props) => { : '' } - + { + routerUrl == 'patrol_anomaly' ? : '' + } + {/* */}
: '' @@ -926,7 +927,7 @@ const PatrolTable = (props) => { - From 25cacae4d9ec2a39e78a400a4388deb40ad49cb1 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Fri, 4 Aug 2023 16:22:16 +0800 Subject: [PATCH 07/21] =?UTF-8?q?=E5=B1=95=E7=A4=BA=E6=89=80=E6=9C=89?= =?UTF-8?q?=E7=9A=84=E8=BD=A6=E7=9A=84=E7=82=B9=E4=BD=8D=E7=9A=84=E5=BC=B9?= =?UTF-8?q?=E6=A1=86=E4=BF=A1=E6=81=AF=20=E5=A2=9E=E5=8A=A0=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/sections/fillion/actions/infor.js | 2 +- .../containers/footer/build/Rightcenter.js | 2 - .../quanju/containers/footer/build/index.js | 123 ++++++---- .../quanju/containers/footer/build/style.less | 8 + .../containers/footer/operation/right.js | 214 ++++++++++++------ .../quanju/containers/public/olMap.js | 28 +-- 6 files changed, 243 insertions(+), 134 deletions(-) diff --git a/web/client/src/sections/fillion/actions/infor.js b/web/client/src/sections/fillion/actions/infor.js index 06afa907..f35bd2a5 100644 --- a/web/client/src/sections/fillion/actions/infor.js +++ b/web/client/src/sections/fillion/actions/infor.js @@ -142,7 +142,7 @@ export function getProject(query) { actionType: 'GET_PROJECT', url: ApiTable.getProject, msg: { error: '获取工程信息失败' }, - + reducer: { name: 'projectList' } }); } export function putProject(query) { diff --git a/web/client/src/sections/quanju/containers/footer/build/Rightcenter.js b/web/client/src/sections/quanju/containers/footer/build/Rightcenter.js index 8c62e979..7cc464d5 100644 --- a/web/client/src/sections/quanju/containers/footer/build/Rightcenter.js +++ b/web/client/src/sections/quanju/containers/footer/build/Rightcenter.js @@ -27,7 +27,6 @@ const THIRD = "linear-gradient(360deg, rgba(148, 148, 255, 0.1) 0%, rgba(148, 14 const OTHER = "linear-gradient(360deg, rgba(28, 96, 253, 0) 0%, rgba(28, 96, 253, 0.2) 100%)" let TOTALS = data?.map(({ name, total }, index) => { let max = Math.max(...data.map(item=>item.total)) - // console.log(data.map(item=>item.total),'好朋友吗') return { name, value: total, @@ -38,7 +37,6 @@ let new_TOTALS = TOTALS && TOTALS.length > 10 ? TOTALS.slice(0, 10) : TOTALS function Cell(props) { const { name, rank, value, percent, style = {},cebg } = props let bg = RNAKS[rank] || OTHER - // console.log(percent,'百分比') return
{ - const { dispatch } = props + const { dispatch, projectList } = props let data1 = [ { name: "县", value: 207 }, { name: "乡", value: 729 }, @@ -26,8 +28,6 @@ const Build = (props) => { // {name: '二级公路', value: 17}, // {name: '三级公路', value: 17}, // {name: '四级公路', value: 30}, - - // ] const [buildingnumber, setbuildingnumber] = useState(0) const [data, setdata] = useState([]) @@ -43,22 +43,17 @@ const Build = (props) => { const requestbuildingnumber = async () => { const res = await dispatch(getdaolutongji()); let alltype = Object.keys(res.payload.data?.roadType || {}).map((item) => ({ name: item, value: Number(keepThreeNum(res.payload.data.roadType[item])) })) - // console.log(alltype,'打他啊') setdata(alltype.filter(item => item.name === '县' || item.name === "乡" || item.name === '村')) setbuildingnumber(res.payload.data) - console.log(res.payload.data, '哈哈哈') - } //获取宣传栏数据 const requestxuanchuanlan = async () => { const res = await dispatch(getxuanchuan()); - // setdata(alltype.filter(item=>item.name!=='null')) setxuandata(res.payload.data || []) - console.log(res.payload.data, '宣传栏数据') - } + let t1 = Object.values(buildingnumber?.townRoad || {}) let totalgongli = t1.length !== 0 ? t1.reduce((x, y) => x + y.mileage, 0) : 0 //乡镇道路占比总公里数 @@ -86,7 +81,6 @@ const Build = (props) => { return b.number - a.number }) list = list.filter(item => item.name !== "其他") - // console.log(list,'红红火') //道路等级数据 let alldengji = Object.keys(buildingnumber?.roadLevel || {}).map((item) => ({ name: item, value: Number(keepThreeNum(buildingnumber.roadLevel[item])) })) @@ -95,10 +89,8 @@ const Build = (props) => { onlineproject = onlineproject.sort((a, b) => { return b.total - a.total }) - //console.log('onlineproject', onlineproject) let sunonlineproject = onlineproject?.reduce((x, y) => x + y.total, 0) let buildingCount = buildingnumber?.buildingCount - //console.log('projectAll', projectAll) //let projectAll= let safetyData = alldengji?.filter(item => item.name === '一级公路' || item.name === '二级公路' || item.name === '三级公路' || item.name === '四级公路' || item.name === '等外公路') let sundata = data?.reduce((x, y) => x + y.value, 0) @@ -107,10 +99,13 @@ const Build = (props) => { useEffect(() => { requestbuildingnumber(); requestxuanchuanlan() + dispatch(getProject()) }, []) + useEffect(() => { lunbo.current.goTo(lunboindex) }, [lunboindex]) + const rendercontent = () => { return (
{list.map(({ name, number, gongli }, index) =>
@@ -128,8 +123,6 @@ const Build = (props) => { // "enable": true // } // ] - // console.log(localStorage.getItem("qndmn"), '七牛') - // console.log(xuandata, "宣传") let videos = [] if (xuandata && xuandata.length) { @@ -143,7 +136,7 @@ const Build = (props) => { } } } - console.log(lunboindex) + return ( <>
@@ -174,35 +167,75 @@ const Build = (props) => {
: }
- - {totalcount && totalcount !== 0 ?
-
-
- -
- 公路公里数/公里 - {keepThreeNum(totalgongli)} + { + totalcount && totalcount !== 0 ? +
+
+
+ +
+ 公路公里数/公里 + {keepThreeNum(totalgongli)} +
+
+
+ +
+ 公路总数/条 + {totalcount || 0} +
+
+
+ 乡镇名称 + 公路数量/条 + 公里 +
+
-
- -
- 公路总数/条 - {totalcount || 0} + : + } + */} + + { + totalcount && totalcount !== 0 ? +
+
+
+ 项目名称 + 项目规模(公里) + 项目投资(万元) +
+ + { + projectList.map((p, index) => { + return ( +
+ {p.entryName} + {p.projectMileage} + {p.investment} +
+ ) + }) + } +
+ } + containerStyle={{ position: "relative", height: "85%", }} + divHeight={"100%"} divId={"chart"} + />
-
-
- 乡镇名称 - 公路数量/条 - 公里 -
- -
: } + : + } { {/* { videos.map((v, i) => { - console.log('first') return i == lunboMsg.current.index ?
- {modalVisible ? : ''} - {modalVisibleyilan ? : ''} + { + modalVisible ? : '' + } + { + modalVisibleyilan ? : '' + } ) } diff --git a/web/client/src/sections/fillion/components/enforceTable.js b/web/client/src/sections/fillion/components/enforceTable.js index 7ddc2662..3271ce90 100644 --- a/web/client/src/sections/fillion/components/enforceTable.js +++ b/web/client/src/sections/fillion/components/enforceTable.js @@ -18,33 +18,33 @@ const enforceTable = (props) => { const [modalVisible, setModalVisible] = useState(false); const [modalRecord, setModalRecord] = useState(); const [typecard, setTypecard] = useState(); - -//打开弹窗 -const openModal = (type, record) => { - setModalVisible(true); - // setModalType(type); - if (type == 'edit') { - setModalRecord(record); - } else { - setModalRecord(null); + + //打开弹窗 + const openModal = (type, record) => { + setModalVisible(true); + // setModalType(type); + if (type == 'edit') { + setModalRecord(record); + } else { + setModalRecord(null); + } + } + //批量导出 + 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}`) + }) } -} - //批量导出 - 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}`) - }) -} const columns = [ { @@ -95,7 +95,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time3', valueType: 'dateRange', - + width: 120, @@ -110,7 +110,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time4', valueType: 'dateRange', - + width: 120, render: (dom, record) => { @@ -124,7 +124,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time5', valueType: 'dateRange', - + width: 120, render: (dom, record) => { @@ -138,7 +138,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time6', valueType: 'dateRange', - + width: 120, render: (dom, record) => { @@ -152,7 +152,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time7', valueType: 'dateRange', - + width: 120, render: (dom, record) => { @@ -166,7 +166,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time8', valueType: 'dateRange', - + width: 120, render: (dom, record) => { @@ -180,7 +180,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -195,7 +195,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -210,7 +210,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -225,7 +225,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -240,7 +240,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -255,7 +255,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -270,7 +270,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -285,7 +285,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -300,7 +300,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -315,7 +315,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -330,7 +330,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -345,7 +345,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -360,7 +360,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -375,7 +375,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -390,7 +390,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -405,7 +405,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -420,7 +420,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -435,7 +435,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -450,7 +450,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -465,7 +465,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -480,7 +480,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -495,7 +495,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -510,7 +510,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -525,7 +525,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -540,7 +540,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -555,7 +555,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -570,7 +570,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -585,7 +585,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -600,7 +600,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -615,7 +615,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -630,7 +630,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -645,7 +645,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -660,7 +660,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -675,7 +675,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -690,7 +690,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -705,7 +705,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -720,7 +720,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -735,7 +735,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -750,7 +750,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -765,7 +765,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -780,7 +780,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -795,7 +795,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -810,7 +810,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -825,7 +825,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -840,7 +840,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -855,7 +855,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -870,7 +870,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -885,7 +885,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -900,7 +900,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -915,7 +915,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -930,7 +930,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -945,7 +945,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -960,7 +960,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -975,7 +975,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -990,7 +990,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1005,7 +1005,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1020,7 +1020,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1035,7 +1035,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1050,7 +1050,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1065,7 +1065,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1080,7 +1080,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1095,7 +1095,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1110,7 +1110,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1125,7 +1125,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1140,7 +1140,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1155,7 +1155,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1171,7 +1171,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1186,7 +1186,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1201,7 +1201,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1216,7 +1216,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1231,7 +1231,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1246,7 +1246,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1261,7 +1261,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1276,7 +1276,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1291,7 +1291,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1306,7 +1306,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1321,7 +1321,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1336,7 +1336,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1351,7 +1351,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1366,7 +1366,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1381,7 +1381,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1396,7 +1396,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1411,7 +1411,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1426,7 +1426,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1441,7 +1441,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1456,7 +1456,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1471,7 +1471,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1486,7 +1486,7 @@ const openModal = (type, record) => { search: false, dataIndex: 'time9', valueType: 'dateRange', - + width: 140, @@ -1506,11 +1506,11 @@ const openModal = (type, record) => { fixed: 'right', render: (dom, record) => { return
} @@ -1520,7 +1520,7 @@ const openModal = (type, record) => { hideInTable: true, dataIndex: "direction", order: 6, - renderFormItem: (item, { type, defaultRender, ...rest }, form,record) => { + renderFormItem: (item, { type, defaultRender, ...rest }, form, record) => { return (
- { const { queryData, recordId, visible, user, onCancel, depMessage, loading, depUser, clientHeight, depData, onVisibleChange, dispatch } = props @@ -38,7 +39,7 @@ const NominateModal = (props) => { } const handleFinish = () => { form.validateFields().then(values => { - dispatch(appointTask({ recordId: recordId, performerId: values.nameId })).then((res) => { + dispatch(appointTask({ recordId: recordId, performerId: values.nameId, handleOpinions: values.handleOpinions })).then((res) => { if (res.success) { setSelectedUserId(null) queryData() @@ -92,9 +93,13 @@ const NominateModal = (props) => { onChange={(value) => setSelectedUserId(value)} > +
+ +