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

TODO 批次不生效

上级 3b214f91
......@@ -5,6 +5,7 @@ import { queryApiActionPath, queryIsSafe } from '@/webPublic/one_stop_public/uti
import { getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token';
import encryptApiList from './encryptApiList';
import { uploadFile } from '@/webPublic/one_stop_public/libs/PictureSignature/ShowItem';
import { deepCopy } from '@/webPublic/one_stop_public/utils/myutils';
var BASE16 = '0123456789abcdef';
var bs16 = baseX(BASE16);
......@@ -113,6 +114,8 @@ export function giveFilePostDataInfoForTrue(datas, url){
url,
}
}
datas = deepCopy(datas);
// console.log(datas);
for (let i in datas) {
if (datas[i] === null || (Array.isArray(datas[i]) && datas[i].length === 0) || datas[i] === undefined) {
delete datas[i];
......
......@@ -63,6 +63,7 @@ import PictureSignature, {
} from '@/webPublic/one_stop_public/libs/PictureSignature/PictureSignature';
import WangEditor from '@/webPublic/zyd_public/WangEditor/OnstopWang';
import { uaaRequest } from '@/webPublic/one_stop_public/utils/request';
import { giveFilePostDataInfoForTrue } from '@/webPublic/one_stop_public/Base16';
const { TextArea } = Input;
const { Option } = Select;
......@@ -766,10 +767,13 @@ export default class tableCom extends Component {
}
}
const newData = giveFilePostDataInfoForTrue(url, params);
params = newData.datas;
url = newData.url;
if (getToken() != null) {
params.token = getToken();
}
const requestParams = params;
const umiRequest = extend({
errorHandler, // 默认错误处理
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论