解决bug
This commit is contained in:
@@ -210,10 +210,13 @@
|
||||
<el-dialog {% raw %}:title="dialogTitle" :visible.sync="taskDialogVisible" {% endraw %} width="60%">
|
||||
<el-form {% raw %}:model="taskForm" :rules="taskRules" ref="taskForm" {% endraw %} label-width="100px">
|
||||
<el-form-item label="任务类型" prop="schedule_type">
|
||||
<el-radio-group {% raw %}v-model="taskForm.schedule_type" {% endraw %}>
|
||||
<el-radio label="once">单次任务</el-radio>
|
||||
<el-radio label="recurring">重复任务</el-radio>
|
||||
</el-radio-group>
|
||||
<el-select
|
||||
{% raw %}v-model="taskForm.schedule_type" {% endraw %}
|
||||
placeholder="请选择任务类型"
|
||||
{% raw %}:disabled="isEdit"{% endraw %}>
|
||||
<el-option label="一次性任务" value="once"></el-option>
|
||||
<el-option label="重复任务" value="recurring"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务名称" prop="name">
|
||||
<el-input {% raw %}v-model="taskForm.name" {% endraw %}></el-input>
|
||||
@@ -494,7 +497,8 @@ new Vue({
|
||||
imageList: [],
|
||||
previewVisible: false,
|
||||
previewUrl: '',
|
||||
thumbnailList: []
|
||||
thumbnailList: [],
|
||||
isEdit: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -709,6 +713,7 @@ new Vue({
|
||||
}];
|
||||
}
|
||||
this.taskDialogVisible = true;
|
||||
this.isEdit = true;
|
||||
},
|
||||
|
||||
// 暂停任务
|
||||
|
||||
Reference in New Issue
Block a user