Commit 616dcbe2 authored by levante's avatar levante

123

parent 47e6eb1a
......@@ -4,7 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>卫百辛集团房屋专业综合服务平台</title>
<title>业务联动平台</title>
</head>
<body>
<div id="portal"></div>
......
......@@ -10,7 +10,7 @@
<img v-else class="logo-img">
</a-col>
<a-col :span='18'>
<span v-show="!collapsed" class="logo-title" >卫百辛集团房屋专业综合服务平台</span>
<span v-show="!collapsed" class="logo-title" >业务联动平台</span>
</a-col>
</a-row>
</div>
......
......@@ -46,7 +46,7 @@ import {
Radio,
Cascader,
LocaleProvider,
// Steps,
Steps,
Anchor,
// Collapse,
Popconfirm,
......@@ -128,7 +128,7 @@ Vue.use(Badge)
Vue.use(Radio)
Vue.use(Cascader)
Vue.use(LocaleProvider)
// Vue.use(Steps)
Vue.use(Steps)
Vue.use(Anchor)
// Vue.use(Collapse)
Vue.use(Popconfirm)
......
......@@ -12,17 +12,17 @@ const router = new Router({
routes,
})
router.beforeEach((to, from, next) => {
// TODO
store.commit('setWebviewSrc', to.meta && to.meta.src) // 判断有src的话为需要嵌入iframe的子项目
// router.beforeEach((to, from, next) => {
// // TODO
// store.commit('setWebviewSrc', to.meta && to.meta.src) // 判断有src的话为需要嵌入iframe的子项目
const token = Cookie.get('token')
// 当前无token且不在login页面则推到登录页面
if (to.path != '/login' && !token) {
next('/login')
} else {
next()
}
})
// const token = Cookie.get('token')
// // 当前无token且不在login页面则推到登录页面
// if (to.path != '/login' && !token) {
// next('/login')
// } else {
// next()
// }
// })
export default router
......@@ -20,20 +20,39 @@
// import Demo from '@/views/components/demo'
const appRoutes = [
{
path: '/', name: 'Layout', redirect: '/receipt/receiptList',
path: '/', name: 'Layout', redirect: '/businessSystem/businessSystemList',
component: resolve => require(['@/components/Layout'], resolve), //Layout,
children: [
{
path: '/receipt', name: 'receipt', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '单据', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
path: '/businessSystem', name: 'businessSystem', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '业务系统', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: false },
children: [
{
path: '/receipt/receiptList', name: 'receiptList', component: resolve => require(['@/views/receiptService/receiptList.vue'], resolve), //basicInfo,
meta: { title: '单据列表', menuPath: true, hideInBread: false, },
path: '/businessSystem/businessSystemList', name: 'businessSystemList', component: resolve => require(['@/views/businessSystem/businessSystemList.vue'], resolve), //basicInfo,
meta: { title: '业务系统', menuPath: true, hideInBread: false, },
},
]
},
{
path: '/action', name: 'action', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: 'Action', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{
path: '/action/actionList', name: 'actionList', component: resolve => require(['@/views/action/actionList.vue'], resolve), //basicInfo,
meta: { title: 'Action', menuPath: true, hideInBread: false, },
},
]
},
{
path: '/executionLog', name: 'executionLog', component: resolve => require(['@/components/Layout/content-wrapper'], resolve), //ContentWrapper,
meta: { title: '执行日志', menuPath: true, menuIcon: 'profile', authCode: '0000', hideInBread: true },
children: [
{
path: '/executionLog/executionLogList', name: 'executionLogList', component: resolve => require(['@/views/executionLog/executionLogList.vue'], resolve), //basicInfo,
meta: { title: '执行日志', menuPath: true, hideInBread: false, },
},
]
},
],
},
{
......
<template>
<div class="routerWapper">
<div class="portalDetailTitle" v-if="$route.name == 'actionList'">
<span class="title">触发</span>
</div>
</div>
</template>
<template>
<div class="routerWapper">
<div class="portalDetailTitle" v-if="$route.name == 'businessSystemList'">
<span class="title">业务系统</span>
<div class="layoutMargin layoutPadding">
<a-row>
<a-col span="24">
<a-button icon="plus" type="primary" @click="onRegister">系统注册</a-button>
</a-col>
</a-row>
<div class="itemMargin">
<a-alert message="Informational Notes" type="info" show-icon />
</div>
<a-table class="elevator-table portalTable" :dataSource="list" :columns="columns" size="small" :pagination="pagination" rowKey="id" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<span slot="operation" slot-scope="text, record">
<span class="actionBtn" @click="edit(record)">编辑</span>
<span class="actionBtn" @click="more(record)">更多</span>
</span>
</a-table>
<a-modal title="系统注册" v-model="isShow" width='900px' style="padding: 20px">
<a-steps :current="current">
<a-step v-for="item in steps" :key="item.title" :title="item.title" />
</a-steps>
<div class="steps-content">
<!-- {{ steps[current].content }} -->
<a-form :form='form'>
<div v-if="current == 0">
<a-form-item label="系统编码" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['xtbm', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item label="系统名称" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['xtmc', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item label="系统地址" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['xtdz', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
</div>
<div v-if="current == 1">
<a-form-item label="授权类型" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-select placeholder="请选择授权类型" v-decorator="['sqlx']">
<a-select-option value="oauth2">oauth2</a-select-option>
</a-select>
</a-form-item>
<a-form-item label="授权路径" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['sqlj', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item label="授权方法" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-select placeholder="请选择授权方法" v-decorator="['sqff']">
<a-select-option value="POST">POST</a-select-option>
<a-select-option value="GET">GET</a-select-option>
</a-select>
</a-form-item>
</div>
<div v-if="current == 2">
<a-form-item label="Token Key" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['tokenKey', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item label="Token Header Name" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['tokenHeaderName', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item label="Token Prefix" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['tokenPrefix', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
<a-form-item label="Token Expires Time Key" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }">
<a-input v-decorator="['tokenExpiresTimeKey', {validateTrigger:'blur', rules: [{required: true, message: '请填写此项!'}]}]" />
</a-form-item>
</div>
</a-form>
</div>
<template slot="footer">
<a-button key="back" @click="isShow = !isShow">
取消
</a-button>
<a-button v-if="current >= 1" type="primary" @click="handlePrevStep()">
上一步
</a-button>
<a-button v-if="current < 2" type="primary" @click="handleNextStep()">
下一步
</a-button>
<a-button v-if="current == 2" type="primary" @click="handleRegisterOk()">
完成
</a-button>
</template>
</a-modal>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {
form: this.$form.createForm(this),
current: 0,
steps: [
{
title: '基本信息'
},
{
title: '授权认证信息'
},
{
title: '授权结果映射'
},
],
isShow: false,
selectedRowKeys: [],
list: [
{
xtbm: 'wuyeapp',
xtmc: '物业APP',
xtdz: 'http://www.962121.net'
}
],
columns: [
{
title: '系统编码',
dataIndex: 'xtbm',
align: 'center',
key: 'xtbm'
},
{
title: '系统名称',
dataIndex: 'xtmc',
align: 'center',
key: 'xtmc'
},
{
title: '系统地址',
dataIndex: 'xtdz',
align: 'center',
key: 'xtdz'
},
{
title: '操作',
dataIndex: 'operation',
key: 'operation',
width: '120px',
scopedSlots: {
customRender: 'operation',
},
}
],
pagination: {//分页
pageNo: 1,
pageSize: 10,
total: 10,
current: 1,
defaultCurrent: 1,
showQuickJumper: true,
onChange: this.pageChange
},
formStoreList: []
}
},
methods: {
pageChange(val) {
this.pagination.pageNo = val
this.pagination.current = val
// this.getCompanyList()
},
onSelectChange() {},
onRegister() {
this.isShow = !this.isShow
},
handlePrevStep() {
if(this.current >= 1) {
this.current -= 1
}
},
handleNextStep() {
this.form.validateFields((err, values) => {
if(!err) {
this.formStoreList.push(this.form.getFieldsValue())
}
})
console.log(this.formStoreList)
this.current += 1
},
handleRegisterOk() {
console.log(this.form.getFieldsValue())
}
}
}
</script>
<style scoped>
.itemMargin {
margin-top: 14px;
margin-bottom: 14px
}
</style>
<template>
<div class="routerWapper">
<div class="portalDetailTitle" v-if="$route.name == 'executionLogList'">
<span class="title">日志列表</span>
</div>
</div>
</template>
......@@ -96,7 +96,7 @@ export default {
this.$cookie.set('token', 'bearer ' + res.token.access_token)
this.$cookie.set('userName', res.name) // 存储当前账号的用户名
this.$router.push({
path: '/receipt/receiptList'
path: '/businessSystem/businessSystemList'
})
} else {
// this.$message.error(res.msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment