|
@@ -1,13 +1,14 @@
|
|
|
<!--规则页面-->
|
|
|
<template>
|
|
|
<el-dialog v-model="dialogVisible" title="添加规则" width="530px">
|
|
|
- <el-form :inline="true" label-position="right" label-width="80px">
|
|
|
+ <el-form :inline="true" label-position="right" label-width="80px" >
|
|
|
<el-form-item :required="true" label="规则名称" :label-width="formLabelWidth" >
|
|
|
<el-input style="width: 400px" placeholder="请输入部门名称" v-model="form.name" autocomplete="off" />
|
|
|
</el-form-item>
|
|
|
<el-form-item :required="true" type="flex" justify="center" label="轮次数" :label-width="formLabelWidth">
|
|
|
<div style="display: flex;flex-direction: row">
|
|
|
<el-select
|
|
|
+ placeholder="请选择轮次数"
|
|
|
v-model="form.num"
|
|
|
style="width: 240px"
|
|
|
>
|
|
@@ -25,7 +26,7 @@
|
|
|
<div style="display: flex;flex-direction: row">
|
|
|
<el-select
|
|
|
v-model="form.time"
|
|
|
-
|
|
|
+ placeholder="请选择轮次时间"
|
|
|
style="width: 240px"
|
|
|
>
|
|
|
<el-option
|
|
@@ -44,7 +45,7 @@
|
|
|
<el-select
|
|
|
v-model="form.interval"
|
|
|
style="width: 240px"
|
|
|
- placeholder="请选择"
|
|
|
+ placeholder="请选择间隔时长"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in option3"
|
|
@@ -58,12 +59,10 @@
|
|
|
</el-form>
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
- <el-button type="primary" @click="add">确认</el-button>
|
|
|
+ <el-button type="primary" @click="add" >确认</el-button>
|
|
|
<el-button @click="dialogVisible = false">取消</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
-
|
|
|
</el-dialog>
|
|
|
<div style="padding: 20px">
|
|
|
|
|
@@ -230,7 +229,11 @@ export default defineComponent({
|
|
|
time : this.form.time,
|
|
|
interval : this.form.interval
|
|
|
}
|
|
|
- this.rule.push(s)
|
|
|
+ this.rule.push(s);
|
|
|
+ this.form.name='';
|
|
|
+ this.form.num = '';
|
|
|
+ this.form.interval='';
|
|
|
+ this.form.time=''
|
|
|
},
|
|
|
deleteLastRow() {
|
|
|
this.rule.pop(); // 删除最后一行
|