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

1.0 新增 按钮点击后转圈圈 事件

上级 104df772
/**
* 钟是志
* 27900 毕业去向管理/单位改签管理---老师新增时,保存反应延迟,会导致重复数据
* 2022年6月26日
* */
import React, { useEffect, useState } from 'react';
import { Button } from 'antd';
export default function ButtonDiy(props) {
const {
loading,
onClick,
...ev
} = props;
const [loadingThis, setLoading] = useState(loading || false);
const topOnClick = (e) => {
return onClick(e, setLoading);
};
return (
<Button loading={loadingThis}
type="primary"
onClick={topOnClick}
{...ev}
/>
);
}
......@@ -75,6 +75,7 @@ import getActiveJson from '@/webPublic/one_stop_public/Table/getActiveJson';
import getOneStopUploadUrl from '@/webPublic/one_stop_public/Base16/getOneStopUploadUrl';
import SwitchWeb from '@/webPublic/one_stop_public/tableCompon/Split_Index/SwitchWeb';
import CronEditorDiy from '@/webPublic/one_stop_public/tableCompon/Split_Index/CronEditorDiy/index';
import ButtonDiy from '@/webPublic/one_stop_public/tableCompon/Split_Index/ButtonDiy';
const {
MonthPicker,
......@@ -2596,7 +2597,7 @@ ${obj[dataColumn.base52]}
if (json.isLink) {
cm = <a {...ev} />;
} else {
cm = <Button loading={this.props.loading} type="primary" {...ev} />;
cm = <ButtonDiy loading={this.props.loading} type="primary" {...ev} />;
}
}
......@@ -2679,7 +2680,7 @@ ${obj[dataColumn.base52]}
if (json.isLink) {
cm = <a {...ev} />;
} else {
cm = <Button loading={this.props.loading} type="primary" {...ev} />;
cm = <ButtonDiy loading={this.props.loading} type="primary" {...ev} />;
}
}
......
import { getCurrentUser, getToken, getUserInfo } from '@/webPublic/one_stop_public/utils/token';
import Md5 from 'js-md5';
import gg5xxxxx from 'js-md5';
import { getIsBei_Dian } from '@/webPublic/zyd_public/utils/utils';
import { getUrlInfo } from '@/webPublic/one_stop_public/DetailForAudit/utils';
......@@ -53,12 +53,7 @@ export function getHeaders(_0x586d90 = '') {
_0x5a5180 = new Date()[_0x489a38(0x89)]() + window[_0x489a38(0x83)],
_0x297709 = _0x4fc1a2 + _0x4e0063 + _0x5a5180,
_0xd71cea = { 'headers': { 'Authorization': _0x489a38(0x8c) + _0x4fc1a2 } };
return getIsBei_Dian() && _0x4e0063 && (_0xd71cea[_0x489a38(0x8b)][_0x489a38(0x81)] = Md5(_0x297709), _0xd71cea['headers'][_0x489a38(0x8d)] = _0x5a5180, isTest && console[_0x489a38(0x7e)]({
'secretString': _0x297709,
'md5S': Md5(_0x297709),
'timestamp': _0x5a5180,
'userId': _0x4e0063,
'differenceBetweenServerAndClientTime': window[_0x489a38(0x83)]
return getIsBei_Dian() && _0x4e0063 && (_0xd71cea[_0x489a38(0x8b)][_0x489a38(0x81)] = gg5xxxxx(_0x297709), _0xd71cea['headers'][_0x489a38(0x8d)] = _0x5a5180, isTest && console[_0x489a38(0x7e)]({
})), _0xd71cea;
}
/**
......@@ -82,13 +77,13 @@ export function getHeadersBase(url = '') {
},
};
if (getIsBei_Dian() && userId) {
res.headers.auth = Md5(secretString);
res.headers.auth = gg5xxxxx(secretString);
res.headers.timestamp = timestamp;
if (isTest) {
console.log(
{
secretString,
md5S: Md5(secretString),
md5S: gg5xxxxx(secretString),
timestamp,
userId: userId,
differenceBetweenServerAndClientTime: window.differenceBetweenServerAndClientTime,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论