commit
Showing
4 changed files
with
187 additions
and
53 deletions
| ... | @@ -292,15 +292,16 @@ | ... | @@ -292,15 +292,16 @@ |
| 292 | this.activityPopPanels=res.data.activityPopPanels | 292 | this.activityPopPanels=res.data.activityPopPanels |
| 293 | this.operateBannerInfos=res.data.operateBannerInfos | 293 | this.operateBannerInfos=res.data.operateBannerInfos |
| 294 | this.operateMsgInfos=res.data.operateMsgInfos | 294 | this.operateMsgInfos=res.data.operateMsgInfos |
| 295 | loading.close(); | ||
| 295 | }).catch(error=>{ | 296 | }).catch(error=>{ |
| 296 | console.log(error); | 297 | console.log(error); |
| 298 | loading.close(); | ||
| 297 | this.$message({ | 299 | this.$message({ |
| 298 | showClose: true, | 300 | showClose: true, |
| 299 | message: '服务器处理失败,请核对参数!', | 301 | message: '服务器处理失败,请核对参数!', |
| 300 | type: 'error' | 302 | type: 'error' |
| 301 | }); | 303 | }); |
| 302 | }) | 304 | }) |
| 303 | loading.close(); | ||
| 304 | }, | 305 | }, |
| 305 | openFullScreen() { | 306 | openFullScreen() { |
| 306 | const loading = this.$loading({ | 307 | const loading = this.$loading({ | ... | ... |
| ... | @@ -115,7 +115,7 @@ | ... | @@ -115,7 +115,7 @@ |
| 115 | <el-form ref="createUserInfo" :model="queryUserInfo" label-width="0px"> | 115 | <el-form ref="createUserInfo" :model="queryUserInfo" label-width="0px"> |
| 116 | <el-card class="darkred" shadow="always"> | 116 | <el-card class="darkred" shadow="always"> |
| 117 | <div slot="header" class="clearfix"> | 117 | <div slot="header" class="clearfix"> |
| 118 | <span>查询指定代理人的健康坊用户</span> | 118 | <span>查询用户信息</span> |
| 119 | </div> | 119 | </div> |
| 120 | <div class="text item"> | 120 | <div class="text item"> |
| 121 | <el-form-item> | 121 | <el-form-item> |
| ... | @@ -138,15 +138,6 @@ | ... | @@ -138,15 +138,6 @@ |
| 138 | </div> | 138 | </div> |
| 139 | </el-card> | 139 | </el-card> |
| 140 | </el-form> | 140 | </el-form> |
| 141 | <el-dialog | ||
| 142 | title="健康坊用户:" | ||
| 143 | :visible.sync="dialogQueryUserInfo" | ||
| 144 | width="30%"> | ||
| 145 | <span>{{myQueryUserInfo}}</span> | ||
| 146 | <span slot="footer" class="dialog-footer"> | ||
| 147 | <el-button type="primary" v-clipboard:copy="JSON.stringify(myQueryUserInfo)" v-clipboard:success="onCopy" @click="dialogQueryUserInfo = false">点击复制</el-button> | ||
| 148 | </span> | ||
| 149 | </el-dialog> | ||
| 150 | </el-col> | 141 | </el-col> |
| 151 | <el-col :span="8"> | 142 | <el-col :span="8"> |
| 152 | <el-form ref="queryPhoneCode" :model="queryPhoneCode" label-width="0px"> | 143 | <el-form ref="queryPhoneCode" :model="queryPhoneCode" label-width="0px"> |
| ... | @@ -681,47 +672,9 @@ | ... | @@ -681,47 +672,9 @@ |
| 681 | }) | 672 | }) |
| 682 | }, | 673 | }, |
| 683 | queryUserInfoSubmit() { | 674 | queryUserInfoSubmit() { |
| 684 | const loading = this.$loading({ | 675 | const {href} = this.$router.resolve({ name:'userInfo', query: |
| 685 | lock: true, | 676 | {phone: this.queryUserInfo.agentPhone, huanjing: this.queryUserInfo.huanjing.toString()}}) |
| 686 | text: 'Loading', | 677 | window.open(href, '_blank') |
| 687 | spinner: 'el-icon-loading', | ||
| 688 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 689 | }); | ||
| 690 | let config = { | ||
| 691 | headers: { | ||
| 692 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 693 | } | ||
| 694 | } | ||
| 695 | this.$http.get('/tool/queryJiankangfang?'+this.$qs.stringify({ | ||
| 696 | phone: this.queryUserInfo.agentPhone, | ||
| 697 | type: this.queryUserInfo.huanjing.toString() | ||
| 698 | }),config).then((res)=>{ | ||
| 699 | console.log(res); | ||
| 700 | if(res.data=='usernull') { | ||
| 701 | this.$message({ | ||
| 702 | showClose: true, | ||
| 703 | message: '代理人手机号不存在', | ||
| 704 | type: 'error' | ||
| 705 | }); | ||
| 706 | } else if(res.data=='typeError') { | ||
| 707 | this.$message({ | ||
| 708 | showClose: true, | ||
| 709 | message: '执行环境参数错误', | ||
| 710 | type: 'error' | ||
| 711 | }); | ||
| 712 | } else { | ||
| 713 | this.myQueryUserInfo = res.data | ||
| 714 | this.dialogQueryUserInfo = true | ||
| 715 | } | ||
| 716 | }).catch(error=>{ | ||
| 717 | console.log(error); | ||
| 718 | this.$message({ | ||
| 719 | showClose: true, | ||
| 720 | message: '服务器处理失败,请核对参数!', | ||
| 721 | type: 'error' | ||
| 722 | }); | ||
| 723 | }) | ||
| 724 | loading.close(); | ||
| 725 | }, | 678 | }, |
| 726 | queryPhoneCodeSubmit() { | 679 | queryPhoneCodeSubmit() { |
| 727 | const loading = this.$loading({ | 680 | const loading = this.$loading({ |
| ... | @@ -756,15 +709,16 @@ | ... | @@ -756,15 +709,16 @@ |
| 756 | this.myQueryPhoneCode = res.data | 709 | this.myQueryPhoneCode = res.data |
| 757 | this.dialogQueryPhoneCode = true | 710 | this.dialogQueryPhoneCode = true |
| 758 | } | 711 | } |
| 712 | loading.close(); | ||
| 759 | }).catch(error=>{ | 713 | }).catch(error=>{ |
| 760 | console.log(error); | 714 | console.log(error); |
| 715 | loading.close(); | ||
| 761 | this.$message({ | 716 | this.$message({ |
| 762 | showClose: true, | 717 | showClose: true, |
| 763 | message: '服务器处理失败,请核对参数!', | 718 | message: '服务器处理失败,请核对参数!', |
| 764 | type: 'error' | 719 | type: 'error' |
| 765 | }); | 720 | }); |
| 766 | }) | 721 | }) |
| 767 | loading.close(); | ||
| 768 | }, | 722 | }, |
| 769 | changeOrgSubmit() { | 723 | changeOrgSubmit() { |
| 770 | let config = { | 724 | let config = { | ... | ... |
src/page/userInfo.vue
0 → 100644
| 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> | ||
| 2 | <div> | ||
| 3 | <br/> | ||
| 4 | <span>用户信息表(tbl_user_info)</span> | ||
| 5 | <el-table | ||
| 6 | :data="tblUserInfos" | ||
| 7 | border | ||
| 8 | style="width: 100%" | ||
| 9 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 10 | <el-table-column | ||
| 11 | prop="uid" | ||
| 12 | label="UID" | ||
| 13 | min-width="1"> | ||
| 14 | </el-table-column> | ||
| 15 | <el-table-column | ||
| 16 | prop="phone" | ||
| 17 | label="手机号码" | ||
| 18 | min-width="1"> | ||
| 19 | </el-table-column> | ||
| 20 | <el-table-column | ||
| 21 | prop="name" | ||
| 22 | label="用户名称" | ||
| 23 | min-width="1"> | ||
| 24 | </el-table-column> | ||
| 25 | <el-table-column | ||
| 26 | prop="createTime" | ||
| 27 | label="创建时间" | ||
| 28 | min-width="1"> | ||
| 29 | </el-table-column> | ||
| 30 | </el-table> | ||
| 31 | <br/> | ||
| 32 | <br/> | ||
| 33 | <span>代理人详情表(tbl_agent_properties)</span> | ||
| 34 | <el-table | ||
| 35 | :data="tblAgentProperties" | ||
| 36 | border | ||
| 37 | style="width: 100%" | ||
| 38 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 39 | <el-table-column | ||
| 40 | prop="jobNumber" | ||
| 41 | label="工号" | ||
| 42 | min-width="1"> | ||
| 43 | </el-table-column> | ||
| 44 | <el-table-column | ||
| 45 | prop="provinceCode" | ||
| 46 | label="省code" | ||
| 47 | min-width="1"> | ||
| 48 | </el-table-column> | ||
| 49 | <el-table-column | ||
| 50 | prop="cityCode" | ||
| 51 | label="市code" | ||
| 52 | min-width="1"> | ||
| 53 | </el-table-column> | ||
| 54 | <el-table-column | ||
| 55 | prop="teamCode" | ||
| 56 | label="职场code" | ||
| 57 | min-width="1"> | ||
| 58 | </el-table-column> | ||
| 59 | <el-table-column | ||
| 60 | prop="fourLevelCode" | ||
| 61 | label="四级编码" | ||
| 62 | min-width="1"> | ||
| 63 | </el-table-column> | ||
| 64 | <el-table-column | ||
| 65 | prop="fiveLevelCode" | ||
| 66 | label="五级编码" | ||
| 67 | min-width="1"> | ||
| 68 | </el-table-column> | ||
| 69 | <el-table-column | ||
| 70 | prop="sixLevelCode" | ||
| 71 | label="六级编码" | ||
| 72 | min-width="1"> | ||
| 73 | </el-table-column> | ||
| 74 | <el-table-column | ||
| 75 | prop="authStatus" | ||
| 76 | label="验证状态" | ||
| 77 | min-width="1"> | ||
| 78 | </el-table-column> | ||
| 79 | <el-table-column | ||
| 80 | prop="createTime" | ||
| 81 | label="创建时间" | ||
| 82 | min-width="2"> | ||
| 83 | </el-table-column> | ||
| 84 | </el-table> | ||
| 85 | <br/> | ||
| 86 | <br/> | ||
| 87 | <span>代理人客户表(tbl_agent_customer),只展示健康坊且非代理人的客户</span> | ||
| 88 | <el-table | ||
| 89 | :data="tblAgentCustomers" | ||
| 90 | border | ||
| 91 | style="width: 100%" | ||
| 92 | :header-cell-style="{background: 'deepskyblue', color: 'snow'}"> | ||
| 93 | <el-table-column | ||
| 94 | prop="name" | ||
| 95 | label="用户名称" | ||
| 96 | min-width="1"> | ||
| 97 | </el-table-column> | ||
| 98 | <el-table-column | ||
| 99 | prop="refId" | ||
| 100 | label="用户UID" | ||
| 101 | min-width="1"> | ||
| 102 | </el-table-column> | ||
| 103 | <el-table-column | ||
| 104 | prop="phone" | ||
| 105 | label="电话号" | ||
| 106 | min-width="1"> | ||
| 107 | </el-table-column> | ||
| 108 | <el-table-column | ||
| 109 | prop="customerType" | ||
| 110 | label="客户类型" | ||
| 111 | min-width="1"> | ||
| 112 | </el-table-column> | ||
| 113 | <el-table-column | ||
| 114 | prop="createTime" | ||
| 115 | label="创建时间" | ||
| 116 | min-width="2"> | ||
| 117 | </el-table-column> | ||
| 118 | </el-table> | ||
| 119 | </div> | ||
| 120 | </template> | ||
| 121 | |||
| 122 | <script> | ||
| 123 | export default { | ||
| 124 | data() { | ||
| 125 | return { | ||
| 126 | phone: this.$route.query.phone, | ||
| 127 | huanjing: this.$route.query.huanjing, | ||
| 128 | tblUserInfos: [], | ||
| 129 | tblAgentProperties: [], | ||
| 130 | tblAgentCustomers: [] | ||
| 131 | } | ||
| 132 | }, | ||
| 133 | mounted() { | ||
| 134 | this.activity() | ||
| 135 | }, | ||
| 136 | methods: { | ||
| 137 | activity() { | ||
| 138 | const loading = this.$loading({ | ||
| 139 | lock: true, | ||
| 140 | text: 'Loading', | ||
| 141 | spinner: 'el-icon-loading', | ||
| 142 | background: 'rgba(0, 0, 0, 0.7)' | ||
| 143 | }); | ||
| 144 | let config = { | ||
| 145 | headers: { | ||
| 146 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 147 | } | ||
| 148 | } | ||
| 149 | this.$http.get('/userInfo/router?'+this.$qs.stringify({ | ||
| 150 | phone: this.phone, | ||
| 151 | type: this.huanjing | ||
| 152 | }),config).then((res)=>{ | ||
| 153 | console.log(res.data) | ||
| 154 | this.tblUserInfos=res.data.tblUserInfos | ||
| 155 | this.tblAgentProperties=res.data.tblAgentProperties | ||
| 156 | this.tblAgentCustomers=res.data.tblAgentCustomers | ||
| 157 | loading.close(); | ||
| 158 | }).catch(error=>{ | ||
| 159 | console.log(error); | ||
| 160 | loading.close(); | ||
| 161 | this.$message({ | ||
| 162 | showClose: true, | ||
| 163 | message: '服务器处理失败,请核对参数!', | ||
| 164 | type: 'error' | ||
| 165 | }); | ||
| 166 | }) | ||
| 167 | } | ||
| 168 | } | ||
| 169 | } | ||
| 170 | </script> |
| ... | @@ -3,6 +3,7 @@ import Router from 'vue-router' | ... | @@ -3,6 +3,7 @@ import Router from 'vue-router' |
| 3 | import index from '@/page/index' | 3 | import index from '@/page/index' |
| 4 | import tool from '@/page/tool' | 4 | import tool from '@/page/tool' |
| 5 | import activityConfig from '@/page/activityConfig' | 5 | import activityConfig from '@/page/activityConfig' |
| 6 | import userInfo from '@/page/userInfo' | ||
| 6 | 7 | ||
| 7 | Vue.use(Router) | 8 | Vue.use(Router) |
| 8 | 9 | ||
| ... | @@ -36,6 +37,14 @@ export default new Router({ | ... | @@ -36,6 +37,14 @@ export default new Router({ |
| 36 | meta: { | 37 | meta: { |
| 37 | title: '测试工具平台' | 38 | title: '测试工具平台' |
| 38 | } | 39 | } |
| 40 | }, | ||
| 41 | { | ||
| 42 | path: '/userInfo', | ||
| 43 | component: userInfo, | ||
| 44 | name: 'userInfo', | ||
| 45 | meta: { | ||
| 46 | title: '测试工具平台' | ||
| 47 | } | ||
| 39 | } | 48 | } |
| 40 | ] | 49 | ] |
| 41 | } | 50 | } | ... | ... |
-
Please register or sign in to post a comment