Administrator
2021-12-20 ffc16b406291b363aef864e93f8eaa189100e84e
src/views/securityGuard/securityGuard.vue
@@ -602,6 +602,8 @@
      }
    };
    return {
      sort:"",
      sortName:"",
      nowCell: "", //空为手动,2为身份证设备读取
      // 表格数据
      defaults: {},
@@ -916,10 +918,10 @@
                },
                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",
@@ -2089,6 +2091,8 @@
    },
    selectionClear() {
      // this.selectionList = [];
      this.sort = "";
      this.sortName = "";
      // this.$refs.crud.toggleSelection();
    },
    handleDelete() {
@@ -2390,7 +2394,25 @@
    },
    //排序
    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;
@@ -2469,6 +2491,13 @@
              "/api/blade-system/dept/security_lazy-tree";
          }
          if(this.sort){
            params["sort"] = this.sort;
          }
          if(this.sortName){
            params["sortName"] = this.sortName;
          }
          let values = {
            ...params,
          };