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
612323fa
...
612323fa9dd4543b4522f06725c968070de8aa2c
authored
2021-05-17 17:19:36 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
55639969
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
18 deletions
src/page/queryProvince.vue
src/page/tool.vue
src/router/index.js
src/page/queryProvince.vue
0 → 100644
View file @
612323f
<
template
xmlns:el-col=
"http://www.w3.org/1999/html"
>
<div>
<br/>
<el-table
:data=
"queryCity"
border
style=
"width: 100%"
:header-cell-style=
"
{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop=
"city_name"
label=
"二级机构名称"
min-width=
"1"
>
</el-table-column>
<el-table-column
prop=
"city_code"
label=
"二级机构code"
min-width=
"1"
>
</el-table-column>
</el-table>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
code
:
this
.
$route
.
query
.
code
,
queryCity
:
[]
}
},
mounted
()
{
this
.
activity
()
},
methods
:
{
activity
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
text
:
'加载中...'
,
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/queryCity?'
+
this
.
$qs
.
stringify
({
code
:
this
.
code
,
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
.
data
)
this
.
queryCity
=
res
.
data
loading
.
close
();
}).
catch
(
error
=>
{
console
.
log
(
error
);
loading
.
close
();
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
</
script
>
src/page/tool.vue
View file @
612323f
...
...
@@ -348,50 +348,52 @@
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"
callLinuxCommand"
:model=
"callLinuxCommand
"
label-width=
"0px"
>
<el-form
ref=
"
queryProvince"
:model=
"queryProvince
"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
查询
打点服务器log
</span>
<span>
查询
机构code
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"查询log行数"
v-model=
"callLinuxCommand.size"
clearable
></el-input>
</el-form-item>
<el-form-item>
<el-select
v-model=
"callLinuxCommand.huanjing"
placeholder=
"请选择执行环境"
>
<el-select
v-model=
"queryProvince.provinceCode"
filterable
placeholder=
"一级机构名称或code"
>
<el-option
v-for=
"item in
callLinuxCommand
Options"
:key=
"item.
valu
e"
:label=
"item.
label
"
:value=
"item.
valu
e"
>
v-for=
"item in
queryProvince
Options"
:key=
"item.
province_cod
e"
:label=
"item.
province_name+' '+item.province_code
"
:value=
"item.
province_cod
e"
>
</el-option>
</el-select>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"
callLinuxCommandSubmit"
>
查询打点
</el-button>
<el-button
round
@
click=
"
queryProvinceSubmit"
>
查询二级机构
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"
updateBe"
:model=
"updateBe
"
label-width=
"0px"
>
<el-form
ref=
"
callLinuxCommand"
:model=
"callLinuxCommand
"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
充值健康币
</span>
<span>
查询打点服务器log
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"
请输入手机号"
v-model=
"updateBe.phon
e"
clearable
></el-input>
<el-input
placeholder=
"
查询log行数"
v-model=
"callLinuxCommand.siz
e"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-input
placeholder=
"请输入健康币充值数量"
v-model=
"updateBe.chongzhi"
clearable
></el-input>
<el-select
v-model=
"callLinuxCommand.huanjing"
placeholder=
"请选择执行环境"
>
<el-option
v-for=
"item in callLinuxCommandOptions"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"
onSubmit"
>
充值
</el-button>
<el-button
round
@
click=
"
callLinuxCommandSubmit"
>
查询打点
</el-button>
</el-form-item>
</div>
</el-card>
...
...
@@ -428,6 +430,28 @@
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"updateBe"
:model=
"updateBe"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
充值健康币
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入手机号"
v-model=
"updateBe.phone"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-input
placeholder=
"请输入健康币充值数量"
v-model=
"updateBe.chongzhi"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"onSubmit"
>
充值
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"bizData"
:model=
"bizData"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -690,6 +714,13 @@
value
:
'peripheral'
,
label
:
'peripheral'
}],
queryProvince
:
{
provinceCode
:
[{
province_code
:
''
,
province_name
:
''
}]
},
queryProvinceOptions
:
[],
changeOrgAll
:
{
phone
:
''
,
provinceCode
:
[{
...
...
@@ -739,6 +770,7 @@
mounted
()
{
this
.
openToolPage
();
this
.
loadProvince
();
this
.
loadQueryProvince
();
},
methods
:
{
openToolPage
()
{
...
...
@@ -753,6 +785,19 @@
console
.
log
(
error
);
})
},
loadQueryProvince
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/queryProvince'
,
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
queryProvinceOptions
=
res
.
data
;
}).
catch
(
error
=>
{
console
.
log
(
error
);
})
},
loadProvince
()
{
let
config
=
{
headers
:
{
...
...
@@ -1056,6 +1101,11 @@
{
size
:
this
.
callLinuxCommand
.
size
,
huanjing
:
this
.
callLinuxCommand
.
huanjing
.
toString
()}})
window
.
open
(
href
,
'_blank'
)
},
queryProvinceSubmit
()
{
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'queryProvince'
,
query
:
{
code
:
this
.
queryProvince
.
provinceCode
.
toString
()}})
window
.
open
(
href
,
'_blank'
)
},
queryPhoneCodeSubmit
()
{
const
loading
=
this
.
$loading
({
lock
:
true
,
...
...
src/router/index.js
View file @
612323f
...
...
@@ -13,6 +13,7 @@ import nlp from '@/page/nlp'
import
toolAime
from
'@/page/toolAime'
import
nlpApi
from
'@/page/nlpApi'
import
hadoop
from
'@/page/hadoop'
import
queryProvince
from
'@/page/queryProvince'
Vue
.
use
(
Router
)
...
...
@@ -72,6 +73,14 @@ export default new Router({
}
},
{
path
:
'/queryProvince'
,
component
:
queryProvince
,
name
:
'queryProvince'
,
meta
:
{
title
:
'测试工具平台'
}
},
{
path
:
'/tjUser'
,
component
:
tjUser
,
name
:
'tjUser'
,
...
...
Please
register
or
sign in
to post a comment