Commit 0d294ffa 0d294ffa7cadb6aee29773ba525f936180f729d7 by zhanghao

commit

1 parent fb7a219e
<template xmlns:el-col="http://www.w3.org/1999/html">
<div>
<br/>
<el-table
:data="queryTjAccount"
border
style="width: 100%"
:header-cell-style="{background: 'deepskyblue', color: 'snow'}">
<el-table-column
prop="login_name"
label="账号名称"
min-width="2">
</el-table-column>
<el-table-column
prop="password"
label="密码"
min-width="2">
</el-table-column>
</el-table>
</div>
</template>
<script>
export default {
data() {
return {
login_name: this.$route.query.login_name,
province_code: this.$route.query.province_code,
city_code: this.$route.query.city_code,
team_code: this.$route.query.team_code,
location_code: this.$route.query.location_code,
five_code: this.$route.query.five_code,
queryTjAccount: []
}
},
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/queryTjAccount?'+this.$qs.stringify({
login_name: this.login_name,
province_code: this.province_code,
city_code: this.city_code,
team_code: this.team_code,
location_code: this.location_code,
five_code: this.five_code
}),config).then((res)=>{
console.log(res.data)
this.queryTjAccount=res.data
loading.close();
}).catch(error=>{
console.log(error);
loading.close();
this.$message({
showClose: true,
message: '服务器处理失败,请核对参数!',
type: 'error'
});
})
}
}
}
</script>
......@@ -386,12 +386,18 @@
</el-select>
</el-form-item>
<el-form-item>
<el-tooltip placement="right">
<el-tooltip placement="left">
<div slot="content">
默认密码:12345678a<br/>
</div>
<el-button round @click="tjchangeOrgAllSubmit">创建账号</el-button>
</el-tooltip>
<el-tooltip placement="right">
<div slot="content">
账号登录名称可以为空,支持模糊查询<br/>
</div>
<el-button round @click="tjqueryAccountSubmit">查询账号</el-button>
</el-tooltip>
</el-form-item>
</div>
</el-card>
......@@ -1631,6 +1637,16 @@
console.log(error);
})
},
tjqueryAccountSubmit() {
const {href} = this.$router.resolve({ name:'queryTjAccount', query:
{login_name: this.createTjAccount.account,
province_code: this.createTjAccount.provinceCode.toString(),
city_code: this.createTjAccount.cityCode.toString(),
team_code: this.createTjAccount.teamCode.toString(),
location_code: this.createTjAccount.fourCode.toString(),
five_code: this.createTjAccount.fiveCode.toString()}})
window.open(href, '_blank')
},
nlpApiSubmit() {
const {href} = this.$router.resolve({ name:'nlpApi', query:
{keyword: this.nlpApi.keyword, runtime: this.nlpApi.huanjing.toString(), platform: "0"}})
......
......@@ -17,6 +17,7 @@ import hadoop from '@/page/hadoop'
import queryProvince from '@/page/queryProvince'
import selectActStart from '@/page/selectActStart'
import androidCode from '@/page/androidCode'
import queryTjAccount from '@/page/queryTjAccount'
Vue.use(Router)
......@@ -100,6 +101,14 @@ export default new Router({
}
},
{
path: '/queryTjAccount',
component: queryTjAccount,
name: 'queryTjAccount',
meta: {
title: '测试工具平台'
}
},
{
path: '/tjUser',
component: tjUser,
name: 'tjUser',
......