更新优化

This commit is contained in:
24kycj
2024-11-16 17:40:39 +08:00
parent ee06adb770
commit 26e9c0a75b
3 changed files with 17 additions and 20 deletions
+4 -1
View File
@@ -776,6 +776,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
.el-input__icon { .el-input__icon {
font-size: 16px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-weight: bold; font-weight: bold;
@@ -1062,6 +1063,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
.el-input__icon { .el-input__icon {
font-size: 16px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-weight: bold; font-weight: bold;
@@ -1121,6 +1123,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
.el-input__icon { .el-input__icon {
font-size: 16px;
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
font-weight: bold; font-weight: bold;
@@ -1128,7 +1131,7 @@ export default {
} }
} }
.el-switch { .el-switch {
zoom: 1.3; zoom: 1.2;
} }
.el-radio-group { .el-radio-group {
padding: 10px 0; padding: 10px 0;
+4 -2
View File
@@ -284,15 +284,17 @@ const actions = {
} else if (data.resp_name === 'add_log') { } else if (data.resp_name === 'add_log') {
let logs = data.resp_info.add_log let logs = data.resp_info.add_log
let loglist = [] let loglist = []
let logLists = [...state.logList]
for (let i = 0; i < logs.length; i++) { for (let i = 0; i < logs.length; i++) {
let texts = logs[i].split('|') let texts = logs[i].split('|')
loglist.push({ if (logLists.length > 20) logLists.splice(logLists.length - 1, 1)
loglist.unshift({
time: texts[0], time: texts[0],
text: texts[2], text: texts[2],
status: texts[1] status: texts[1]
}) })
} }
let list = [...state.logList, ...loglist] let list = [...loglist, ...state.logList]
commit('setData', { name: 'logList', data: list }) commit('setData', { name: 'logList', data: list })
} }
} else { } else {
+9 -17
View File
@@ -182,16 +182,16 @@
<span>{{ index + 1 }}</span <span>{{ index + 1 }}</span
>[{{ item.status }}]{{ item.text }} >[{{ item.status }}]{{ item.text }}
</div> </div>
<div class="notice_time">{{ item.time.split(' ')[0] }}</div> <div class="notice_time">{{ item.time }}</div>
</div> </div>
</template> </template>
<template v-if="showAll"> <template v-if="showAll">
<div v-for="(item, index) in allLogList" :key="index" :class="`flex_box flex_row_between notice_item notice_${item.status}`"> <div v-for="(item, index) in logList" :key="index" :class="`flex_box flex_row_between notice_item notice_${item.status}`">
<div class="notice_content"> <div class="notice_content">
<span>{{ index + 1 }}</span <span>{{ index + 1 }}</span
>[{{ item.status }}]{{ item.text }} >[{{ item.status }}]{{ item.text }}
</div> </div>
<div class="notice_time">{{ item.time.split(' ')[0] }}</div> <div class="notice_time">{{ item.time }}</div>
</div> </div>
</template> </template>
</div> </div>
@@ -213,7 +213,6 @@
<div>{{ scope.$index+1 }}_{{ child.$index+1 }}</div> <div>{{ scope.$index+1 }}_{{ child.$index+1 }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="task_label" label="子任务名称"></el-table-column>
<el-table-column prop="task_size" label="大小"> <el-table-column prop="task_size" label="大小">
<template slot-scope="child"> <template slot-scope="child">
<div>{{ $filterSize(child.row.task_size) }}</div> <div>{{ $filterSize(child.row.task_size) }}</div>
@@ -221,13 +220,6 @@
</el-table-column> </el-table-column>
<el-table-column prop="start_time" label="开始时间"></el-table-column> <el-table-column prop="start_time" label="开始时间"></el-table-column>
<el-table-column prop="finish_time" label="结束时间"></el-table-column> <el-table-column prop="finish_time" label="结束时间"></el-table-column>
<el-table-column label="进度">
<template slot-scope="child">
<div class="work_progress">
<el-progress :text-inside="true" :percentage="child.row.copy_scheduler" status="success"></el-progress>
</div>
</template>
</el-table-column>
<el-table-column prop="task_status" label="状态"> <el-table-column prop="task_status" label="状态">
<template slot-scope="child"> <template slot-scope="child">
<div class="flex_box work_status_box"> <div class="flex_box work_status_box">
@@ -333,14 +325,14 @@ export default {
// 作业列表 // 作业列表
task_list: [], task_list: [],
statusList: { statusList: {
'0': '新建', '0': '新建',
'1': '等待中', '1': '准备中',
'2': '文件准备中', '2': '等待中',
'3': '正在刻录', '3': '正在拷贝',
'4': '正在打印', '4': '正在打印',
'5': '已失败', '5': '已失败',
'6': '已取消', '6': '运行中',
'7': '已完成' '100': '已完成'
}, },
// 设备信息 // 设备信息
printer_info: {}, printer_info: {},