Commit 55639969 55639969cabe22ffb25c1a168a35f3dd04879de2 by zhanghao

commit

1 parent ad25999a
1 <template xmlns:el-col="http://www.w3.org/1999/html">
2 <div>
3 <br/>
4 <span>查询打点服务器log</span>
5 <el-table
6 :data="callLinuxCommand"
7 border
8 style="width: 100%"
9 :header-cell-style="{background: 'deepskyblue', color: 'snow'}">
10 <el-table-column
11 prop="pt"
12 label="打点编号"
13 min-width="2">
14 </el-table-column>
15 <el-table-column
16 prop="h_plat"
17 label="手机系统(0-安卓,1-IOS)"
18 min-width="1">
19 </el-table-column>
20 <el-table-column
21 prop="pi_ext_shareInfo.type"
22 label="类型"
23 min-width="1">
24 </el-table-column>
25 <el-table-column
26 prop="now"
27 label="时间戳"
28 min-width="2">
29 </el-table-column>
30 </el-table>
31 </div>
32 </template>
33
34 <script>
35 export default {
36 data() {
37 return {
38 size: this.$route.query.size,
39 huanjing: this.$route.query.huanjing,
40 callLinuxCommand: []
41 }
42 },
43 mounted() {
44 this.activity()
45 },
46 methods: {
47 activity() {
48 const loading = this.$loading({
49 lock: true,
50 text: '加载中...',
51 spinner: 'el-icon-loading',
52 background: 'rgba(0, 0, 0, 0.7)'
53 });
54 let config = {
55 headers: {
56 'Content-Type': 'application/x-www-form-urlencoded'
57 }
58 }
59 this.$http.get('/tool/callLinuxCommand?'+this.$qs.stringify({
60 size: this.size,
61 type: this.huanjing
62 }),config).then((res)=>{
63 console.log(res.data)
64 if(res.data=='sizetoolong') {
65 this.$message({
66 showClose: true,
67 message: '查询行数要小于1000条',
68 type: 'error'
69 });
70 } else {
71 this.callLinuxCommand=res.data
72 }
73 loading.close();
74 }).catch(error=>{
75 console.log(error);
76 loading.close();
77 this.$message({
78 showClose: true,
79 message: '服务器处理失败,请核对参数!',
80 type: 'error'
81 });
82 })
83 }
84 }
85 }
86 </script>
...@@ -112,7 +112,7 @@ ...@@ -112,7 +112,7 @@
112 </el-form> 112 </el-form>
113 </el-col> 113 </el-col>
114 <el-col :span="8"> 114 <el-col :span="8">
115 <el-form ref="createUserInfo" :model="queryUserInfo" label-width="0px"> 115 <el-form ref="queryUserInfo" :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>
...@@ -348,6 +348,34 @@ ...@@ -348,6 +348,34 @@
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">
352 <el-card class="darkred" shadow="always">
353 <div slot="header" class="clearfix">
354 <span>查询打点服务器log</span>
355 </div>
356 <div class="text item">
357 <el-form-item>
358 <el-input placeholder="查询log行数" v-model="callLinuxCommand.size" clearable></el-input>
359 </el-form-item>
360 <el-form-item>
361 <el-select v-model="callLinuxCommand.huanjing" placeholder="请选择执行环境">
362 <el-option
363 v-for="item in callLinuxCommandOptions"
364 :key="item.value"
365 :label="item.label"
366 :value="item.value">
367 </el-option>
368 </el-select>
369 </el-form-item>
370 <div style="margin: 15px 0;"></div>
371 <el-form-item>
372 <el-button round @click="callLinuxCommandSubmit">查询打点</el-button>
373 </el-form-item>
374 </div>
375 </el-card>
376 </el-form>
377 </el-col>
378 <el-col :span="8">
351 <el-form ref="updateBe" :model="updateBe" label-width="0px"> 379 <el-form ref="updateBe" :model="updateBe" label-width="0px">
352 <el-card class="darkred" shadow="always"> 380 <el-card class="darkred" shadow="always">
353 <div slot="header" class="clearfix"> 381 <div slot="header" class="clearfix">
...@@ -369,6 +397,36 @@ ...@@ -369,6 +397,36 @@
369 </el-card> 397 </el-card>
370 </el-form> 398 </el-form>
371 </el-col> 399 </el-col>
400 </el-row>
401 <el-row style="margin-bottom: 15px;">
402 <el-col :span="8">
403 <el-form ref="nlpApi" :model="nlpApi" label-width="0px">
404 <el-card class="darkred" shadow="always">
405 <div slot="header" class="clearfix">
406 <span>NLP语义接口测试</span>
407 </div>
408 <div class="text item">
409 <el-form-item>
410 <el-input placeholder="请输入nlp问题,比如今天天气怎么样" v-model="nlpApi.keyword" clearable></el-input>
411 </el-form-item>
412 <el-form-item>
413 <el-select v-model="nlpApi.huanjing" placeholder="请选择执行环境">
414 <el-option
415 v-for="item in nlpApiOptions"
416 :key="item.value"
417 :label="item.label"
418 :value="item.value">
419 </el-option>
420 </el-select>
421 </el-form-item>
422 <div style="margin: 15px 0;"></div>
423 <el-form-item>
424 <el-button round @click="nlpApiSubmit">调用接口</el-button>
425 </el-form-item>
426 </div>
427 </el-card>
428 </el-form>
429 </el-col>
372 <el-col :span="8"> 430 <el-col :span="8">
373 <el-form ref="bizData" :model="bizData" label-width="0px"> 431 <el-form ref="bizData" :model="bizData" label-width="0px">
374 <el-card class="darkred" shadow="always"> 432 <el-card class="darkred" shadow="always">
...@@ -417,36 +475,6 @@ ...@@ -417,36 +475,6 @@
417 </el-dialog> 475 </el-dialog>
418 </el-col> 476 </el-col>
419 </el-row> 477 </el-row>
420 <el-row style="margin-bottom: 15px;">
421 <el-col :span="8">
422 <el-form ref="nlpApi" :model="nlpApi" label-width="0px">
423 <el-card class="darkred" shadow="always">
424 <div slot="header" class="clearfix">
425 <span>NLP语义接口测试</span>
426 </div>
427 <div class="text item">
428 <el-form-item>
429 <el-input placeholder="请输入nlp问题,比如今天天气怎么样" v-model="nlpApi.keyword" clearable></el-input>
430 </el-form-item>
431 <el-form-item>
432 <el-select v-model="nlpApi.huanjing" placeholder="请选择执行环境">
433 <el-option
434 v-for="item in nlpApiOptions"
435 :key="item.value"
436 :label="item.label"
437 :value="item.value">
438 </el-option>
439 </el-select>
440 </el-form-item>
441 <div style="margin: 15px 0;"></div>
442 <el-form-item>
443 <el-button round @click="nlpApiSubmit">调用接口</el-button>
444 </el-form-item>
445 </div>
446 </el-card>
447 </el-form>
448 </el-col>
449 </el-row>
450 </div> 478 </div>
451 </template> 479 </template>
452 480
...@@ -576,6 +604,14 @@ ...@@ -576,6 +604,14 @@
576 phone: '', 604 phone: '',
577 agentPhone: '' 605 agentPhone: ''
578 }, 606 },
607 callLinuxCommand: {
608 size: '',
609 huanjing: []
610 },
611 callLinuxCommandOptions: [{
612 value: '0',
613 label: '测试环境'
614 }],
579 queryUserInfo: { 615 queryUserInfo: {
580 agentPhone: '', 616 agentPhone: '',
581 huanjing: [] 617 huanjing: []
...@@ -1015,6 +1051,11 @@ ...@@ -1015,6 +1051,11 @@
1015 {phone: this.queryUserInfo.agentPhone, huanjing: this.queryUserInfo.huanjing.toString()}}) 1051 {phone: this.queryUserInfo.agentPhone, huanjing: this.queryUserInfo.huanjing.toString()}})
1016 window.open(href, '_blank') 1052 window.open(href, '_blank')
1017 }, 1053 },
1054 callLinuxCommandSubmit() {
1055 const {href} = this.$router.resolve({ name:'callLinuxCommand', query:
1056 {size: this.callLinuxCommand.size, huanjing: this.callLinuxCommand.huanjing.toString()}})
1057 window.open(href, '_blank')
1058 },
1018 queryPhoneCodeSubmit() { 1059 queryPhoneCodeSubmit() {
1019 const loading = this.$loading({ 1060 const loading = this.$loading({
1020 lock: true, 1061 lock: true,
......
...@@ -5,6 +5,7 @@ import tool from '@/page/tool' ...@@ -5,6 +5,7 @@ import tool from '@/page/tool'
5 import activityConfig from '@/page/activityConfig' 5 import activityConfig from '@/page/activityConfig'
6 import activityConfigRedis from '@/page/activityConfigRedis' 6 import activityConfigRedis from '@/page/activityConfigRedis'
7 import userInfo from '@/page/userInfo' 7 import userInfo from '@/page/userInfo'
8 import callLinuxCommand from '@/page/callLinuxCommand'
8 import apiTest from '@/page/apiTest' 9 import apiTest from '@/page/apiTest'
9 import apiTestAime from '@/page/apiTestAime' 10 import apiTestAime from '@/page/apiTestAime'
10 import tjUser from '@/page/tjUser' 11 import tjUser from '@/page/tjUser'
...@@ -63,6 +64,14 @@ export default new Router({ ...@@ -63,6 +64,14 @@ export default new Router({
63 } 64 }
64 }, 65 },
65 { 66 {
67 path: '/callLinuxCommand',
68 component: callLinuxCommand,
69 name: 'callLinuxCommand',
70 meta: {
71 title: '测试工具平台'
72 }
73 },
74 {
66 path: '/tjUser', 75 path: '/tjUser',
67 component: tjUser, 76 component: tjUser,
68 name: 'tjUser', 77 name: 'tjUser',
......