Commit 9c12a76c by 无尘

feat: 增加路由

parent 724985c9
/*
* @Descripttion: sql 接口路径
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:22:08
* @LastEditors: 无尘
* @LastEditTime: 2020-11-09 11:24:38
*/
import getFetch from './get-fetch';
let api = {
getProjectList: '/', // 获取项目列表,
getTableList: '/', // 获取表列表,
getSqlList: '/', // 获取sql列表,
};
api = getFetch(api, '/hb-manage-operation-web');
export default api;
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-07-21 09:52:25
* @LastEditTime: 2020-11-09 11:17:48
*/
import Layout from '@/layout/layout.vue';
......@@ -48,6 +48,25 @@ export const routes = [
path: '/create-dictionary',
meta: { title: '新建、编辑字典' },
component: () => import('@/views/dictionary/create-dictionary.vue')
},
{
path: '/project-sql',
meta: {
title: '项目列表'
},
component: () => import('@/views/sql/project-sql.vue')
}, {
path: '/table-sql',
meta: {
title: '表列表'
},
component: () => import('@/views/sql/table-sql.vue')
}, {
path: '/sql-list',
meta: {
title: 'sql列表'
},
component: () => import('@/views/sql/sql-list.vue')
}
]
},
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-03 10:08:57
* @LastEditors: 无尘
* @LastEditTime: 2020-10-27 16:33:47
* @LastEditTime: 2020-11-09 11:21:22
-->
<template>
<div style="padding: 20px">
......@@ -115,7 +115,7 @@ export default {
wxEnterpriseId: row.wxEnterpriseId,
accountName: userInfo.realName
};
window.open(`/hb-manage-web/auth/operation-login?wxEnterpriseId=${params.wxEnterpriseId}&nationCode=${params.nationCode}&phoneNumber=${params.phoneNumber}&accountId=${params.accountId}&accountName=${params.accountName}`, '_blank','noopener');
window.open(`/hb-manage-web/auth/operation-login?wxEnterpriseId=${params.wxEnterpriseId}&nationCode=${params.nationCode}&phoneNumber=${params.phoneNumber}&accountId=${params.accountId}&accountName=${params.accountName}`, '_blank', 'noopener');
},
// 获取企业列表
getEnterpriseList() {
......
<!--
* @Descripttion: 项目列表
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:15:16
* @LastEditors: 无尘
* @LastEditTime: 2020-11-09 11:26:21
-->
<template>
<div>
</div>
</template>
<script>
export default {
name: 'ProjectSql',
components: {},
data() {
return {
};
},
// 生命周期 - 挂载完成(访问DOM元素)
// mounted() {
// },
// methods
methods: {
},
watch: {}
};
</script>
<style lang='less' scoped>
</style>
<!--
* @Descripttion: sql列表
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:16:12
* @LastEditors: 无尘
* @LastEditTime: 2020-11-09 11:25:39
-->
<!-- -->
<template>
<div>
</div>
</template>
<script>
export default {
name: 'SqlList',
components: {},
data() {
return {
};
},
// 生命周期 - 挂载完成(访问DOM元素)
// mounted() {
// },
// methods
methods: {
},
watch: {}
};
</script>
<style lang='less' scoped>
</style>
<!--
* @Descripttion: 表列表
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-09 11:15:55
* @LastEditors: 无尘
* @LastEditTime: 2020-11-09 11:26:06
-->
<template>
<div>
</div>
</template>
<script>
export default {
name: 'TableSql',
components: {},
data() {
return {
};
},
// 生命周期 - 挂载完成(访问DOM元素)
// mounted() {
// },
// methods
methods: {
},
watch: {}
};
</script>
<style lang='less' scoped>
</style>
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