Commit 799c95ce 799c95ced0103711645791ede540ec3e3482d1b8 by zhanghao

commit

1 parent 7a66e00b
...@@ -12,6 +12,7 @@ Vue.config.productionTip = false ...@@ -12,6 +12,7 @@ Vue.config.productionTip = false
12 Vue.prototype.$http = axios 12 Vue.prototype.$http = axios
13 Vue.prototype.$qs=qs 13 Vue.prototype.$qs=qs
14 axios.defaults.baseURL = 'http://192.168.8.216:9090' 14 axios.defaults.baseURL = 'http://192.168.8.216:9090'
15 // axios.defaults.baseURL = 'http://127.0.0.1:9090'
15 16
16 Vue.use(Element, { size: 'small', zIndex: 3000 }); 17 Vue.use(Element, { size: 'small', zIndex: 3000 });
17 18
......
1 <template xmlns:el-col="http://www.w3.org/1999/html"> 1 <template xmlns:el-col="http://www.w3.org/1999/html">
2 <div> 2 <div>
3 <el-menu
4 :default-active="activeIndex"
5 class="el-menu-demo"
6 mode="horizontal"
7 @select="handleSelect"
8 background-color="#545c64"
9 text-color="#fff"
10 active-text-color="#ffd04b">
11 <el-menu-item index="1">测试工具</el-menu-item>
12 <el-submenu index="2">
13 <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 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 index="2-3"><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 index="2-5"><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 index="2-7"><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-submenu>
23 <el-menu-item index="3" disabled>正在开发中</el-menu-item>
24 </el-menu>
3 <el-row> 25 <el-row>
4 <el-col :span="8"> 26 <el-col :span="8">
5 <el-form ref="form" :model="deleteClues" label-width="0px"> 27 <el-form ref="form" :model="deleteClues" label-width="0px">
...@@ -24,15 +46,22 @@ ...@@ -24,15 +46,22 @@
24 </el-form> 46 </el-form>
25 </el-col> 47 </el-col>
26 <el-col :span="8"> 48 <el-col :span="8">
49 <el-form ref="form" :model="bizData" label-width="0px">
27 <el-card class="darkred" shadow="always"> 50 <el-card class="darkred" shadow="always">
28 <div slot="header" class="clearfix"> 51 <div slot="header" class="clearfix">
29 <span>卡片名称</span> 52 <span>加密biz_data</span>
30 <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button>
31 </div> 53 </div>
32 <div v-for="o in 4" :key="o" class="text item"> 54 <div class="text item">
33 {{'列表内容 ' + o }} 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>
34 </div> 62 </div>
35 </el-card> 63 </el-card>
64 </el-form>
36 </el-col> 65 </el-col>
37 <el-col :span="8"> 66 <el-col :span="8">
38 <el-card class="blue" shadow="always"> 67 <el-card class="blue" shadow="always">
...@@ -79,7 +108,6 @@ ...@@ -79,7 +108,6 @@
79 .clearfix:after { 108 .clearfix:after {
80 clear: both 109 clear: both
81 } 110 }
82
83 .yellowgreen { 111 .yellowgreen {
84 width: calc(100% - 20px); 112 width: calc(100% - 20px);
85 padding: 0px; 113 padding: 0px;
...@@ -103,6 +131,9 @@ ...@@ -103,6 +131,9 @@
103 padding: 0px; 131 padding: 0px;
104 background-color: aquamarine; 132 background-color: aquamarine;
105 } 133 }
134 .link{
135 color: inherit;
136 }
106 </style> 137 </style>
107 138
108 <script> 139 <script>
...@@ -112,10 +143,17 @@ ...@@ -112,10 +143,17 @@
112 deleteClues: { 143 deleteClues: {
113 agentUid: '', 144 agentUid: '',
114 customUid: '' 145 customUid: ''
115 } 146 },
147 bizData: {
148 myData: ''
149 },
150 activeIndex: '1'
116 } 151 }
117 }, 152 },
118 methods: { 153 methods: {
154 handleSelect(key, keyPath) {
155 console.log(key, keyPath);
156 },
119 onSubmit() { 157 onSubmit() {
120 let config = { 158 let config = {
121 headers: { 159 headers: {
...@@ -148,6 +186,26 @@ ...@@ -148,6 +186,26 @@
148 type: 'error' 186 type: 'error'
149 }); 187 });
150 }) 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 })
151 } 209 }
152 } 210 }
153 } 211 }
......