Commit 55639969 55639969cabe22ffb25c1a168a35f3dd04879de2 by zhanghao

commit

1 parent ad25999a
<template xmlns:el-col="http://www.w3.org/1999/html">
<div>
<br/>
<span>查询打点服务器log</span>
<el-table
:data="callLinuxCommand"
border
style="width: 100%"
:header-cell-style="{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop="pt"
label="打点编号"
min-width="2">
</el-table-column>
<el-table-column
prop="h_plat"
label="手机系统(0-安卓,1-IOS)"
min-width="1">
</el-table-column>
<el-table-column
prop="pi_ext_shareInfo.type"
label="类型"
min-width="1">
</el-table-column>
<el-table-column
prop="now"
label="时间戳"
min-width="2">
</el-table-column>
</el-table>
</div>
</template>
<script>
export default {
data() {
return {
size: this.$route.query.size,
huanjing: this.$route.query.huanjing,
callLinuxCommand: []
}
},
mounted() {
this.activity()
},
methods: {
activity() {
const loading = this.$loading({
lock: true,
text: '加载中...',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
let config = {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
}
this.$http.get('/tool/callLinuxCommand?'+this.$qs.stringify({
size: this.size,
type: this.huanjing
}),config).then((res)=>{
console.log(res.data)
if(res.data=='sizetoolong') {
this.$message({
showClose: true,
message: '查询行数要小于1000条',
type: 'error'
});
} else {
this.callLinuxCommand=res.data
}
loading.close();
}).catch(error=>{
console.log(error);
loading.close();
this.$message({
showClose: true,
message: '服务器处理失败,请核对参数!',
type: 'error'
});
})
}
}
}
</script>
......@@ -112,7 +112,7 @@
</el-form>
</el-col>
<el-col :span="8">
<el-form ref="createUserInfo" :model="queryUserInfo" label-width="0px">
<el-form ref="queryUserInfo" :model="queryUserInfo" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>查询用户信息</span>
......@@ -348,6 +348,34 @@
</el-form>
</el-col>
<el-col :span="8">
<el-form ref="callLinuxCommand" :model="callLinuxCommand" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>查询打点服务器log</span>
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="查询log行数" v-model="callLinuxCommand.size" clearable></el-input>
</el-form-item>
<el-form-item>
<el-select v-model="callLinuxCommand.huanjing" placeholder="请选择执行环境">
<el-option
v-for="item in callLinuxCommandOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="callLinuxCommandSubmit">查询打点</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col :span="8">
<el-form ref="updateBe" :model="updateBe" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
......@@ -369,6 +397,36 @@
</el-card>
</el-form>
</el-col>
</el-row>
<el-row style="margin-bottom: 15px;">
<el-col :span="8">
<el-form ref="nlpApi" :model="nlpApi" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>NLP语义接口测试</span>
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="请输入nlp问题,比如今天天气怎么样" v-model="nlpApi.keyword" clearable></el-input>
</el-form-item>
<el-form-item>
<el-select v-model="nlpApi.huanjing" placeholder="请选择执行环境">
<el-option
v-for="item in nlpApiOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="nlpApiSubmit">调用接口</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col :span="8">
<el-form ref="bizData" :model="bizData" label-width="0px">
<el-card class="darkred" shadow="always">
......@@ -417,36 +475,6 @@
</el-dialog>
</el-col>
</el-row>
<el-row style="margin-bottom: 15px;">
<el-col :span="8">
<el-form ref="nlpApi" :model="nlpApi" label-width="0px">
<el-card class="darkred" shadow="always">
<div slot="header" class="clearfix">
<span>NLP语义接口测试</span>
</div>
<div class="text item">
<el-form-item>
<el-input placeholder="请输入nlp问题,比如今天天气怎么样" v-model="nlpApi.keyword" clearable></el-input>
</el-form-item>
<el-form-item>
<el-select v-model="nlpApi.huanjing" placeholder="请选择执行环境">
<el-option
v-for="item in nlpApiOptions"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-form-item>
<div style="margin: 15px 0;"></div>
<el-form-item>
<el-button round @click="nlpApiSubmit">调用接口</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
</el-row>
</div>
</template>
......@@ -576,6 +604,14 @@
phone: '',
agentPhone: ''
},
callLinuxCommand: {
size: '',
huanjing: []
},
callLinuxCommandOptions: [{
value: '0',
label: '测试环境'
}],
queryUserInfo: {
agentPhone: '',
huanjing: []
......@@ -1015,6 +1051,11 @@
{phone: this.queryUserInfo.agentPhone, huanjing: this.queryUserInfo.huanjing.toString()}})
window.open(href, '_blank')
},
callLinuxCommandSubmit() {
const {href} = this.$router.resolve({ name:'callLinuxCommand', query:
{size: this.callLinuxCommand.size, huanjing: this.callLinuxCommand.huanjing.toString()}})
window.open(href, '_blank')
},
queryPhoneCodeSubmit() {
const loading = this.$loading({
lock: true,
......
......@@ -5,6 +5,7 @@ import tool from '@/page/tool'
import activityConfig from '@/page/activityConfig'
import activityConfigRedis from '@/page/activityConfigRedis'
import userInfo from '@/page/userInfo'
import callLinuxCommand from '@/page/callLinuxCommand'
import apiTest from '@/page/apiTest'
import apiTestAime from '@/page/apiTestAime'
import tjUser from '@/page/tjUser'
......@@ -63,6 +64,14 @@ export default new Router({
}
},
{
path: '/callLinuxCommand',
component: callLinuxCommand,
name: 'callLinuxCommand',
meta: {
title: '测试工具平台'
}
},
{
path: '/tjUser',
component: tjUser,
name: 'tjUser',
......