任务类型添加
This commit is contained in:
+14
-14
@@ -33,20 +33,20 @@
|
||||
"from": "cardsoonServer",
|
||||
"to": "./CardsoonServer"
|
||||
}
|
||||
],
|
||||
"linux": {
|
||||
"maintainer": "Jerry Xu <jerry79.xu@gmail.com>",
|
||||
"category": "Utility",
|
||||
"target": [
|
||||
"AppImage",
|
||||
"deb",
|
||||
"rpm"
|
||||
],
|
||||
"icon": "public/images/favicon.svg"
|
||||
},
|
||||
"copyright": "Copyright@2023 cardsoon.com",
|
||||
"directories": {
|
||||
"output": "build"
|
||||
],
|
||||
"linux": {
|
||||
"maintainer": "Jerry Xu <jerry79.xu@gmail.com>",
|
||||
"category": "Utility",
|
||||
"target": [
|
||||
"AppImage",
|
||||
"deb",
|
||||
"rpm"
|
||||
],
|
||||
"icon": "public/images/favicon.svg"
|
||||
},
|
||||
"copyright": "Copyright@2023 cardsoon.com",
|
||||
"directories": {
|
||||
"output": "build"
|
||||
}
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -70,6 +70,10 @@ export default {
|
||||
.el-notification__group {
|
||||
width: 100%;
|
||||
}
|
||||
.el-notification__content {
|
||||
margin: 0;
|
||||
line-height: 24PX;
|
||||
}
|
||||
.notify_btns{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 24 KiB |
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex_box work_top_item">
|
||||
<div class="work_top_label">刻录类型:</div>
|
||||
<div class="work_top_label">任务类型:</div>
|
||||
<div class="work_top_val">
|
||||
<el-select v-model="form.copy_type" placeholder="请选择">
|
||||
<el-option v-for="item in copyList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||
@@ -113,6 +113,9 @@
|
||||
</div>
|
||||
<div class="flex_box flex_col_top work_main">
|
||||
<div class="work_left">
|
||||
<div v-if="form.copy_type == 3 || form.copy_type == 4" class="flex_box flex_row_center work_left_no">
|
||||
<img src="@/assets/images/ElBanCircle.png" />
|
||||
</div>
|
||||
<div class="flex_box flex_row_between work_left_top">
|
||||
<div class="flex_box">
|
||||
<div class="work_left_top_label">内容</div>
|
||||
@@ -181,11 +184,16 @@
|
||||
</div>
|
||||
<div slot="footer" class="flex_box flex_row_between footer_box">
|
||||
<div class="flex_box footer_main">
|
||||
<div class="footer_input">
|
||||
<div v-if="form.copy_type !== 4" class="footer_input">
|
||||
<el-input placeholder="请输入数量" v-model.number="form.task_freq">
|
||||
<template slot="prepend">数量</template>
|
||||
</el-input>
|
||||
</div>
|
||||
<div v-if="form.copy_type == 4" class="footer_input footer_input1">
|
||||
<el-input placeholder="请输入光盘数据恢复路径" v-model="form.archive_path">
|
||||
<template slot="prepend">路径</template>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex_box footer_btns">
|
||||
<el-button type="primary" class="footer_save" @click="workSave" :loading="saveFlag">保存</el-button>
|
||||
@@ -255,7 +263,9 @@ export default {
|
||||
has_copy_task: false,
|
||||
has_print_task: false,
|
||||
ass_task: [],
|
||||
task_freq: 1
|
||||
task_freq: 1,
|
||||
archive_path: '',
|
||||
finished_check: false
|
||||
},
|
||||
testForm: {
|
||||
req_name: 'submit_task',
|
||||
@@ -295,14 +305,14 @@ export default {
|
||||
value: 2,
|
||||
label: 'ISO文件刻录'
|
||||
},
|
||||
// {
|
||||
// value: 3,
|
||||
// label: '复制光盘'
|
||||
// },
|
||||
// {
|
||||
// value: 4,
|
||||
// label: '自动批量读取光盘'
|
||||
// },
|
||||
{
|
||||
value: 3,
|
||||
label: '复制光盘'
|
||||
},
|
||||
{
|
||||
value: 4,
|
||||
label: '自动批量读取光盘'
|
||||
},
|
||||
// {
|
||||
// value: 5,
|
||||
// label: '自动归档任务'
|
||||
@@ -512,7 +522,7 @@ export default {
|
||||
workSave() {
|
||||
let that = this
|
||||
if (that.form.json_file === '' && that.$refs.files.filesList.length === 0) {
|
||||
that.$message({
|
||||
that.$notify({
|
||||
message: '请上传作业文件',
|
||||
type: 'warning'
|
||||
})
|
||||
@@ -552,7 +562,7 @@ export default {
|
||||
result.filePath += '.dwk';
|
||||
}
|
||||
fs.writeFileSync(result.filePath, v)
|
||||
that.$message({
|
||||
that.$notify({
|
||||
message: '保存成功至'+result.filePath,
|
||||
type: 'success'
|
||||
})
|
||||
@@ -561,8 +571,7 @@ export default {
|
||||
console.log(err)
|
||||
})
|
||||
} else {
|
||||
that.$message({
|
||||
offset: 100,
|
||||
that.$notify({
|
||||
message: '请等待计算',
|
||||
type: 'warning'
|
||||
})
|
||||
@@ -590,7 +599,7 @@ export default {
|
||||
}
|
||||
}
|
||||
if (that.form.json_file === '' && fileList.length === 0) {
|
||||
this.$message({
|
||||
this.$notify({
|
||||
message: '请上传作业文件',
|
||||
type: 'warning'
|
||||
})
|
||||
@@ -674,6 +683,13 @@ export default {
|
||||
}
|
||||
that.form.ass_task.push(task)
|
||||
}
|
||||
if (that.form.copy_type == 4 && !that.form.archive_path) {
|
||||
this.$notify({
|
||||
message: `请输入光盘数据恢复路径!`,
|
||||
type: 'warning'
|
||||
})
|
||||
return
|
||||
}
|
||||
that.form.burn_speed = that.setForm.speed
|
||||
that.form.is_finished_check = that.setForm.isCheck
|
||||
that.form.is_finished_close = that.setForm.isClose
|
||||
@@ -711,12 +727,28 @@ export default {
|
||||
}))
|
||||
that.$store.dispatch('chat/websocketsend', that.testForm).then(() => {
|
||||
setTimeout(() => {
|
||||
that.$message({
|
||||
that.$notify({
|
||||
message: '新建作业成功',
|
||||
type: 'success'
|
||||
})
|
||||
that.submitLoading = false
|
||||
that.close()
|
||||
if (that.form.copy_type == 3) {
|
||||
that.$alert('请将光盘装入打开的驱动器,然后手动关闭托盘后点击确定', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
callback: () => {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
if (that.form.copy_type == 4) {
|
||||
that.$alert('请将需要读取的光盘放入右盘仓,然后点击确定', '温馨提示', {
|
||||
confirmButtonText: '确定',
|
||||
callback: () => {
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}, 1500)
|
||||
}).catch(() => {
|
||||
that.submitLoading = false
|
||||
@@ -991,6 +1023,21 @@ export default {
|
||||
width: 50%;
|
||||
border-right: 1px solid #aaaaaa;
|
||||
padding: 0 16px 16px;
|
||||
position: relative;
|
||||
.work_left_no {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 99;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
font-size: 50px;
|
||||
cursor: pointer;
|
||||
img {
|
||||
width: 50px;
|
||||
}
|
||||
}
|
||||
.work_left_top {
|
||||
height: 72px;
|
||||
.work_left_top_label {
|
||||
@@ -1228,6 +1275,7 @@ export default {
|
||||
height: 90px;
|
||||
padding: 0 28px;
|
||||
.footer_main {
|
||||
gap: 20px;
|
||||
.footer_input {
|
||||
::v-deep {
|
||||
.el-input-group__prepend {
|
||||
@@ -1252,6 +1300,13 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.footer_input1 {
|
||||
::v-deep {
|
||||
.el-input__inner {
|
||||
width: 300px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.footer_btns {
|
||||
.footer_save {
|
||||
|
||||
@@ -355,7 +355,7 @@ const actions = {
|
||||
strong_list[info.strong_list[i].strong_pos] = info.strong_list[i]
|
||||
}
|
||||
info.strongList = strong_list
|
||||
if (info.cover_flag) {
|
||||
if (info.cover_flag && info.printer_name !== 'SE3') {
|
||||
commit('setData', { name: 'printer_error', data: { type: 'error', notify: '设备门盖被打开,请关闭门盖。' } })
|
||||
}
|
||||
if (info.calibration_flag) {
|
||||
|
||||
@@ -3,8 +3,8 @@ import { getToken, setToken, removeToken } from '../../utils/auth'
|
||||
const setFormDefault = {
|
||||
priority: 2,
|
||||
stage: 0,
|
||||
speed: 0,
|
||||
isCheck: true,
|
||||
speed: 1,
|
||||
isCheck: false,
|
||||
isDel: true,
|
||||
isClose: true,
|
||||
isArrow: true,
|
||||
|
||||
@@ -156,7 +156,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="flex_box device_status" :class="`flex_box device_status device_status${printer_info.printer_status} device_status${printer_info.cover_flag}`"> -->
|
||||
<div
|
||||
class="flex_box device_status"
|
||||
:class="{
|
||||
|
||||
Reference in New Issue
Block a user