Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project
jinfa-admin
Commits
e612cce5
Commit
e612cce5
authored
Nov 16, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改components & layouts & app.tsx 文件夹下的接口引入
parent
2f4e5281
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
9 deletions
+8
-9
app.tsx
src/app.tsx
+2
-2
index.tsx
src/components/DetailLayout/modal/index.tsx
+2
-2
index.ts
src/components/ModalTable/schema/index.ts
+0
-0
CustomInputSearch.tsx
src/components/NiceForm/components/CustomInputSearch.tsx
+0
-1
index.tsx
src/components/UploadModal/index.tsx
+0
-1
RightContent.tsx
src/layouts/RightContent.tsx
+4
-3
No files found.
src/app.tsx
View file @
e612cce5
...
...
@@ -9,7 +9,7 @@ import '@/global/styles/global.less'; // 导入全局样式
import
'antd/dist/antd.less'
;
import
{
setup
}
from
'@formily/antd-components'
;
import
{
getAuth
,
setAuth
,
setRouters
,
removeAuth
,
removeRouters
,
asyncRouter
,
getRouters
}
from
'./utils/auth'
;
import
{
PublicApi
}
from
'./services/a
pi'
;
import
{
getMemberManageLoginReget
}
from
'./services/MemberV2A
pi'
;
import
{
isDev
}
from
'./constants'
;
import
queryString
from
'query-string'
;
// 全局注册虚拟组件
...
...
@@ -63,7 +63,7 @@ export function patchRoutes({ routes }: IRoutes) {
export
function
render
(
oldRender
:
Function
)
{
const
authInfo
=
getAuth
()
if
(
authInfo
)
{
PublicApi
.
getMemberManageLoginReget
().
then
(
res
=>
{
getMemberManageLoginReget
().
then
(
res
=>
{
const
{
data
,
code
}
=
res
if
(
code
===
1000
)
{
setAuth
(
data
)
...
...
src/components/DetailLayout/modal/index.tsx
View file @
e612cce5
...
...
@@ -10,7 +10,7 @@ import {
import
{
UploadOutlined
,
LinkOutlined
,
DeleteOutlined
}
from
'@ant-design/icons'
;
import
{
UPLOAD_TYPE
}
from
'@/constants'
import
style
from
'./index.less'
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postPurchaseConfirmQuotedPriceSubmitContrastPrice
}
from
'@/services/PurchaseA
pi'
;
import
{
BidDetailContext
}
from
'../components/context'
;
import
{
isEmpty
,
sumBy
}
from
'lodash'
;
...
...
@@ -123,7 +123,7 @@ const BidModal: React.FC<IProps> = (props: any) => {
return
}
}
PublicApi
.
postPurchaseConfirmQuotedPriceSubmitContrastPrice
(
params
).
then
(
res
=>
{
postPurchaseConfirmQuotedPriceSubmitContrastPrice
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
handleConfirm
();
}
...
...
src/components/ModalTable/schema/index.ts
View file @
e612cce5
This diff is collapsed.
Click to expand it.
src/components/NiceForm/components/CustomInputSearch.tsx
View file @
e612cce5
...
...
@@ -3,7 +3,6 @@ import { Input, Space, Select, Button } from 'antd';
import
{
CaretUpOutlined
,
CaretDownOutlined
}
from
'@ant-design/icons'
;
import
{
useFieldState
,
FormPath
,
FormEffectHooks
,
useFormEffects
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
PublicApi
}
from
'@/services/api'
;
/**
* 筛选项 搜索和远程数据结合的select
...
...
src/components/UploadModal/index.tsx
View file @
e612cce5
...
...
@@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
import
{
Modal
,
Result
,
Progress
,
Button
}
from
'antd'
;
import
{
FileExcelOutlined
}
from
'@ant-design/icons'
;
import
styles
from
'./index.less'
;
import
{
PublicApi
}
from
'@/services/api'
;
interface
Uploader
{
visibleModal
:
boolean
;
...
...
src/layouts/RightContent.tsx
View file @
e612cce5
...
...
@@ -3,7 +3,8 @@ import { Link, history } from 'umi';
import
{
Menu
,
Dropdown
,
List
,
Avatar
,
Modal
,
Badge
}
from
'antd'
;
import
{
BellOutlined
,
CaretDownOutlined
}
from
'@ant-design/icons'
;
import
{
removeAuth
,
getAuth
}
from
'@/utils/auth'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
postMemberManageSecurityPswUpdate
}
from
'@/services/MemberApi'
;
import
{
getMessageMessagePlatformPage
}
from
'@/services/MessageV2Api'
;
import
moment
from
'moment'
;
import
msgSystem
from
'@/asserts/msg_system.png'
;
import
msgPlatform
from
'@/asserts/msg_platform.png'
;
...
...
@@ -36,7 +37,7 @@ const RightContent: React.FC<{}> = (props) => {
const
handleChangePwd
=
useCallback
((
value
:
any
)
=>
{
setConfirmLoading
(
true
);
PublicApi
.
postMemberManageSecurityPswUpdate
({
postMemberManageSecurityPswUpdate
({
oldPassword
:
encryptedByAES
(
value
.
oldPwd
),
newPassword
:
encryptedByAES
(
value
.
newPwd
)
}).
then
((
data
)
=>
{
...
...
@@ -65,7 +66,7 @@ const RightContent: React.FC<{}> = (props) => {
useEffect
(()
=>
{
if
(
visible
)
{
setMsgLoading
(
true
);
PublicApi
.
getMessageMessagePlatformPage
({
current
:
'1'
,
pageSize
:
'4'
})
getMessageMessagePlatformPage
({
current
:
'1'
,
pageSize
:
'4'
})
.
then
((
data
)
=>
{
if
(
data
.
code
===
1000
)
{
setMsgLoading
(
false
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment