liuyg
2021-09-18 968ebea2648a74f44c17ca9278392d62adfd904d
保安员信息同步
11 files modified
1174 ■■■■ changed files
src/api/management/peopleDetails.js 16 ●●●● patch | view | raw | blame | history
src/views/Juris/jurs.vue 22 ●●●●● patch | view | raw | blame | history
src/views/authority/role.vue 6 ●●●●● patch | view | raw | blame | history
src/views/base/region.vue 765 ●●●●● patch | view | raw | blame | history
src/views/management/computents/achievement.vue 4 ●●●● patch | view | raw | blame | history
src/views/management/computents/dispatch.vue 5 ●●●●● patch | view | raw | blame | history
src/views/management/computents/honor.vue 4 ●●●● patch | view | raw | blame | history
src/views/management/computents/performance.vue 262 ●●●● patch | view | raw | blame | history
src/views/management/computents/train.vue 4 ●●●● patch | view | raw | blame | history
src/views/management/peopleDetails.vue 36 ●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/register.vue 50 ●●●●● patch | view | raw | blame | history
src/api/management/peopleDetails.js
@@ -10,43 +10,43 @@
  })
}
export const dispatchList = (cardid) => {
export const dispatchList = (securityid) => {
  return request({
    url: '/api/dispatcher/page',
    method: 'get',
    params: {
      cardid
      securityid
    }
  })
}
export const honorchList = (cardid) => {
export const honorchList = (securityid) => {
  return request({
    url: '/api/honor/list',
    method: 'get',
    params: {
      cardid
      securityid
    }
  })
}
export const trainList = (cardid) => {
export const trainList = (securityid) => {
  return request({
    url: '/api/train/selectTrainInfo',
    method: 'post',
    params: {
      cardid
      securityid
    }
  })
}
export const examinationList = (cardid) => {
export const examinationList = (securityid) => {
  return request({
    url: '/api/examination/selectExaminationInfo',
    method: 'post',
    params: {
      cardid
      securityid
    }
  })
}
src/views/Juris/jurs.vue
@@ -192,15 +192,19 @@
  methods: {
    initData() {
      getDeptTree().then((res) => {
        const column = this.findObject(this.option.column, "parentId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.column, "parentId");
          column.dicData = res.data.data;
        } catch {}
      });
    },
    handleAdd(row) {
      this.parentId = row.id;
      const column = this.findObject(this.option.column, "parentId");
      column.value = row.id;
      column.addDisabled = true;
      try {
        const column = this.findObject(this.option.column, "parentId");
        column.value = row.id;
        column.addDisabled = true;
      } catch {}
      this.$refs.crud.rowAdd();
    },
    rowSave(row, done, loading) {
@@ -317,9 +321,11 @@
    },
    beforeClose(done) {
      this.parentId = "";
      const column = this.findObject(this.option.column, "parentId");
      column.value = "";
      column.addDisabled = false;
      try {
        const column = this.findObject(this.option.column, "parentId");
        column.value = "";
        column.addDisabled = false;
      } catch {}
      done();
    },
    currentChange(currentPage) {
src/views/authority/role.vue
@@ -256,8 +256,10 @@
  methods: {
    initData(roleId) {
      getRoleTreeById(roleId).then((res) => {
        const column = this.findObject(this.option.column, "parentId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.column, "parentId");
          column.dicData = res.data.data;
        } catch {}
      });
    },
    submit() {
src/views/base/region.vue
@@ -4,7 +4,11 @@
      <div class="box">
        <el-scrollbar>
          <basic-container>
            <avue-tree :option="treeOption" :data="treeData" @node-click="nodeClick"/>
            <avue-tree
              :option="treeOption"
              :data="treeData"
              @node-click="nodeClick"
            />
          </basic-container>
        </el-scrollbar>
      </div>
@@ -12,26 +16,75 @@
    <el-col :span="15">
      <basic-container>
        <el-button-group>
          <el-button v-if="permission.region_add" type="primary" size="small" icon="el-icon-circle-plus-outline" @click="addChildren">新增下级</el-button>
          <el-button v-if="permission.region_delete" type="primary" size="small" icon="el-icon-delete" @click="handleDelete">删除</el-button>
          <el-button v-if="permission.region_import" type="primary" size="small" icon="el-icon-upload2" @click="handleImport">导入</el-button>
          <el-button v-if="permission.region_export" type="primary" size="small" icon="el-icon-download" @click="handleExport">导出</el-button>
          <el-button v-if="permission.region_debug" type="primary" size="small" icon="el-icon-video-play" @click="handleDebug">调试</el-button>
          <el-button
            v-if="permission.region_add"
            type="primary"
            size="small"
            icon="el-icon-circle-plus-outline"
            @click="addChildren"
            >新增下级</el-button
          >
          <el-button
            v-if="permission.region_delete"
            type="primary"
            size="small"
            icon="el-icon-delete"
            @click="handleDelete"
            >删除</el-button
          >
          <el-button
            v-if="permission.region_import"
            type="primary"
            size="small"
            icon="el-icon-upload2"
            @click="handleImport"
            >导入</el-button
          >
          <el-button
            v-if="permission.region_export"
            type="primary"
            size="small"
            icon="el-icon-download"
            @click="handleExport"
            >导出</el-button
          >
          <el-button
            v-if="permission.region_debug"
            type="primary"
            size="small"
            icon="el-icon-video-play"
            @click="handleDebug"
            >调试</el-button
          >
        </el-button-group>
      </basic-container>
      <basic-container>
        <avue-form ref="form" :option="regionOption" v-model="regionForm" @submit="handleSubmit">
        <avue-form
          ref="form"
          :option="regionOption"
          v-model="regionForm"
          @submit="handleSubmit"
        >
          <template slot="code" slot-scope="{}">
            <el-input placeholder="请输入 区划子编号" v-model="regionForm.subCode">
              <template slot="prepend">{{regionForm.parentCode}}</template>
            <el-input
              placeholder="请输入 区划子编号"
              v-model="regionForm.subCode"
            >
              <template slot="prepend">{{ regionForm.parentCode }}</template>
            </el-input>
          </template>
        </avue-form>
        <el-dialog title="行政区划数据导入"
                   append-to-body
                   :visible.sync="excelBox"
                   width="555px">
          <avue-form :option="excelOption" v-model="excelForm" :upload-after="uploadAfter">
        <el-dialog
          title="行政区划数据导入"
          append-to-body
          :visible.sync="excelBox"
          width="555px"
        >
          <avue-form
            :option="excelOption"
            v-model="excelForm"
            :upload-after="uploadAfter"
          >
            <template slot="excelTemplate">
              <el-button type="primary" @click="handleTemplate">
                点击下载<i class="el-icon-download el-icon--right"></i>
@@ -39,11 +92,13 @@
            </template>
          </avue-form>
        </el-dialog>
        <el-dialog title="行政区划数据调试"
                   append-to-body
                   :visible.sync="debugBox"
                   width="350px">
          <avue-form :option="debugOption" v-model="debugForm"/>
        <el-dialog
          title="行政区划数据调试"
          append-to-body
          :visible.sync="debugBox"
          width="350px"
        >
          <avue-form :option="debugOption" v-model="debugForm" />
        </el-dialog>
      </basic-container>
    </el-col>
@@ -51,367 +106,403 @@
</template>
<script>
  import {getLazyTree, getDetail, submit, remove} from "@/api/base/region";
  import {mapGetters} from "vuex";
  import {validatenull} from "@/util/validate";
  import {getToken} from "@/util/auth";
import { getLazyTree, getDetail, submit, remove } from "@/api/base/region";
import { mapGetters } from "vuex";
import { validatenull } from "@/util/validate";
import { getToken } from "@/util/auth";
  export default {
    data() {
      return {
        topCode: '00',
        treeCode: '',
        treeParentCode: '',
        treeData: [],
        treeOption: {
          nodeKey: 'id',
          lazy: true,
          treeLoad: function (node, resolve) {
            const parentCode = (node.level === 0) ? "00" : node.data.id;
            getLazyTree(parentCode).then(res => {
              resolve(res.data.data.map(item => {
export default {
  data() {
    return {
      topCode: "00",
      treeCode: "",
      treeParentCode: "",
      treeData: [],
      treeOption: {
        nodeKey: "id",
        lazy: true,
        treeLoad: function (node, resolve) {
          const parentCode = node.level === 0 ? "00" : node.data.id;
          getLazyTree(parentCode).then((res) => {
            resolve(
              res.data.data.map((item) => {
                return {
                  ...item,
                  leaf: !item.hasChildren
                }
              }))
            });
          },
          addBtn: false,
          menu: false,
          size: 'small',
          props: {
            labelText: '标题',
            label: 'title',
            value: 'value',
            children: 'children'
          }
                  leaf: !item.hasChildren,
                };
              })
            );
          });
        },
        regionForm: {},
        regionOption: {
          labelWidth: 100,
          column: [
            {
              label: "父区划编号",
              prop: "parentCode",
              span: 24,
              disabled: true,
              rules: [{
        addBtn: false,
        menu: false,
        size: "small",
        props: {
          labelText: "标题",
          label: "title",
          value: "value",
          children: "children",
        },
      },
      regionForm: {},
      regionOption: {
        labelWidth: 100,
        column: [
          {
            label: "父区划编号",
            prop: "parentCode",
            span: 24,
            disabled: true,
            rules: [
              {
                required: true,
                message: "请输入父区划编号",
                trigger: "blur"
              }]
            },
            {
              label: "父区划名称",
              prop: "parentName",
              span: 24,
              disabled: true,
            },
            {
              label: "区划编号",
              prop: "code",
              formslot: true,
              span: 24,
              rules: [{
                trigger: "blur",
              },
            ],
          },
          {
            label: "父区划名称",
            prop: "parentName",
            span: 24,
            disabled: true,
          },
          {
            label: "区划编号",
            prop: "code",
            formslot: true,
            span: 24,
            rules: [
              {
                required: true,
                message: "请输入区划编号",
                trigger: "blur"
              }]
            },
            {
              label: "区划子编号",
              prop: "subCode",
              display: false,
            },
            {
              label: "区划名称",
              prop: "name",
              span: 24,
              rules: [{
                trigger: "blur",
              },
            ],
          },
          {
            label: "区划子编号",
            prop: "subCode",
            display: false,
          },
          {
            label: "区划名称",
            prop: "name",
            span: 24,
            rules: [
              {
                required: true,
                message: "请输入区划名称",
                trigger: "blur"
              }]
            },
            {
              label: "区划等级",
              prop: "regionLevel",
              type: "radio",
              dicUrl: "/api/blade-system/dict/dictionary?code=region",
              props: {
                label: "dictValue",
                value: "dictKey"
                trigger: "blur",
              },
              dataType: "number",
              span: 24,
              rules: [{
            ],
          },
          {
            label: "区划等级",
            prop: "regionLevel",
            type: "radio",
            dicUrl: "/api/blade-system/dict/dictionary?code=region",
            props: {
              label: "dictValue",
              value: "dictKey",
            },
            dataType: "number",
            span: 24,
            rules: [
              {
                required: true,
                message: "请选择区划等级",
                trigger: "blur"
              }]
            },
            {
              label: "区划排序",
              prop: "sort",
              type: "number",
              span: 24,
              rules: [{
                trigger: "blur",
              },
            ],
          },
          {
            label: "区划排序",
            prop: "sort",
            type: "number",
            span: 24,
            rules: [
              {
                required: true,
                message: "请输入区划排序",
                trigger: "blur"
              }]
            },
            {
              label: "区划备注",
              prop: "remark",
              type: "textarea",
              minRows: 6,
              span: 24,
            },
          ]
        },
        excelBox: false,
        excelForm: {},
        excelOption: {
          submitBtn: false,
          emptyBtn: false,
          column: [
            {
              label: '模板上传',
              prop: 'excelFile',
              type: 'upload',
              drag: true,
              loadText: '模板上传中,请稍等',
              span: 24,
              propsHttp: {
                res: 'data'
                trigger: "blur",
              },
              tip: '请上传 .xls,.xlsx 标准格式文件',
              action: "/api/blade-system/region/import-region"
            },
            {
              label: "数据覆盖",
              prop: "isCovered",
              type: "switch",
              align: "center",
              width: 80,
              dicData: [
                {
                  label: "否",
                  value: 0
                },
                {
                  label: "是",
                  value: 1
                }
              ],
              value: 0,
              slot: true,
              rules: [
                {
                  required: true,
                  message: "请选择是否覆盖",
                  trigger: "blur"
                }
              ]
            },
            {
              label: '模板下载',
              prop: 'excelTemplate',
              formslot: true,
              span: 24,
            }
          ]
        },
        debugBox: false,
        debugForm: {},
        debugOption: {
          labelWidth: 50,
          submitBtn: false,
          emptyBtn: false,
          column: [
            {
              label: '省份',
              prop: 'province',
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
              },
              cascaderItem: ['city', 'district'],
              dicUrl: '/api/blade-system/region/select',
              span: 24,
            },
            {
              label: '地市',
              prop: 'city',
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
              },
              dicFlag: false,
              dicUrl: '/api/blade-system/region/select?code={{key}}',
              span: 24,
            },
            {
              label: '区县',
              prop: 'district',
              type: 'select',
              props: {
                label: 'name',
                value: 'code'
              },
              dicFlag: false,
              dicUrl: '/api/blade-system/region/select?code={{key}}',
              span: 24,
            }
          ]
        }
      };
    },
    watch: {
      'regionForm.subCode'() {
        this.regionForm.code = this.regionForm.parentCode + this.regionForm.subCode;
            ],
          },
          {
            label: "区划备注",
            prop: "remark",
            type: "textarea",
            minRows: 6,
            span: 24,
          },
        ],
      },
      'excelForm.isCovered'() {
        if (this.excelForm.isCovered !== '') {
      excelBox: false,
      excelForm: {},
      excelOption: {
        submitBtn: false,
        emptyBtn: false,
        column: [
          {
            label: "模板上传",
            prop: "excelFile",
            type: "upload",
            drag: true,
            loadText: "模板上传中,请稍等",
            span: 24,
            propsHttp: {
              res: "data",
            },
            tip: "请上传 .xls,.xlsx 标准格式文件",
            action: "/api/blade-system/region/import-region",
          },
          {
            label: "数据覆盖",
            prop: "isCovered",
            type: "switch",
            align: "center",
            width: 80,
            dicData: [
              {
                label: "否",
                value: 0,
              },
              {
                label: "是",
                value: 1,
              },
            ],
            value: 0,
            slot: true,
            rules: [
              {
                required: true,
                message: "请选择是否覆盖",
                trigger: "blur",
              },
            ],
          },
          {
            label: "模板下载",
            prop: "excelTemplate",
            formslot: true,
            span: 24,
          },
        ],
      },
      debugBox: false,
      debugForm: {},
      debugOption: {
        labelWidth: 50,
        submitBtn: false,
        emptyBtn: false,
        column: [
          {
            label: "省份",
            prop: "province",
            type: "select",
            props: {
              label: "name",
              value: "code",
            },
            cascaderItem: ["city", "district"],
            dicUrl: "/api/blade-system/region/select",
            span: 24,
          },
          {
            label: "地市",
            prop: "city",
            type: "select",
            props: {
              label: "name",
              value: "code",
            },
            dicFlag: false,
            dicUrl: "/api/blade-system/region/select?code={{key}}",
            span: 24,
          },
          {
            label: "区县",
            prop: "district",
            type: "select",
            props: {
              label: "name",
              value: "code",
            },
            dicFlag: false,
            dicUrl: "/api/blade-system/region/select?code={{key}}",
            span: 24,
          },
        ],
      },
    };
  },
  watch: {
    "regionForm.subCode"() {
      this.regionForm.code =
        this.regionForm.parentCode + this.regionForm.subCode;
    },
    "excelForm.isCovered"() {
      if (this.excelForm.isCovered !== "") {
        try {
          const column = this.findObject(this.excelOption.column, "excelFile");
          column.action = `/api/blade-system/region/import-region?isCovered=${this.excelForm.isCovered}`;
        }
        } catch {}
      }
    },
    computed: {
      ...mapGetters(["permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(this.permission.region_add, false),
          viewBtn: this.vaildData(this.permission.region_view, false),
          delBtn: this.vaildData(this.permission.region_delete, false),
          editBtn: this.vaildData(this.permission.region_edit, false)
        };
      },
      ids() {
        let ids = [];
        this.selectionList.forEach(ele => {
          ids.push(ele.id);
        });
        return ids.join(",");
      }
  },
  computed: {
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.region_add, false),
        viewBtn: this.vaildData(this.permission.region_view, false),
        delBtn: this.vaildData(this.permission.region_delete, false),
        editBtn: this.vaildData(this.permission.region_edit, false),
      };
    },
    methods: {
      initTree() {
        this.treeData = [];
        getLazyTree(this.topCode).then(res => {
          this.treeData = res.data.data.map(item => {
            return {
              ...item,
              leaf: !item.hasChildren
            }
          })
    ids() {
      let ids = [];
      this.selectionList.forEach((ele) => {
        ids.push(ele.id);
      });
      return ids.join(",");
    },
  },
  methods: {
    initTree() {
      this.treeData = [];
      getLazyTree(this.topCode).then((res) => {
        this.treeData = res.data.data.map((item) => {
          return {
            ...item,
            leaf: !item.hasChildren,
          };
        });
      },
      nodeClick(data) {
      });
    },
    nodeClick(data) {
      try {
        const column = this.findObject(this.regionOption.column, "parentCode");
        column.disabled = true;
        this.treeCode = data.id;
        this.treeParentCode = data.parentId;
        getDetail(this.treeCode).then(res => {
        getDetail(this.treeCode).then((res) => {
          this.regionForm = res.data.data;
          this.regionForm.subCode = this.regionForm.code.replace(this.regionForm.parentCode, '');
        })
      },
      addChildren() {
        if (validatenull(this.regionForm.code) || validatenull(this.regionForm.name)) {
          this.$message.warning("请先选择一项区划");
          return;
        }
        this.regionForm.parentCode = this.regionForm.code;
        this.regionForm.parentName = this.regionForm.name;
        this.regionForm.code = '';
        this.regionForm.subCode = '';
        this.regionForm.name = '';
        this.regionForm.regionLevel = (this.regionForm.regionLevel === 5) ? 5 : this.regionForm.regionLevel + 1;
      },
      handleSubmit(form, done, loading) {
        const parentCode = form.parentCode === this.topCode ? '' : form.parentCode;
        form.code = parentCode + form.subCode;
        submit(form).then(() => {
          this.regionForm.subCode = this.regionForm.code.replace(
            this.regionForm.parentCode,
            ""
          );
        });
      } catch {}
    },
    addChildren() {
      if (
        validatenull(this.regionForm.code) ||
        validatenull(this.regionForm.name)
      ) {
        this.$message.warning("请先选择一项区划");
        return;
      }
      this.regionForm.parentCode = this.regionForm.code;
      this.regionForm.parentName = this.regionForm.name;
      this.regionForm.code = "";
      this.regionForm.subCode = "";
      this.regionForm.name = "";
      this.regionForm.regionLevel =
        this.regionForm.regionLevel === 5 ? 5 : this.regionForm.regionLevel + 1;
    },
    handleSubmit(form, done, loading) {
      const parentCode =
        form.parentCode === this.topCode ? "" : form.parentCode;
      form.code = parentCode + form.subCode;
      submit(form).then(
        () => {
          this.$message({
            type: "success",
            message: "操作成功!"
            message: "操作成功!",
          });
          this.initTree();
          this.regionForm.subCode = '';
          this.regionForm.subCode = "";
          this.$refs.form.resetForm();
          done();
        }, error => {
        },
        (error) => {
          loading();
          window.console.log(error);
        });
      },
      handleDelete() {
        if (validatenull(this.regionForm.code)) {
          this.$message.warning("请先选择一项区划");
          return;
        }
        this.$confirm(`确定将 [${this.regionForm.name}] 数据删除?`, {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
      );
    },
    handleDelete() {
      if (validatenull(this.regionForm.code)) {
        this.$message.warning("请先选择一项区划");
        return;
      }
      this.$confirm(`确定将 [${this.regionForm.name}] 数据删除?`, {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          return remove(this.treeCode);
        })
          .then(() => {
            return remove(this.treeCode);
          })
          .then(() => {
            this.$message({
              type: "success",
              message: "操作成功!"
            });
            this.initTree();
            this.regionForm.subCode = '';
            this.$refs.form.resetForm();
        .then(() => {
          this.$message({
            type: "success",
            message: "操作成功!",
          });
      },
      uploadAfter(res, done, loading, column) {
        window.console.log(column);
        this.excelBox = false;
        this.initTree();
        done();
      },
      handleDebug() {
        this.debugBox = true;
      },
      handleImport() {
        this.excelBox = true;
      },
      handleExport() {
        this.$confirm("是否导出行政区划数据?", "提示", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(() => {
          window.open(`/api/blade-system/region/export-region?${this.website.tokenHeader}=${getToken()}`);
          this.initTree();
          this.regionForm.subCode = "";
          this.$refs.form.resetForm();
        });
      },
      handleTemplate() {
        window.open(`/api/blade-system/region/export-template?${this.website.tokenHeader}=${getToken()}`);
      },
    }
  };
    },
    uploadAfter(res, done, loading, column) {
      window.console.log(column);
      this.excelBox = false;
      this.initTree();
      done();
    },
    handleDebug() {
      this.debugBox = true;
    },
    handleImport() {
      this.excelBox = true;
    },
    handleExport() {
      this.$confirm("是否导出行政区划数据?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      }).then(() => {
        window.open(
          `/api/blade-system/region/export-region?${
            this.website.tokenHeader
          }=${getToken()}`
        );
      });
    },
    handleTemplate() {
      window.open(
        `/api/blade-system/region/export-template?${
          this.website.tokenHeader
        }=${getToken()}`
      );
    },
  },
};
</script>
<style>
  .box {
    height: 800px;
  }
.box {
  height: 800px;
}
  .el-scrollbar {
    height: 100%;
  }
.el-scrollbar {
  height: 100%;
}
  .box .el-scrollbar__wrap {
    overflow: scroll;
  }
.box .el-scrollbar__wrap {
  overflow: scroll;
}
</style>
src/views/management/computents/achievement.vue
@@ -13,6 +13,7 @@
    @search-reset="equipmentSearchReset"
    @current-change="equipmentCurrentChange"
    @size-change="equipmentSizeChange"
    @refresh-change="refreshchange"
  >
  </avue-crud>
</template>
@@ -144,6 +145,9 @@
    };
  },
  methods: {
    refreshchange() {
      this.punishOnLoad(this.equipmentPage, this.equipmentQuery);
    },
    equipmentOnLoad(page, params = {}) {
      this.equipmentLoading = true;
      getLisperexamScore(
src/views/management/computents/dispatch.vue
@@ -13,6 +13,7 @@
    @search-reset="equipmentSearchReset"
    @current-change="equipmentCurrentChange"
    @size-change="equipmentSizeChange"
    @refresh-change="refreshchange"
  >
  </avue-crud>
</template>
@@ -40,6 +41,7 @@
        searchMenuSpan: 3,
        index: false,
        viewBtn: true,
        height: 529,
        //dialogType: 'drawer',
        dialogClickModal: false,
        // 操作栏宽度
@@ -213,6 +215,9 @@
    };
  },
  methods: {
    refreshchange() {
      this.equipmentOnLoad(this.equipmentPage, this.equipmentQuery);
    },
    equipmentOnLoad(page, params = {}) {
      this.equipmentLoading = true;
      getLisperdispatch(
src/views/management/computents/honor.vue
@@ -13,6 +13,7 @@
    @search-reset="punishSearchReset"
    @current-change="punishCurrentChange"
    @size-change="punishSizeChange"
    @refresh-change="refreshchange"
  >
  </avue-crud>
</template>
@@ -117,6 +118,9 @@
    };
  },
  methods: {
    refreshchange() {
      this.punishOnLoad(this.punishPage, this.punishQuery);
    },
    punishOnLoad(page, params = {}) {
      this.punishLoading = true;
      getListhonor(
src/views/management/computents/performance.vue
@@ -13,6 +13,7 @@
    @search-reset="staffSearchReset"
    @current-change="staffCurrentChange"
    @size-change="staffSizeChange"
    @refresh-change="refreshchange"
  >
  </avue-crud>
</template>
@@ -47,221 +48,73 @@
        column: [
          {
            label: "姓名",
            prop: "name",
            // search: true,
            // searchSpan: 4,
            // display: false,
            // width: 78,
            searchSpan: 3,
            search: true,
          },
          // {
          //   label: "身份证号",
          //   prop: "securityid",
          //   // search: true,
          //   // searchSpan: 4,
          //   // display: false,
          //   // width: 78,
          // },
          {
            label: "工作态度",
            prop: "workingattitude",
            searchSpan: 3,
            search: true,
            // type: "select",
            // search: true,
            // searchSpan: 4,
            // searchLabelWidth: 50,
            // dicData: [
            //   {
            //     label: "女",
            //     value: 2,
            //   },
            //   {
            //     label: "男",
            //     value: 1,
            //   },
            // ],
            // slot: true,
            // display: false,
            // width: 48,
          },
          // {
          //   label: "保安公司",
          //   prop: "deptName",
          //   // width: 120,
          //   search: true,
          //   searchSpan: 4,
          //   overHidden: true,
          //   slot: true,
          //   display: false,
          // },
          // {
          //   label: "工作能力",
          //   prop: "workingability",
          //   // display: false,
          //   // searchSpan: 4,
          //   // searchLabelWidth: 110,
          //   searchSpan: 3,
          //   search: true,
          // },
          {
            label: "工作成效",
            prop: "achievements",
            // slot: true,
            // display: false,
            // width: 138,
          },
          {
            label: "评分",
            prop: "score",
            searchSpan: 3,
            search: true,
            // slot: true,
            // display: false,
            // width: 92,
            label: "id",
            prop: "id",
            hide: true,
            editDisplay: false,
            addDisplay: false,
          },
          {
            label: "时间",
            prop: "time",
            // slot: true,
            // display: false,
            // width: 82,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            labelWidth: 120,
            searchSpan: 4,
            search: true,
            overHidden: true,
            prop: "time",
            formslot: true,
          },
          // {
          //     label: '工作态度',
          //     prop: "workingattitude",
          //     formslot: true,
          // },
          {
            label: "工作表现",
            prop: "achievements",
            formslot: true,
          },
          {
            label: "表现评定",
            prop: "score",
            type: "select",
            // dicUrl: "/api/blade-system/dict-biz/dictionary?code=scoreType",
            // props: {
            //     label: "dictValue",
            //     value: "dictKey"
            // },
            dicData: [
              {
                label: "优秀",
                value: 0,
              },
              {
                label: "良好",
                value: 1,
              },
              {
                label: "一般",
                value: 2,
              },
              {
                label: "差",
                value: 3,
              },
            ],
            dataType: "number",
            slot: true,
            rules: [
              {
                required: true,
                message: "请输入时间",
                trigger: "click",
                message: "请选择表现",
                trigger: "blur",
              },
            ],
          },
          // {
          //   label: "所属角色",
          //   prop: "roleName",
          //   slot: true,
          //   display: false,
          //   width: 78,
          //   hide: true,
          // },
          // {
          //   label: "所属辖区",
          //   prop: "jurisdiction",
          //   // multiple: true,
          //   minWidth: 60,
          //   type: "tree",
          //   dicUrl: "/api/jurisdiction/lazy-tree?parentId=0",
          //   props: {
          //     label: "title",
          //     value: "id",
          //   },
          //   checkStrictly: true,
          //   slot: true,
          //   rules: [
          //     {
          //       required: true,
          //       message: "请选择所属辖区",
          //       trigger: "click",
          //     },
          //   ],
          // },
          // {
          //   label: "是否在职",
          //   prop: "status",
          //   type: "select",
          //   search: true,
          //   searchSpan: 3,
          //   dicData: [
          //     {
          //       label: "否",
          //       value: 0,
          //     },
          //     {
          //       label: "是",
          //       value: 1,
          //     },
          //   ],
          //   slot: true,
          //   display: false,
          //   width: 70,
          // },
          // {
          //   label: "是否持证",
          //   prop: "hold",
          //   type: "select",
          //   search: true,
          //   searchSpan: 3,
          //   dicData: [
          //     {
          //       label: "是",
          //       value: "0",
          //     },
          //     {
          //       label: "否",
          //       value: "1",
          //     },
          //     {
          //       label: "已吊销",
          //       value: "2",
          //     },
          //   ],
          //   slot: true,
          //   display: false,
          //   width: 70,
          // },
          //     label: '服务公司',
          //     prop: "departmentName",
          //     formslot: true,
          // }
        ],
        // [
        //   {
        //     label: "投资人姓名",
        //     prop: "shareholder",
        //     slot: true,
        //     display: false,
        //   },
        //   {
        //     label: "投资比例",
        //     prop: "shareholdingratio",
        //     slot: true,
        //     display: false,
        //     formatter: function (row, value) {
        //       return (value = value + "%");
        //     },
        //   },
        //   {
        //     label: "出资金额",
        //     prop: "capital",
        //     slot: true,
        //     display: false,
        //     formatter: function (row, value) {
        //       return (value = value + "万元");
        //     },
        //   },
        //   {
        //     label: "投资时间",
        //     prop: "capitaltime",
        //     slot: true,
        //     display: false,
        //   },
        //   {
        //     label: "身份证号",
        //     prop: "cardid",
        //     slot: true,
        //     display: false,
        //   },
        //   {
        //     label: "联系电话",
        //     prop: "cell",
        //     slot: true,
        //     display: false,
        //   },
        // ],
      },
      staffSearch: {},
      staffLoading: true,
@@ -276,8 +129,11 @@
    };
  },
  methods: {
    refreshchange() {
      this.staffOnLoad(this.staffPage, this.staffQuery);
    },
    staffOnLoad(page, params = {}) {
      console.log(this.form,111);
      console.log(this.form, 111);
      this.staffLoading = true;
      getLisperformance(
        page.currentPage,
@@ -292,7 +148,7 @@
        for (var k in this.staffData) {
          this.staffData[k]["name"] = this.form.realName;
        }
        console.log(this.staffData,'staffData');
        console.log(this.staffData, "staffData");
        this.staffLoading = false;
        this.$refs.staffCrud.refreshTable();
        this.$refs.staffCrud.doLayout();
src/views/management/computents/train.vue
@@ -13,6 +13,7 @@
    @search-reset="serviceSearchReset"
    @current-change="serviceCurrentChange"
    @size-change="serviceSizeChange"
    @refresh-change="refreshchange"
  >
  </avue-crud>
</template>
@@ -122,6 +123,9 @@
    };
  },
  methods: {
    refreshchange() {
      this.punishOnLoad(this.servicePage, this.serviceQuery);
    },
    serviceOnLoad(page, params = {}) {
      this.serviceLoading = true;
      getLispertrain(
src/views/management/peopleDetails.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-16 16:51:30
 * @Last Modified time: 2021-09-18 10:33:58
 * menu-name 保安详细资料
 */
<template>
@@ -200,6 +200,8 @@
import honor from "./computents/honor.vue"; //处罚信息
import train from "./computents/train.vue"; //服务对象
import achievement from "./computents/achievement.vue"; //服务对象
import { getListSecurity } from "@/api/system/user";
export default {
  components: {
    dispatch: dispatch,
@@ -217,6 +219,7 @@
      honorchData: [],
      trainData: [],
      examinationData: [],
      finalDeptid: "",
    };
  },
  created() {
@@ -238,6 +241,12 @@
    }
    this.form = this.$route.query;
    this.finalDeptid = this.form.cardid;
    this.getFromData({
      currentPage: 1,
      pageSize: 10,
    });
    // console.log(this.form, "form");
  },
  mounted() {
    // this.$store.state.tags.tag.label = '保安详细资料'
@@ -258,7 +267,16 @@
    }
  },
  methods: {
    getFromData(page, params = {}) {
      var that = this;
      params["cardid"] = this.finalDeptid;
      getListSecurity(page.currentPage, page.pageSize, params).then((res) => {
        // console.log(res.data.data.records[0], "多次获取该单位信息");
        that.form = res.data.data.records[0];
      });
    },
    handleClick(tab) {
      console.log(tab.index);
      if (tab.index == 1) {
        this.getManifestationData();
      } else if (tab.index == 2) {
@@ -269,11 +287,17 @@
        this.getTrainData();
      } else if (tab.index == 5) {
        this.getExaminationData();
      } else if (tab.index == 0) {
        this.getFromData({
          currentPage: 1,
          pageSize: 10,
        });
      }
    },
    getManifestationData() {
      manifestationList(this.form.cardid).then((res) => {
      manifestationList(this.form.id).then((res) => {
        this.manifestationData = res.data.data.records;
        console.log(this.manifestationData, " this.manifestationData ");
        this.manifestationData.forEach((item) => {
          item.name = this.form.realName;
          item.time = item.time.substring(0, 10);
@@ -281,17 +305,17 @@
      });
    },
    getDispatchData() {
      dispatchList(this.form.cardid).then((res) => {
      dispatchList(this.form.id).then((res) => {
        this.dispatchData = res.data.data.records;
      });
    },
    getHonorchData() {
      honorchList(this.form.cardid).then((res) => {
      honorchList(this.form.id).then((res) => {
        this.honorchData = res.data.data.records;
      });
    },
    getTrainData() {
      trainList(this.form.cardid).then((res) => {
      trainList(this.form.id).then((res) => {
        this.trainData = res.data.data;
        this.trainData.forEach((item) => {
@@ -304,7 +328,7 @@
      });
    },
    getExaminationData() {
      examinationList(this.form.cardid).then((res) => {
      examinationList(this.form.id).then((res) => {
        this.examinationData = res.data.data;
        this.examinationData.forEach((item) => {
src/views/securityGuardManagement/register.vue
@@ -2,7 +2,7 @@
 * @Author: Morpheus
 * @Date: 2021-07-05 16:31:54
 * @Last Modified by: liu
 * @Last Modified time: 2021-09-10 16:47:56
 * @Last Modified time: 2021-09-18 09:42:02
 * menu-name 保安员注册查询
 */
<template>
@@ -371,63 +371,41 @@
        treeLoad: function (node, resolve) {
          const parentId = node.level === 0 ? 0 : node.data.id;
          if (parentId == 0) {
            getDeptLazyTree(parentId).then((res) => {
              resolve(
                res.data.data.map((item) => {
                  return {
                    ...item,
                    leaf: !item.hasChildren,
                  };
                })
              );
            });
          } else if (parentId == '1372091709474910209') {
          } else if (parentId == "1372091709474910209") {
            getDeptLazyTree(parentId).then((res) => {
              resolve(
                res.data.data[0].children.map((item) => {
                  return {
                    ...item,
                    leaf: !item.hasChildren,
                  };
                })
              );
            });
          } else {
            getDeptLazyTree(parentId).then((res) => {
              res.data.data = [];
              resolve(
                res.data.data.map((item) => {
                  return {
                    ...item,
                    leaf: !item.hasChildren,
                  };
                })
              );
            });
          }
        },
        addBtn: false,
        menu: false,
@@ -779,8 +757,10 @@
    },
    "excelForm.isCovered"() {
      if (this.excelForm.isCovered !== "") {
        const column = this.findObject(this.excelOption.column, "excelFile");
        column.action = `/api/blade-user/import-user?isCovered=${this.excelForm.isCovered}`;
        try {
          const column = this.findObject(this.excelOption.column, "excelFile");
          column.action = `/api/blade-user/import-user?isCovered=${this.excelForm.isCovered}`;
        } catch {}
      }
    },
  },
@@ -883,16 +863,22 @@
    },
    initData(tenantId) {
      getRoleTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "roleId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.group, "roleId");
          column.dicData = res.data.data;
        } catch {}
      });
      getDeptTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "deptId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.group, "deptId");
          column.dicData = res.data.data;
        } catch {}
      });
      getPostList(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "postId");
        column.dicData = res.data.data;
        try {
          const column = this.findObject(this.option.group, "postId");
          column.dicData = res.data.data;
        } catch {}
      });
    },