|
@@ -86,6 +86,7 @@
|
|
|
<el-table :data="dqselMonth" border>
|
|
|
<el-table-column
|
|
|
type="index"
|
|
|
+ align="center"
|
|
|
label="序号" width="50"
|
|
|
>
|
|
|
</el-table-column>
|
|
@@ -142,7 +143,7 @@
|
|
|
</el-card>
|
|
|
<!-- 添加信息 -->
|
|
|
<el-dialog title="添加排班" :visible.sync="dialogVisible" width="55%" @close="dialogClosed">
|
|
|
- <el-form label-width="120px" :model="form" :rules="formRules" ref="formRef">
|
|
|
+ <el-form label-width="120px" :model="form" ref="formRef">
|
|
|
<el-form-item label="值班日期" prop="time">
|
|
|
<el-date-picker
|
|
|
v-model="form.time"
|
|
@@ -437,6 +438,7 @@
|
|
|
this.open3=false;
|
|
|
},
|
|
|
cancel() {
|
|
|
+ this.form = {};
|
|
|
this.dialogVisible = false;
|
|
|
this.reset();
|
|
|
},
|
|
@@ -463,9 +465,12 @@
|
|
|
this.msgSuccess("新增成功");
|
|
|
console.log(this.form)
|
|
|
this.dialogVisible = false;
|
|
|
+ this.form = {};
|
|
|
this.dutyList = [];
|
|
|
this.getList();
|
|
|
-
|
|
|
+ this.getselMonth();
|
|
|
+ }else{
|
|
|
+ this.msgError("添加失败");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -500,7 +505,6 @@
|
|
|
this.loading = true;
|
|
|
selMonth(this.queryParams).then(response => {
|
|
|
console.log(this.queryParams)
|
|
|
- console.log("aaaaaaaaa")
|
|
|
this.dqselMonth = response.rows
|
|
|
console.log(response)
|
|
|
|
|
@@ -520,7 +524,6 @@
|
|
|
this.loading = true;
|
|
|
selMonth(this.queryParams).then(response => {
|
|
|
console.log(this.queryParams)
|
|
|
- console.log("bbbbbbbbbbbbb")
|
|
|
this.dqselMonth = response.rows
|
|
|
console.log(response.rows);
|
|
|
this.total = response.total;
|