commit
Showing
4 changed files
with
216 additions
and
180 deletions
| ... | @@ -5,132 +5,29 @@ | ... | @@ -5,132 +5,29 @@ |
| 5 | class="el-menu-demo" | 5 | class="el-menu-demo" |
| 6 | mode="horizontal" | 6 | mode="horizontal" |
| 7 | @select="handleSelect" | 7 | @select="handleSelect" |
| 8 | router | ||
| 8 | background-color="#545c64" | 9 | background-color="#545c64" |
| 9 | text-color="#fff" | 10 | text-color="#fff" |
| 10 | active-text-color="#ffd04b"> | 11 | active-text-color="#ffd04b"> |
| 11 | <el-menu-item index="1">测试工具</el-menu-item> | 12 | <el-menu-item index="/tool">测试工具</el-menu-item> |
| 12 | <el-submenu index="2"> | 13 | <el-submenu> |
| 13 | <template slot="title">常用链接</template> | 14 | <template slot="title">常用链接</template> |
| 14 | <el-menu-item index="2-1"><a class="link" href="http://192.168.8.216:8080/jenkins/" target="_blank">测试jenkins</a></el-menu-item> | 15 | <el-menu-item><a class="link" href="http://192.168.8.216:8080/jenkins/" target="_blank">测试jenkins</a></el-menu-item> |
| 15 | <el-menu-item index="2-2"><a class="link" href="http://192.168.8.211/www/index.php?m=project&f=task" target="_blank">禅道</a></el-menu-item> | 16 | <el-menu-item><a class="link" href="http://192.168.8.211/www/index.php?m=project&f=task" target="_blank">禅道</a></el-menu-item> |
| 16 | <el-menu-item index="2-3"><a class="link" href="http://192.168.8.206:803/copythat/" target="_blank">产品需求</a></el-menu-item> | 17 | <el-menu-item><a class="link" href="http://192.168.8.206:803/copythat/" target="_blank">产品需求</a></el-menu-item> |
| 17 | <el-menu-item index="2-4"><a class="link" href="http://qa.jxbrty.com/devops-web/#/signin" target="_blank">运营平台</a></el-menu-item> | 18 | <el-menu-item><a class="link" href="http://qa.jxbrty.com/devops-web/#/signin" target="_blank">运营平台</a></el-menu-item> |
| 18 | <el-menu-item index="2-5"><a class="link" href="http://192.168.8.207/login" target="_blank">统计平台</a></el-menu-item> | 19 | <el-menu-item><a class="link" href="http://192.168.8.207/login" target="_blank">统计平台</a></el-menu-item> |
| 19 | <el-menu-item index="2-6"><a class="link" href="http://221.216.94.116:802/#group/5/" target="_blank">APP安装包下载</a></el-menu-item> | 20 | <el-menu-item><a class="link" href="http://221.216.94.116:802/#group/5/" target="_blank">APP安装包下载</a></el-menu-item> |
| 20 | <el-menu-item index="2-7"><a class="link" href="http://gitlab.jxbrty.com/" target="_blank">GitLab平台</a></el-menu-item> | 21 | <el-menu-item><a class="link" href="http://gitlab.jxbrty.com/" target="_blank">GitLab平台</a></el-menu-item> |
| 21 | <el-menu-item index="2-8"><a class="link" href="http://192.168.8.211:8090/pages/viewpage.action?pageId=32513105" target="_blank">Confluence平台</a></el-menu-item> | 22 | <el-menu-item><a class="link" href="http://192.168.8.211:8090/pages/viewpage.action?pageId=32513105" target="_blank">Confluence平台</a></el-menu-item> |
| 22 | </el-submenu> | 23 | </el-submenu> |
| 23 | <el-menu-item index="3" disabled>正在开发中</el-menu-item> | 24 | <el-menu-item index="/test" disabled>正在开发中</el-menu-item> |
| 24 | </el-menu> | 25 | </el-menu> |
| 25 | <el-row> | 26 | <router-view/> |
| 26 | <el-col :span="8"> | ||
| 27 | <el-form ref="form" :model="deleteClues" label-width="0px"> | ||
| 28 | <el-card class="yellowgreen" shadow="always"> | ||
| 29 | <div slot="header" class="clearfix"> | ||
| 30 | <span>删除指定UID的线索</span> | ||
| 31 | </div> | ||
| 32 | <div class="text item"> | ||
| 33 | <el-form-item> | ||
| 34 | <el-input placeholder="代理人UID" v-model="deleteClues.agentUid" clearable></el-input> | ||
| 35 | </el-form-item> | ||
| 36 | <div style="margin: 15px 0;"></div> | ||
| 37 | <el-form-item> | ||
| 38 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="deleteClues.customUid" clearable></el-input> | ||
| 39 | </el-form-item> | ||
| 40 | <div style="margin: 15px 0;"></div> | ||
| 41 | <el-form-item> | ||
| 42 | <el-button round @click="onSubmit">删除线索</el-button> | ||
| 43 | </el-form-item> | ||
| 44 | </div> | ||
| 45 | </el-card> | ||
| 46 | </el-form> | ||
| 47 | </el-col> | ||
| 48 | <el-col :span="8"> | ||
| 49 | <el-form ref="form" :model="bizData" label-width="0px"> | ||
| 50 | <el-card class="darkred" shadow="always"> | ||
| 51 | <div slot="header" class="clearfix"> | ||
| 52 | <span>加密biz_data</span> | ||
| 53 | </div> | ||
| 54 | <div class="text item"> | ||
| 55 | <el-form-item> | ||
| 56 | <el-input placeholder="输入json格式的biz_data" v-model="bizData.myData" clearable></el-input> | ||
| 57 | </el-form-item> | ||
| 58 | <div style="margin: 15px 0;"></div> | ||
| 59 | <el-form-item> | ||
| 60 | <el-button round @click="bizDataSubmit">加密</el-button> | ||
| 61 | </el-form-item> | ||
| 62 | </div> | ||
| 63 | </el-card> | ||
| 64 | </el-form> | ||
| 65 | </el-col> | ||
| 66 | <el-col :span="8"> | ||
| 67 | <el-card class="blue" shadow="always"> | ||
| 68 | <div slot="header" class="clearfix"> | ||
| 69 | <span>正在开发中</span> | ||
| 70 | <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> | ||
| 71 | </div> | ||
| 72 | <div v-for="o in 4" :key="o" class="text item"> | ||
| 73 | {{'正在开发中 ' + o }} | ||
| 74 | </div> | ||
| 75 | </el-card> | ||
| 76 | </el-col> | ||
| 77 | </el-row> | ||
| 78 | <el-row> | ||
| 79 | <el-col> | ||
| 80 | <el-card class="aquamarine" shadow="always"> | ||
| 81 | <div slot="header" class="clearfix"> | ||
| 82 | <span>正在开发中</span> | ||
| 83 | <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> | ||
| 84 | </div> | ||
| 85 | <div v-for="o in 4" :key="o" class="text item"> | ||
| 86 | {{'正在开发中 ' + o }} | ||
| 87 | </div> | ||
| 88 | </el-card> | ||
| 89 | </el-col> | ||
| 90 | </el-row> | ||
| 91 | </div> | 27 | </div> |
| 92 | </template> | 28 | </template> |
| 93 | 29 | ||
| 94 | <style> | 30 | <style> |
| 95 | .text { | ||
| 96 | font-size: 14px; | ||
| 97 | } | ||
| 98 | |||
| 99 | .item { | ||
| 100 | margin-bottom: 18px; | ||
| 101 | } | ||
| 102 | |||
| 103 | .clearfix:before, | ||
| 104 | .clearfix:after { | ||
| 105 | display: table; | ||
| 106 | content: ""; | ||
| 107 | } | ||
| 108 | .clearfix:after { | ||
| 109 | clear: both | ||
| 110 | } | ||
| 111 | .yellowgreen { | ||
| 112 | width: calc(100% - 20px); | ||
| 113 | padding: 0px; | ||
| 114 | background-color: yellowgreen; | ||
| 115 | } | ||
| 116 | |||
| 117 | .darkred { | ||
| 118 | width: calc(100% - 20px); | ||
| 119 | padding: 0px; | ||
| 120 | background-color: darkkhaki; | ||
| 121 | } | ||
| 122 | |||
| 123 | .blue { | ||
| 124 | width: calc(100% - 20px); | ||
| 125 | padding: 0px; | ||
| 126 | background-color: deepskyblue; | ||
| 127 | } | ||
| 128 | |||
| 129 | .aquamarine { | ||
| 130 | width: calc(440px); | ||
| 131 | padding: 0px; | ||
| 132 | background-color: aquamarine; | ||
| 133 | } | ||
| 134 | .link{ | 31 | .link{ |
| 135 | color: inherit; | 32 | color: inherit; |
| 136 | } | 33 | } |
| ... | @@ -140,72 +37,12 @@ | ... | @@ -140,72 +37,12 @@ |
| 140 | export default { | 37 | export default { |
| 141 | data() { | 38 | data() { |
| 142 | return { | 39 | return { |
| 143 | deleteClues: { | ||
| 144 | agentUid: '', | ||
| 145 | customUid: '' | ||
| 146 | }, | ||
| 147 | bizData: { | ||
| 148 | myData: '' | ||
| 149 | }, | ||
| 150 | activeIndex: '1' | 40 | activeIndex: '1' |
| 151 | } | 41 | } |
| 152 | }, | 42 | }, |
| 153 | methods: { | 43 | methods: { |
| 154 | handleSelect(key, keyPath) { | 44 | handleSelect(key, keyPath) { |
| 155 | console.log(key, keyPath); | 45 | console.log(key, keyPath); |
| 156 | }, | ||
| 157 | onSubmit() { | ||
| 158 | let config = { | ||
| 159 | headers: { | ||
| 160 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 161 | } | ||
| 162 | } | ||
| 163 | this.$http.get('/tool/money/delete?'+this.$qs.stringify({ | ||
| 164 | uid: this.deleteClues.agentUid, | ||
| 165 | ref_id: this.deleteClues.customUid | ||
| 166 | }),config).then((res)=>{ | ||
| 167 | console.log(res); | ||
| 168 | if(res.data=='success') { | ||
| 169 | this.$message({ | ||
| 170 | showClose: true, | ||
| 171 | message: '删除线索成功', | ||
| 172 | type: 'success' | ||
| 173 | }); | ||
| 174 | } else { | ||
| 175 | this.$message({ | ||
| 176 | showClose: true, | ||
| 177 | message: '删除线索失败', | ||
| 178 | type: 'error' | ||
| 179 | }); | ||
| 180 | } | ||
| 181 | }).catch(error=>{ | ||
| 182 | console.log(error); | ||
| 183 | this.$message({ | ||
| 184 | showClose: true, | ||
| 185 | message: '服务器抛出异常', | ||
| 186 | type: 'error' | ||
| 187 | }); | ||
| 188 | }) | ||
| 189 | }, | ||
| 190 | bizDataSubmit() { | ||
| 191 | let config = { | ||
| 192 | headers: { | ||
| 193 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 194 | } | ||
| 195 | } | ||
| 196 | this.$http.get('/tool/bizData?'+this.$qs.stringify({ | ||
| 197 | biz_data: this.bizData.myData | ||
| 198 | }),config).then((res)=>{ | ||
| 199 | console.log(res); | ||
| 200 | |||
| 201 | }).catch(error=>{ | ||
| 202 | console.log(error); | ||
| 203 | this.$message({ | ||
| 204 | showClose: true, | ||
| 205 | message: '服务器抛出异常', | ||
| 206 | type: 'error' | ||
| 207 | }); | ||
| 208 | }) | ||
| 209 | } | 46 | } |
| 210 | } | 47 | } |
| 211 | } | 48 | } | ... | ... |
src/page/test.vue
0 → 100644
src/page/tool.vue
0 → 100644
| 1 | <template xmlns:el-col="http://www.w3.org/1999/html"> | ||
| 2 | <div> | ||
| 3 | <el-row> | ||
| 4 | <el-col :span="8"> | ||
| 5 | <el-form ref="form" :model="deleteClues" label-width="0px"> | ||
| 6 | <el-card class="yellowgreen" shadow="always"> | ||
| 7 | <div slot="header" class="clearfix"> | ||
| 8 | <span>删除指定UID的线索</span> | ||
| 9 | </div> | ||
| 10 | <div class="text item"> | ||
| 11 | <el-form-item> | ||
| 12 | <el-input placeholder="代理人UID" v-model="deleteClues.agentUid" clearable></el-input> | ||
| 13 | </el-form-item> | ||
| 14 | <div style="margin: 15px 0;"></div> | ||
| 15 | <el-form-item> | ||
| 16 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="deleteClues.customUid" clearable></el-input> | ||
| 17 | </el-form-item> | ||
| 18 | <div style="margin: 15px 0;"></div> | ||
| 19 | <el-form-item> | ||
| 20 | <el-button round @click="onSubmit">删除线索</el-button> | ||
| 21 | </el-form-item> | ||
| 22 | </div> | ||
| 23 | </el-card> | ||
| 24 | </el-form> | ||
| 25 | </el-col> | ||
| 26 | <el-col :span="8"> | ||
| 27 | <el-form ref="form" :model="bizData" label-width="0px"> | ||
| 28 | <el-card class="darkred" shadow="always"> | ||
| 29 | <div slot="header" class="clearfix"> | ||
| 30 | <span>加密biz_data</span> | ||
| 31 | </div> | ||
| 32 | <div class="text item"> | ||
| 33 | <el-form-item> | ||
| 34 | <el-input placeholder="输入json格式的biz_data" v-model="bizData.myData" clearable></el-input> | ||
| 35 | </el-form-item> | ||
| 36 | <div style="margin: 15px 0;"></div> | ||
| 37 | <el-form-item> | ||
| 38 | <el-button round @click="bizDataSubmit">加密</el-button> | ||
| 39 | </el-form-item> | ||
| 40 | </div> | ||
| 41 | </el-card> | ||
| 42 | </el-form> | ||
| 43 | </el-col> | ||
| 44 | <el-col :span="8"> | ||
| 45 | <el-card class="blue" shadow="always"> | ||
| 46 | <div slot="header" class="clearfix"> | ||
| 47 | <span>正在开发中</span> | ||
| 48 | <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> | ||
| 49 | </div> | ||
| 50 | <div v-for="o in 4" :key="o" class="text item"> | ||
| 51 | {{'正在开发中 ' + o }} | ||
| 52 | </div> | ||
| 53 | </el-card> | ||
| 54 | </el-col> | ||
| 55 | </el-row> | ||
| 56 | <el-row> | ||
| 57 | <el-col> | ||
| 58 | <el-card class="aquamarine" shadow="always"> | ||
| 59 | <div slot="header" class="clearfix"> | ||
| 60 | <span>正在开发中</span> | ||
| 61 | <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> | ||
| 62 | </div> | ||
| 63 | <div v-for="o in 4" :key="o" class="text item"> | ||
| 64 | {{'正在开发中 ' + o }} | ||
| 65 | </div> | ||
| 66 | </el-card> | ||
| 67 | </el-col> | ||
| 68 | </el-row> | ||
| 69 | </div> | ||
| 70 | </template> | ||
| 71 | |||
| 72 | <style> | ||
| 73 | .text { | ||
| 74 | font-size: 14px; | ||
| 75 | } | ||
| 76 | |||
| 77 | .item { | ||
| 78 | margin-bottom: 18px; | ||
| 79 | } | ||
| 80 | |||
| 81 | .clearfix:before, | ||
| 82 | .clearfix:after { | ||
| 83 | display: table; | ||
| 84 | content: ""; | ||
| 85 | } | ||
| 86 | .clearfix:after { | ||
| 87 | clear: both | ||
| 88 | } | ||
| 89 | .yellowgreen { | ||
| 90 | width: calc(100% - 20px); | ||
| 91 | padding: 0px; | ||
| 92 | background-color: yellowgreen; | ||
| 93 | } | ||
| 94 | |||
| 95 | .darkred { | ||
| 96 | width: calc(100% - 20px); | ||
| 97 | padding: 0px; | ||
| 98 | background-color: darkkhaki; | ||
| 99 | } | ||
| 100 | |||
| 101 | .blue { | ||
| 102 | width: calc(100% - 20px); | ||
| 103 | padding: 0px; | ||
| 104 | background-color: deepskyblue; | ||
| 105 | } | ||
| 106 | |||
| 107 | .aquamarine { | ||
| 108 | width: calc(440px); | ||
| 109 | padding: 0px; | ||
| 110 | background-color: aquamarine; | ||
| 111 | } | ||
| 112 | </style> | ||
| 113 | |||
| 114 | <script> | ||
| 115 | export default { | ||
| 116 | data() { | ||
| 117 | return { | ||
| 118 | deleteClues: { | ||
| 119 | agentUid: '', | ||
| 120 | customUid: '' | ||
| 121 | }, | ||
| 122 | bizData: { | ||
| 123 | myData: '' | ||
| 124 | } | ||
| 125 | } | ||
| 126 | }, | ||
| 127 | methods: { | ||
| 128 | onSubmit() { | ||
| 129 | let config = { | ||
| 130 | headers: { | ||
| 131 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 132 | } | ||
| 133 | } | ||
| 134 | this.$http.get('/tool/money/delete?'+this.$qs.stringify({ | ||
| 135 | uid: this.deleteClues.agentUid, | ||
| 136 | ref_id: this.deleteClues.customUid | ||
| 137 | }),config).then((res)=>{ | ||
| 138 | console.log(res); | ||
| 139 | if(res.data=='success') { | ||
| 140 | this.$message({ | ||
| 141 | showClose: true, | ||
| 142 | message: '删除线索成功', | ||
| 143 | type: 'success' | ||
| 144 | }); | ||
| 145 | } else { | ||
| 146 | this.$message({ | ||
| 147 | showClose: true, | ||
| 148 | message: '删除线索失败', | ||
| 149 | type: 'error' | ||
| 150 | }); | ||
| 151 | } | ||
| 152 | }).catch(error=>{ | ||
| 153 | console.log(error); | ||
| 154 | this.$message({ | ||
| 155 | showClose: true, | ||
| 156 | message: '服务器抛出异常', | ||
| 157 | type: 'error' | ||
| 158 | }); | ||
| 159 | }) | ||
| 160 | }, | ||
| 161 | bizDataSubmit() { | ||
| 162 | let config = { | ||
| 163 | headers: { | ||
| 164 | 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 165 | } | ||
| 166 | } | ||
| 167 | this.$http.get('/tool/bizData?'+this.$qs.stringify({ | ||
| 168 | biz_data: this.bizData.myData | ||
| 169 | }),config).then((res)=>{ | ||
| 170 | console.log(res); | ||
| 171 | |||
| 172 | }).catch(error=>{ | ||
| 173 | console.log(error); | ||
| 174 | this.$message({ | ||
| 175 | showClose: true, | ||
| 176 | message: '服务器抛出异常', | ||
| 177 | type: 'error' | ||
| 178 | }); | ||
| 179 | }) | ||
| 180 | } | ||
| 181 | } | ||
| 182 | } | ||
| 183 | </script> |
| 1 | import Vue from 'vue' | 1 | import Vue from 'vue' |
| 2 | import Router from 'vue-router' | 2 | import Router from 'vue-router' |
| 3 | import index from '@/page/index' | 3 | import index from '@/page/index' |
| 4 | import tool from '@/page/tool' | ||
| 5 | import test from '@/page/test' | ||
| 4 | 6 | ||
| 5 | Vue.use(Router) | 7 | Vue.use(Router) |
| 6 | 8 | ||
| ... | @@ -8,10 +10,21 @@ export default new Router({ | ... | @@ -8,10 +10,21 @@ export default new Router({ |
| 8 | routes: [ | 10 | routes: [ |
| 9 | { | 11 | { |
| 10 | path: '/', | 12 | path: '/', |
| 11 | meta:{ | 13 | component: index, |
| 12 | title: '首页' | 14 | children:[ |
| 13 | }, | 15 | { |
| 14 | component: index | 16 | path:'/', |
| 17 | component:tool | ||
| 18 | }, | ||
| 19 | { | ||
| 20 | path: '/tool', | ||
| 21 | component: tool | ||
| 22 | }, | ||
| 23 | { | ||
| 24 | path: '/test', | ||
| 25 | component: test | ||
| 26 | } | ||
| 27 | ] | ||
| 15 | } | 28 | } |
| 16 | ] | 29 | ] |
| 17 | }) | 30 | }) | ... | ... |
-
Please register or sign in to post a comment