commit
Showing
1 changed file
with
18 additions
and
7 deletions
| ... | @@ -128,9 +128,9 @@ | ... | @@ -128,9 +128,9 @@ |
| 128 | <el-select v-model="bigdataReport.project" placeholder="请选择项目"> | 128 | <el-select v-model="bigdataReport.project" placeholder="请选择项目"> |
| 129 | <el-option | 129 | <el-option |
| 130 | v-for="item in projectOptions" | 130 | v-for="item in projectOptions" |
| 131 | :key="item.value" | 131 | :key="item.project_value" |
| 132 | :label="item.label" | 132 | :label="item.project_name" |
| 133 | :value="item.value"> | 133 | :value="item.project_value"> |
| 134 | </el-option> | 134 | </el-option> |
| 135 | </el-select> | 135 | </el-select> |
| 136 | </el-form-item> | 136 | </el-form-item> |
| ... | @@ -253,14 +253,12 @@ | ... | @@ -253,14 +253,12 @@ |
| 253 | bigdataReport: { | 253 | bigdataReport: { |
| 254 | project: [] | 254 | project: [] |
| 255 | }, | 255 | }, |
| 256 | projectOptions: [{ | 256 | projectOptions: [] |
| 257 | value: 'com.chinabr.test.testcase.bigdata.HuoDongRuKou', | ||
| 258 | label: '活动入口优化' | ||
| 259 | }] | ||
| 260 | } | 257 | } |
| 261 | }, | 258 | }, |
| 262 | mounted() { | 259 | mounted() { |
| 263 | this.openToolPage(); | 260 | this.openToolPage(); |
| 261 | this.loadProjectName(); | ||
| 264 | }, | 262 | }, |
| 265 | methods: { | 263 | methods: { |
| 266 | openToolPage() { | 264 | openToolPage() { |
| ... | @@ -310,6 +308,19 @@ | ... | @@ -310,6 +308,19 @@ |
| 310 | const {href} = this.$router.resolve({ name:'bigdataReport', query: | 308 | const {href} = this.$router.resolve({ name:'bigdataReport', query: |
| 311 | { project: this.bigdataReport.project.toString()}}) | 309 | { project: this.bigdataReport.project.toString()}}) |
| 312 | window.open(href, '_blank') | 310 | window.open(href, '_blank') |
| 311 | }, | ||
| 312 | loadProjectName() { | ||
| 313 | let config = { | ||
| 314 | headers: { | ||
| 315 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 316 | } | ||
| 317 | } | ||
| 318 | this.$http.get('/bigdata/loadProjectName',config).then((res)=>{ | ||
| 319 | console.log(res); | ||
| 320 | this.projectOptions=res.data; | ||
| 321 | }).catch(error=>{ | ||
| 322 | console.log(error); | ||
| 323 | }) | ||
| 313 | } | 324 | } |
| 314 | } | 325 | } |
| 315 | } | 326 | } | ... | ... |
-
Please register or sign in to post a comment