|
@@ -139,10 +139,13 @@
|
|
// let authorizeTime = params.authorizeTime.split('_');
|
|
// let authorizeTime = params.authorizeTime.split('_');
|
|
const apiData = {
|
|
const apiData = {
|
|
...params,
|
|
...params,
|
|
|
|
+ snCodes:params.snCodes && params.snCodes.replace(/\s*/g,""),
|
|
|
|
+ machineCode:params.machineCode && params.machineCode.replace(/\s*/g,""),
|
|
userId: params.id,
|
|
userId: params.id,
|
|
// authorizeTime: authorizeTime[0],
|
|
// authorizeTime: authorizeTime[0],
|
|
// authorizeTimeUnit: authorizeTime[1],
|
|
// authorizeTimeUnit: authorizeTime[1],
|
|
};
|
|
};
|
|
|
|
+ console.log('apiData', apiData)
|
|
let res = await authorizeCameraaddOrUpdate(apiData);
|
|
let res = await authorizeCameraaddOrUpdate(apiData);
|
|
let count = (res.snCodes && res.snCodes.split('\n')) || [];
|
|
let count = (res.snCodes && res.snCodes.split('\n')) || [];
|
|
closeModal();
|
|
closeModal();
|