commit
Showing
3 changed files
with
142 additions
and
18 deletions
src/page/queryProvince.vue
0 → 100644
| 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> | ||
| 2 | <div> | ||
| 3 | <br/> | ||
| 4 | <el-table | ||
| 5 | :data="queryCity" | ||
| 6 | border | ||
| 7 | style="width: 100%" | ||
| 8 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 9 | <el-table-column | ||
| 10 | prop="city_name" | ||
| 11 | label="二级机构名称" | ||
| 12 | min-width="1"> | ||
| 13 | </el-table-column> | ||
| 14 | <el-table-column | ||
| 15 | prop="city_code" | ||
| 16 | label="二级机构code" | ||
| 17 | min-width="1"> | ||
| 18 | </el-table-column> | ||
| 19 | </el-table> | ||
| 20 | </div> | ||
| 21 | </template> | ||
| 22 | |||
| 23 | <script> | ||
| 24 | export default { | ||
| 25 | data() { | ||
| 26 | return { | ||
| 27 | code: this.$route.query.code, | ||
| 28 | queryCity: [] | ||
| 29 | } | ||
| 30 | }, | ||
| 31 | mounted() { | ||
| 32 | this.activity() | ||
| 33 | }, | ||
| 34 | methods: { | ||
| 35 | activity() { | ||
| 36 | const loading = this.$loading({ | ||
| 37 | lock: true, | ||
| 38 | text: '加载中...', | ||
| 39 | spinner: 'el-icon-loading', | ||
| 40 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 41 | }); | ||
| 42 | let config = { | ||
| 43 | headers: { | ||
| 44 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 45 | } | ||
| 46 | } | ||
| 47 | this.$http.get('/tool/queryCity?'+this.$qs.stringify({ | ||
| 48 | code: this.code, | ||
| 49 | }),config).then((res)=>{ | ||
| 50 | console.log(res.data) | ||
| 51 | this.queryCity=res.data | ||
| 52 | loading.close(); | ||
| 53 | }).catch(error=>{ | ||
| 54 | console.log(error); | ||
| 55 | loading.close(); | ||
| 56 | this.$message({ | ||
| 57 | showClose: true, | ||
| 58 | message: '服务器处理失败,请核对参数!', | ||
| 59 | type: 'error' | ||
| 60 | }); | ||
| 61 | }) | ||
| 62 | } | ||
| 63 | } | ||
| 64 | } | ||
| 65 | </script> |
| ... | @@ -348,50 +348,52 @@ | ... | @@ -348,50 +348,52 @@ |
| 348 | </el-form> | 348 | </el-form> |
| 349 | </el-col> | 349 | </el-col> |
| 350 | <el-col :span="8"> | 350 | <el-col :span="8"> |
| 351 | <el-form ref="callLinuxCommand" :model="callLinuxCommand" label-width="0px"> | 351 | <el-form ref="queryProvince" :model="queryProvince" label-width="0px"> |
| 352 | <el-card class="darkred" shadow="always"> | 352 | <el-card class="darkred" shadow="always"> |
| 353 | <div slot="header" class="clearfix"> | 353 | <div slot="header" class="clearfix"> |
| 354 | <span>查询打点服务器log</span> | 354 | <span>查询机构code</span> |
| 355 | </div> | 355 | </div> |
| 356 | <div class="text item"> | 356 | <div class="text item"> |
| 357 | <el-form-item> | 357 | <el-form-item> |
| 358 | <el-input placeholder="查询log行数" v-model="callLinuxCommand.size" clearable></el-input> | 358 | <el-select v-model="queryProvince.provinceCode" filterable placeholder="一级机构名称或code"> |
| 359 | </el-form-item> | ||
| 360 | <el-form-item> | ||
| 361 | <el-select v-model="callLinuxCommand.huanjing" placeholder="请选择执行环境"> | ||
| 362 | <el-option | 359 | <el-option |
| 363 | v-for="item in callLinuxCommandOptions" | 360 | v-for="item in queryProvinceOptions" |
| 364 | :key="item.value" | 361 | :key="item.province_code" |
| 365 | :label="item.label" | 362 | :label="item.province_name+' '+item.province_code" |
| 366 | :value="item.value"> | 363 | :value="item.province_code"> |
| 367 | </el-option> | 364 | </el-option> |
| 368 | </el-select> | 365 | </el-select> |
| 369 | </el-form-item> | 366 | </el-form-item> |
| 370 | <div style="margin: 15px 0;"></div> | ||
| 371 | <el-form-item> | 367 | <el-form-item> |
| 372 | <el-button round @click="callLinuxCommandSubmit">查询打点</el-button> | 368 | <el-button round @click="queryProvinceSubmit">查询二级机构</el-button> |
| 373 | </el-form-item> | 369 | </el-form-item> |
| 374 | </div> | 370 | </div> |
| 375 | </el-card> | 371 | </el-card> |
| 376 | </el-form> | 372 | </el-form> |
| 377 | </el-col> | 373 | </el-col> |
| 378 | <el-col :span="8"> | 374 | <el-col :span="8"> |
| 379 | <el-form ref="updateBe" :model="updateBe" label-width="0px"> | 375 | <el-form ref="callLinuxCommand" :model="callLinuxCommand" label-width="0px"> |
| 380 | <el-card class="darkred" shadow="always"> | 376 | <el-card class="darkred" shadow="always"> |
| 381 | <div slot="header" class="clearfix"> | 377 | <div slot="header" class="clearfix"> |
| 382 | <span>充值健康币</span> | 378 | <span>查询打点服务器log</span> |
| 383 | </div> | 379 | </div> |
| 384 | <div class="text item"> | 380 | <div class="text item"> |
| 385 | <el-form-item> | 381 | <el-form-item> |
| 386 | <el-input placeholder="请输入手机号" v-model="updateBe.phone" clearable></el-input> | 382 | <el-input placeholder="查询log行数" v-model="callLinuxCommand.size" clearable></el-input> |
| 387 | </el-form-item> | 383 | </el-form-item> |
| 388 | <div style="margin: 15px 0;"></div> | ||
| 389 | <el-form-item> | 384 | <el-form-item> |
| 390 | <el-input placeholder="请输入健康币充值数量" v-model="updateBe.chongzhi" clearable></el-input> | 385 | <el-select v-model="callLinuxCommand.huanjing" placeholder="请选择执行环境"> |
| 386 | <el-option | ||
| 387 | v-for="item in callLinuxCommandOptions" | ||
| 388 | :key="item.value" | ||
| 389 | :label="item.label" | ||
| 390 | :value="item.value"> | ||
| 391 | </el-option> | ||
| 392 | </el-select> | ||
| 391 | </el-form-item> | 393 | </el-form-item> |
| 392 | <div style="margin: 15px 0;"></div> | 394 | <div style="margin: 15px 0;"></div> |
| 393 | <el-form-item> | 395 | <el-form-item> |
| 394 | <el-button round @click="onSubmit">充值</el-button> | 396 | <el-button round @click="callLinuxCommandSubmit">查询打点</el-button> |
| 395 | </el-form-item> | 397 | </el-form-item> |
| 396 | </div> | 398 | </div> |
| 397 | </el-card> | 399 | </el-card> |
| ... | @@ -428,6 +430,28 @@ | ... | @@ -428,6 +430,28 @@ |
| 428 | </el-form> | 430 | </el-form> |
| 429 | </el-col> | 431 | </el-col> |
| 430 | <el-col :span="8"> | 432 | <el-col :span="8"> |
| 433 | <el-form ref="updateBe" :model="updateBe" label-width="0px"> | ||
| 434 | <el-card class="darkred" shadow="always"> | ||
| 435 | <div slot="header" class="clearfix"> | ||
| 436 | <span>充值健康币</span> | ||
| 437 | </div> | ||
| 438 | <div class="text item"> | ||
| 439 | <el-form-item> | ||
| 440 | <el-input placeholder="请输入手机号" v-model="updateBe.phone" clearable></el-input> | ||
| 441 | </el-form-item> | ||
| 442 | <div style="margin: 15px 0;"></div> | ||
| 443 | <el-form-item> | ||
| 444 | <el-input placeholder="请输入健康币充值数量" v-model="updateBe.chongzhi" clearable></el-input> | ||
| 445 | </el-form-item> | ||
| 446 | <div style="margin: 15px 0;"></div> | ||
| 447 | <el-form-item> | ||
| 448 | <el-button round @click="onSubmit">充值</el-button> | ||
| 449 | </el-form-item> | ||
| 450 | </div> | ||
| 451 | </el-card> | ||
| 452 | </el-form> | ||
| 453 | </el-col> | ||
| 454 | <el-col :span="8"> | ||
| 431 | <el-form ref="bizData" :model="bizData" label-width="0px"> | 455 | <el-form ref="bizData" :model="bizData" label-width="0px"> |
| 432 | <el-card class="darkred" shadow="always"> | 456 | <el-card class="darkred" shadow="always"> |
| 433 | <div slot="header" class="clearfix"> | 457 | <div slot="header" class="clearfix"> |
| ... | @@ -690,6 +714,13 @@ | ... | @@ -690,6 +714,13 @@ |
| 690 | value: 'peripheral', | 714 | value: 'peripheral', |
| 691 | label: 'peripheral' | 715 | label: 'peripheral' |
| 692 | }], | 716 | }], |
| 717 | queryProvince: { | ||
| 718 | provinceCode: [{ | ||
| 719 | province_code: '', | ||
| 720 | province_name: '' | ||
| 721 | }] | ||
| 722 | }, | ||
| 723 | queryProvinceOptions: [], | ||
| 693 | changeOrgAll: { | 724 | changeOrgAll: { |
| 694 | phone: '', | 725 | phone: '', |
| 695 | provinceCode: [{ | 726 | provinceCode: [{ |
| ... | @@ -739,6 +770,7 @@ | ... | @@ -739,6 +770,7 @@ |
| 739 | mounted() { | 770 | mounted() { |
| 740 | this.openToolPage(); | 771 | this.openToolPage(); |
| 741 | this.loadProvince(); | 772 | this.loadProvince(); |
| 773 | this.loadQueryProvince(); | ||
| 742 | }, | 774 | }, |
| 743 | methods: { | 775 | methods: { |
| 744 | openToolPage() { | 776 | openToolPage() { |
| ... | @@ -753,6 +785,19 @@ | ... | @@ -753,6 +785,19 @@ |
| 753 | console.log(error); | 785 | console.log(error); |
| 754 | }) | 786 | }) |
| 755 | }, | 787 | }, |
| 788 | loadQueryProvince() { | ||
| 789 | let config = { | ||
| 790 | headers: { | ||
| 791 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 792 | } | ||
| 793 | } | ||
| 794 | this.$http.get('/tool/queryProvince',config).then((res)=>{ | ||
| 795 | console.log(res); | ||
| 796 | this.queryProvinceOptions=res.data; | ||
| 797 | }).catch(error=>{ | ||
| 798 | console.log(error); | ||
| 799 | }) | ||
| 800 | }, | ||
| 756 | loadProvince() { | 801 | loadProvince() { |
| 757 | let config = { | 802 | let config = { |
| 758 | headers: { | 803 | headers: { |
| ... | @@ -1056,6 +1101,11 @@ | ... | @@ -1056,6 +1101,11 @@ |
| 1056 | {size: this.callLinuxCommand.size, huanjing: this.callLinuxCommand.huanjing.toString()}}) | 1101 | {size: this.callLinuxCommand.size, huanjing: this.callLinuxCommand.huanjing.toString()}}) |
| 1057 | window.open(href, '_blank') | 1102 | window.open(href, '_blank') |
| 1058 | }, | 1103 | }, |
| 1104 | queryProvinceSubmit() { | ||
| 1105 | const {href} = this.$router.resolve({ name:'queryProvince', query: | ||
| 1106 | {code: this.queryProvince.provinceCode.toString()}}) | ||
| 1107 | window.open(href, '_blank') | ||
| 1108 | }, | ||
| 1059 | queryPhoneCodeSubmit() { | 1109 | queryPhoneCodeSubmit() { |
| 1060 | const loading = this.$loading({ | 1110 | const loading = this.$loading({ |
| 1061 | lock: true, | 1111 | lock: true, | ... | ... |
| ... | @@ -13,6 +13,7 @@ import nlp from '@/page/nlp' | ... | @@ -13,6 +13,7 @@ import nlp from '@/page/nlp' |
| 13 | import toolAime from '@/page/toolAime' | 13 | import toolAime from '@/page/toolAime' |
| 14 | import nlpApi from '@/page/nlpApi' | 14 | import nlpApi from '@/page/nlpApi' |
| 15 | import hadoop from '@/page/hadoop' | 15 | import hadoop from '@/page/hadoop' |
| 16 | import queryProvince from '@/page/queryProvince' | ||
| 16 | 17 | ||
| 17 | Vue.use(Router) | 18 | Vue.use(Router) |
| 18 | 19 | ||
| ... | @@ -72,6 +73,14 @@ export default new Router({ | ... | @@ -72,6 +73,14 @@ export default new Router({ |
| 72 | } | 73 | } |
| 73 | }, | 74 | }, |
| 74 | { | 75 | { |
| 76 | path: '/queryProvince', | ||
| 77 | component: queryProvince, | ||
| 78 | name: 'queryProvince', | ||
| 79 | meta: { | ||
| 80 | title: '测试工具平台' | ||
| 81 | } | ||
| 82 | }, | ||
| 83 | { | ||
| 75 | path: '/tjUser', | 84 | path: '/tjUser', |
| 76 | component: tjUser, | 85 | component: tjUser, |
| 77 | name: 'tjUser', | 86 | name: 'tjUser', | ... | ... |
-
Please register or sign in to post a comment