修改bug
This commit is contained in:
parent
9730d1c936
commit
ec39d76372
@ -7,16 +7,12 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="site-navbar__body clearfix">
|
<div class="site-navbar__body clearfix">
|
||||||
<el-menu
|
<el-menu class="site-navbar__menu" mode="horizontal">
|
||||||
class="site-navbar__menu"
|
|
||||||
mode="horizontal">
|
|
||||||
<el-menu-item class="site-navbar__switch" index="0" @click="sidebarFold = !sidebarFold">
|
<el-menu-item class="site-navbar__switch" index="0" @click="sidebarFold = !sidebarFold">
|
||||||
<icon-svg name="zhedie"></icon-svg>
|
<icon-svg name="zhedie"></icon-svg>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
</el-menu>
|
</el-menu>
|
||||||
<el-menu
|
<el-menu class="site-navbar__menu site-navbar__menu--right" mode="horizontal">
|
||||||
class="site-navbar__menu site-navbar__menu--right"
|
|
||||||
mode="horizontal">
|
|
||||||
<el-menu-item index="1" @click="$router.push({ name: 'theme' })">
|
<el-menu-item index="1" @click="$router.push({ name: 'theme' })">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<el-badge>
|
<el-badge>
|
||||||
@ -43,8 +39,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import UpdatePassword from './main-navbar-update-password'
|
|
||||||
import { clearLoginInfo } from '@/utils'
|
import { clearLoginInfo } from '@/utils'
|
||||||
|
import UpdatePassword from './main-navbar-update-password'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog :title="!dataForm.id ? '新增' : '修改'" :close-on-click-modal="false" :visible.sync="visible">
|
||||||
:title="!dataForm.id ? '新增' : '修改'"
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
|
||||||
:close-on-click-modal="false"
|
label-width="100px">
|
||||||
:visible.sync="visible">
|
|
||||||
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="100px">
|
|
||||||
<el-form-item label="bean名称" prop="beanName">
|
<el-form-item label="bean名称" prop="beanName">
|
||||||
<el-input v-model="dataForm.beanName" placeholder="spring bean名称, 如: testTask"></el-input>
|
<el-input v-model="dataForm.beanName" placeholder="spring bean名称, 如: testTask"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -1,9 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog
|
<el-dialog title="日志列表" :close-on-click-modal="false" :visible.sync="visible" width="75%">
|
||||||
title="日志列表"
|
|
||||||
:close-on-click-modal="false"
|
|
||||||
:visible.sync="visible"
|
|
||||||
width="75%">
|
|
||||||
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-input v-model="dataForm.id" placeholder="任务ID" clearable></el-input>
|
<el-input v-model="dataForm.id" placeholder="任务ID" clearable></el-input>
|
||||||
@ -12,69 +8,29 @@
|
|||||||
<el-button @click="getDataList()">查询</el-button>
|
<el-button @click="getDataList()">查询</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table
|
<el-table :data="dataList" border v-loading="dataListLoading" height="460" style="width: 100%;">
|
||||||
:data="dataList"
|
<el-table-column prop="logId" header-align="center" align="center" width="80" label="日志ID">
|
||||||
border
|
|
||||||
v-loading="dataListLoading"
|
|
||||||
height="460"
|
|
||||||
style="width: 100%;">
|
|
||||||
<el-table-column
|
|
||||||
prop="logId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="80"
|
|
||||||
label="日志ID">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="jobId" header-align="center" align="center" width="80" label="任务ID">
|
||||||
prop="jobId"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="80"
|
|
||||||
label="任务ID">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="beanName" header-align="center" align="center" label="bean名称">
|
||||||
prop="beanName"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="bean名称">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="params" header-align="center" align="center" label="参数">
|
||||||
prop="params"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="参数">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="status" header-align="center" align="center" label="状态">
|
||||||
prop="status"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="状态">
|
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-tag v-if="scope.row.status === 0" size="small">成功</el-tag>
|
<el-tag v-if="scope.row.status === 0" size="small">成功</el-tag>
|
||||||
<el-tag v-else @click.native="showErrorInfo(scope.row.logId)" size="small" type="danger" style="cursor: pointer;">失败</el-tag>
|
<el-tag v-else @click.native="showErrorInfo(scope.row.logId)" size="small" type="danger"
|
||||||
|
style="cursor: pointer;">失败</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="times" header-align="center" align="center" label="耗时(单位: 毫秒)">
|
||||||
prop="times"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
label="耗时(单位: 毫秒)">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="createTime" header-align="center" align="center" width="180" label="执行时间">
|
||||||
prop="createTime"
|
|
||||||
header-align="center"
|
|
||||||
align="center"
|
|
||||||
width="180"
|
|
||||||
label="执行时间">
|
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination
|
<el-pagination @size-change="sizeChangeHandle" @current-change="currentChangeHandle" :current-page="pageIndex"
|
||||||
@size-change="sizeChangeHandle"
|
:page-sizes="[10, 20, 50, 100]" :page-size="pageSize" :total="totalPage"
|
||||||
@current-change="currentChangeHandle"
|
|
||||||
:current-page="pageIndex"
|
|
||||||
:page-sizes="[10, 20, 50, 100]"
|
|
||||||
:page-size="pageSize"
|
|
||||||
:total="totalPage"
|
|
||||||
layout="total, sizes, prev, pager, next, jumper">
|
layout="total, sizes, prev, pager, next, jumper">
|
||||||
</el-pagination>
|
</el-pagination>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
Loading…
Reference in New Issue
Block a user