commit
Showing
3 changed files
with
101 additions
and
1 deletions
src/page/queryTjAccount.vue
0 → 100644
| 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> | ||
| 2 | <div> | ||
| 3 | <br/> | ||
| 4 | <el-table | ||
| 5 | :data="queryTjAccount" | ||
| 6 | border | ||
| 7 | style="width: 100%" | ||
| 8 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 9 | <el-table-column | ||
| 10 | prop="login_name" | ||
| 11 | label="账号名称" | ||
| 12 | min-width="2"> | ||
| 13 | </el-table-column> | ||
| 14 | <el-table-column | ||
| 15 | prop="password" | ||
| 16 | label="密码" | ||
| 17 | min-width="2"> | ||
| 18 | </el-table-column> | ||
| 19 | </el-table> | ||
| 20 | </div> | ||
| 21 | </template> | ||
| 22 | |||
| 23 | <script> | ||
| 24 | export default { | ||
| 25 | data() { | ||
| 26 | return { | ||
| 27 | login_name: this.$route.query.login_name, | ||
| 28 | province_code: this.$route.query.province_code, | ||
| 29 | city_code: this.$route.query.city_code, | ||
| 30 | team_code: this.$route.query.team_code, | ||
| 31 | location_code: this.$route.query.location_code, | ||
| 32 | five_code: this.$route.query.five_code, | ||
| 33 | queryTjAccount: [] | ||
| 34 | } | ||
| 35 | }, | ||
| 36 | mounted() { | ||
| 37 | this.activity() | ||
| 38 | }, | ||
| 39 | methods: { | ||
| 40 | activity() { | ||
| 41 | const loading = this.$loading({ | ||
| 42 | lock: true, | ||
| 43 | text: '加载中...', | ||
| 44 | spinner: 'el-icon-loading', | ||
| 45 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 46 | }); | ||
| 47 | let config = { | ||
| 48 | headers: { | ||
| 49 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 50 | } | ||
| 51 | } | ||
| 52 | this.$http.get('/tool/queryTjAccount?'+this.$qs.stringify({ | ||
| 53 | login_name: this.login_name, | ||
| 54 | province_code: this.province_code, | ||
| 55 | city_code: this.city_code, | ||
| 56 | team_code: this.team_code, | ||
| 57 | location_code: this.location_code, | ||
| 58 | five_code: this.five_code | ||
| 59 | }),config).then((res)=>{ | ||
| 60 | console.log(res.data) | ||
| 61 | this.queryTjAccount=res.data | ||
| 62 | loading.close(); | ||
| 63 | }).catch(error=>{ | ||
| 64 | console.log(error); | ||
| 65 | loading.close(); | ||
| 66 | this.$message({ | ||
| 67 | showClose: true, | ||
| 68 | message: '服务器处理失败,请核对参数!', | ||
| 69 | type: 'error' | ||
| 70 | }); | ||
| 71 | }) | ||
| 72 | } | ||
| 73 | } | ||
| 74 | } | ||
| 75 | </script> |
| ... | @@ -386,12 +386,18 @@ | ... | @@ -386,12 +386,18 @@ |
| 386 | </el-select> | 386 | </el-select> |
| 387 | </el-form-item> | 387 | </el-form-item> |
| 388 | <el-form-item> | 388 | <el-form-item> |
| 389 | <el-tooltip placement="right"> | 389 | <el-tooltip placement="left"> |
| 390 | <div slot="content"> | 390 | <div slot="content"> |
| 391 | 默认密码:12345678a<br/> | 391 | 默认密码:12345678a<br/> |
| 392 | </div> | 392 | </div> |
| 393 | <el-button round @click="tjchangeOrgAllSubmit">创建账号</el-button> | 393 | <el-button round @click="tjchangeOrgAllSubmit">创建账号</el-button> |
| 394 | </el-tooltip> | 394 | </el-tooltip> |
| 395 | <el-tooltip placement="right"> | ||
| 396 | <div slot="content"> | ||
| 397 | 账号登录名称可以为空,支持模糊查询<br/> | ||
| 398 | </div> | ||
| 399 | <el-button round @click="tjqueryAccountSubmit">查询账号</el-button> | ||
| 400 | </el-tooltip> | ||
| 395 | </el-form-item> | 401 | </el-form-item> |
| 396 | </div> | 402 | </div> |
| 397 | </el-card> | 403 | </el-card> |
| ... | @@ -1631,6 +1637,16 @@ | ... | @@ -1631,6 +1637,16 @@ |
| 1631 | console.log(error); | 1637 | console.log(error); |
| 1632 | }) | 1638 | }) |
| 1633 | }, | 1639 | }, |
| 1640 | tjqueryAccountSubmit() { | ||
| 1641 | const {href} = this.$router.resolve({ name:'queryTjAccount', query: | ||
| 1642 | {login_name: this.createTjAccount.account, | ||
| 1643 | province_code: this.createTjAccount.provinceCode.toString(), | ||
| 1644 | city_code: this.createTjAccount.cityCode.toString(), | ||
| 1645 | team_code: this.createTjAccount.teamCode.toString(), | ||
| 1646 | location_code: this.createTjAccount.fourCode.toString(), | ||
| 1647 | five_code: this.createTjAccount.fiveCode.toString()}}) | ||
| 1648 | window.open(href, '_blank') | ||
| 1649 | }, | ||
| 1634 | nlpApiSubmit() { | 1650 | nlpApiSubmit() { |
| 1635 | const {href} = this.$router.resolve({ name:'nlpApi', query: | 1651 | const {href} = this.$router.resolve({ name:'nlpApi', query: |
| 1636 | {keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "0"}}) | 1652 | {keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "0"}}) | ... | ... |
| ... | @@ -17,6 +17,7 @@ import hadoop from '@/page/hadoop' | ... | @@ -17,6 +17,7 @@ import hadoop from '@/page/hadoop' |
| 17 | import queryProvince from '@/page/queryProvince' | 17 | import queryProvince from '@/page/queryProvince' |
| 18 | import selectActStart from '@/page/selectActStart' | 18 | import selectActStart from '@/page/selectActStart' |
| 19 | import androidCode from '@/page/androidCode' | 19 | import androidCode from '@/page/androidCode' |
| 20 | import queryTjAccount from '@/page/queryTjAccount' | ||
| 20 | 21 | ||
| 21 | Vue.use(Router) | 22 | Vue.use(Router) |
| 22 | 23 | ||
| ... | @@ -100,6 +101,14 @@ export default new Router({ | ... | @@ -100,6 +101,14 @@ export default new Router({ |
| 100 | } | 101 | } |
| 101 | }, | 102 | }, |
| 102 | { | 103 | { |
| 104 | path: '/queryTjAccount', | ||
| 105 | component: queryTjAccount, | ||
| 106 | name: 'queryTjAccount', | ||
| 107 | meta: { | ||
| 108 | title: '测试工具平台' | ||
| 109 | } | ||
| 110 | }, | ||
| 111 | { | ||
| 103 | path: '/tjUser', | 112 | path: '/tjUser', |
| 104 | component: tjUser, | 113 | component: tjUser, |
| 105 | name: 'tjUser', | 114 | name: 'tjUser', | ... | ... |
-
Please register or sign in to post a comment