| | |
| | | } |
| | | }; |
| | | return { |
| | | sort:"", |
| | | sortName:"", |
| | | nowCell: "", //空为手动,2为身份证设备读取 |
| | | // 表格数据 |
| | | defaults: {}, |
| | |
| | | }, |
| | | //排序 |
| | | sortChange(value) { |
| | | console.log(value, 51151515); |
| | | // console.log(value, 51151515); |
| | | if(value.order=="ascending"){ |
| | | this.sort = "asc"; |
| | | } |
| | | if(value.order=="descending"){ |
| | | this.sort = "desc"; |
| | | } |
| | | this.sortName = value.prop; |
| | | //字段匹配 |
| | | if(value.prop=="sexs"){ |
| | | this.sortName = "sex"; |
| | | } |
| | | if(value.prop=="examinationType"){ |
| | | this.sortName = "examination_type"; |
| | | } |
| | | if(value.prop=="userType"){ |
| | | this.sortName = "user_type"; |
| | | } |
| | | this.onLoad(this.page,this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | params = this.search; |
| | |
| | | "/api/blade-system/dept/security_lazy-tree"; |
| | | } |
| | | |
| | | if(this.sort){ |
| | | params["sort"] = this.sort; |
| | | } |
| | | if(this.sortName){ |
| | | params["sortName"] = this.sortName; |
| | | } |
| | | |
| | | let values = { |
| | | ...params, |
| | | }; |