|
|
@ -139,7 +139,7 @@ function OutMonitorMgm(props) { |
|
|
|
setDefaultParams({ ...postData, ...pageInfo }); |
|
|
|
// console.log(postData); |
|
|
|
setTabLoading(true); |
|
|
|
ajax.getMonitorList({ ...postData, ...v, ...pageInfo , data_source:2}).then( // data_source用于区分路内和路外的请求 |
|
|
|
ajax.getOutMonitorList({ ...postData, ...v, ...pageInfo , data_source:2}).then( // data_source用于区分路内和路外的请求 |
|
|
|
(res) => { |
|
|
|
if (parseInt(res?.status) === 20000) { |
|
|
|
setResultData(res?.data || {}); |
|
|
@ -403,7 +403,7 @@ function OutMonitorMgm(props) { |
|
|
|
message.error("请选择泊位"); |
|
|
|
return; |
|
|
|
} |
|
|
|
ajax[values?.id ? "monitorEdit" : "monitorAdd"]({ |
|
|
|
ajax[values?.id ? "monitorOutEdit" : "monitorOutAdd"]({ |
|
|
|
...values, |
|
|
|
berth_ids: rowData?.berth_ids, |
|
|
|
}).then( |
|
|
@ -436,7 +436,7 @@ function OutMonitorMgm(props) { |
|
|
|
// 下载模板 |
|
|
|
const downloadTemplate = (e) => { |
|
|
|
// 获取模板地址 |
|
|
|
ajax.monitorAdd().then( |
|
|
|
ajax.monitorOutAdd().then( |
|
|
|
(res) => { |
|
|
|
if (res.status === 20000 && res?.data) { |
|
|
|
window.location.href = res?.data; |
|
|
@ -515,7 +515,7 @@ function OutMonitorMgm(props) { |
|
|
|
message.error("请上传文件"); |
|
|
|
return; |
|
|
|
} |
|
|
|
ajax.monitorAdd({ files: fileList }).then( |
|
|
|
ajax.monitorOutAdd({ files: fileList }).then( |
|
|
|
(res) => { |
|
|
|
if (res?.status == 20000) { |
|
|
|
message.success(res?.message); |
|
|
|