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

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

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