Administrator
2021-08-10 fa0d8d5b6f4729e7b237b32100a1000ca3334833
src/views/securityGuard/securityGuard.vue
@@ -1,5 +1,5 @@
<template>
  <el-row>
  <el-row class="securityGuard">
    <el-col :span="0" style="display: none">
      <div class="box">
        <el-scrollbar>
@@ -322,10 +322,12 @@
        searchMenuSpan: 6,
        border: false,
        stripe: true,
        align: "center",
        index: true,
        delBtnText: "注销",
        selection: true,
        viewBtn: true,
        defaultExpandAll: true,
        //dialogType: 'drawer',
        dialogClickModal: false,
        column: securityFormPageColumn,
@@ -406,6 +408,24 @@
                ],
              },
              {
                label: "个人照片",
                type: "upload",
                listType: "picture-img",
                propsHttp: {
                  res: "data",
                  url: "link",
                },
                canvasOption: {
                  text: " ",
                  ratio: 0.1,
                },
                action: "/api/blade-resource/oss/endpoint/put-file",
                tip: "只能上传jpg/png个人头像,且不超过500kb",
                span: 12,
                row: true,
                prop: "myPicture",
              },
              {
                label: "编号",
                prop: "code",
              },
@@ -414,7 +434,7 @@
                prop: "name",
              },
              {
                label: "所属行政区",
                label: "所属辖区",
                prop: "jurisdiction",
                // multiple: true,
                type: "tree",
@@ -428,7 +448,7 @@
                rules: [
                  {
                    required: true,
                    message: "请选择所属行政区",
                    message: "请选择所属辖区",
                    trigger: "click",
                  },
                ],
@@ -486,6 +506,11 @@
                    trigger: "blur",
                  },
                ],
              },
              {
                label: "保安员证编号",
                prop: "securitynumber",
                hide: true,
              },
              {
                label: "手机号码",
@@ -584,6 +609,8 @@
                label: "生日",
                type: "date",
                prop: "birthday",
                format: "yyyy-MM-dd",
                valueFormat: "yyyy-MM-dd",
              },
            ],
          },
@@ -1167,6 +1194,10 @@
        roleId: this.roleId,
        ...this.query,
      };
      if (this.userInfo.role_id == "1414840172333842433") {
        console.log("是公安add jurisdiction");
        values["jurisdiction"] = this.userInfo.jurisdiction;
      }
      this.loading = true;
      getList(page.currentPage, page.pageSize, values, this.treeDeptId).then(
        (res) => {