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
f81e76bf
...
f81e76bf3b4aa58b67b99fd44bdf13bbe3bbd438
authored
2022-02-21 11:47:47 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
3e3e310b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
src/page/toolData.vue
src/page/toolData.vue
View file @
f81e76b
...
...
@@ -128,9 +128,9 @@
<el-select
v-model=
"bigdataReport.project"
placeholder=
"请选择项目"
>
<el-option
v-for=
"item in projectOptions"
:key=
"item.value"
:label=
"item.
label
"
:value=
"item.value"
>
:key=
"item.
project_
value"
:label=
"item.
project_name
"
:value=
"item.
project_
value"
>
</el-option>
</el-select>
</el-form-item>
...
...
@@ -253,14 +253,12 @@
bigdataReport
:
{
project
:
[]
},
projectOptions
:
[{
value
:
'com.chinabr.test.testcase.bigdata.HuoDongRuKou'
,
label
:
'活动入口优化'
}]
projectOptions
:
[]
}
},
mounted
()
{
this
.
openToolPage
();
this
.
loadProjectName
();
},
methods
:
{
openToolPage
()
{
...
...
@@ -310,6 +308,19 @@
const
{
href
}
=
this
.
$router
.
resolve
({
name
:
'bigdataReport'
,
query
:
{
project
:
this
.
bigdataReport
.
project
.
toString
()}})
window
.
open
(
href
,
'_blank'
)
},
loadProjectName
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/bigdata/loadProjectName'
,
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
this
.
projectOptions
=
res
.
data
;
}).
catch
(
error
=>
{
console
.
log
(
error
);
})
}
}
}
...
...
Please
register
or
sign in
to post a comment