Commit c1773542 by yuwei

2.0.0项目初始化

parent 6822437d
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '数据集新增', title: '数据集新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -58,7 +58,6 @@ export default { ...@@ -58,7 +58,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '数据集详情', title: '数据集详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -59,7 +59,6 @@ export default { ...@@ -59,7 +59,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '数据集编辑', title: '数据集编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="数据集名称" prop="setName"> <el-form-item label="数据集名称" prop="setName">
<el-input <el-input
...@@ -166,8 +166,7 @@ export default { ...@@ -166,8 +166,7 @@ export default {
name: 'DataSetList', name: 'DataSetList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -22,19 +22,19 @@ ...@@ -22,19 +22,19 @@
<el-form-item label="数据源名称" prop="sourceName"> <el-form-item label="数据源名称" prop="sourceName">
<el-input v-model="form.sourceName" placeholder="请输入数据源名称" /> <el-input v-model="form.sourceName" placeholder="请输入数据源名称" />
</el-form-item> </el-form-item>
<el-form-item label="主机" prop="host"> <el-form-item label="主机" prop="dbSchema.host">
<el-input v-model="form.dbSchema.host" placeholder="请输入主机" /> <el-input v-model="form.dbSchema.host" placeholder="请输入主机" />
</el-form-item> </el-form-item>
<el-form-item label="端口" prop="port"> <el-form-item label="端口" prop="dbSchema.port">
<el-input v-model="form.dbSchema.port" placeholder="请输入端口" /> <el-input v-model="form.dbSchema.port" placeholder="请输入端口" />
</el-form-item> </el-form-item>
<el-form-item label="数据库" prop="dbName"> <el-form-item label="数据库" prop="dbSchema.dbName">
<el-input v-model="form.dbSchema.dbName" placeholder="请输入数据库" /> <el-input v-model="form.dbSchema.dbName" placeholder="请输入数据库" />
</el-form-item> </el-form-item>
<el-form-item label="用户名" prop="username"> <el-form-item label="用户名" prop="dbSchema.username">
<el-input v-model="form.dbSchema.username" placeholder="请输入用户名" /> <el-input v-model="form.dbSchema.username" placeholder="请输入用户名" />
</el-form-item> </el-form-item>
<el-form-item label="密码" prop="password"> <el-form-item label="密码" prop="dbSchema.password">
<el-input v-model="form.dbSchema.password" placeholder="请输入密码" /> <el-input v-model="form.dbSchema.password" placeholder="请输入密码" />
</el-form-item> </el-form-item>
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
...@@ -69,7 +69,6 @@ export default { ...@@ -69,7 +69,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '数据源新增', title: '数据源新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
...@@ -98,19 +97,19 @@ export default { ...@@ -98,19 +97,19 @@ export default {
sourceName: [ sourceName: [
{ required: true, message: '数据源名称不能为空', trigger: 'blur' } { required: true, message: '数据源名称不能为空', trigger: 'blur' }
], ],
host: [ 'dbSchema.host': [
{ required: true, message: '主机不能为空', trigger: 'blur' } { required: true, message: '主机不能为空', trigger: 'blur' }
], ],
port: [ 'dbSchema.port': [
{ required: true, message: '端口不能为空', trigger: 'blur' } { required: true, message: '端口不能为空', trigger: 'blur' }
], ],
dbName: [ 'dbSchema.dbName': [
{ required: true, message: '数据库不能为空', trigger: 'blur' } { required: true, message: '数据库不能为空', trigger: 'blur' }
], ],
username: [ 'dbSchema.username': [
{ required: true, message: '用户名不能为空', trigger: 'blur' } { required: true, message: '用户名不能为空', trigger: 'blur' }
], ],
password: [ 'dbSchema.password': [
{ required: true, message: '密码不能为空', trigger: 'blur' } { required: true, message: '密码不能为空', trigger: 'blur' }
] ]
}, },
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -68,7 +68,6 @@ export default { ...@@ -68,7 +68,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '数据源详情', title: '数据源详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -69,7 +69,6 @@ export default { ...@@ -69,7 +69,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '数据源编辑', title: '数据源编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="数据源名称" prop="sourceName"> <el-form-item label="数据源名称" prop="sourceName">
<el-input <el-input
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -166,8 +166,7 @@ export default { ...@@ -166,8 +166,7 @@ export default {
name: 'DataSourceList', name: 'DataSourceList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -43,7 +43,6 @@ export default { ...@@ -43,7 +43,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '登录日志详情', title: '登录日志详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="用户名称" prop="userName"> <el-form-item label="用户名称" prop="userName">
<el-input <el-input
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -144,8 +144,7 @@ export default { ...@@ -144,8 +144,7 @@ export default {
name: 'LoginLogList', name: 'LoginLogList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -70,7 +70,6 @@ export default { ...@@ -70,7 +70,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '操作日志详情', title: '操作日志详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
...@@ -159,7 +159,7 @@ export default { ...@@ -159,7 +159,7 @@ export default {
name: 'OperLogList', name: 'OperLogList',
data () { data () {
return { return {
tableHeight: document.body.offsetHeight - 330 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -56,7 +56,6 @@ export default { ...@@ -56,7 +56,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '任务新增', title: '任务新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -55,7 +55,6 @@ export default { ...@@ -55,7 +55,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '任务详情', title: '任务详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -56,7 +56,6 @@ export default { ...@@ -56,7 +56,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '任务编辑', title: '任务编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="任务名称" prop="jobName"> <el-form-item label="任务名称" prop="jobName">
<el-input <el-input
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -211,8 +211,7 @@ export default { ...@@ -211,8 +211,7 @@ export default {
name: 'JobList', name: 'JobList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -43,7 +43,6 @@ export default { ...@@ -43,7 +43,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '任务日志详情', title: '任务日志详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="定时任务" prop="jobId"> <el-form-item label="定时任务" prop="jobId">
<el-select <el-select
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -152,8 +152,7 @@ export default { ...@@ -152,8 +152,7 @@ export default {
name: 'JobLogList', name: 'JobLogList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -50,7 +50,6 @@ export default { ...@@ -50,7 +50,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '参数新增', title: '参数新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -49,7 +49,6 @@ export default { ...@@ -49,7 +49,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '参数详情', title: '参数详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -50,7 +50,6 @@ export default { ...@@ -50,7 +50,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '参数编辑', title: '参数编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="参数名称" prop="configName"> <el-form-item label="参数名称" prop="configName">
<el-input <el-input
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -173,8 +173,7 @@ export default { ...@@ -173,8 +173,7 @@ export default {
name: 'ConfigList', name: 'ConfigList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -54,7 +54,6 @@ export default { ...@@ -54,7 +54,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '部门新增', title: '部门新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -53,7 +53,6 @@ export default { ...@@ -53,7 +53,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '部门详情', title: '部门详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -54,7 +54,6 @@ export default { ...@@ -54,7 +54,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '部门编辑', title: '部门编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="12"> <el-col :span="12">
<el-button-group> <el-button-group>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
default-expand-all default-expand-all
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
...@@ -120,8 +120,7 @@ export default { ...@@ -120,8 +120,7 @@ export default {
name: 'DeptList', name: 'DeptList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '字典新增', title: '字典新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -46,7 +46,6 @@ export default { ...@@ -46,7 +46,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '字典详情', title: '字典详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -47,7 +47,6 @@ export default { ...@@ -47,7 +47,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 200 + 'px',
title: '字典编辑', title: '字典编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -50,7 +50,6 @@ export default { ...@@ -50,7 +50,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '字典项新增', title: '字典项新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -49,7 +49,6 @@ export default { ...@@ -49,7 +49,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '字典项详情', title: '字典项详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -50,7 +50,6 @@ export default { ...@@ -50,7 +50,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '字典项编辑', title: '字典项编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="字典项文本" prop="itemText"> <el-form-item label="字典项文本" prop="itemText">
<el-input <el-input
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -182,8 +182,7 @@ export default { ...@@ -182,8 +182,7 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -81,7 +81,6 @@ export default { ...@@ -81,7 +81,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '资源新增', title: '资源新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -80,7 +80,6 @@ export default { ...@@ -80,7 +80,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '资源详情', title: '资源详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -81,7 +81,6 @@ export default { ...@@ -81,7 +81,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '资源编辑', title: '资源编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-row type="flex" justify="space-between"> <el-row type="flex" justify="space-between">
<el-col :span="12"> <el-col :span="12">
<el-button-group> <el-button-group>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<template v-for="(item, index) in tableColumns"> <template v-for="(item, index) in tableColumns">
...@@ -119,8 +119,7 @@ export default { ...@@ -119,8 +119,7 @@ export default {
name: 'MenuList', name: 'MenuList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -44,7 +44,6 @@ export default { ...@@ -44,7 +44,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '岗位新增', title: '岗位新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -43,7 +43,6 @@ export default { ...@@ -43,7 +43,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '岗位详情', title: '岗位详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -44,7 +44,6 @@ export default { ...@@ -44,7 +44,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '岗位编辑', title: '岗位编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="岗位名称" prop="postName"> <el-form-item label="岗位名称" prop="postName">
<el-input <el-input
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -166,8 +166,7 @@ export default { ...@@ -166,8 +166,7 @@ export default {
name: 'PostList', name: 'PostList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -87,7 +87,6 @@ export default { ...@@ -87,7 +87,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '角色新增', title: '角色新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -88,7 +88,6 @@ export default { ...@@ -88,7 +88,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '角色详情', title: '角色详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -89,7 +89,6 @@ export default { ...@@ -89,7 +89,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '角色编辑', title: '角色编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="角色名称" prop="roleName"> <el-form-item label="角色名称" prop="roleName">
<el-input <el-input
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -166,8 +166,7 @@ export default { ...@@ -166,8 +166,7 @@ export default {
name: 'RoleList', name: 'RoleList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -92,7 +92,6 @@ export default { ...@@ -92,7 +92,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '用户新增', title: '用户新增',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -91,7 +91,6 @@ export default { ...@@ -91,7 +91,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '用户详情', title: '用户详情',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
<template> <template>
<div> <div>
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<div slot="header" class="clearfix"> <div slot="header" class="clearfix">
<span>{{ title }}</span> <span>{{ title }}</span>
<el-button-group style="float: right;"> <el-button-group style="float: right;">
...@@ -92,7 +92,6 @@ export default { ...@@ -92,7 +92,6 @@ export default {
}, },
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px',
title: '用户编辑', title: '用户编辑',
// 展示切换 // 展示切换
showOptions: { showOptions: {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="4"> <el-col :span="4">
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-tree <el-tree
:data="deptOptions" :data="deptOptions"
default-expand-all default-expand-all
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</el-card> </el-card>
</el-col> </el-col>
<el-col :span="20"> <el-col :span="20">
<el-card class="box-card" shadow="always" :body-style="{ height: bodyHeight }" style="overflow-y: auto;"> <el-card class="box-card" shadow="always">
<el-form :model="queryParams" ref="queryForm" :inline="true"> <el-form :model="queryParams" ref="queryForm" :inline="true">
<el-form-item label="用户名称" prop="username"> <el-form-item label="用户名称" prop="username">
<el-input <el-input
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
:size="tableSize" :size="tableSize"
:max-height="tableHeight" :height="tableHeight"
style="width: 100%;margin: 15px 0;" style="width: 100%;margin: 15px 0;"
> >
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
...@@ -204,8 +204,7 @@ export default { ...@@ -204,8 +204,7 @@ export default {
name: 'UserList', name: 'UserList',
data () { data () {
return { return {
bodyHeight: document.body.offsetHeight - 130 + 'px', tableHeight: document.body.offsetHeight - 340 + 'px',
tableHeight: document.body.offsetHeight - 230 + 'px',
// 展示切换 // 展示切换
showOptions: { showOptions: {
data: {}, data: {},
......
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