提交 567f8e9d authored 作者: 吕本才's avatar 吕本才

还原路由,修改数据源管理页面的表格宽度大小

上级 e9c54205
# 页面标题 # 页面标题
VUE_APP_TITLE = 若水数据中台 VUE_APP_TITLE = 王小卤ETL
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'
# 若水数据中台/开发环境 # 若水数据中台/开发环境
# VUE_APP_BASE_API = '' VUE_APP_BASE_API = ''
# VUE_APP_BASE_API = 'http://192.168.100.38:10001' # VUE_APP_BASE_API = 'http://192.168.100.38:10001'
# 路由懒加载 # 路由懒加载
......
# 页面标题 # 页面标题
VUE_APP_TITLE = 若水数据中台 VUE_APP_TITLE = 王小卤ETL
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
......
# 页面标题 # 页面标题
VUE_APP_TITLE = 若水数据中台 VUE_APP_TITLE = 王小卤ETL
NODE_ENV = production NODE_ENV = production
......
import Vue from 'vue' import Vue from "vue";
import Router from 'vue-router' import Router from "vue-router";
Vue.use(Router) Vue.use(Router);
/* Layout */ /* Layout */
import Layout from '@/layout' import Layout from "@/layout";
/** /**
* Note: 路由配置项 * Note: 路由配置项
...@@ -31,385 +31,401 @@ import Layout from '@/layout' ...@@ -31,385 +31,401 @@ import Layout from '@/layout'
// 公共路由 // 公共路由
export const constantRoutes = [ export const constantRoutes = [
{ {
path: '/redirect', path: "/redirect",
component: Layout, component: Layout,
hidden: true, hidden: true,
children: [ children: [
{ {
path: '/redirect/:path(.*)', path: "/redirect/:path(.*)",
component: () => import('@/views/redirect') component: () => import("@/views/redirect"),
}
]
},
{
path: '/login',
component: () => import('@/views/login'),
hidden: true
},
{
path: '/register',
component: () => import('@/views/register'),
hidden: true
},
{
path: '/404',
component: () => import('@/views/error/404'),
hidden: true
},
{
path: '/401',
component: () => import('@/views/error/401'),
hidden: true
}, },
{ ],
path: '',
component: Layout,
redirect: 'index',
children: [
{
path: 'index',
component: () => import('@/views/index/admin/index'),
name: 'Index',
meta: { title: '首页', icon: 'dashboard', affix: true }
}
]
}, },
{ {
path: '/user', path: "/login",
component: Layout, component: () => import("@/views/login"),
hidden: true, hidden: true,
redirect: 'noredirect',
children: [
{
path: 'profile',
component: () => import('@/views/system/user/profile/index'),
name: 'Profile',
meta: { title: '个人中心', icon: 'user' }
}
]
}, },
// 快捷菜单路由
{ {
path: '/jcjs', path: "/register",
component: Layout, component: () => import("@/views/register"),
hidden: true, hidden: true,
children: [
{
path: 'sjy',
component: () => import('@/views/rule/datasource/index'),
name: 'DataSource',
meta: { title: '数据源管理' }
}
]
}, },
{ {
path: '/sjjc', path: "/404",
component: Layout, component: () => import("@/views/error/404"),
hidden: true, hidden: true,
children: [
{
path: 'jobInfo',
component: () => import('@/views/datax/jobInfo/index'),
name: 'JobInfo',
meta: { title: '任务管理' }
}
]
}, },
{ {
path: '/flink', path: "/401",
component: Layout, component: () => import("@/views/error/401"),
hidden: true, hidden: true,
children: [
{
path: 'FlinkTaskManage',
component: () => import('@/views/flink/task-manage/index'),
name: 'FlinkTaskManage',
meta: { title: '任务列表' }
}
]
}, },
{ {
path: '/market', path: "",
component: Layout, component: Layout,
hidden: true, redirect: "index",
children: [ children: [
{ {
path: 'dataapi', path: "index",
component: () => import('@/views/market/dataapi/index'), component: () => import("@/views/index/admin/index"),
name: 'DataApi', name: "Index",
meta: { title: '数据服务' } meta: { title: "首页", icon: "dashboard", affix: true },
} },
] ],
}, },
{ {
path: '/quality', path: "/user",
component: Layout, component: Layout,
hidden: true, hidden: true,
redirect: "noredirect",
children: [ children: [
{ {
path: 'checkrule', path: "profile",
component: () => import('@/views/quality/checkrule/index'), component: () => import("@/views/system/user/profile/index"),
name: 'CheckRule', name: "Profile",
meta: { title: '规则配置' } meta: { title: "个人中心", icon: "user" },
}
]
}, },
{ ],
path: '/flink/task-manage', },
redirect: 'noRedirect', // 快捷菜单路由
name: 'TaskManage', // {
meta: { title: '任务管理', icon: 'list' }, // path: '/jcjs',
// component: Layout,
// hidden: true,
// children: [
// {
// path: 'sjy',
// component: () => import('@/views/rule/datasource/index'),
// name: 'DataSource',
// meta: { title: '数据源管理' }
// }
// ]
// },
// {
// path: '/sjjc',
// component: Layout,
// hidden: true,
// children: [
// {
// path: 'jobInfo',
// component: () => import('@/views/datax/jobInfo/index'),
// name: 'JobInfo',
// meta: { title: '任务管理' }
// }
// ]
// },
// {
// path: '/flink',
// component: Layout,
// hidden: true,
// children: [
// {
// path: 'FlinkTaskManage',
// component: () => import('@/views/flink/task-manage/index'),
// name: 'FlinkTaskManage',
// meta: { title: '任务列表' }
// }
// ]
// },
// {
// path: '/market',
// component: Layout,
// hidden: true,
// children: [
// {
// path: 'dataapi',
// component: () => import('@/views/market/dataapi/index'),
// name: 'DataApi',
// meta: { title: '数据服务' }
// }
// ]
// },
// {
// path: '/quality',
// component: Layout,
// hidden: true,
// children: [
// {
// path: 'checkrule',
// component: () => import('@/views/quality/checkrule/index'),
// name: 'CheckRule',
// meta: { title: '规则配置' }
// }
// ]
// },
{
path: "/flink/task-manage",
redirect: "noRedirect",
name: "TaskManage",
meta: { title: "任务管理", icon: "list" },
component: Layout, component: Layout,
hidden: true, hidden: true,
children: [ children: [
{ {
path: 'index', path: "index",
name: 'FlinkTaskManage', name: "FlinkTaskManage",
component: () => import('@/views/flink/task-manage/index'), component: () => import("@/views/flink/task-manage/index"),
meta: { title: '任务列表', icon: 'el-icon-star-off' }, meta: { title: "任务列表", icon: "el-icon-star-off" },
children: [ children: [
{ {
path: '/flink/task-manage/create_sql_streaming_task', path: "/flink/task-manage/create_sql_streaming_task",
name: 'CreateSqlStreamingTask', name: "CreateSqlStreamingTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '创建SQL流任务' }, meta: { title: "创建SQL流任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/edit_sql_streaming_task', path: "/flink/task-manage/edit_sql_streaming_task",
name: 'UpdateSqlStreamingTask', name: "UpdateSqlStreamingTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '编辑SQL流任务' }, meta: { title: "编辑SQL流任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/view_sql_streaming_task', path: "/flink/task-manage/view_sql_streaming_task",
name: 'ViewSqlStreamingTask', name: "ViewSqlStreamingTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看SQL流任务' }, meta: { title: "查看SQL流任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/create_sql_batch_task', path: "/flink/task-manage/create_sql_batch_task",
name: 'CreateSqlBatchTask', name: "CreateSqlBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '创建SQL批任务' }, meta: { title: "创建SQL批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/edit_sql_batch_task', path: "/flink/task-manage/edit_sql_batch_task",
name: 'UpdateSqlBatchTask', name: "UpdateSqlBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '编辑SQL批任务' }, meta: { title: "编辑SQL批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/view_sql_batch_task', path: "/flink/task-manage/view_sql_batch_task",
name: 'ViewSqlBatchTask', name: "ViewSqlBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看SQL批任务' }, meta: { title: "查看SQL批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/create_jar_task', path: "/flink/task-manage/create_jar_task",
name: 'CreateJarTask', name: "CreateJarTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '创建JAR任务' }, meta: { title: "创建JAR任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/create_jar_task', path: "/flink/task-manage/create_jar_task",
name: 'CreateJarBatchTask', name: "CreateJarBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '创建JAR批任务' }, meta: { title: "创建JAR批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/edit_jar_task', path: "/flink/task-manage/edit_jar_task",
name: 'UpdateJarTask', name: "UpdateJarTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '编辑JAR任务' }, meta: { title: "编辑JAR任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/edit_jar_task', path: "/flink/task-manage/edit_jar_task",
name: 'UpdateJarBatchTask', name: "UpdateJarBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '编辑JAR批任务' }, meta: { title: "编辑JAR批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/view_jar_task', path: "/flink/task-manage/view_jar_task",
name: 'ViewJarTask', name: "ViewJarTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看JAR任务' }, meta: { title: "查看JAR任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/view_jar_task', path: "/flink/task-manage/view_jar_task",
name: 'ViewJarBatchTask', name: "ViewJarBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看JAR批任务' }, meta: { title: "查看JAR批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/log-manage/view_logdetail', path: "/flink/log-manage/view_logdetail",
name: 'ViewTaskLogDetail', name: "ViewTaskLogDetail",
component: (resolve) => require([`@/views/flink/log-manage/logdetail.vue`], resolve), component: (resolve) =>
require([`@/views/flink/log-manage/logdetail.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看日志详情' }, meta: { title: "查看日志详情" },
children: [] children: [],
}, },
{ {
path: 'index', path: "index",
name: 'FlinkLogManage', name: "FlinkLogManage",
component: () => import('@/views/flink/log-manage/index'), component: () => import("@/views/flink/log-manage/index"),
meta: { title: '运行日志', icon: 'documentation' }, meta: { title: "运行日志", icon: "documentation" },
children: [ children: [
{ {
path: '/flink/log-manage/view_logdetail', path: "/flink/log-manage/view_logdetail",
name: 'ViewLogDetail', name: "ViewLogDetail",
component: (resolve) => require([`@/views/flink/log-manage/logdetail.vue`], resolve), component: (resolve) =>
require([`@/views/flink/log-manage/logdetail.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看日志详情' }, meta: { title: "查看日志详情" },
children: [] children: [],
} },
] ],
} },
] ],
}, },
{ {
path: '/flink/task-manage/history', path: "/flink/task-manage/history",
name: 'HistoryTask', name: "HistoryTask",
component: (resolve) => require([`@/views/flink/task-manage/history.vue`], resolve), component: (resolve) =>
meta: { title: '历史版本', icon: 'el-icon-tickets' }, require([`@/views/flink/task-manage/history.vue`], resolve),
meta: { title: "历史版本", icon: "el-icon-tickets" },
children: [ children: [
{ {
path: '/flink/task-manage/view_sql_streaming_task', path: "/flink/task-manage/view_sql_streaming_task",
name: 'ViewHistorySqlStreamingTask', name: "ViewHistorySqlStreamingTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看SQL流任务' }, meta: { title: "查看SQL流任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/view_sql_batch_task', path: "/flink/task-manage/view_sql_batch_task",
name: 'ViewHistorySqlBatchTask', name: "ViewHistorySqlBatchTask",
component: (resolve) => require([`@/views/flink/task-manage/sqltask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/sqltask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看SQL批任务' }, meta: { title: "查看SQL批任务" },
children: [] children: [],
}, },
{ {
path: '/flink/task-manage/view_jar_task', path: "/flink/task-manage/view_jar_task",
name: 'ViewHistoryJarTask', name: "ViewHistoryJarTask",
component: (resolve) => require([`@/views/flink/task-manage/jartask.vue`], resolve), component: (resolve) =>
require([`@/views/flink/task-manage/jartask.vue`], resolve),
hidden: true, hidden: true,
meta: { title: '查看JAR批任务' }, meta: { title: "查看JAR批任务" },
children: [] children: [],
} },
] ],
} },
] ],
} },
] ];
// 动态路由,基于用户权限动态去加载 // 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [ export const dynamicRoutes = [
{ {
path: '/system/user-auth', path: "/system/user-auth",
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:user:edit'], permissions: ["system:user:edit"],
children: [ children: [
{ {
path: 'role/:userId(\\d+)', path: "role/:userId(\\d+)",
component: () => import('@/views/system/user/authRole'), component: () => import("@/views/system/user/authRole"),
name: 'AuthRole', name: "AuthRole",
meta: { title: '分配角色', activeMenu: '/system/user' } meta: { title: "分配角色", activeMenu: "/system/user" },
} },
] ],
}, },
{ {
path: '/system/role-auth', path: "/system/role-auth",
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:role:edit'], permissions: ["system:role:edit"],
children: [ children: [
{ {
path: 'user/:roleId(\\d+)', path: "user/:roleId(\\d+)",
component: () => import('@/views/system/role/authUser'), component: () => import("@/views/system/role/authUser"),
name: 'AuthUser', name: "AuthUser",
meta: { title: '分配用户', activeMenu: '/system/role' } meta: { title: "分配用户", activeMenu: "/system/role" },
} },
] ],
}, },
{ {
path: '/system/dict-data', path: "/system/dict-data",
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['system:dict:list'], permissions: ["system:dict:list"],
children: [ children: [
{ {
path: 'index/:dictId(\\d+)', path: "index/:dictId(\\d+)",
component: () => import('@/views/system/dict/data'), component: () => import("@/views/system/dict/data"),
name: 'Data', name: "Data",
meta: { title: '字典数据', activeMenu: '/system/dict' } meta: { title: "字典数据", activeMenu: "/system/dict" },
} },
] ],
}, },
{ {
path: '/monitor/job-log', path: "/monitor/job-log",
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['monitor:job:list'], permissions: ["monitor:job:list"],
children: [ children: [
{ {
path: 'index', path: "index",
component: () => import('@/views/monitor/job/log'), component: () => import("@/views/monitor/job/log"),
name: 'JobLog', name: "JobLog",
meta: { title: '调度日志', activeMenu: '/monitor/job' } meta: { title: "调度日志", activeMenu: "/monitor/job" },
} },
] ],
}, },
{ {
path: '/tool/gen-edit', path: "/tool/gen-edit",
component: Layout, component: Layout,
hidden: true, hidden: true,
permissions: ['tool:gen:edit'], permissions: ["tool:gen:edit"],
children: [ children: [
{ {
path: 'index/:tableId(\\d+)', path: "index/:tableId(\\d+)",
component: () => import('@/views/tool/gen/editTable'), component: () => import("@/views/tool/gen/editTable"),
name: 'GenEdit', name: "GenEdit",
meta: { title: '修改生成配置', activeMenu: '/tool/gen' } meta: { title: "修改生成配置", activeMenu: "/tool/gen" },
} },
] ],
} },
] ];
// 防止连续点击多次路由报错 // 防止连续点击多次路由报错
let routerPush = Router.prototype.push; let routerPush = Router.prototype.push;
Router.prototype.push = function push(location) { Router.prototype.push = function push(location) {
return routerPush.call(this, location).catch(err => err) return routerPush.call(this, location).catch((err) => err);
} };
export default new Router({ export default new Router({
mode: 'hash', // 去掉url中的# mode: "hash", // 去掉url中的#
scrollBehavior: () => ({ y: 0 }), scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes routes: constantRoutes,
}) });
...@@ -27,13 +27,13 @@ ...@@ -27,13 +27,13 @@
<!-- <el-table-column align="center" label="序号" width="95"> <!-- <el-table-column align="center" label="序号" width="95">
<template slot-scope="scope">{{ scope.$index }}</template> <template slot-scope="scope">{{ scope.$index }}</template>
</el-table-column> --> </el-table-column> -->
<el-table-column label="数据源" width="200" align="center"> <el-table-column label="数据源" width="100" align="center">
<template slot-scope="scope">{{ scope.row.datasource }}</template> <template slot-scope="scope">{{ scope.row.datasource }}</template>
</el-table-column> </el-table-column>
<el-table-column label="数据源名称" width="150" align="center"> <el-table-column label="数据源名称" width="200" align="center">
<template slot-scope="scope">{{ scope.row.datasourceName }}</template> <template slot-scope="scope">{{ scope.row.datasourceName }}</template>
</el-table-column> </el-table-column>
<el-table-column label="数据源分组" width="200" align="center"> <el-table-column label="数据源分组" width="100" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<dict-tag :options="dict.type.source_group" :value="scope.row.datasourceGroup"/> <dict-tag :options="dict.type.source_group" :value="scope.row.datasourceGroup"/>
</template> </template>
...@@ -41,16 +41,16 @@ ...@@ -41,16 +41,16 @@
<!--<el-table-column label="用户名" width="150" align="center"> <!--<el-table-column label="用户名" width="150" align="center">
<template slot-scope="scope">{{ scope.row.jdbcUsername ? scope.row.jdbcUsername:'-' }}</template> <template slot-scope="scope">{{ scope.row.jdbcUsername ? scope.row.jdbcUsername:'-' }}</template>
</el-table-column>--> </el-table-column>-->
<el-table-column label="jdbc连接串" align="center" :show-overflow-tooltip="true"> <el-table-column label="jdbc连接串" width="300" align="center" :show-overflow-tooltip="true">
<template slot-scope="scope">{{ scope.row.jdbcUrl ? scope.row.jdbcUrl:'-' }}</template> <template slot-scope="scope">{{ scope.row.jdbcUrl ? scope.row.jdbcUrl:'-' }}</template>
</el-table-column> </el-table-column>
<!-- <el-table-column label="jdbc驱动类" width="200" align="center" :show-overflow-tooltip="true"> <!-- <el-table-column label="jdbc驱动类" width="200" align="center" :show-overflow-tooltip="true">
<template slot-scope="scope">{{ scope.row.jdbcDriverClass ? scope.row.jdbcDriverClass:'-' }}</template> <template slot-scope="scope">{{ scope.row.jdbcDriverClass ? scope.row.jdbcDriverClass:'-' }}</template>
</el-table-column>--> </el-table-column>-->
<el-table-column label="ZK地址" width="200" align="center" :show-overflow-tooltip="true"> <el-table-column label="ZK地址" width="100" align="center" :show-overflow-tooltip="true">
<template slot-scope="scope">{{ scope.row.zkAdress ? scope.row.zkAdress:'-' }}</template> <template slot-scope="scope">{{ scope.row.zkAdress ? scope.row.zkAdress:'-' }}</template>
</el-table-column> </el-table-column>
<el-table-column label="数据库名" width="200" align="center" :show-overflow-tooltip="true">--> <el-table-column label="数据库名" width="100" align="center" :show-overflow-tooltip="true">-->
<template slot-scope="scope">{{ scope.row.databaseName ? scope.row.databaseName:'-' }}</template>--> <template slot-scope="scope">{{ scope.row.databaseName ? scope.row.databaseName:'-' }}</template>-->
</el-table-column> </el-table-column>
<el-table-column label="备注" width="150" align="center"> <el-table-column label="备注" width="150" align="center">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论