Commit dc2a3baf authored by 冷冷's avatar 冷冷

💄 Updating the UI and style files.

parent cbc955d4
......@@ -36,10 +36,6 @@ export const tableOption = {
'delBtn': false,
'dic': [],
'column': [{
label: '令牌',
prop: 'token_value',
align: 'center'
}, {
label: '用户ID',
prop: 'user_id',
align: 'center'
......@@ -47,6 +43,11 @@ export const tableOption = {
label: '用户名',
prop: 'user_name',
align: 'center'
}, {
label: '令牌',
prop: 'token_value',
align: 'center',
'overHidden': true
}, {
label: '类型',
prop: 'token_type',
......
......@@ -14,6 +14,17 @@
* this software without specific prior written permission.
* Author: lengleng (wangiegie@gmail.com)
*/
const DIC = {
isSuccess: [{
label: '成功',
value: 1
},
{
label: '失败',
value: 0
}
]
}
export const tableOption = {
'border': true,
......@@ -25,11 +36,13 @@ export const tableOption = {
'editBtn': false,
'delBtn': false,
'addBtn': false,
'viewBtn':true,
'dic': [],
'column': [
{
label: 'ID',
prop: 'id'
prop: 'id',
hide: true
},
{
label: '任务名称',
......@@ -37,35 +50,45 @@ export const tableOption = {
},
{
label: '任务ID',
prop: 'taskId'
prop: 'taskId',
hide: true,
overHidden: true
},
{
label: '主机名',
prop: 'hostname'
prop: 'hostname',
hide: true
},
{
label: 'IP',
prop: 'ip'
},
{
width: 80,
label: '分片项',
prop: 'shardingItem'
},
{
label: '执行源',
prop: 'executionSource'
prop: 'executionSource',
hide: true
},
{
label: '失败原因',
prop: 'failureCause'
prop: 'failureCause',
hide: true
},
{
width: 100,
label: '执行结果',
prop: 'isSuccess'
prop: 'isSuccess',
type: 'select',
dicData: DIC.isSuccess,
},
{
label: '开始时间',
prop: 'startTime'
prop: 'startTime',
hide: true
},
{
label: '完成时间',
......
......@@ -39,6 +39,7 @@ export const tableOption = {
"editBtn": false,
"delBtn": false,
"addBtn": false,
"viewBtn": true,
"dic": [],
"column": [{
label: 'ID',
......@@ -73,28 +74,31 @@ export const tableOption = {
{
label: '执行类型',
prop: 'executionType',
hide: true,
width: 100
hide: true
},
{
width: 100,
label: '分片项',
prop: 'shardingItem'
},
{
width: 100,
label: '状态',
prop: 'state',
type: 'select',
dicData: DIC.state,
search: true
},
{
label: '创建时间',
prop: 'creationTime'
},
{
label: '消息',
prop: 'message',
width: 100
width: 100,
overHidden: true,
hide: true
},
{
label: '创建时间',
prop: 'creationTime'
}
]
}
......@@ -28,13 +28,6 @@
@row-update="handleUpdate"
@row-save="handleSave"
@row-del="rowDel">
<template slot="menuLeft">
<el-button type="primary"
@click="handleAdd"
size="small"
v-if="permissions.daemon_execution_log_add">新 增</el-button>
<br /><br />
</template>
<template slot-scope="scope"
slot="menu">
<el-button type="text"
......@@ -78,10 +71,11 @@
this.tableLoading = true
fetchList(Object.assign({
page: page.currentPage,
limit: page.pageSize
limit: page.pageSize,
descs: 'start_time'
}, params)).then(response => {
this.tableData = response.data.records
this.page.total = response.data.total
this.tableData = response.data.data.records
this.page.total = response.data.data.total
this.tableLoading = false
})
},
......
const url = 'http://zn.huaxiadaowei.com'
const url = 'http://127.0.0.1:9999'
module.exports = {
lintOnSave: true,
productionSourceMap: false,
......
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