|
@@ -12,7 +12,7 @@
|
|
|
<punchBtn :show="show" :form="form" :dates="dates" @openClick="openClick" @onSubmit="onSubmit"></punchBtn>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="leaveList">
|
|
|
- <checkList :checkWorkList="checkWorkList"></checkList>
|
|
|
+ <checkList :checkWorkList="checkWorkList" :anames="anames"></checkList>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -36,28 +36,11 @@ export default {
|
|
|
},
|
|
|
data: () => ({
|
|
|
info: {},
|
|
|
- checkWorkList: [
|
|
|
- // {
|
|
|
- // studentid: '流域',
|
|
|
- // attend: [
|
|
|
- // {
|
|
|
- // date: '2020-02-25',
|
|
|
- // time: '80:30',
|
|
|
- // status: '0',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // date: '2020-02-25',
|
|
|
- // time: '80:30',
|
|
|
- // status: '1',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // date: '2020-02-25',
|
|
|
- // time: '80:30',
|
|
|
- // status: '2',
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
- ],
|
|
|
+ anames: '',
|
|
|
+ checkWorkList: {
|
|
|
+ attend: [],
|
|
|
+ },
|
|
|
+
|
|
|
show: false,
|
|
|
form: {
|
|
|
attend: [],
|
|
@@ -89,14 +72,18 @@ export default {
|
|
|
methods: {
|
|
|
...mapAttendance(['fetch', 'create', 'query']),
|
|
|
async search() {
|
|
|
- const res = await this.fetch();
|
|
|
- console.log(res);
|
|
|
+ let studentid = this.user.userid;
|
|
|
+ console.log(studentid);
|
|
|
+ const res = await this.query();
|
|
|
+ console.log(res.data);
|
|
|
+ console.log(res.data[0]);
|
|
|
+
|
|
|
this.$set(this, `checkWorkList`, res.data);
|
|
|
},
|
|
|
searchInfo() {
|
|
|
- let site = JSON.parse(sessionStorage.getItem('site'));
|
|
|
- this.$set(this.form, `batchid`, site.batchid);
|
|
|
- this.$set(this.form, `classid`, site.classid);
|
|
|
+ this.$set(this.form, `batchid`, this.user.batchid);
|
|
|
+ this.$set(this.form, `classid`, this.user.classid);
|
|
|
+ this.$set(this, `anames`, this.user.name);
|
|
|
},
|
|
|
openClick() {
|
|
|
this.show = true;
|
|
@@ -108,10 +95,7 @@ export default {
|
|
|
this.form.classid = this.user.classid;
|
|
|
this.form.studentid = this.user.userid;
|
|
|
let data = this.form;
|
|
|
- console.log(this.form.batchid);
|
|
|
let res = await this.create(data);
|
|
|
- console.log(res);
|
|
|
-
|
|
|
this.show = false;
|
|
|
},
|
|
|
getDate() {
|