优化设置光盘等
This commit is contained in:
@@ -309,6 +309,7 @@ const defaultData = {
|
||||
settings: {
|
||||
log_level: 1,
|
||||
retry_freq: 2,
|
||||
print_quality: 1,
|
||||
cache_path: '/home/test/CDFile'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
<div class="device_info_box">
|
||||
<div class="device_info_main" :class="{ device_info_main1: infoStatus === 1 }">
|
||||
<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 v-if="printer_info.strongList[2]" class="device_info_option">
|
||||
<div class="device_info_option_box">
|
||||
@@ -144,7 +144,10 @@
|
||||
<div class="device_info_sure">
|
||||
<div v-if="currentRunVal === 6" class="flex_box flex_row_between device_info_sure_box">
|
||||
<div class="device_info_sure_text">{{ sureText }}</div>
|
||||
<el-button @click="sureCD" class="device_info_sure_btn" type="primary">确定</el-button>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -179,11 +182,11 @@
|
||||
</div>
|
||||
<div class="flex_box device_run">
|
||||
<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-select>
|
||||
</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>
|
||||
<!-- 右侧 -->
|
||||
@@ -317,7 +320,7 @@
|
||||
</div>
|
||||
<!-- 底部 -->
|
||||
<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_text">帮助</div>
|
||||
<div class="footer_line"></div>
|
||||
@@ -410,7 +413,7 @@ export default {
|
||||
printer_info: {},
|
||||
isLast: false,
|
||||
// 光盘信息
|
||||
default_cd: {},
|
||||
default_cd: [],
|
||||
diskTypes: {},
|
||||
CDTypes: {},
|
||||
cd_list: [],
|
||||
@@ -493,18 +496,17 @@ export default {
|
||||
handler(val) {
|
||||
that = this
|
||||
let data = { ...val }
|
||||
if (this.currentRunVal === 6) {
|
||||
data.strongList = this.printer_info.strongList
|
||||
}
|
||||
this.default_cd = data.strongList
|
||||
this.printer_info = { ...data }
|
||||
if (val.printer_name && val.printer_name === 'SE3') {
|
||||
this.changeCD.req_info.strong_list = [
|
||||
{
|
||||
strong_pos: 1,
|
||||
strong_type: data.strong_list[0].cd_type
|
||||
}
|
||||
]
|
||||
if (this.currentRunVal !== 6) {
|
||||
this.changeCD.req_info.strong_list = [
|
||||
{
|
||||
strong_pos: 1,
|
||||
strong_type: data.strong_list[0].cd_type
|
||||
}
|
||||
]
|
||||
this.default_cd = this.changeCD.req_info.strong_list
|
||||
}
|
||||
this.runList = [
|
||||
{
|
||||
value: 1,
|
||||
@@ -520,16 +522,19 @@ export default {
|
||||
}
|
||||
]
|
||||
} else {
|
||||
this.changeCD.req_info.strong_list = [
|
||||
{
|
||||
strong_pos: 1,
|
||||
strong_type: data.strong_list[0].cd_type
|
||||
},
|
||||
{
|
||||
strong_pos: 2,
|
||||
strong_type: data.strong_list[1].cd_type
|
||||
}
|
||||
]
|
||||
if (this.currentRunVal !== 6) {
|
||||
this.changeCD.req_info.strong_list = [
|
||||
{
|
||||
strong_pos: 1,
|
||||
strong_type: data.strong_list[0].cd_type
|
||||
},
|
||||
{
|
||||
strong_pos: 2,
|
||||
strong_type: data.strong_list[1].cd_type
|
||||
}
|
||||
]
|
||||
this.default_cd = this.changeCD.req_info.strong_list
|
||||
}
|
||||
this.runList = [
|
||||
{
|
||||
value: 1,
|
||||
@@ -902,7 +907,7 @@ export default {
|
||||
case 6:
|
||||
outTimer = setTimeout(() => {
|
||||
that.currentRunVal = 0
|
||||
that.printer_info.strongList = that.default_cd
|
||||
that.changeCD.req_info.strong_list = that.default_cd
|
||||
}, 120000)
|
||||
break
|
||||
case 7:
|
||||
@@ -998,6 +1003,12 @@ export default {
|
||||
that.currentRunVal = 0
|
||||
})
|
||||
},
|
||||
// 取消设置
|
||||
cancleCD() {
|
||||
clearTimeout(outTimer)
|
||||
that.currentRunVal = 0
|
||||
that.changeCD.req_info.strong_list = that.default_cd
|
||||
},
|
||||
// 新建作业
|
||||
showWork() {
|
||||
if (!that.workStatus) {
|
||||
@@ -1302,6 +1313,16 @@ $red: #ff0000;
|
||||
font-size: 15px;
|
||||
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 {
|
||||
width: 80px;
|
||||
height: 30px;
|
||||
|
||||
@@ -44,6 +44,22 @@
|
||||
<div class="form_text">作业失败后重试次数,默认0为不重试</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="form_label">TaskDir</div>
|
||||
<div class="flex_box form_val">
|
||||
@@ -127,6 +143,7 @@ export default {
|
||||
return {
|
||||
form: {
|
||||
log_level: 1,
|
||||
print_quality: 1,
|
||||
retry_freq: 2,
|
||||
cache_path: '/home/test/CDFile',
|
||||
},
|
||||
@@ -160,6 +177,24 @@ export default {
|
||||
value: 6
|
||||
}
|
||||
],
|
||||
qualityList: [
|
||||
{
|
||||
label: '低',
|
||||
value: 1
|
||||
},
|
||||
{
|
||||
label: '中',
|
||||
value: 2
|
||||
},
|
||||
{
|
||||
label: '较好',
|
||||
value: 3
|
||||
},
|
||||
{
|
||||
label: '高',
|
||||
value: 4
|
||||
},
|
||||
],
|
||||
timesList: [
|
||||
{
|
||||
label: '0',
|
||||
|
||||
Reference in New Issue
Block a user