提交 bc324150 authored 作者: 钟是志's avatar 钟是志

加解密修改

上级 e952c1c5
...@@ -19,13 +19,13 @@ const initSignFunc = () => { ...@@ -19,13 +19,13 @@ const initSignFunc = () => {
let messageList = []; let messageList = [];
/** /**
* *
* 第一步 获取选择的每一条审核数据需要盖章的图片 * 第一步 获取选择的每一条审核数据需要盖章的图片
* 一旦开始调接口 就需要 setSubmitLoading(true) 转圈圈 * 一旦开始调接口 就需要 setSubmitLoading(true) 转圈圈
*/ */
console.log("selectRows",selectRows); console.log("selectRows",selectRows);
const selectList = const selectList =
selectRows.map((g) => { selectRows.map((g) => {
let json = {}; let json = {};
json.isSealOrNot = g['LLzXaxdAYHU'] || "0"; json.isSealOrNot = g['LLzXaxdAYHU'] || "0";
json.signaturePicture = g['LLMbGiXIkvE']; json.signaturePicture = g['LLMbGiXIkvE'];
...@@ -37,12 +37,12 @@ const initSignFunc = () => { ...@@ -37,12 +37,12 @@ const initSignFunc = () => {
json.signTypeId = g['LHeyaYVWuJA']; json.signTypeId = g['LHeyaYVWuJA'];
json.userName = g['LHexnzfpcdc']; json.userName = g['LHexnzfpcdc'];
return json; return json;
}) || []; }) || [];
setSubmitLoading(true); // 显示为加载中 setSubmitLoading(true); // 显示为加载中
uaaRequest('/DataColumnApi/getSqlColumn', { uaaRequest('/DataColumnApi/getSqlColumn', {
token: 1, token: 1,
json: 'LLyJBlByfFM', json: 'LLyJBlByfFM',
param: '{}', param: JSON.stringify({}),
type: 1, type: 1,
}).then((result, com) => { }).then((result, com) => {
let { let {
...@@ -65,7 +65,7 @@ const initSignFunc = () => { ...@@ -65,7 +65,7 @@ const initSignFunc = () => {
isSealOrNot, isSealOrNot,
signTypeId, signTypeId,
userName userName
} = selectData; } = selectData;
const oneStudentTask = async () => { const oneStudentTask = async () => {
let resOneStudentRes; let resOneStudentRes;
// 这里还要加判断 如果没得图片能签章. 直接跳过这条数据 // 这里还要加判断 如果没得图片能签章. 直接跳过这条数据
...@@ -74,7 +74,7 @@ const initSignFunc = () => { ...@@ -74,7 +74,7 @@ const initSignFunc = () => {
console.log('->>>>>>>>>',`学生:${userName}`+'没有签章图片'); console.log('->>>>>>>>>',`学生:${userName}`+'没有签章图片');
messageList.push({name:'学生没有上传签章图片',type:1,username:`学生:${userName}`}); messageList.push({name:'学生没有上传签章图片',type:1,username:`学生:${userName}`});
return false; return false;
} }
selectTotal++; selectTotal++;
let background = enclosure.files[enclosure.files.length - 1].path; let background = enclosure.files[enclosure.files.length - 1].path;
if ( setUp.objs == [] || setUp.objs.length == 0) { if ( setUp.objs == [] || setUp.objs.length == 0) {
...@@ -83,7 +83,7 @@ const initSignFunc = () => { ...@@ -83,7 +83,7 @@ const initSignFunc = () => {
return false; return false;
} }
setUp.objs.forEach((sv, si) => { setUp.objs.forEach((sv, si) => {
let XGAxis = result[signTypeId] || null ;//根据下级类型配置了XY偏移量 否则使用最上级XY偏移量 let XGAxis = result[signTypeId] || null ;//根据下级类型配置了XY偏移量 否则使用最上级XY偏移量
console.log("signTypeId",signTypeId) console.log("signTypeId",signTypeId)
console.log("result",result) console.log("result",result)
...@@ -135,7 +135,7 @@ const initSignFunc = () => { ...@@ -135,7 +135,7 @@ const initSignFunc = () => {
return true; return true;
}); });
}); });
} else { //无需盖章流程跳过 直接走审批接口 } else { //无需盖章流程跳过 直接走审批接口
let examineMaps = { let examineMaps = {
reason: '', reason: '',
...JSON.parse(examineMap), ...JSON.parse(examineMap),
...@@ -149,8 +149,8 @@ const initSignFunc = () => { ...@@ -149,8 +149,8 @@ const initSignFunc = () => {
taskForm: JSON.stringify({}), taskForm: JSON.stringify({}),
}; };
//console.log('examineJson', examineJson); //console.log('examineJson', examineJson);
resOneStudentRes = resOneStudentRes =
await uaaRequest('/UnifiedAppFormApi/examineProcess', examineJson).then((resProcess) => { await uaaRequest('/UnifiedAppFormApi/examineProcess', examineJson).then((resProcess) => {
if (!resProcess) { if (!resProcess) {
console.log('->>>>>>>>>', '审核失败'); console.log('->>>>>>>>>', '审核失败');
...@@ -190,11 +190,11 @@ const initSignFunc = () => { ...@@ -190,11 +190,11 @@ const initSignFunc = () => {
title: '批量审批错误的信息', title: '批量审批错误的信息',
content: ( content: (
<div> <div>
<p>{modalContent1}</p> <p>{modalContent1}</p>
{ {
messageList.map((mV,mI)=>{ messageList.map((mV,mI)=>{
return <p key={mI}>{`(${mI+1})【${mV.username }${mV.name}`}</p> return <p key={mI}>{`(${mI+1})【${mV.username }${mV.name}`}</p>
}) })
} }
</div> </div>
), ),
......
...@@ -60,6 +60,10 @@ const encryptApiList = [ ...@@ -60,6 +60,10 @@ const encryptApiList = [
filterEmpty: ['sqlKey'], filterEmpty: ['sqlKey'],
query: true, query: true,
}, },
{
api: 'DataColumnApi/getSqlColumn',
key: ['json'],
},
{ {
api: 'DataRightApi/add', api: 'DataRightApi/add',
key: ['filterSql'], key: ['filterSql'],
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论