Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
JTWXWebApp
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
ReactNative
JTWXWebApp
Commits
af0a0693
提交
af0a0693
authored
4月 16, 2018
作者:
吴强
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
界面显示更改
上级
eb050711
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
52 行增加
和
60 行删除
+52
-60
CardViewOne.js
src/components/CardViewOne.js
+3
-1
CardViewThree.js
src/components/CardViewThree.js
+1
-21
index.js
src/index.js
+2
-2
home.js
src/models/Home/home.js
+44
-32
search.js
src/models/Home/search.js
+0
-1
HomePage.js
src/routes/Home/HomePage.js
+2
-2
SearchPage.js
src/routes/Home/SearchPage.js
+0
-1
没有找到文件。
src/components/CardViewOne.js
浏览文件 @
af0a0693
...
@@ -7,7 +7,9 @@ import {
...
@@ -7,7 +7,9 @@ import {
class
MyTopCard
extends
React
.
Component
{
class
MyTopCard
extends
React
.
Component
{
render
(){
render
(){
const
SummaryData
=
this
.
props
.
data
;
const
SummaryData
=
this
.
props
.
data
;
if
(
SummaryData
==
null
)
console
.
info
(
'CardViewOne页面'
);
console
.
info
(
SummaryData
);
if
(
SummaryData
==
null
||
SummaryData
.
length
===
0
)
{
{
return
(
return
(
<
div
>
<
div
>
...
...
src/components/CardViewThree.js
浏览文件 @
af0a0693
...
@@ -9,7 +9,7 @@ import {
...
@@ -9,7 +9,7 @@ import {
}
from
'antd-mobile'
;
}
from
'antd-mobile'
;
class
CardThreeContent
extends
React
.
Component
{
class
CardThreeContent
extends
React
.
Component
{
render
(){
render
(){
const
{
todayQianYue
,
todayCheXiao
,
suoDingTongJi
,
shiWuSuoTongJi
,
jinDuTongJi
,
chengBenTongJi
,
shiYongFangYuanTongJi
,
jiDiFangYuanTongJi
,
xiaoQuTongJi
}
=
this
.
props
.
search
;
const
{
todayQianYue
,
todayCheXiao
,
suoDingTongJi
,
jinDuTongJi
,
chengBenTongJi
,
shiYongFangYuanTongJi
,
jiDiFangYuanTongJi
,
xiaoQuTongJi
}
=
this
.
props
.
search
;
return
(
return
(
<
div
>
<
div
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
...
@@ -21,8 +21,6 @@ class CardThreeContent extends React.Component{
...
@@ -21,8 +21,6 @@ class CardThreeContent extends React.Component{
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
CardThree
data
=
{
suoDingTongJi
}
/
>
<
CardThree
data
=
{
suoDingTongJi
}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
CardFour
data
=
{
shiWuSuoTongJi
}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
CardFive
data
=
{
jinDuTongJi
}
/
>
<
CardFive
data
=
{
jinDuTongJi
}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
WhiteSpace
size
=
"lg"
style
=
{{
background
:
"#eee"
}}
/
>
<
CardSix
data
=
{
chengBenTongJi
}
/
>
<
CardSix
data
=
{
chengBenTongJi
}
/
>
...
@@ -325,24 +323,6 @@ class CardThree extends React.Component{
...
@@ -325,24 +323,6 @@ class CardThree extends React.Component{
}
}
}
}
}
}
class
CardFour
extends
React
.
Component
{
render
(){
return
(
<
div
>
<
Card
.
Header
title
=
{
<
span
style
=
{
{
paddingRight
:
"0.75rem"
,
fontWeight
:
"600"
}}
>
事务所统计
<
/span
>
}
style
=
{
{
padding
:
"1.2rem 1.3rem"
,
color
:
'#38c5b8'
}}
/
>
{
/*<MyBodyCard data={this.props.data}/>*/
}
<
/div
>
);
}
}
class
CardFive
extends
React
.
Component
{
class
CardFive
extends
React
.
Component
{
render
(){
render
(){
return
(
return
(
...
...
src/index.js
浏览文件 @
af0a0693
...
@@ -7,8 +7,8 @@ console.log('index.js');
...
@@ -7,8 +7,8 @@ console.log('index.js');
const
app
=
dva
({
const
app
=
dva
({
history
:
createBrowserHistory
({
history
:
createBrowserHistory
({
// eslint-disable-next-line no-undef
// eslint-disable-next-line no-undef
//
basename: 'bm-wx',
basename
:
'bm-wx'
,
basename
:
'/'
,
//
basename: '/',
}),
}),
});
});
...
...
src/models/Home/home.js
浏览文件 @
af0a0693
...
@@ -17,18 +17,34 @@ export default {
...
@@ -17,18 +17,34 @@ export default {
effects
:
{
effects
:
{
*
getSummaryData
({
payload
},
{
take
,
put
,
call
,
select
})
{
*
getSummaryData
({
payload
},
{
take
,
put
,
call
,
select
})
{
const
payloads
=
{
userName
:
'admin'
,
password
:
'admin'
,
type
:
'userName'
,
authType
:
'password'
};
// const payloads = { userName:'admin',password:'admin', type: 'userName', authType: 'password' };
try
{
// try{
const
result
=
yield
call
(
login
,
payloads
);
// const result = yield call(login, payloads);
console
.
info
(
result
);
// console.info(result);
const
{
tokenId
}
=
result
;
// const { tokenId } = result;
yield
call
(
setToken
,
tokenId
);
// 这里的yield ,跟C#中的await一样
// yield call(setToken, tokenId);// 这里的yield ,跟C#中的await一样
}
// }
catch
(
erroer
)
{
// catch (erroer) {
console
.
info
(
erroer
);
// console.info(erroer);
}
// }
//
//
// const { pNumber } = payload;
// let coordinate;
// coordinate= {
// containerType: 'module',
// containerName: 'QueryJiDiModule',
// datasourceName: 'QueryDistrictName',
// };
// try {
// const resultss = yield call(getData, coordinate, { pst: 0, psz: 10 ,params:{pNumber:pNumber}});
// console.info('查询的结果');
// console.info(resultss);
// yield put({ type: 'setSummaryData',payload:{resultss} });
// }catch (erroer){
// console.info(erroer);
// }
// 这是以后放到服务器时候用的代码,因为现在要测试,所以要先注释
const
{
pNumber
}
=
payload
;
const
{
pNumber
}
=
payload
;
const
coordinate
=
{
const
coordinate
=
{
containerType
:
'module'
,
containerType
:
'module'
,
...
@@ -43,30 +59,26 @@ export default {
...
@@ -43,30 +59,26 @@ export default {
}
catch
(
erroer
){
}
catch
(
erroer
){
console
.
info
(
erroer
);
console
.
info
(
erroer
);
}
}
// 这是以后放到服务器时候用的代码,因为现在要测试,所以要先注释
// const { pNumber } = payload;
// const coordinate = {
// containerType: 'module',
// containerName: 'QueryJiDiModule',
// datasourceName: 'QueryDistrictName',
// };
// try {
// const resultss = yield call(getData, coordinate, { pst: 0, psz: 10 ,params:{pNumber:pNumber}});
// console.info('查询的结果');
// console.info(resultss);
// yield put({ type: 'setSummaryData',payload:{resultss} });
// }catch (erroer){
// console.info(erroer);
// }
},
},
*
getSummary
({
payload
},
{
take
,
put
,
call
,
select
})
{
*
getSummary
({
payload
},
{
take
,
put
,
call
,
select
})
{
const
{
pNumber
}
=
payload
;
const
{
pNumber
}
=
payload
;
const
coordinate
=
{
let
coordinate
;
containerType
:
'module'
,
if
(
pNumber
===
'全市'
)
containerName
:
'QueryJiDiModule'
,
{
datasourceName
:
'QueryTotalDistrictName'
,
coordinate
=
{
};
containerType
:
'module'
,
containerName
:
'QueryJiDiModule'
,
datasourceName
:
'QueryTotalRoot'
,
};
}
else
{
coordinate
=
{
containerType
:
'module'
,
containerName
:
'QueryJiDiModule'
,
datasourceName
:
'QueryTotalDistrictName'
,
};
}
try
{
try
{
const
resultss
=
yield
call
(
getData
,
coordinate
,
{
pst
:
0
,
psz
:
10
,
params
:{
pNumber
:
pNumber
}});
const
resultss
=
yield
call
(
getData
,
coordinate
,
{
pst
:
0
,
psz
:
10
,
params
:{
pNumber
:
pNumber
}});
console
.
info
(
'查询的结果'
);
console
.
info
(
'查询的结果'
);
...
...
src/models/Home/search.js
浏览文件 @
af0a0693
...
@@ -7,7 +7,6 @@ export default {
...
@@ -7,7 +7,6 @@ export default {
todayQianYue
:
null
,
todayQianYue
:
null
,
todayCheXiao
:
null
,
todayCheXiao
:
null
,
suoDingTongJi
:
null
,
suoDingTongJi
:
null
,
shiWuSuoTongJi
:
null
,
jinDuTongJi
:
null
,
jinDuTongJi
:
null
,
chengBenTongJi
:
null
,
chengBenTongJi
:
null
,
shiYongFangYuanTongJi
:
null
,
shiYongFangYuanTongJi
:
null
,
...
...
src/routes/Home/HomePage.js
浏览文件 @
af0a0693
...
@@ -63,8 +63,8 @@ class HomePage extends React.Component{
...
@@ -63,8 +63,8 @@ class HomePage extends React.Component{
label
:
'闵行区'
label
:
'闵行区'
},
},
{
{
value
:
'浦东区'
,
value
:
'浦东
新
区'
,
label
:
'浦东区'
label
:
'浦东
新
区'
},
},
{
{
value
:
'普陀区'
,
value
:
'普陀区'
,
...
...
src/routes/Home/SearchPage.js
浏览文件 @
af0a0693
...
@@ -22,7 +22,6 @@ class SearchPage extends React.Component{
...
@@ -22,7 +22,6 @@ class SearchPage extends React.Component{
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryTodayQianYue'
,
stateName
:
'todayQianYue'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryTodayQianYue'
,
stateName
:
'todayQianYue'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryTodayCheXiao'
,
stateName
:
'todayCheXiao'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryTodayCheXiao'
,
stateName
:
'todayCheXiao'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QuerySuoDingTongJi'
,
stateName
:
'suoDingTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QuerySuoDingTongJi'
,
stateName
:
'suoDingTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryShiWuSuoTongJi'
,
stateName
:
'shiWuSuoTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryJinDuTongJi'
,
stateName
:
'jinDuTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryJinDuTongJi'
,
stateName
:
'jinDuTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryChengBenTongJi'
,
stateName
:
'chengBenTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryChengBenTongJi'
,
stateName
:
'chengBenTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryShiYongFangYuanTongJi'
,
stateName
:
'shiYongFangYuanTongJi'
}});
dispatch
({
type
:
'search/getResult'
,
payload
:
{
pjName
:
this
.
props
.
match
.
params
.
pjName
,
datasourceName
:
'QueryShiYongFangYuanTongJi'
,
stateName
:
'shiYongFangYuanTongJi'
}});
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论