更新
This commit is contained in:
@@ -168,7 +168,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-table max-height="250" class="work_table" :data="workList" empty-text="暂无作业列表">
|
<el-table max-height="250" class="work_table" :data="workList" empty-text="暂无作业列表">
|
||||||
<el-table-column type="index" width="50" label="序号"></el-table-column>
|
<el-table-column type="index" width="50" label="序号"></el-table-column>
|
||||||
<el-table-column prop="jId" label="作业ID"></el-table-column>
|
<el-table-column prop="task_uuid" label="作业ID"></el-table-column>
|
||||||
<el-table-column prop="username" label="用户"></el-table-column>
|
<el-table-column prop="username" label="用户"></el-table-column>
|
||||||
<el-table-column prop="DataSource" label="来源"></el-table-column>
|
<el-table-column prop="DataSource" label="来源"></el-table-column>
|
||||||
<el-table-column prop="PrinterType" label="类型">
|
<el-table-column prop="PrinterType" label="类型">
|
||||||
@@ -182,10 +182,10 @@
|
|||||||
<!-- <el-table-column prop="CreateTime" label="开始时间"></el-table-column> -->
|
<!-- <el-table-column prop="CreateTime" label="开始时间"></el-table-column> -->
|
||||||
<!-- <el-table-column prop="FinishTime" label="结束时间"></el-table-column> -->
|
<!-- <el-table-column prop="FinishTime" label="结束时间"></el-table-column> -->
|
||||||
<el-table-column prop="JobCompletion" label="完成"></el-table-column>
|
<el-table-column prop="JobCompletion" label="完成"></el-table-column>
|
||||||
<el-table-column prop="JobStatus" label="状态">
|
<el-table-column prop="task_status" label="状态">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div class="flex_box work_status_box">
|
<div class="flex_box work_status_box">
|
||||||
<div>{{statusList[scope.row.JobStatus]}}</div>
|
<div>{{statusList[scope.row.task_status]}}</div>
|
||||||
<!-- <i class="el-icon-caret-bottom"></i> -->
|
<!-- <i class="el-icon-caret-bottom"></i> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -270,24 +270,20 @@ export default {
|
|||||||
// },
|
// },
|
||||||
],
|
],
|
||||||
// 作业列表
|
// 作业列表
|
||||||
workList: [
|
workList: [],
|
||||||
{
|
|
||||||
ID: '1',
|
|
||||||
jId: '202410145423408',
|
|
||||||
username: 'Admin',
|
|
||||||
DataSource: '127.0.0.1',
|
|
||||||
PrinterType: 1,
|
|
||||||
TaskCapacity: '2.41GB',
|
|
||||||
CreateTime: '11-07 15:46:24',
|
|
||||||
FinishTime: '11-07 16:10:01',
|
|
||||||
JobCompletion: '5/10',
|
|
||||||
JobStatus: '4'
|
|
||||||
},
|
|
||||||
],
|
|
||||||
typeList: ['', '文件刻录', '光盘拷贝', '定期归档', '光盘读取'],
|
typeList: ['', '文件刻录', '光盘拷贝', '定期归档', '光盘读取'],
|
||||||
statusList: ['', '新建', '等待中', '文件准备中', '正在刻录', '正在打印', '已失败', '已取消', '已完成'],
|
statusList: ['', '新建', '等待中', '文件准备中', '正在刻录', '正在打印', '已失败', '已取消', '已完成'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
'$store.state.chat.taskItem': {
|
||||||
|
handler(val) {
|
||||||
|
this.workList.push(val)
|
||||||
|
},
|
||||||
|
deep: true,
|
||||||
|
immediate: true
|
||||||
|
}
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['name', 'roles'])
|
...mapGetters(['name', 'roles'])
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user