zengh
2022-05-16 63ad2c3598400370dd7da5534659fd7e768a0a4a
src/views/system/user.vue
@@ -38,7 +38,7 @@
        >
          <template slot="menuLeft">
            <el-button
              type="danger"
              size="small"
              plain
              icon="el-icon-delete"
@@ -294,9 +294,10 @@
      option: {
        height: "auto",
        calcHeight: 54,
        labelWidth:120,
        tip: false,
        searchShow: true,
        searchMenuSpan: 6,
        searchMenuSpan: 4,
        border: true,
        index: true,
        selection: true,
@@ -308,6 +309,7 @@
            label: "登录账号",
            prop: "account",
            search: true,
            searchSpan: 5,
            display: false,
          },
          {
@@ -322,6 +324,41 @@
            label: "用户姓名",
            prop: "realName",
            search: true,
            searchSpan: 5,
            display: false,
          },
          {
            label: "居住地辖区",
            prop: "jurisdiction",
            search: true,
            overHidden: true,
            parent: false,
            type: "tree",
            searchLabelWidth: 90,
            searchSpan: 4,
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
              label: "title",
              value: "id"
            },
            checkStrictly: true,
            display: false,
          },
          {
            label: "工作地辖区",
            prop: "workjurisdiction",
            search: true,
            overHidden: true,
            parent: false,
            type: "tree",
            searchLabelWidth: 90,
            searchSpan: 4,
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
              label: "title",
              value: "id"
            },
            checkStrictly: true,
            display: false,
          },
          {
@@ -330,13 +367,13 @@
            slot: true,
            display: false,
          },
          {
            label: "所属部门",
            prop: "deptName",
            slot: true,
            display: false,
            width: 260,
          },
          // {
          //   label: "所属部门",
          //   prop: "deptName",
          //   slot: true,
          //   display: false,
          //   width: 260,
          // },
          {
            label: "行政区",
            prop: "district",
@@ -349,6 +386,7 @@
            addDisplay: false,
            editDisplay: false,
            viewDisplay: false,
            hide: true,
          },
          {
            label: "用户平台",
@@ -373,6 +411,7 @@
          {
            label: "用户平台",
            type: "select",
            searchSpan: 5,
            dicUrl: "/api/blade-system/dict/dictionary?code=user_type",
            props: {
              label: "dictValue",
@@ -442,6 +481,46 @@
                    trigger: "blur",
                  },
                ],
              },
              {
                label: "居住地辖区",
                prop: "jurisdiction",
                overHidden: true,
                parent: false,
                type: "tree",
                dicUrl: "/api/jurisdiction/lazy-tree",
                props: {
                  label: "title",
                  value: "id"
                },
                checkStrictly: true,
                rules: [
                  {
                    required: true,
                    message: "请选择所属辖区",
                    trigger: "click"
                  }
                ]
              },
              {
                label: "工作地辖区",
                prop: "workjurisdiction",
                overHidden: true,
                parent: false,
                type: "tree",
                dicUrl: "/api/jurisdiction/lazy-tree",
                props: {
                  label: "title",
                  value: "id"
                },
                checkStrictly: true,
                rules: [
                  {
                    required: true,
                    message: "请选择所属辖区",
                    trigger: "click"
                  }
                ]
              },
              {
                label: "登录账号",
@@ -529,6 +608,11 @@
                ],
              },
              {
                label: "身份证号",
                prop: "cardid",
                overHidden: true,
              },
              {
                label: "手机号码",
                prop: "phone",
                overHidden: true,
@@ -595,6 +679,7 @@
                },
                checkStrictly: true,
                slot: true,
                parent: false,
                rules: [
                  {
                    required: true,
@@ -896,6 +981,7 @@
          securitynumber: row.securitynumber,
          sex: row.sex,
          district: row.district,
          stype: 1,
        },
      };
      securitySave(userMap).then(