Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
elegantDeepKinase
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangshufen
elegantDeepKinase
Commits
8f3f114b
Commit
8f3f114b
authored
Feb 28, 2023
by
wangshufen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加readme.md文件
parent
da33d10f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
README.md
+14
-0
src/routes/Kinase/index.js
+1
-1
src/routes/drugbank/LigandDetails/index.js
+2
-0
src/utils/request.js
+2
-2
No files found.
README.md
View file @
8f3f114b
...
...
@@ -2,3 +2,16 @@
1.
yarn
2.
yarn start
项目打包上线
yarn build
项目改动的地方:
1.
request.js文件改动的地方:加初始化页面的校验token和所有的接口校验拦截器
2.
F:
\w
ork
\需
求文档
\小
分子平台前端需求2023.02.10.docx 文档里优化调整的地方(子涵提的需求),kinase项目已经改完,GPCR项目还没改
3.
其他小的修改(请求url路径问题,菜单栏隐藏等等,具体参照gitlab提交的记录)
项目待优化:
1.
webpack打包后 文件太大 可做适当的压缩,分包处理(所有前端项目都有的问题)
\ No newline at end of file
src/routes/Kinase/index.js
View file @
8f3f114b
...
...
@@ -666,7 +666,7 @@ class Home extends React.Component {
<
div
>
<
Form
layout
=
'horizontal'
>
<
Form
.
Item
label
=
'输入Chemblid或Smiles'
{...
formItemLayout
}
>
<
Input
placeholder
=
'请输入
3
'
style
=
{{
width
:
250
}}
size
=
'large'
onChange
=
{
this
.
getLigendValue
}
value
=
{
this
.
state
.
ligandSearchData
.
ligand_data
}
/
>
<
Input
placeholder
=
'请输入'
style
=
{{
width
:
250
}}
size
=
'large'
onChange
=
{
this
.
getLigendValue
}
value
=
{
this
.
state
.
ligandSearchData
.
ligand_data
}
/
>
<
/Form.Item
>
<
Form
.
Item
label
=
''
{...
formTailLayout
}
>
<
Button
type
=
'primary'
style
=
{{
marginRight
:
'50px'
}}
onClick
=
{
this
.
getDraw
}
>
...
...
src/routes/drugbank/LigandDetails/index.js
View file @
8f3f114b
...
...
@@ -84,6 +84,7 @@ export default class LigandDetails extends Component {
total_num2
:
0
,
};
componentDidMount
()
{
debugger
this
.
getDetails
();
}
onShowSizeChange
=
(
current
,
pageSize
)
=>
{
...
...
@@ -150,6 +151,7 @@ export default class LigandDetails extends Component {
});
};
getTargetList
=
()
=>
{
debugger
console
.
log
(
this
.
state
.
dataOne
);
const
{
dataid
}
=
this
.
state
.
dataOne
;
this
.
setState
({
loading
:
true
});
...
...
src/utils/request.js
View file @
8f3f114b
...
...
@@ -19,8 +19,8 @@ function disableF12() {
const
baseURL
=
'http://52.83.169.190:8002/'
;
//线上正式环境
// const baseURL = 'http://69.235.144.91:8002/';
测试环境
//
const baseURL = 'http://52.83.169.190:8002/'; //线上正式环境
const
baseURL
=
'http://69.235.144.91:8002/'
;
//
测试环境
const
request
=
axios
.
create
({
baseURL
,
...
...
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