| | |
| | | } |
| | | }; |
| | | return { |
| | | sort:"", |
| | | sortName:"", |
| | | nowCell: "", //空为手动,2为身份证设备读取 |
| | | // 表格数据 |
| | | defaults: {}, |
| | |
| | | }, |
| | | canvasOption: { |
| | | text: " ", |
| | | ratio: 0.1, |
| | | ratio: 1.0, |
| | | }, |
| | | action: "/api/blade-resource/oss/endpoint/put-files", |
| | | tip: "上传身份证一寸近期彩色正面免冠图象, (358像素(宽) × 441像素(高)、分辨率350dpi)且不超过500kb", |
| | | tip: "上传身份证一寸近期彩色正面免冠图象, (358像素(宽) × 441像素(高)、分辨率350dpi)且不小于30kb,不超过500kb", |
| | | span: 12, |
| | | // row: true, |
| | | prop: "avatar", |
| | |
| | | }, |
| | | selectionClear() { |
| | | // this.selectionList = []; |
| | | this.sort = ""; |
| | | this.sortName = ""; |
| | | // this.$refs.crud.toggleSelection(); |
| | | }, |
| | | handleDelete() { |
| | |
| | | }, |
| | | //排序 |
| | | 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, |
| | | }; |