From df97d1bb363e96bbccba6165d83f19cecd5ef848 Mon Sep 17 00:00:00 2001 From: guoxin Date: Mon, 25 Sep 2023 13:43:20 +0800 Subject: [PATCH] =?UTF-8?q?fix():=E5=AF=B9=E6=8E=A5=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CustomerServieMgm/CallbackSuggestion/loadable.jsx | 6 ++++-- .../CustomerServieMgm/ComplaintMgm/loadable.jsx | 10 ++-------- .../CustomerServieMgm/ErrorCorrection/loadable.jsx | 1 + .../SystemMgm/BusinessConfig/BusinessConf/loadable.jsx | 18 +++++++++--------- src/pages/SystemMgm/RoleMgm/loadable.jsx | 4 ++-- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/pages/OperationCenter/CustomerServieMgm/CallbackSuggestion/loadable.jsx b/src/pages/OperationCenter/CustomerServieMgm/CallbackSuggestion/loadable.jsx index 1954a84..a47e926 100644 --- a/src/pages/OperationCenter/CustomerServieMgm/CallbackSuggestion/loadable.jsx +++ b/src/pages/OperationCenter/CustomerServieMgm/CallbackSuggestion/loadable.jsx @@ -273,10 +273,11 @@ function CallbackSuggestion(props) { const [repairData, setRepairData] = useState({}) const handleCancel = () => setPreviewOpen(false); const [fileList, setFileList] = useState([]) + console.log(fileList); const imgData = () => { let imgUrl = [] fileList.map(res => { - imgUrl.push(res.name) + imgUrl.push(res.response?.data) }) setRepairData( Object.assign({}, repairData, { image: imgUrl }) @@ -345,7 +346,7 @@ function CallbackSuggestion(props) { const handleDeal = () => { setOrderVisible(true) let data = { - iparkRecordId: getImg.parkRecordId + id: getImg.parkRecordId } ajax.dealData(data).then(res => { if (res.status === 20000) { @@ -484,6 +485,7 @@ function CallbackSuggestion(props) { { - ajax.colorList().then(res => { - setGetPlateColor(res.data) - }) - } useEffect(() => { getData() - plateColor() }, []) return <>
@@ -276,7 +269,7 @@ function ComplaintMgm(props) { style={{ width: 270 }} placeholder="请选择" value={formData.plateColor} - options={getPlateColor} + options={sysConfig.plateColor} onChange={handlePlateColor} />
@@ -310,6 +303,7 @@ function ComplaintMgm(props) { { setGetCheckData( @@ -778,7 +778,7 @@ function BusinessConf(props) { { setGetMessage(option); @@ -817,7 +817,7 @@ function BusinessConf(props) { { setGetCheckData( @@ -850,7 +850,7 @@ function BusinessConf(props) { Object.assign({}, geteditData, { parameterValue: v.target.value }) ); }} - defaultValue={geteditData.parameterValue}> + value={geteditData.parameterValue}> 取信地磁 PDA审核 @@ -864,7 +864,7 @@ function BusinessConf(props) { Object.assign({}, geteditData, { parameterValue: v.target.value }) ); }} - defaultValue={geteditData.parameterValue}> + value={geteditData.parameterValue}> @@ -879,7 +879,7 @@ function BusinessConf(props) { Object.assign({}, geteditData, { parameterValue: v.target.value }) ); }} - defaultValue={geteditData.parameterValue}> + value={geteditData.parameterValue}> 取信地磁 PDA审核 自动出场 @@ -896,7 +896,7 @@ function BusinessConf(props) { Object.assign({}, geteditData, { parameterValue: v.target.value }) ); }} - defaultValue={geteditData.parameterValue}> + value={geteditData.parameterValue}> 自动补单 人工补单 @@ -911,7 +911,7 @@ function BusinessConf(props) { Object.assign({}, geteditData, { parameterValue: v.target.value }) ); }} - defaultValue={geteditData.parameterValue}> + value={geteditData.parameterValue}> 自动退款 人工退款 diff --git a/src/pages/SystemMgm/RoleMgm/loadable.jsx b/src/pages/SystemMgm/RoleMgm/loadable.jsx index 452ba20..9558cfe 100644 --- a/src/pages/SystemMgm/RoleMgm/loadable.jsx +++ b/src/pages/SystemMgm/RoleMgm/loadable.jsx @@ -444,7 +444,7 @@ function RoleMgm(props) { changeOnSelect onChange={handleDeptName} fieldNames={{ - label: 'dapart_name', + label: 'depart_name', value: 'id', children: 'children' }} @@ -529,7 +529,7 @@ function RoleMgm(props) { ); }} fieldNames={{ - label: 'dapart_name', + label: 'depart_name', value: 'id', children: 'children' }}