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

加密的 api修改

上级 c40221fa
const encryptApiList = [
{
api: 'DataColumnApi/getOptions',
key: ['filterSql'],
},
{
api: 'UnifiedServicePatternApi/updateForm',
},
{
api: 'SqlManageEntityApi/add',
},
{
api: 'DataColumnApi/getLabels',
key: ['allValues'],
filterEmpty: ['allValues'],
setNull: true, // 置空这个字段
},
{
api: 'DataColumnApi/getSqlOptions',
key: ['allValues', 'sqlKey'],
filterEmpty: ['allValues'],
query: true, // 调另外一个接口查询这个的替换值
},
{
api: 'DataColumnApi/getSqlLabels',
key: ['allValues'],
filterEmpty: ['allValues'],
query: true,
},
{
api: 'DataColumnApi/getSqlData',
key: ['allValues', 'sqlKey'],
filterEmpty: ['sqlKey'],
query: true,
},
{
api: 'DataColumnApi/getSqlColumn',
key: ['json'],
},
{
api: 'DataRightApi/add',
key: ['filterSql'],
// filterEmpty: ['filterSql'],
},
{
api: 'DataRightApi/addBatch',
key: ['filterSql'],
},
{
api: 'DataObjApi/add',
key: ['sqlScript'],
},
{
api: 'DataObjApi/getFormDataList',
key: ['custom'],
},
{
api: 'DataObjApi/exportWord',
key: ['params'],
},
{
api: 'DataObjApi/getFormDataPage',
key: ['sql', 'custom'],
filterEmpty: ['sql', 'custom'],
yinShe: {
sql: 's',
query: 'chaxun',
querys: 'chaxuns',
sorter: 'paixu',
orders: 'paixus',
},
},
{
api: 'UserApi/getPage',
key: ['addSignSql'],
},
{
api: 'UnifiedAppFormApi/examineProcess',
key: ['taskForm'],
},
{
api: 'UnifiedAppFormApi/saveDraft',
key: ['content'],
},
{
api: 'UnifiedAppFormApi/startProcess',
key: ['content'],
},
{
api: 'UnifiedAppFormApi/startProcessByService',
key: ['content'],
},
{
api: 'UnifiedAppFormApi/getHandleUser',
key: ['content'],
},
{
api: 'SqlManageEntityApi/findParamsKey',
key: ['sqlKey'],
},
{
api: 'UnifiedServiceApi/config', // 禅道 25034 宿舍管理/宿舍维修审核,2021030576L 加个字段 做个字段排序
key: ['config'],
},
];
export default encryptApiList;
import baseX from 'base-x';
import { apiRequest } from '../utils/request';
import { isJSON } from '@/webPublic/zyd_public/utils/utils';
import { uploadFile } from '@/webPublic/one_stop_public/libs/PictureSignature/ShowItem';
import { queryApiActionPath, queryIsSafe } from '@/webPublic/one_stop_public/utils/queryConfig';
import { getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token';
import encryptApiList from './encryptApiList';
var BASE16 = '0123456789abcdef';
var bs16 = baseX(BASE16);
......@@ -36,109 +36,6 @@ const giveKey = (key, datas) => {
return datas;
};
const encryptApiList = [
{
api: 'DataColumnApi/getOptions',
key: ['filterSql'],
},
{
api: 'UnifiedServicePatternApi/updateForm',
},
{
api: 'DataColumnApi/getLabels',
key: ['allValues'],
filterEmpty: ['allValues'],
setNull: true, // 置空这个字段
},
{
api: 'DataColumnApi/getSqlOptions',
key: ['allValues', 'sqlKey'],
filterEmpty: ['allValues'],
query: true, // 调另外一个接口查询这个的替换值
},
{
api: 'DataColumnApi/getSqlLabels',
key: ['allValues'],
filterEmpty: ['allValues'],
query: true,
},
{
api: 'DataColumnApi/getSqlData',
key: ['allValues', 'sqlKey'],
filterEmpty: ['sqlKey'],
query: true,
},
{
api: 'DataColumnApi/getSqlColumn',
key: ['json'],
},
{
api: 'DataRightApi/add',
key: ['filterSql'],
// filterEmpty: ['filterSql'],
},
{
api: 'DataRightApi/addBatch',
key: ['filterSql'],
},
{
api: 'DataObjApi/add',
key: ['sqlScript'],
},
{
api: 'DataObjApi/getFormDataList',
key: ['custom'],
},
{
api: 'DataObjApi/exportWord',
key: ['params'],
},
{
api: 'DataObjApi/getFormDataPage',
key: ['sql', 'custom'],
filterEmpty: ['sql', 'custom'],
yinShe: {
sql: 's',
query: 'chaxun',
querys: 'chaxuns',
sorter: 'paixu',
orders: 'paixus',
},
},
{
api: 'UserApi/getPage',
key: ['addSignSql'],
},
{
api: 'UnifiedAppFormApi/examineProcess',
key: ['taskForm'],
},
{
api: 'UnifiedAppFormApi/saveDraft',
key: ['content'],
},
{
api: 'UnifiedAppFormApi/startProcess',
key: ['content'],
},
{
api: 'UnifiedAppFormApi/startProcessByService',
key: ['content'],
},
{
api: 'UnifiedAppFormApi/getHandleUser',
key: ['content'],
},
{
api: 'SqlManageEntityApi/findParamsKey',
key: ['sqlKey'],
},
{
api: 'UnifiedServiceApi/config', // 禅道 25034 宿舍管理/宿舍维修审核,2021030576L 加个字段 做个字段排序
key: ['config'],
},
];
const countAllValues = async (datas, item) => {
if (item.setNull) {
datas.allValues = JSON.stringify({});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论