优化任务新增
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
</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">
|
||||
<div v-if="form.copy_type == 3 || form.copy_type == 4" class="flex_box flex_row_center work_no">
|
||||
<img src="@/assets/images/ElBanCircle.png" />
|
||||
</div>
|
||||
<div class="flex_box flex_row_between work_left_top">
|
||||
@@ -145,6 +145,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="work_right">
|
||||
<div v-if="form.copy_type == 3" class="flex_box flex_row_center work_no">
|
||||
<img src="@/assets/images/ElBanCircle.png" />
|
||||
</div>
|
||||
<div class="flex_box work_right_top">
|
||||
<div class="flex_box">
|
||||
<div class="work_right_top_label">标签</div>
|
||||
@@ -184,14 +187,15 @@
|
||||
</div>
|
||||
<div slot="footer" class="flex_box flex_row_between footer_box">
|
||||
<div class="flex_box footer_main">
|
||||
<div v-if="form.copy_type !== 4" class="footer_input">
|
||||
<div v-if="form.copy_type !== 4" class="flex_box 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">
|
||||
<div v-if="form.copy_type == 4" class="flex_box footer_input footer_input1">
|
||||
<el-input placeholder="请输入光盘数据恢复路径" v-model="form.archive_path">
|
||||
<template slot="prepend">路径</template>
|
||||
<el-button @click="selectPath" slot="append" class="footer_input_btn" icon="el-icon-more"></el-button>
|
||||
</el-input>
|
||||
</div>
|
||||
</div>
|
||||
@@ -517,6 +521,16 @@ export default {
|
||||
sizeChange(size) {
|
||||
this.totalSize = size
|
||||
},
|
||||
// 选择路径
|
||||
selectPath() {
|
||||
dialog
|
||||
.showOpenDialog({
|
||||
properties: ["openDirectory"],
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.filePaths[0]) this.form.archive_path = res.filePaths[0]
|
||||
});
|
||||
},
|
||||
async upload_over() {},
|
||||
// 保存
|
||||
workSave() {
|
||||
@@ -598,7 +612,7 @@ export default {
|
||||
console.error('Error reading file:', error)
|
||||
}
|
||||
}
|
||||
if (that.form.json_file === '' && fileList.length === 0) {
|
||||
if (that.form.json_file === '' && fileList.length === 0 && that.form.copy_type !== 3 && that.form.copy_type !== 4) {
|
||||
this.$notify({
|
||||
message: '请上传作业文件',
|
||||
type: 'warning'
|
||||
@@ -1019,25 +1033,26 @@ export default {
|
||||
.work_main {
|
||||
background-color: #f8f8f8;
|
||||
border-radius: 4px;
|
||||
align-items: stretch;
|
||||
.work_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 {
|
||||
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 {
|
||||
@@ -1113,6 +1128,7 @@ export default {
|
||||
.work_right {
|
||||
width: 50%;
|
||||
padding: 0 16px 16px;
|
||||
position: relative;
|
||||
.work_right_top {
|
||||
height: 76px;
|
||||
.work_right_top_label {
|
||||
@@ -1277,6 +1293,9 @@ export default {
|
||||
.footer_main {
|
||||
gap: 20px;
|
||||
.footer_input {
|
||||
.footer_input_btn {
|
||||
height: 40px;
|
||||
}
|
||||
::v-deep {
|
||||
.el-input-group__prepend {
|
||||
font-size: 16px;
|
||||
@@ -1303,7 +1322,7 @@ export default {
|
||||
.footer_input1 {
|
||||
::v-deep {
|
||||
.el-input__inner {
|
||||
width: 300px;
|
||||
width: 400px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user