| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <!-- @on-load="onLoad" --> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="icon-zhengjian" |
| | |
| | | page: { |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | total: 0 |
| | | }, |
| | | query: {}, |
| | | data: [], |
| | |
| | | search: true, |
| | | searchSpan: 6, |
| | | searchLabelWidth: 45, |
| | | width: 70, |
| | | width: 70 |
| | | }, |
| | | { |
| | | label: "公司", |
| | | prop: "deptName", |
| | | search: true, |
| | | searchSpan: 7, |
| | | searchLabelWidth: 45, |
| | | searchLabelWidth: 45 |
| | | }, |
| | | { |
| | | label: "身份证号码", |
| | |
| | | searchLabelWidth: 85, |
| | | // searchRange: true, |
| | | // searchValue: this.getuserid(), |
| | | width: 180, |
| | | width: 180 |
| | | }, |
| | | { |
| | | label: "签到时间", |
| | |
| | | // search: true, |
| | | // searchSpan: 5, |
| | | // searchLabelWidth: 80, |
| | | width: 180, |
| | | }, |
| | | width: 180 |
| | | } |
| | | // { |
| | | // label: "签到时间", |
| | | // prop: "signTime", |
| | |
| | | ], |
| | | delBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | }, |
| | | addBtn: false |
| | | } |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["signData", "userInfo"]), |
| | | ...mapGetters(["signData", "userInfo"]) |
| | | // permissionList() { |
| | | // return { |
| | | // addBtn: this.vaildData(this.permission.notice_add, false), |
| | |
| | | msg: function (type, msg) { |
| | | this.$message({ |
| | | message: msg, |
| | | type: type, |
| | | type: type |
| | | }); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.query) |
| | | ).then((res) => { |
| | | ).then(res => { |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | console.log(this.data, 456789); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |