Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
4e751c77
...
4e751c77b14bd26196a08d2f14cc62bd70f4cb8f
authored
2020-10-12 10:40:48 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
da4e7151
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
187 additions
and
53 deletions
src/page/activityConfig.vue
src/page/tool.vue
src/page/userInfo.vue
src/router/index.js
src/page/activityConfig.vue
View file @
4e751c7
...
...
@@ -292,15 +292,16 @@
this
.
activityPopPanels
=
res
.
data
.
activityPopPanels
this
.
operateBannerInfos
=
res
.
data
.
operateBannerInfos
this
.
operateMsgInfos
=
res
.
data
.
operateMsgInfos
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
loading
.
close
();
},
openFullScreen
()
{
const
loading
=
this
.
$loading
({
...
...
src/page/tool.vue
View file @
4e751c7
...
...
@@ -115,7 +115,7 @@
<el-form
ref=
"createUserInfo"
:model=
"queryUserInfo"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
查询
指定代理人的健康坊用户
</span>
<span>
查询
用户信息
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
...
...
@@ -138,15 +138,6 @@
</div>
</el-card>
</el-form>
<el-dialog
title=
"健康坊用户:"
:visible
.
sync=
"dialogQueryUserInfo"
width=
"30%"
>
<span>
{{
myQueryUserInfo
}}
</span>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
v-clipboard:copy=
"JSON.stringify(myQueryUserInfo)"
v-clipboard:success=
"onCopy"
@
click=
"dialogQueryUserInfo = false"
>
点击复制
</el-button>
</span>
</el-dialog>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"queryPhoneCode"
:model=
"queryPhoneCode"
label-width=
"0px"
>
...
...
@@ -681,47 +672,9 @@
})
},
queryUserInfoSubmit
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/queryJiankangfang?'
+
this
.
$qs
.
stringify
({
phone
:
this
.
queryUserInfo
.
agentPhone
,
type
:
this
.
queryUserInfo
.
huanjing
.
toString
()
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
==
'usernull'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'代理人手机号不存在'
,
type
:
'error'
});
}
else
if
(
res
.
data
==
'typeError'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'执行环境参数错误'
,
type
:
'error'
});
}
else
{
this
.
myQueryUserInfo
=
res
.
data
this
.
dialogQueryUserInfo
=
true
}
}).
catch
(
error
=>
{
console
.
log
(
error
);
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
loading
.
close
();
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'userInfo'
,
query
:
{
phone
:
this
.
queryUserInfo
.
agentPhone
,
huanjing
:
this
.
queryUserInfo
.
huanjing
.
toString
()}})
window
.
open
(
href
,
'_blank'
)
},
queryPhoneCodeSubmit
()
{
const
loading
=
this
.
$loading
({
...
...
@@ -756,15 +709,16 @@
this
.
myQueryPhoneCode
=
res
.
data
this
.
dialogQueryPhoneCode
=
true
}
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
loading
.
close
();
},
changeOrgSubmit
()
{
let
config
=
{
...
...
src/page/userInfo.vue
0 → 100644
View file @
4e751c7
<
template
xmlns:el-col=
"http://www.w3.org/1999/html"
>
<div>
<br/>
<span>
用户信息表(tbl_user_info)
</span>
<el-table
:data=
"tblUserInfos"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"uid"
label=
"UID"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"phone"
label=
"手机号码"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"用户名称"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
min-width=
"1"
>
</el-table-column>
</el-table>
<br/>
<br/>
<span>
代理人详情表(tbl_agent_properties)
</span>
<el-table
:data=
"tblAgentProperties"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"jobNumber"
label=
"工号"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"provinceCode"
label=
"省code"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"cityCode"
label=
"市code"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"teamCode"
label=
"职场code"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"fourLevelCode"
label=
"四级编码"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"fiveLevelCode"
label=
"五级编码"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"sixLevelCode"
label=
"六级编码"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"authStatus"
label=
"验证状态"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
min-width=
"2"
>
</el-table-column>
</el-table>
<br/>
<br/>
<span>
代理人客户表(tbl_agent_customer),只展示健康坊且非代理人的客户
</span>
<el-table
:data=
"tblAgentCustomers"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"name"
label=
"用户名称"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"refId"
label=
"用户UID"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"phone"
label=
"电话号"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"customerType"
label=
"客户类型"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"createTime"
label=
"创建时间"
min-width=
"2"
>
</el-table-column>
</el-table>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
phone
:
this
.
$route
.
query
.
phone
,
huanjing
:
this
.
$route
.
query
.
huanjing
,
tblUserInfos
:
[],
tblAgentProperties
:
[],
tblAgentCustomers
:
[]
}
},
mounted
()
{
this
.
activity
()
},
methods
:
{
activity
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'Loading'
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/userInfo/router?'
+
this
.
$qs
.
stringify
({
phone
:
this
.
phone
,
type
:
this
.
huanjing
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
.
data
)
this
.
tblUserInfos
=
res
.
data
.
tblUserInfos
this
.
tblAgentProperties
=
res
.
data
.
tblAgentProperties
this
.
tblAgentCustomers
=
res
.
data
.
tblAgentCustomers
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
</
script
>
src/router/index.js
View file @
4e751c7
...
...
@@ -3,6 +3,7 @@ import Router from 'vue-router'
import
index
from
'@/page/index'
import
tool
from
'@/page/tool'
import
activityConfig
from
'@/page/activityConfig'
import
userInfo
from
'@/page/userInfo'
Vue
.
use
(
Router
)
...
...
@@ -36,6 +37,14 @@ export default new Router({
meta
:
{
title
:
'测试工具平台'
}
},
{
path
:
'/userInfo'
,
component
:
userInfo
,
name
:
'userInfo'
,
meta
:
{
title
:
'测试工具平台'
}
}
]
}
...
...
Please
register
or
sign in
to post a comment