优化设置光盘等
This commit is contained in:
@@ -309,6 +309,7 @@ const defaultData = {
|
|||||||
settings: {
|
settings: {
|
||||||
log_level: 1,
|
log_level: 1,
|
||||||
retry_freq: 2,
|
retry_freq: 2,
|
||||||
|
print_quality: 1,
|
||||||
cache_path: '/home/test/CDFile'
|
cache_path: '/home/test/CDFile'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
<div class="device_info_box">
|
<div class="device_info_box">
|
||||||
<div class="device_info_main" :class="{ device_info_main1: infoStatus === 1 }">
|
<div class="device_info_main" :class="{ device_info_main1: infoStatus === 1 }">
|
||||||
<div class="device_info_item">
|
<div class="device_info_item">
|
||||||
<div class="device_info_title">光盘刻录一体机{{ printer_info.printer_name }}</div>
|
<div class="device_info_title">同方光盘刻录一体机{{ printer_info.printer_name }}</div>
|
||||||
<div class="flex_box flex_row_between device_info_options">
|
<div class="flex_box flex_row_between device_info_options">
|
||||||
<div v-if="printer_info.strongList[2]" class="device_info_option">
|
<div v-if="printer_info.strongList[2]" class="device_info_option">
|
||||||
<div class="device_info_option_box">
|
<div class="device_info_option_box">
|
||||||
@@ -144,10 +144,13 @@
|
|||||||
<div class="device_info_sure">
|
<div class="device_info_sure">
|
||||||
<div v-if="currentRunVal === 6" class="flex_box flex_row_between device_info_sure_box">
|
<div v-if="currentRunVal === 6" class="flex_box flex_row_between device_info_sure_box">
|
||||||
<div class="device_info_sure_text">{{ sureText }}</div>
|
<div class="device_info_sure_text">{{ sureText }}</div>
|
||||||
|
<div class="flex_box">
|
||||||
|
<el-button @click="cancleCD" class="device_info_cancle_btn">取消</el-button>
|
||||||
<el-button @click="sureCD" class="device_info_sure_btn" type="primary">确定</el-button>
|
<el-button @click="sureCD" class="device_info_sure_btn" type="primary">确定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="device_info_item">
|
<div class="device_info_item">
|
||||||
<div class="device_info_text">系统序列号:{{ printer_info.serial_no }}</div>
|
<div class="device_info_text">系统序列号:{{ printer_info.serial_no }}</div>
|
||||||
<div class="device_info_text">主机名:{{ printer_info.system_name }}</div>
|
<div class="device_info_text">主机名:{{ printer_info.system_name }}</div>
|
||||||
@@ -179,11 +182,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="flex_box device_run">
|
<div class="flex_box device_run">
|
||||||
<div class="flex_box device_run_input">
|
<div class="flex_box device_run_input">
|
||||||
<el-select v-model="runVal" placeholder="请选择">
|
<el-select :disabled="currentRunVal===6" v-model="runVal" placeholder="请选择">
|
||||||
<el-option v-for="item in runList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
<el-option v-for="item in runList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
<el-button @click="handleRun" type="primary" class="device_run_btn">执行</el-button>
|
<el-button :disabled="currentRunVal===6" @click="handleRun" type="primary" class="device_run_btn">执行</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 右侧 -->
|
<!-- 右侧 -->
|
||||||
@@ -317,7 +320,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
<div class="flex_box flex_row_center footer_box">
|
<div class="flex_box flex_row_center footer_box">
|
||||||
<div>Copyright @ 2023 CARDSOON Corporation</div>
|
<div>北京同方光盘股份有限公司</div>
|
||||||
<div class="footer_line"></div>
|
<div class="footer_line"></div>
|
||||||
<div class="footer_text">帮助</div>
|
<div class="footer_text">帮助</div>
|
||||||
<div class="footer_line"></div>
|
<div class="footer_line"></div>
|
||||||
@@ -410,7 +413,7 @@ export default {
|
|||||||
printer_info: {},
|
printer_info: {},
|
||||||
isLast: false,
|
isLast: false,
|
||||||
// 光盘信息
|
// 光盘信息
|
||||||
default_cd: {},
|
default_cd: [],
|
||||||
diskTypes: {},
|
diskTypes: {},
|
||||||
CDTypes: {},
|
CDTypes: {},
|
||||||
cd_list: [],
|
cd_list: [],
|
||||||
@@ -493,18 +496,17 @@ export default {
|
|||||||
handler(val) {
|
handler(val) {
|
||||||
that = this
|
that = this
|
||||||
let data = { ...val }
|
let data = { ...val }
|
||||||
if (this.currentRunVal === 6) {
|
|
||||||
data.strongList = this.printer_info.strongList
|
|
||||||
}
|
|
||||||
this.default_cd = data.strongList
|
|
||||||
this.printer_info = { ...data }
|
this.printer_info = { ...data }
|
||||||
if (val.printer_name && val.printer_name === 'SE3') {
|
if (val.printer_name && val.printer_name === 'SE3') {
|
||||||
|
if (this.currentRunVal !== 6) {
|
||||||
this.changeCD.req_info.strong_list = [
|
this.changeCD.req_info.strong_list = [
|
||||||
{
|
{
|
||||||
strong_pos: 1,
|
strong_pos: 1,
|
||||||
strong_type: data.strong_list[0].cd_type
|
strong_type: data.strong_list[0].cd_type
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
this.default_cd = this.changeCD.req_info.strong_list
|
||||||
|
}
|
||||||
this.runList = [
|
this.runList = [
|
||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
@@ -520,6 +522,7 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
|
if (this.currentRunVal !== 6) {
|
||||||
this.changeCD.req_info.strong_list = [
|
this.changeCD.req_info.strong_list = [
|
||||||
{
|
{
|
||||||
strong_pos: 1,
|
strong_pos: 1,
|
||||||
@@ -530,6 +533,8 @@ export default {
|
|||||||
strong_type: data.strong_list[1].cd_type
|
strong_type: data.strong_list[1].cd_type
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
this.default_cd = this.changeCD.req_info.strong_list
|
||||||
|
}
|
||||||
this.runList = [
|
this.runList = [
|
||||||
{
|
{
|
||||||
value: 1,
|
value: 1,
|
||||||
@@ -902,7 +907,7 @@ export default {
|
|||||||
case 6:
|
case 6:
|
||||||
outTimer = setTimeout(() => {
|
outTimer = setTimeout(() => {
|
||||||
that.currentRunVal = 0
|
that.currentRunVal = 0
|
||||||
that.printer_info.strongList = that.default_cd
|
that.changeCD.req_info.strong_list = that.default_cd
|
||||||
}, 120000)
|
}, 120000)
|
||||||
break
|
break
|
||||||
case 7:
|
case 7:
|
||||||
@@ -998,6 +1003,12 @@ export default {
|
|||||||
that.currentRunVal = 0
|
that.currentRunVal = 0
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 取消设置
|
||||||
|
cancleCD() {
|
||||||
|
clearTimeout(outTimer)
|
||||||
|
that.currentRunVal = 0
|
||||||
|
that.changeCD.req_info.strong_list = that.default_cd
|
||||||
|
},
|
||||||
// 新建作业
|
// 新建作业
|
||||||
showWork() {
|
showWork() {
|
||||||
if (!that.workStatus) {
|
if (!that.workStatus) {
|
||||||
@@ -1302,6 +1313,16 @@ $red: #ff0000;
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
color: $green;
|
color: $green;
|
||||||
}
|
}
|
||||||
|
.device_info_cancle_btn {
|
||||||
|
width: 80px;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 0;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 16px;
|
||||||
|
margin: 0 10px 0 0;
|
||||||
|
}
|
||||||
.device_info_sure_btn {
|
.device_info_sure_btn {
|
||||||
width: 80px;
|
width: 80px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|||||||
@@ -44,6 +44,22 @@
|
|||||||
<div class="form_text">作业失败后重试次数,默认0为不重试</div>
|
<div class="form_text">作业失败后重试次数,默认0为不重试</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="flex_box form_option">
|
||||||
|
<div class="form_label">PrintQuality</div>
|
||||||
|
<div class="flex_box form_val">
|
||||||
|
<div class="form_select">
|
||||||
|
<el-select v-model="form.print_quality" placeholder="请选择">
|
||||||
|
<el-option
|
||||||
|
v-for="item in qualityList"
|
||||||
|
:key="item.value"
|
||||||
|
:label="item.label"
|
||||||
|
:value="item.value">
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</div>
|
||||||
|
<div class="form_text">等级越高,打印越精细,等级越低,打印速度越快</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<!-- <div class="flex_box form_option">
|
<!-- <div class="flex_box form_option">
|
||||||
<div class="form_label">TaskDir</div>
|
<div class="form_label">TaskDir</div>
|
||||||
<div class="flex_box form_val">
|
<div class="flex_box form_val">
|
||||||
@@ -127,6 +143,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
form: {
|
form: {
|
||||||
log_level: 1,
|
log_level: 1,
|
||||||
|
print_quality: 1,
|
||||||
retry_freq: 2,
|
retry_freq: 2,
|
||||||
cache_path: '/home/test/CDFile',
|
cache_path: '/home/test/CDFile',
|
||||||
},
|
},
|
||||||
@@ -160,6 +177,24 @@ export default {
|
|||||||
value: 6
|
value: 6
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
qualityList: [
|
||||||
|
{
|
||||||
|
label: '低',
|
||||||
|
value: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '中',
|
||||||
|
value: 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '较好',
|
||||||
|
value: 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '高',
|
||||||
|
value: 4
|
||||||
|
},
|
||||||
|
],
|
||||||
timesList: [
|
timesList: [
|
||||||
{
|
{
|
||||||
label: '0',
|
label: '0',
|
||||||
|
|||||||
Reference in New Issue
Block a user