保安员管理和保安公司页面完善  。全部基本样式调整,数据对接(部分)
35 files modified
7 files added
1 files deleted
3287 ■■■■ changed files
public/index.html 3 ●●●● patch | view | raw | blame | history
src/api/register/honor.js 73 ●●●●● patch | view | raw | blame | history
src/api/securityCompany/security.js 22 ●●●●● patch | view | raw | blame | history
src/config/website.js 3 ●●●● patch | view | raw | blame | history
src/lang/zh.js 4 ●●● patch | view | raw | blame | history
src/option/system/dict.js 2 ●●● patch | view | raw | blame | history
src/option/system/dictbiz.js 2 ●●● patch | view | raw | blame | history
src/option/system/param.js 2 ●●●●● patch | view | raw | blame | history
src/page/index/top/top-menu.vue 103 ●●●● patch | view | raw | blame | history
src/router/views/index.js 42 ●●●● patch | view | raw | blame | history
src/styles/element-ui.scss 55 ●●●● patch | view | raw | blame | history
src/views/authority/role.vue 2 ●●●●● patch | view | raw | blame | history
src/views/management/computents/achievement.vue 113 ●●●●● patch | view | raw | blame | history
src/views/management/computents/dispatch.vue 2 ●●● patch | view | raw | blame | history
src/views/management/computents/honor.vue 35 ●●●● patch | view | raw | blame | history
src/views/management/computents/performance.vue 70 ●●●● patch | view | raw | blame | history
src/views/management/computents/train.vue 93 ●●●● patch | view | raw | blame | history
src/views/management/peopleDetails.vue 8 ●●●● patch | view | raw | blame | history
src/views/onSiteInspection/company.vue 10 ●●●● patch | view | raw | blame | history
src/views/onSiteInspection/securityStaff.vue 10 ●●●● patch | view | raw | blame | history
src/views/qualificationExamination/qualificationExamination.vue 138 ●●●●● patch | view | raw | blame | history
src/views/qualificationExamination/signQualificationExamination.vue 10 ●●●● patch | view | raw | blame | history
src/views/resource/oss.vue 2 ●●● patch | view | raw | blame | history
src/views/securityCompany/companyDetails.vue 2 ●●● patch | view | raw | blame | history
src/views/securityCompany/computents/equipment.vue 2 ●●● patch | view | raw | blame | history
src/views/securityCompany/computents/punish.vue 97 ●●●● patch | view | raw | blame | history
src/views/securityCompany/computents/service.vue 2 ●●● patch | view | raw | blame | history
src/views/securityCompany/computents/staff.vue 2 ●●● patch | view | raw | blame | history
src/views/securityCompany/data.js 271 ●●●●● patch | view | raw | blame | history
src/views/securityCompany/regulatoryInformation.vue 359 ●●●●● patch | view | raw | blame | history
src/views/securityCompany/security.vue 48 ●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/dispatchChildoperable.vue 2 ●●●●● patch | view | raw | blame | history
src/views/securityGuardManagement/register.vue 54 ●●●●● patch | view | raw | blame | history
src/views/securityUnitOperation/economicTable.vue 167 ●●●●● patch | view | raw | blame | history
src/views/securityUnitOperation/operationAnalysis.vue 40 ●●●● patch | view | raw | blame | history
src/views/securityUnitOperation/operationTable.vue 448 ●●●●● patch | view | raw | blame | history
src/views/statisticalQueryManagement/businessStatistics.vue 169 ●●●●● patch | view | raw | blame | history
src/views/statisticalQueryManagement/businessStatisticsDetail.vue 253 ●●●●● patch | view | raw | blame | history
src/views/statisticalQueryManagement/companyDetails.vue 331 ●●●●● patch | view | raw | blame | history
src/views/statisticalQueryManagement/securityGuardStatistics.vue 231 ●●●●● patch | view | raw | blame | history
src/views/system/dept.vue 2 ●●● patch | view | raw | blame | history
src/views/system/menu.vue 2 ●●● patch | view | raw | blame | history
src/views/system/user.vue 1 ●●●● patch | view | raw | blame | history
public/index.html
@@ -19,7 +19,8 @@
  <script src="<%= BASE_URL %>cdn/xlsx/FileSaver.min.js"></script>
  <script src="<%= BASE_URL %>cdn/xlsx/xlsx.full.min.js"></script>
  <link rel="icon" href="<%= BASE_URL %>favicon.png">
  <title>保安监管系统</title>
  <!-- <title>保安监管系统</title> -->
  <title>智慧保安监管模块</title>
  <script type="text/javascript" src="./libs/Cesium/Cesium.js"></script>
  <style>
    html,
src/api/register/honor.js
New file
@@ -0,0 +1,73 @@
import request from '@/router/axios';
export const getListhonor = (current, size, params, cardid) => {
    return request({
        url: '/api//honor/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
            cardid
        }
    })
}
export const addhonor = (row) => {
    return request({
        url: '/api//honor/save',
        method: 'post',
        data: row
    })
}
export const getLisperformance = (current, size, params, cardid) => {
    return request({
        url: '/api/performance/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
            cardid
        }
    })
}
export const getLisperexamScore = (current, size, params, userId) => {
    return request({
        url: '/api/examScore/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
            userId
        }
    })
}
export const getLispertrain = (current, size, params, idCardNo) => {
    return request({
        url: '/api/trainingRegistration/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
            idCardNo
        }
    })
}
export const getLisperdispatch = (current, size, params, userId) => {
    return request({
        url: '/api/examScore/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
            userId
        }
    })
}
src/api/securityCompany/security.js
@@ -59,3 +59,25 @@
  })
}
export const getListPunish = (current, size, params, deptid) => {
  return request({
    url: '/api/punish/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
      deptid
    }
  })
}
export const savePunish = (row) => {
  return request({
    url: '/api/punish/save',
    method: 'post',
    data: row
  })
}
src/config/website.js
@@ -5,7 +5,8 @@
  title: "", // 登录页标题
  logo: "S",
  key: 'saber',//配置主键,目前用于存储
  indexTitle: '保安监管系统',
  // indexTitle: '保安监管系统',
  indexTitle: '智慧保安监管模块',
  clientId: 'saber', // 客户端id
  clientSecret: 'saber_secret', // 客户端密钥
  tenantMode: true, // 是否开启租户模式
src/lang/zh.js
@@ -1,6 +1,7 @@
export default {
  tip: '提示',
  title: '保安监管系统',
  title: '智慧保安监管模块',
  logoutTip: '退出系统, 是否继续?',
  submitText: '确定',
  cancelText: '取消',
@@ -67,7 +68,8 @@
  },
  login: {
    title: '登录 ',
    info: '保安监管系统',
    // info: '保安监管系统',
    info: '智慧保安监管模块',
    tenantId: '请输入租户ID',
    username: '请输入账号',
    password: '请输入密码',
src/option/system/dict.js
@@ -9,7 +9,7 @@
  index: true,
  selection: true,
  viewBtn: true,
  menuWidth: 250,
  menuWidth: 300,
  dialogWidth: 880,
  dialogClickModal: false,
  column: [
src/option/system/dictbiz.js
@@ -9,7 +9,7 @@
  selection: true,
  searchShowBtn: false,
  viewBtn: true,
  menuWidth: 250,
  menuWidth: 300,
  dialogWidth: 880,
  dialogClickModal: false,
  column: [
src/option/system/param.js
@@ -9,6 +9,8 @@
  searchShowBtn: false,
  selection: true,
  viewBtn: true,
  // 操作栏宽度
  menuWidth: 300,
  dialogClickModal: false,
  column: [
    {
src/page/index/top/top-menu.vue
@@ -1,19 +1,21 @@
<template>
  <div class="top-menu">
    <el-menu :default-active="activeIndex"
             mode="horizontal"
             text-color="#333">
    <el-menu :default-active="activeIndex" mode="horizontal" text-color="#333">
      <el-menu-item index="0" @click.native="openHome(itemHome)" key="0">
        <template slot="title">
          <i :class="itemHome.source"></i>
          <span>{{generateTitle(itemHome)}}</span>
          <i :class="itemHome.source" style="font-size: 20px"></i>
          <span>{{ generateTitle(itemHome) }}</span>
        </template>
      </el-menu-item>
      <template v-for="(item,index) in items">
        <el-menu-item :index="item.id+''" @click.native="openMenu(item)" :key="index">
      <template v-for="(item, index) in items">
        <el-menu-item
          :index="item.id + ''"
          @click.native="openMenu(item)"
          :key="index"
        >
          <template slot="title">
            <i :class="item.source" style="padding-right: 5px;"></i>
            <span>{{generateTitle(item)}}</span>
            <i :class="item.source" style="padding-right: 5px"></i>
            <span>{{ generateTitle(item) }}</span>
          </template>
        </el-menu-item>
      </template>
@@ -22,48 +24,51 @@
</template>
<script>
  import {mapGetters} from "vuex";
import { mapGetters } from "vuex";
  export default {
    name: "top-menu",
    data() {
      return {
        itemHome: {
          name: '首页',
          source: 'el-icon-menu',
        },
        activeIndex: "0",
        items: [],
      };
export default {
  name: "top-menu",
  data() {
    return {
      itemHome: {
        name: "",
        source: "el-icon-s-home",
      },
      activeIndex: "0",
      items: [],
    };
  },
  inject: ["index"],
  created() {
    this.getMenu();
  },
  computed: {
    ...mapGetters(["tagCurrent", "menu"]),
  },
  methods: {
    openHome(itemHome) {
      this.index.openMenu(itemHome);
      this.$router.push({
        path: this.$router.$avueRouter.getPath(
          { name: itemHome.name, src: "" },
          {}
        ),
      });
    },
    inject: ["index"],
    created() {
      this.getMenu();
    openMenu(item) {
      this.index.openMenu(item);
    },
    computed: {
      ...mapGetters(["tagCurrent", "menu"])
    getMenu() {
      this.$store.dispatch("GetTopMenu").then((res) => {
        this.items = res;
      });
    },
    methods: {
      openHome(itemHome) {
        this.index.openMenu(itemHome);
        this.$router.push({
          path: this.$router.$avueRouter.getPath({name: itemHome.name, src: ''}, {})
        });
      },
      openMenu(item) {
        this.index.openMenu(item)
      },
      getMenu() {
        this.$store.dispatch("GetTopMenu").then(res => {
          this.items = res;
        });
      },
      generateTitle(item) {
        return this.$router.$avueRouter.generateTitle(
          item.name,
          (item.meta || {}).i18n
        );
      },
    }
  };
    generateTitle(item) {
      return this.$router.$avueRouter.generateTitle(
        item.name,
        (item.meta || {}).i18n
      );
    },
  },
};
</script>
src/router/views/index.js
@@ -286,20 +286,50 @@
            component: () =>
                import( /* webpackChunkName: "views" */ '@/views/regulatoryInformation/index')
        }]
    }, {
        path: '/securityUnitOperation/operationTable',
        redirect: '/securityUnitOperation/operationTable/index',
    },
    // {  //报错  到不到vue文件
    //     path: '/securityUnitOperation/operationTable',
    //     redirect: '/securityUnitOperation/operationTable/index',
    //     component: Layout,
    //     children: [{
    //         path: 'index',
    //         name: '公司运营情况智能分析详情表',
    //         meta: {
    //             i18n: 'index',
    //         },
    //         component: () =>
    //             import( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/operationTable')
    //     }]
    // },
    {
        path: '/securityUnitOperation/economicTable',
        redirect: '/securityUnitOperation/economicTable/index',
        component: Layout,
        children: [{
            path: 'index',
            name: '公司运营情况智能分析详情表',
            name: '公司经济情况智能分析详情表',
            meta: {
                i18n: 'index',
            },
            component: () =>
                import( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/operationTable')
                import( /* webpackChunkName: "views" */ '@/views/securityUnitOperation/economicTable')
        }]
    }, {
    },
    {
        path: '/statisticalQueryManagement/companyDetails',
        redirect: '/statisticalQueryManagement/companyDetails/index',
        component: Layout,
        children: [{
            path: 'index',
            name: '保安公司人员详情',
            meta: {
                i18n: 'index',
            },
            component: () =>
                import( /* webpackChunkName: "views" */ '@/views/statisticalQueryManagement/companyDetails')
        }]
    },
    {
        path: '/securityUnitOperation/economicTable',
        redirect: '/securityUnitOperation/economicTable/index',
        component: Layout,
src/styles/element-ui.scss
@@ -132,8 +132,8 @@
  color: $fontColor !important;
}
.el-menu-item:hover {
  // background-color: $mainBhover !important;
  color: red !important;
  background-color: $mainBhover !important;
  // color: red !important;
}
.el-input__inner {
  background-color: $inputqiu !important;
@@ -433,10 +433,10 @@
  left: 630px;
}
//有按钮的
.dispatchChildoperable .el-card.is-never-shadow.avue-crud__search {
  left: 120px;
  width: calc(100% - 300px);
}
// .dispatchChildoperable .el-card.is-never-shadow.avue-crud__search {
//   // left: 120px;
//   width: calc(100% - 300px);
// }
.regulatoryInformation .el-card.is-never-shadow.avue-crud__search {
  left: 120px;
  width: calc(100% - 300px);
@@ -513,3 +513,46 @@
.avue-crud__dialog__menu i {
  color: $close !important;
}
// 角色管理权限弹窗
// .el-tabs--border-card {
//   background-color: $mainB !important;
// }
.el-tabs--border-card {
  background-color: $mainB !important;
}
.el-tabs--border-card > .el-tabs__header {
  background-color: $mainB !important;
}
.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  background-color: transparent !important;
  border-bottom: 1px solid $mainB !important;
}
// 系统字典新增
.el-switch__label {
  color: $fontColor;
}
.avue--detail .el-radio.is-checked .el-radio__label {
  color: $fontColor;
}
.el-tag {
  border: none !important;
  color: $fontColor !important;
  background-color: transparent !important;
}
//保安员详情 表格hover
.el-table__row:hover td {
  background-color: $mainBhover !important;
}
//覆盖左侧主菜单 监管 样式
.el-menu-item:focus
// .el-menu-item:hover
{
  background-color: $black !important;
}
src/views/authority/role.vue
@@ -139,6 +139,8 @@
        selection: true,
        viewBtn: true,
        dialogWidth: 900,
        // 操作栏宽度
        menuWidth: 300,
        dialogClickModal: false,
        column: [
          {
src/views/management/computents/achievement.vue
@@ -18,7 +18,9 @@
</template>
<script>
import { getLisperexamScore } from "@/api/register/honor";
export default {
  props: ["form"],
  data() {
    return {
      equipmentOption: {
@@ -34,6 +36,7 @@
        calcHeight: 250,
        tip: false,
        searchShow: false,
        searchShowBtn: false,
        searchMenuSpan: 4,
        index: false,
        viewBtn: true,
@@ -45,13 +48,20 @@
        column: [
          {
            label: "姓名",
            prop: "rname",
            prop: "name",
            // slot: true,
            // display: false,
          },
          {
            label: "考试开始时间",
            prop: "examinationbegintime",
            label: "考试名称",
            prop: "examName",
            // slot: true,
            // display: false,
          },
          {
            // label: "考试开始时间",
            label: "考试时间",
            prop: "examTime",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
@@ -72,44 +82,50 @@
            //   return (value = value + "%");
            // },
          },
          // {
          //   label: "考试结束时间",
          //   prop: "examEndTime",
          //   type: "date",
          //   format: "yyyy-MM-dd",
          //   valueFormat: "yyyy-MM-dd",
          //   labelWidth: 120,
          //   searchSpan: 4,
          //   search: true,
          //   overHidden: true,
          //   rules: [
          //     {
          //       required: true,
          //       message: "请输入时间",
          //       trigger: "click",
          //     },
          //   ],
          //   // slot: true,
          //   // display: false,
          //   // formatter: function (row, value) {
          //   //   return (value = value + "万元");
          //   // },
          // },
          // {
          //   label: "考试类型",
          //   prop: "examinationaddress",
          //   // slot: true,
          //   // display: false,
          // },
          {
            label: "开始结束时间",
            prop: "examinationendtime",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            labelWidth: 120,
            searchSpan: 4,
            search: true,
            overHidden: true,
            rules: [
              {
                required: true,
                message: "请输入时间",
                trigger: "click",
              },
            ],
            // slot: true,
            // display: false,
            // formatter: function (row, value) {
            //   return (value = value + "万元");
            // },
          },
          {
            label: "考试类别",
            prop: "examinationtype",
            label: "理论成绩",
            prop: "theoryGrade",
            // slot: true,
            // display: false,
          },
          {
            label: "考试成绩",
            prop: "examinationc",
            label: "实操成绩",
            prop: "learnGrade",
            // slot: true,
            // display: false,
          },
          {
            label: "考试地点",
            prop: "examinationaddress",
            label: "总成绩",
            prop: "allGrade",
            // slot: true,
            // display: false,
          },
@@ -130,22 +146,25 @@
  methods: {
    equipmentOnLoad(page, params = {}) {
      this.equipmentLoading = true;
      console.log("success");
      //   getequipmentList(
      //     page.currentPage,
      //     page.pageSize,
      //     Object.assign(params, this.equipmentQuery),
      //     this.form.creditcode
      //   ).then((res) => {
      //     const data = res.data.data;
      getLisperexamScore(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.equipmentQuery),
        this.form.id
      ).then((res) => {
        const data = res.data.data;
      //     this.equipmentPage.total = data.total;
      //     this.equipmentData = data.records;
      this.equipmentLoading = false;
      //     this.$refs.equipmentCrud.refreshTable();
      //     this.$refs.equipmentCrud.doLayout();
      //     this.equipmentSelectionClear();
      //   });
        this.equipmentPage.total = data.total;
        this.equipmentData = data.records;
        for (var k in this.equipmentData) {
          this.equipmentData[k]["name"] = this.form.realName;
        }
        console.log(this.equipmentData);
        this.equipmentLoading = false;
        this.$refs.equipmentCrud.refreshTable();
        this.$refs.equipmentCrud.doLayout();
        this.equipmentSelectionClear();
      });
    },
    equipmentSelectionClear() {
      this.equipmentSelectionList = [];
src/views/management/computents/dispatch.vue
@@ -32,6 +32,7 @@
        align: "center",
        height: "auto",
        calcHeight: 250,
        searchShowBtn: false,
        tip: false,
        searchShow: false,
        searchMenuSpan: 3,
@@ -211,7 +212,6 @@
  methods: {
    equipmentOnLoad(page, params = {}) {
      this.equipmentLoading = true;
      console.log("success");
      //   getequipmentList(
      //     page.currentPage,
      //     page.pageSize,
src/views/management/computents/honor.vue
@@ -18,7 +18,9 @@
</template>
<script>
import { getListhonor } from "@/api/register/honor";
export default {
  props: ["form"],
  data() {
    return {
      punishOption: {
@@ -26,6 +28,7 @@
        delBtn: false,
        editBtn: false,
        addBtn: false,
        searchShowBtn: false,
        selection: false,
        menu: false,
@@ -69,7 +72,7 @@
          },
          {
            label: "获取时间",
            prop: "capitaltime",
            prop: "honortime",
            // slot: true,
            // display: false,
            type: "date",
@@ -116,22 +119,22 @@
  methods: {
    punishOnLoad(page, params = {}) {
      this.punishLoading = true;
      console.log("success");
      //   getpunishList(
      //     page.currentPage,
      //     page.pageSize,
      //     Object.assign(params, this.punishQuery),
      //     this.form.creditcode
      //   ).then((res) => {
      //     const data = res.data.data;
      getListhonor(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.punishQuery),
        this.form.cardid
      ).then((res) => {
        const data = res.data.data;
      //     this.punishPage.total = data.total;
      //     this.punishData = data.records;
      this.punishLoading = false;
      //     this.$refs.punishCrud.refreshTable();
      //     this.$refs.punishCrud.doLayout();
      //     this.punishSelectionClear();
      //   });
        this.punishPage.total = data.total;
        this.punishData = data.records;
        console.log(this.punishData);
        this.punishLoading = false;
        this.$refs.punishCrud.refreshTable();
        this.$refs.punishCrud.doLayout();
        this.punishSelectionClear();
      });
    },
    punishSelectionClear() {
      this.punishSelectionList = [];
src/views/management/computents/performance.vue
@@ -18,13 +18,16 @@
</template>
<script>
import { getLisperformance } from "@/api/register/honor";
export default {
  props: ["form"],
  data() {
    return {
      staffOption: {
        // 操作栏多余按钮去除
        delBtn: false,
        editBtn: false,
        searchShowBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
@@ -53,14 +56,14 @@
            searchSpan: 3,
            search: true,
          },
          {
            label: "身份证号",
            prop: "securityid",
            // search: true,
            // searchSpan: 4,
            // display: false,
            // width: 78,
          },
          // {
          //   label: "身份证号",
          //   prop: "securityid",
          //   // search: true,
          //   // searchSpan: 4,
          //   // display: false,
          //   // width: 78,
          // },
          {
            label: "工作态度",
            prop: "workingattitude",
@@ -94,15 +97,15 @@
          //   slot: true,
          //   display: false,
          // },
          {
            label: "工作能力",
            prop: "workingability",
            // display: false,
            // searchSpan: 4,
            // searchLabelWidth: 110,
            searchSpan: 3,
            search: true,
          },
          // {
          //   label: "工作能力",
          //   prop: "workingability",
          //   // display: false,
          //   // searchSpan: 4,
          //   // searchLabelWidth: 110,
          //   searchSpan: 3,
          //   search: true,
          // },
          {
            label: "工作成效",
            prop: "achievements",
@@ -275,22 +278,25 @@
  methods: {
    staffOnLoad(page, params = {}) {
      this.staffLoading = true;
      console.log("success");
      //   getstaffList(
      //     page.currentPage,
      //     page.pageSize,
      //     Object.assign(params, this.staffQuery),
      //     this.form.creditcode
      //   ).then((res) => {
      //     const data = res.data.data;
      getLisperformance(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.staffQuery),
        this.form.cardid
      ).then((res) => {
        const data = res.data.data;
      //     this.staffPage.total = data.total;
      //     this.staffData = data.records;
      this.staffLoading = false;
      //     this.$refs.staffCrud.refreshTable();
      //     this.$refs.staffCrud.doLayout();
      //     this.staffSelectionClear();
      //   });
        this.staffPage.total = data.total;
        this.staffData = data.records;
        for (var k in this.staffData) {
          this.staffData[k]["name"] = this.form.realName;
        }
        console.log(this.staffData);
        this.staffLoading = false;
        this.$refs.staffCrud.refreshTable();
        this.$refs.staffCrud.doLayout();
        this.staffSelectionClear();
      });
    },
    staffSelectionClear() {
      this.staffSelectionList = [];
src/views/management/computents/train.vue
@@ -18,7 +18,9 @@
</template>
<script>
import { getLispertrain } from "@/api/register/honor";
export default {
  props: ["form"],
  data() {
    return {
      serviceOption: {
@@ -26,6 +28,7 @@
        delBtn: false,
        editBtn: false,
        addBtn: false,
        searchShowBtn: false,
        selection: false,
        menu: false,
@@ -45,43 +48,44 @@
        column: [
          {
            label: "姓名",
            prop: "rname",
            prop: "name",
            // slot: true,
            // display: false,
          },
          // {
          //   label: "性别",
          //   prop: "sex",
          //   // slot: true,
          //   // display: false,
          //   // formatter: function (row, value) {
          //   //   return (value = value + "%");
          //   // },
          // },
          // {
          //   label: "身份证号",
          //   prop: "cardid",
          //   // slot: true,
          //   // display: false,
          //   // formatter: function (row, value) {
          //   //   return (value = value + "万元");
          //   // },
          // },
          {
            label: "性别",
            prop: "sex",
            label: "学历证书",
            prop: "academicUrl",
            // slot: true,
            // display: false,
            // formatter: function (row, value) {
            //   return (value = value + "%");
            // },
          },
          {
            label: "身份证号",
            prop: "cardid",
            // slot: true,
            // display: false,
            // formatter: function (row, value) {
            //   return (value = value + "万元");
            // },
          },
          {
            label: "培训单位",
            prop: "train",
            prop: "trainingUnitName",
            // slot: true,
            // display: false,
          },
          {
            label: "培训内容",
            prop: "traincontent",
            // slot: true,
            // display: false,
          },
          {
            label: "培训时间",
            prop: "traintime",
            prop: "trainingTime",
            // slot: true,
            type: "date",
            format: "yyyy-MM-dd",
@@ -98,11 +102,11 @@
              },
            ],
          },
          {
            label: "培训地址",
            prop: "trainaddrss",
            // slot: true,
          },
          // {
          //   label: "培训地址",
          //   prop: "trainaddrss",
          //   // slot: true,
          // },
        ],
      },
      serviceSearch: {},
@@ -120,22 +124,25 @@
  methods: {
    serviceOnLoad(page, params = {}) {
      this.serviceLoading = true;
      console.log("success");
      //   getserviceList(
      //     page.currentPage,
      //     page.pageSize,
      //     Object.assign(params, this.serviceQuery),
      //     this.form.creditcode
      //   ).then((res) => {
      //     const data = res.data.data;
      getLispertrain(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.serviceQuery),
        this.form.cardid
      ).then((res) => {
        const data = res.data.data;
      //     this.servicePage.total = data.total;
      //     this.serviceData = data.records;
      this.serviceLoading = false;
      //     this.$refs.serviceCrud.refreshTable();
      //     this.$refs.serviceCrud.doLayout();
      //     this.serviceSelectionClear();
      //   });
        this.servicePage.total = data.total;
        this.serviceData = data.records;
        for (var k in this.serviceData) {
          this.serviceData[k]["name"] = this.form.realName;
        }
        console.log(this.serviceData, "serviceData");
        this.serviceLoading = false;
        this.$refs.serviceCrud.refreshTable();
        this.$refs.serviceCrud.doLayout();
        this.serviceSelectionClear();
      });
    },
    serviceSelectionClear() {
      this.serviceSelectionList = [];
src/views/management/peopleDetails.vue
@@ -167,7 +167,7 @@
              </el-form>
            </el-tab-pane>
            <el-tab-pane label="现实表现" name="second">
              <performance></performance>
              <performance :form="form"></performance>
              <!-- <el-table :data="manifestationData" style="width: 100%">
                <el-table-column prop="name" label="姓名" align="center">
                </el-table-column>
@@ -239,7 +239,7 @@
              </el-table> -->
            </el-tab-pane>
            <el-tab-pane label="获取荣誉" name="fourth">
              <honor></honor>
              <honor :form="form"></honor>
              <!-- <el-table :data="honorchData" style="width: 100%">
                <el-table-column prop="name" label="姓名" align="center">
                </el-table-column>
@@ -259,7 +259,7 @@
              </el-table> -->
            </el-tab-pane>
            <el-tab-pane label="培训相关" name="fifth">
              <train></train>
              <train :form="form"></train>
              <!-- <el-table :data="trainData" style="width: 100%">
                <el-table-column prop="rname" label="姓名" align="center">
                </el-table-column>
@@ -296,7 +296,7 @@
              </el-table> -->
            </el-tab-pane>
            <el-tab-pane label="成绩相关" name="sixth">
              <achievement></achievement>
              <achievement :form="form"></achievement>
              <!-- <el-table :data="examinationData" style="width: 100%">
                <el-table-column prop="rname" label="姓名" align="center">
                </el-table-column>
src/views/onSiteInspection/company.vue
@@ -53,11 +53,11 @@
      selectionList: [],
      option: {
        // 操作栏多余按钮去除
        // delBtn: false,
        // editBtn: false,
        // addBtn: false,
        // selection: false,
        // menu: false,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        align: "center",
        height: "auto",
src/views/onSiteInspection/securityStaff.vue
@@ -55,11 +55,11 @@
      selectionList: [],
      option: {
        // 操作栏多余按钮去除
        // delBtn: false,
        // editBtn: false,
        // addBtn: false,
        // selection: false,
        // menu: false,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        align: "center",
        height: "auto",
src/views/qualificationExamination/qualificationExamination.vue
@@ -40,7 +40,8 @@
// } from "@/api/regulatoryInformation/regulatoryInformation";
import { mapGetters } from "vuex";
import { datasing } from "./dataqualificationExamination";
import { getList } from "@/api/qualificationExamination/qualificationExamination";
// import { getList } from "@/api/qualificationExamination/qualificationExamination";
import { getListSecurity } from "@/api/system/user";
export default {
  data() {
@@ -56,11 +57,11 @@
      selectionList: [],
      option: {
        // 操作栏多余按钮去除
        // delBtn: false,
        // editBtn: false,
        // addBtn: false,
        // selection: false,
        // menu: false,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        align: "center",
        height: "auto",
@@ -79,7 +80,7 @@
            overHidden: true,
            // labelWidth: 120,
            // searchLabelWidth: 120,
            // searchSpan: 5,
            // searchSpan: 4,
            // dicUrl:
            //   "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
            // props: {
@@ -97,9 +98,36 @@
            //   },
            // ],
          },
          // {
          //   label: "deptId",
          //   prop: "deptId",
          //   overHidden: true,
          //   // labelWidth: 120,
          //   // searchLabelWidth: 120,
          //   searchSpan: 4,
          //   dicUrl:
          //     "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
          //   props: {
          //     label: "title",
          //     value: "id",
          //   },
          //   // hide: true,
          //   search: true,
          //   // overHidden: true,
          //   type: "select",
          //   // rules: [
          //   //   {
          //   //     required: true,
          //   //     message: "请输入保安公司",
          //   //     trigger: "blur",
          //   //   },
          //   // ],
          // },
          {
            label: "保安姓名",
            prop: "realName",
            search: true,
            searchSpan: 4,
            //     hide: true,
            //     editDisplay: false,
            //     addDisplay: false
@@ -107,7 +135,7 @@
          {
            label: "性别",
            prop: "sex",
            prop: "sexName",
            // type: "select",
            // labelWidth: 120,
            // // display: false,
@@ -122,7 +150,7 @@
          },
          {
            label: "身份证号",
            prop: "carid",
            prop: "cardid",
            // type: "select",
            // labelWidth: 120,
            // // display: false,
@@ -159,7 +187,7 @@
          // },
          {
            label: "审查状态",
            prop: "examination_type",
            prop: "examinationType",
            // overHidden: true,
            // type: "date",
            // format: "yyyy-MM-dd",
@@ -177,7 +205,7 @@
          {
            label: "审查明细",
            prop: "examination_mx",
            prop: "examinationMx",
            // labelWidth: 120,
            // display: false,
          },
@@ -192,6 +220,7 @@
            prop: "reviewTime",
            // labelWidth: 120,
            // display: false,
            hide: true,
          },
          {
            label: "是否在职",
@@ -342,54 +371,55 @@
    refreshChange() {
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      // this.loading = false;
      this.loading = true;
      getListSecurity(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query)
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        console.log(this.data);
        this.loading = false;
        // this.selectionClear();
      });
    },
    // onLoad(page, params = {}) {
    //   // this.loading = false;
    //   this.loading = true;
    //   getList(
    //     page.currentPage,
    //     page.pageSize,
    //     Object.assign(params, this.query)
    //   ).then((res) => {
    //     const data = res.data.data;
    //     this.page.total = data.total;
    //     this.data = data.records;
    //   //   getListJSON().then((res) => {
    //   //   axios
    //   //     .get(
    //   //       "../../api/qualificationExamination/signQualificationExamination.json"
    //   //     )
    //   //     .then((res) => {
    //   // page.currentPage,
    //   // page.pageSize,
    //   // Object.assign(params, this.query)
    //   if (datasing) {
    //     var res = datasing;
    //     console.log(res, "signQualificationExamination");
    //     const data = res.data;
    //     // this.page.total = data.total;
    //     var d = data.records;
    //     for (var k in d) {
    //       d[k].examination_mx = "正常";
    //       d[k].examination_type = "正常";
    //       d[k]["carid"] = "370111198807051124";
    //       d[k]["certificate"] = "拥有";
    //       d[k]["reviewTime"] = "2021-02-21";
    //       d[k]["results"] = "通过";
    //       d[k]["onjob"] = "是";
    //     }
    //     this.data = d;
    //     this.loading = false;
    //     // this.selectionClear();
    //   });
    //   }
    //   // this.selectionClear();
    //   // });
    // },
    onLoad1(page, params = {}) {
      // this.loading = false;
      this.loading = true;
      //   getListJSON().then((res) => {
      //   axios
      //     .get(
      //       "../../api/qualificationExamination/signQualificationExamination.json"
      //     )
      //     .then((res) => {
      // page.currentPage,
      // page.pageSize,
      // Object.assign(params, this.query)
      if (datasing) {
        var res = datasing;
        console.log(res, "signQualificationExamination");
        const data = res.data;
        // this.page.total = data.total;
        var d = data.records;
        for (var k in d) {
          d[k].examination_mx = "正常";
          d[k].examination_type = "正常";
          d[k]["carid"] = "370111198807051124";
          d[k]["certificate"] = "拥有";
          d[k]["reviewTime"] = "2021-02-21";
          d[k]["results"] = "通过";
          d[k]["onjob"] = "是";
        }
        this.data = d;
        this.loading = false;
      }
      // this.selectionClear();
      // });
    },
    // 行单击
    handleRowClick(row) {
src/views/qualificationExamination/signQualificationExamination.vue
@@ -54,11 +54,11 @@
      selectionList: [],
      option: {
        // 操作栏多余按钮去除
        // delBtn: false,
        // editBtn: false,
        // addBtn: false,
        // selection: false,
        // menu: false,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        align: "center",
        height: "auto",
src/views/resource/oss.vue
@@ -108,7 +108,7 @@
        searchShowBtn: false,
        viewBtn: true,
        selection: true,
        menuWidth: 300,
        menuWidth: 400,
        labelWidth: 100,
        dialogWidth: 880,
        dialogClickModal: false,
src/views/securityCompany/companyDetails.vue
@@ -204,7 +204,7 @@
              <staff></staff>
            </el-tab-pane>
            <el-tab-pane label="处罚信息" name="sixth">
              <punish></punish>
              <punish :form="form"></punish>
            </el-tab-pane>
            <el-tab-pane label="服务对象" name="seventh">
              <service></service>
src/views/securityCompany/computents/equipment.vue
@@ -25,6 +25,7 @@
        // 操作栏多余按钮去除
        delBtn: false,
        editBtn: false,
        searchShowBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
@@ -232,7 +233,6 @@
  methods: {
    equipmentOnLoad(page, params = {}) {
      this.equipmentLoading = true;
      console.log("success");
      //   getequipmentList(
      //     page.currentPage,
      //     page.pageSize,
src/views/securityCompany/computents/punish.vue
@@ -18,13 +18,16 @@
</template>
<script>
import { getListPunish } from "@/api/securityCompany/security";
export default {
  props: ["form"],
  data() {
    return {
      punishOption: {
        // 操作栏多余按钮去除
        delBtn: false,
        editBtn: false,
        searchShowBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
@@ -44,46 +47,41 @@
        column: [
          {
            label: "投资人姓名",
            prop: "shareholder",
            slot: true,
            display: false,
            label: "处罚原因",
            prop: "punishreason",
            span: 24,
            labelWidth: 110,
            rules: [
              {
                required: true,
                message: "请输入荣誉名称",
                trigger: "blur",
              },
            ],
          },
          {
            label: "投资比例",
            prop: "shareholdingratio",
            slot: true,
            display: false,
            formatter: function (row, value) {
              return (value = value + "%");
            },
            label: "处罚结果",
            prop: "punishresult",
            span: 24,
            // type: "textarea",
            labelWidth: 110,
          },
          {
            label: "出资金额",
            prop: "capital",
            slot: true,
            display: false,
            formatter: function (row, value) {
              return (value = value + "万元");
            },
            label: "处罚日期",
            prop: "punishtime",
            span: 24,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            // type: "textarea",
            labelWidth: 110,
          },
          {
            label: "投资时间",
            prop: "capitaltime",
            slot: true,
            display: false,
          },
          {
            label: "身份证号",
            prop: "cardid",
            slot: true,
            display: false,
          },
          {
            label: "联系电话",
            prop: "cell",
            slot: true,
            display: false,
            label: "处罚批准文号",
            prop: "punisnum",
            span: 24,
            // type: "textarea",
            labelWidth: 110,
          },
        ],
      },
@@ -102,22 +100,23 @@
  methods: {
    punishOnLoad(page, params = {}) {
      this.punishLoading = true;
      console.log("success");
      //   getpunishList(
      //     page.currentPage,
      //     page.pageSize,
      //     Object.assign(params, this.punishQuery),
      //     this.form.creditcode
      //   ).then((res) => {
      //     const data = res.data.data;
      // console.log(this.form.departmentid);
      getListPunish(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.punishQuery),
        this.form.departmentid
      ).then((res) => {
        const data = res.data.data;
      //     this.punishPage.total = data.total;
      //     this.punishData = data.records;
      this.punishLoading = false;
      //     this.$refs.punishCrud.refreshTable();
      //     this.$refs.punishCrud.doLayout();
      //     this.punishSelectionClear();
      //   });
        this.punishPage.total = data.total;
        this.punishData = data.records;
        console.log(this.punishData);
        this.punishLoading = false;
        this.$refs.punishCrud.refreshTable();
        this.$refs.punishCrud.doLayout();
        this.punishSelectionClear();
      });
    },
    punishSelectionClear() {
      this.punishSelectionList = [];
src/views/securityCompany/computents/service.vue
@@ -25,6 +25,7 @@
        // 操作栏多余按钮去除
        delBtn: false,
        editBtn: false,
        searchShowBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
@@ -102,7 +103,6 @@
  methods: {
    serviceOnLoad(page, params = {}) {
      this.serviceLoading = true;
      console.log("success");
      //   getserviceList(
      //     page.currentPage,
      //     page.pageSize,
src/views/securityCompany/computents/staff.vue
@@ -26,6 +26,7 @@
        delBtn: false,
        editBtn: false,
        addBtn: false,
        searchShowBtn: false,
        selection: false,
        menu: false,
@@ -253,7 +254,6 @@
  methods: {
    staffOnLoad(page, params = {}) {
      this.staffLoading = true;
      console.log("success");
      //   getstaffList(
      //     page.currentPage,
      //     page.pageSize,
src/views/securityCompany/data.js
New file
@@ -0,0 +1,271 @@
var DIC = [
    {
        label: '招聘中',
        value: 1,
    }, {
        label: '停止招聘',
        value: 2,
    }
]
var DIC1 = [
    {
        label: '拥有',
        value: 1,
    }, {
        label: '未拥有',
        value: 2,
    }
]
var w = 160
    , s = 12;
export var column = [
    {
        label: "id",
        prop: "id",
        hide: true,
        editDisplay: false,
        addDisplay: false,
        viewDisplay: false,
    },
    // {
    //     label: "保安单位",
    //     prop: "tenantName",
    //     hide: true,
    //     editDisplay: false,
    //     addDisplay: false
    // },
    // {
    //     label: "保安id",
    //     prop: "deptId",
    //     hide: true,
    //     editDisplay: false,
    //     addDisplay: false,
    //     value: JSON.parse(window.localStorage.getItem("saber-userInfo")).content.dept_id
    // },//上面不显示
    {
        label: "保安公司",
        prop: "deptId",
        rules: [{
            required: true,
            message: "请输入保安公司",
            trigger: "blur"
        }],
        // addDisplay: true,
        // editDisplay: true,
        // viewDisplay: true,
        overHidden: true,
        searchSpan: 4,
        dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        props: {
            label: "title",
            value: "id"
        },
        hide: true,
        // search: true,
        type: "select",
    },
    {
        label: "招聘岗位",
        prop: "name",
        hide: true,
        // search: true,
    },
    {
        label: "招聘人数",
        prop: "number",
        width: 70,
        hide: true,
        // search: true,
    },
    {
        label: "保安证",
        prop: "permit",
        // addDisplay: true,
        // editDisplay: true,
        // viewDisplay: true,
        filter: false,
        type: 'tree',
        dicData: DIC1,
        searchSpan: 4,
        hide: true,
        // dicUrl: "/api/blade-system/dict-biz/dictionary?code=equipage",
        // props: {
        //     label: "dictValue",
        //     value: "dictKey"
        // },
        // search: true,
        // type: "select",
    },
    {
        label: "学历要求",
        prop: "education",
        addDisplay: true,
        editDisplay: true,
        viewDisplay: true,
        searchSpan: 4,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=educationType",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        hide: true,
        // search: true,
        type: "select",
        // rules: [{
        //     required: true,
        //     message: "请选择学历",
        //     trigger: "blur"
        // }],
    },
    {
        label: "工作经验",
        prop: "experience",
        addDisplay: true,
        editDisplay: true,
        viewDisplay: true,
        hide: true,
        searchSpan: 4,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=experienceType",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        // search: true,
        type: "select",
        // rules: [{
        //     required: true,
        //     message: "请选择工作经验",
        //     trigger: "blur"
        // }],
    },
    {
        label: "工作任务",
        prop: "workDesc",
        // search: true,
        // width: 110,
        overHidden: true
    },
    {
        label: "福利",
        prop: "welfare",
        search: true,
        searchSpan: 5,
        overHidden: true
    },
    {
        label: "最低薪资",
        prop: "minSalary",
        width: 100,
        // search: true,
        searchSpan: 4,
    },
    {
        label: "最高薪资",
        prop: "maxSalary",
        width: 100,
        // search: true,
        searchSpan: 4,
    },
    {
        label: "单位性质",
        prop: "unitsNature",
        width: 70,
        addDisplay: true,
        editDisplay: true,
        viewDisplay: true,
        searchSpan: 4,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsNatureType",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        // search: true,
        type: "select",
        // rules: [{
        //     required: false,
        //     message: "请选择单位规模",
        //     trigger: "blur"
        // }],
    },
    {
        label: "单位规模",
        prop: "unitsScale",
        addDisplay: true,
        editDisplay: true,
        viewDisplay: true,
        width: 150,
        searchSpan: 4,
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=unitsScaleType",
        props: {
            label: "dictValue",
            value: "dictKey"
        },
        search: true,
        type: "select",
        // rules: [{
        //     required: true,
        //     message: "请选择单位规模",
        //     trigger: "blur"
        // }],
    },
    {
        label: "联系人",
        prop: "linkman",
        hide: true,
        // search: true,
    },
    {
        label: "联系人电话",
        prop: "phone",
        hide: true,
        // search: true,
        width: 110,
    },
    {
        label: "详细地址",
        prop: "address",
        width: 110,
        // search: true,
        hide: true,
        overHidden: true
    },
    {
        label: "开始时间",
        prop: "startTime",
        // search: true,
        hide: true,
        type: "date",
        format: "yyyy-MM-dd hh:mm:ss",
        valueFormat: "yyyy-MM-dd hh:mm:ss",
        width: 88,
    },
    {
        label: "结束时间",
        prop: "endTime",
        // search: true,
        hide: true,
        type: "date",
        format: "yyyy-MM-dd hh:mm:ss",
        valueFormat: "yyyy-MM-dd hh:mm:ss",
        width: 88,
    },
    {
        label: "招聘状态",
        // prop: "status",
        // search: true,
        // searchSpan: 4,
        width: 70,
        prop: 'status',
        hide: true,
        filter: false,
        type: 'tree',
        dicData: DIC,
        // rules: [{
        //     required: true,
        //     message: "请选择单位规模",
        //     trigger: "blur"
        // }],
    },
]
src/views/securityCompany/regulatoryInformation.vue
New file
@@ -0,0 +1,359 @@
/*
 * @Author: Morpheus
 * @Date: 2021-07-07 17:30:05
 * @Last Modified by: Morpheus
 * @Last Modified time: 2021-07-10 16:06:14
 * menu-name 监管信息
 */
<template>
  <basic-container class="regulatoryInformation">
    <avue-crud
      :option="option"
      :table-loading="loading"
      :data="data"
      :page.sync="page"
      :permission="permissionList"
      v-model="form"
      ref="crud"
      @row-update="rowUpdates"
      @row-save="rowSave"
      @row-del="rowDel"
      @search-change="searchChange"
      @search-reset="searchReset"
      @selection-change="selectionChange"
      @current-change="currentChange"
      @size-change="sizeChange"
      @refresh-change="refreshChange"
      @on-load="onLoad"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
import {
  getList,
  getDetail,
  adddata,
  update,
  remove,
} from "@/api/regulatoryInformation/regulatoryInformation";
import { mapGetters } from "vuex";
export default {
  data() {
    var dic = [
      {
        label: "警告",
        value: "0",
      },
      {
        label: "罚款",
        value: "1",
      },
      {
        label: "没收违法所得",
        value: "2",
      },
      {
        label: "没收非法财物",
        value: "3",
      },
      {
        label: "责令停止施工",
        value: "4",
      },
      {
        label: "责令停止使用",
        value: "5",
      },
      {
        label: "责令停止违法行为",
        value: "6",
      },
      {
        label: "责令停业",
        value: "7",
      },
    ];
    return {
      form: {},
      query: {},
      loading: true,
      page: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      selectionList: [],
      option: {
        // 操作栏多余按钮去除
        // delBtn: false,
        // editBtn: false,
        // addBtn: false,
        // selection: false,
        // menu: false,
        align: "center",
        height: "auto",
        calcHeight: 30,
        tip: false,
        searchShow: true,
        searchMenuSpan: 6,
        searchShowBtn: false,
        index: true,
        viewBtn: true,
        dialogClickModal: false,
        column: [
          {
            label: "保安公司",
            prop: "deptid",
            labelWidth: 120,
            searchLabelWidth: 120,
            searchSpan: 5,
            dicUrl:
              "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
            props: {
              label: "title",
              value: "id",
            },
            search: true,
            overHidden: true,
            type: "select",
            rules: [
              {
                required: true,
                message: "请输入保安公司",
                trigger: "blur",
              },
            ],
          },
          {
            label: "处罚类型",
            prop: "punishtype",
            type: "select",
            labelWidth: 120,
            // display: false,
            dicData: dic,
            // props: {
            //   label: "label",
            //   value: "value",
            // },
            searchSpan: 5,
            search: true,
            width: 120,
          },
          {
            label: "处罚原因",
            prop: "punishreason",
            // display: false,
            labelWidth: 120,
            width: 200,
          },
          {
            label: "处罚结果",
            prop: "punishresult",
            // display: false,
            width: 200,
            labelWidth: 120,
            overHidden: true,
          },
          {
            label: "处罚日期",
            prop: "punishtime",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            mock: {
              type: "datetime",
              labelWidth: 120,
              format: "yyyy-MM-dd",
            },
            // search: true,
            searchSpan: 4,
            // display: false,
            width: 180,
          },
          {
            label: "处罚批准文号",
            prop: "punisnum",
            labelWidth: 120,
            // display: false,
          },
        ],
        // group: [
        //   {
        //     label: "详细信息",
        //     prop: "baseInfo",
        //     icon: "el-icon-user-solid",
        //     column: [
        //       {
        //         label: "公司名称",
        //         prop: "enterprisename",
        //         display: false,
        //       },
        //     ],
        //   },
        //   {
        //     label: "详细信息",
        //     prop: "detailInfo",
        //     icon: "el-icon-s-order",
        //     column: [],
        //   },
        //   {
        //     label: "职责信息",
        //     prop: "dutyInfo",
        //     icon: "el-icon-s-custom",
        //     column: [],
        //   },
        // ],
      },
      data: [
        // {
        //   deptid: "江西众泰保安公司",
        //   punishtype: 2,
        //   punishreason: "非法施工",
        //   punishresult: "没收全部非法所得财产,并罚款3W元",
        //   punishtime: "2021-01-01",
        //   punisnum: 110110110120,
        // },
      ],
    };
  },
  computed: {
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.post_add, false),
        viewBtn: this.vaildData(this.permission.post_view, false),
        delBtn: this.vaildData(this.permission.post_delete, false),
        editBtn: this.vaildData(this.permission.post_edit, false),
      };
    },
    ids() {
      let ids = [];
      this.selectionList.forEach((ele) => {
        ids.push(ele.id);
      });
      return ids.join(",");
    },
  },
  methods: {
    rowSave(row, done, loading) {
      adddata(row).then(
        () => {
          this.onLoad(this.page);
          this.$message({
            type: "success",
            message: "操作成功!",
          });
          done();
        },
        (error) => {
          window.console.log(error);
          loading();
        }
      );
    },
    rowUpdates(row, index, done, loading) {
      // console.log(42342);
      update(row).then(
        () => {
          this.onLoad(this.page);
          this.$message({
            type: "success",
            message: "操作成功!",
          });
          done();
        },
        (error) => {
          window.console.log(error);
          loading();
        }
      );
    },
    rowDel(row) {
      this.$confirm("确定将选择数据删除?", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning",
      })
        .then(() => {
          return remove(row.id);
        })
        .then(() => {
          this.onLoad(this.page);
          this.$message({
            type: "success",
            message: "操作成功!",
          });
        });
    },
    // beforeOpen(done, type) {
    //   if (["edit", "view"].includes(type)) {
    //     getDetail(this.form.id).then((res) => {
    //       this.form = res.data.data;
    //     });
    //   }
    //   done();
    // },
    searchReset() {
      this.query = {};
      this.onLoad(this.page);
    },
    searchChange(params, done) {
      this.query = params;
      this.page.currentPage = 1;
      this.onLoad(this.page, params);
      done();
    },
    selectionChange(list) {
      this.selectionList = list;
    },
    selectionClear() {
      this.selectionList = [];
      this.$refs.crud.toggleSelection();
    },
    currentChange(currentPage) {
      this.page.currentPage = currentPage;
    },
    sizeChange(pageSize) {
      this.page.pageSize = pageSize;
    },
    refreshChange() {
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      // this.loading = false;
      this.loading = true;
      getList(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query)
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        this.loading = false;
        // this.selectionClear();
      });
    },
    // 行单击
    handleRowClick(row) {
      // delete (row["name"]);
      var obj = row;
      obj["name"] = "保安公司详细资料";
      this.$router.push({
        path: `/securityCompany/index`,
        query: obj,
      });
    },
  },
};
</script>
<style>
</style>
src/views/securityCompany/security.vue
@@ -72,9 +72,6 @@
    </el-dialog>
  </basic-container>
</template>
        </avue-crud>
    </basic-container>
</template>
<script>
import {
@@ -83,6 +80,7 @@
  add,
  update,
  remove,
  savePunish,
} from "@/api/securityCompany/security";
import { mapGetters } from "vuex";
@@ -107,7 +105,7 @@
          },
          {
            label: "处罚原因",
            prop: "sex",
            prop: "punishreason",
            span: 24,
            labelWidth: 110,
            rules: [
@@ -119,10 +117,27 @@
            ],
          },
          {
            label: "处罚内容",
            prop: "sex1",
            label: "处罚结果",
            prop: "punishresult",
            span: 24,
            type: "textarea",
            // type: "textarea",
            labelWidth: 110,
          },
          {
            label: "处罚日期",
            prop: "punishtime",
            span: 24,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            // type: "textarea",
            labelWidth: 110,
          },
          {
            label: "处罚批准文号",
            prop: "punisnum",
            span: 24,
            // type: "textarea",
            labelWidth: 110,
          },
          //   {
@@ -216,6 +231,7 @@
            label: "注册地址",
            prop: "address",
            display: false,
            overHidden: true,
            width: 200,
          },
        ],
@@ -270,12 +286,19 @@
  methods: {
    close(row) {
      this.dialogVisible = false;
      this.objf = {};
    },
    submit(form, done) {
      this.$message.success(JSON.stringify(form));
    submitf(form, done) {
      console.log(form);
      savePunish(form).then((res) => {
        console.log(res);
      });
      // this.$message.success(JSON.stringify(form));
      done();
      this.dialogVisible = false;
      this.objf = {};
    },
    error(err) {
    errorf(err) {
      this.$message.success("请查看控制台");
      console.log(err);
    },
@@ -287,6 +310,7 @@
      //打开处罚
      // console.log(row);
      this.objf = {
        deptid: row.departmentid,
        enterprisename: row.enterprisename,
      };
      this.dialogVisible = true;
@@ -379,12 +403,12 @@
      getList(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query),
        2
        Object.assign(params, this.query)
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        console.log(this.data);
        this.loading = false;
        this.selectionClear();
      });
src/views/securityGuardManagement/dispatchChildoperable.vue
@@ -104,6 +104,8 @@
        // card: true,
        tip: false,
        index: true,
        addBtn: false,
        menu: false,
        searchShowBtn: false,
        searchSize: "mini",
src/views/securityGuardManagement/register.vue
@@ -7,7 +7,7 @@
 */
<template>
  <div>
    <el-row>
    <el-row class="registersss">
      <el-col :span="3">
        <div class="box">
          <el-scrollbar>
@@ -21,7 +21,7 @@
          </el-scrollbar>
        </div>
      </el-col>
      <el-col :span="21" class="registersss">
      <el-col :span="21">
        <basic-container>
          <avue-crud
            :option="option"
@@ -152,6 +152,7 @@
import { mapGetters } from "vuex";
import website from "@/config/website";
import { getToken } from "@/util/auth";
import { addhonor } from "@/api/register/honor";
export default {
  data() {
@@ -176,10 +177,11 @@
      optionf: {
        column: [
          {
            label: "身份证号码",
            prop: "cardid",
            label: "保安员名称",
            prop: "name",
            span: 24,
            labelWidth: 110,
            disabled: true,
            rules: [
              {
                required: true,
@@ -189,30 +191,34 @@
            ],
          },
          {
            label: "荣誉名称",
            prop: "sex",
            label: "身份证号码",
            prop: "cardid",
            span: 24,
            labelWidth: 110,
            disabled: true,
            rules: [
              {
                required: true,
                message: "请输入荣誉名称",
                message: "请输入身份证号码",
                trigger: "blur",
              },
            ],
          },
          {
            label: "荣誉内容",
            prop: "sex1",
            prop: "honor",
            span: 24,
            type: "textarea",
            labelWidth: 110,
          },
          {
            label: "授予单位名称",
            prop: "sex2",
            label: "获取时间",
            prop: "honortime",
            span: 24,
            labelWidth: 110,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
          },
        ],
      },
@@ -328,9 +334,9 @@
            label: "保安证编号",
            prop: "securitynumber",
            display: false,
            searchSpan: 4,
            searchSpan: 5,
            searchLabelWidth: 110,
            search: true,
            // search: true,
          },
          {
            label: "身份证号",
@@ -395,7 +401,7 @@
            prop: "status",
            type: "select",
            search: true,
            searchSpan: 3,
            searchSpan: 4,
            dicData: [
              {
                label: "否",
@@ -415,7 +421,7 @@
            prop: "hold",
            type: "select",
            search: true,
            searchSpan: 3,
            searchSpan: 4,
            dicData: [
              {
                label: "是",
@@ -762,13 +768,20 @@
  },
  methods: {
    close(row) {
      this.objf = {};
      this.dialogVisible = false;
    },
    submit(form, done) {
      this.$message.success(JSON.stringify(form));
    submitf(form, done) {
      console.log(form);
      // this.$message.success(JSON.stringify(form));
      addhonor(form).then((res) => {
        console.log(res);
      });
      this.objf = {};
      this.dialogVisible = false;
      done();
    },
    error(err) {
    errorf(err) {
      this.$message.success("请查看控制台");
      console.log(err);
    },
@@ -777,10 +790,14 @@
      done();
    },
    honor(row) {
      this.objf = {};
      //打开荣誉录入
      // console.log(row);
      console.log(this.objf);
      this.objf = {
        cardid: row.cardid,
        name: row.name,
        honor: "",
        honortime: "",
      };
      this.dialogVisible = true;
    },
@@ -895,6 +912,7 @@
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        console.log(this.data);
        this.loading = false;
        this.selectionClear();
      });
src/views/securityUnitOperation/economicTable.vue
@@ -92,37 +92,6 @@
  name: "公司经济情况智能分析详情表",
  data() {
    return {
      pickerOptions: {
        shortcuts: [
          {
            text: "最近一周",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", [start, end]);
            }
          },
          {
            text: "最近一个月",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
              picker.$emit("pick", [start, end]);
            }
          },
          {
            text: "最近三个月",
            onClick(picker) {
              const end = new Date();
              const start = new Date();
              start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
              picker.$emit("pick", [start, end]);
            }
          }
        ]
      },
      value1: "",
      value2: "",
      tableData: [
@@ -130,37 +99,37 @@
          company: "江西省永安保安服务有限公司",
          subOffice: "南昌市公安局",
          time: "2021-06-1",
          sbjnrs: "12200",
          sbjnze: "400",
          sbjnrs: "2100",
          sbjnze: "350",
          gspqrs: "110",
          sbjnrszb: "10",
          bz: ""
          bz: "",
        },
        {
          company: "南昌市赣水保安服务有限公司",
          subOffice: "东湖分局",
          time: "2020-05-21",
          sbjnrs: "12200",
          sbjnze: "400",
          gspqrs: "110",
          sbjnrszb: "10",
          bz: ""
          sbjnrs: "1800",
          sbjnze: "310",
          gspqrs: "160",
          sbjnrszb: "21",
          bz: "",
        },
        {
          company: "江西中业兴达保安服务有限公司",
          subOffice: "西湖分局",
          time: "2021-08-11",
          sbjnrs: "12200",
          sbjnze: "400",
          gspqrs: "110",
          sbjnrszb: "10",
          bz: ""
        }
          sbjnrs: "2300",
          sbjnze: "612",
          gspqrs: "80",
          sbjnrszb: "7",
          bz: "",
        },
      ],
      tablePage: {
        pageSize: 10,
        currentPage: 1,
        total: 0
        total: 0,
      },
      tableOption: {
        excelBtn: true,
@@ -174,6 +143,7 @@
        height: "auto",
        calcHeight: 30,
        tip: false,
        searchShowBtn: false,
        searchShow: true,
        searchMenuSpan: 6,
        index: true,
@@ -190,40 +160,47 @@
            type: "select",
            props: {
              label: "label",
              value: "value"
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "全部"
                label: "全部",
              },
              {
                value: "1",
                label: "社保缴纳人数"
                label: "社保缴纳人数",
              },
              {
                value: "2",
                label: "社保缴纳总额"
                label: "社保缴纳总额",
              },
              {
                value: "3",
                label: "公司派遣人数"
                label: "公司派遣人数",
              },
              {
                value: "4",
                label: "社保缴纳人数占比"
              }
                label: "社保缴纳人数占比",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择类别",
                trigger: "blur"
              }
            ]
                trigger: "blur",
              },
            ],
          },
          {
            label: "公司名称",
            prop: "company",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "所属辖区",
@@ -232,40 +209,40 @@
            type: "select",
            props: {
              label: "label",
              value: "value"
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "南昌市公安局"
                label: "南昌市公安局",
              },
              {
                value: "2",
                label: "东湖分局"
                label: "东湖分局",
              },
              {
                value: "3",
                label: "西湖分局"
                label: "西湖分局",
              },
              {
                value: "4",
                label: "青云谱分局"
                label: "青云谱分局",
              },
              {
                value: "5",
                label: "青山湖分局"
              }
                label: "青山湖分局",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "blur"
              }
            ]
                trigger: "blur",
              },
            ],
          },
          {
            label: "时间",
@@ -276,90 +253,82 @@
            searchSpan: 6,
            searchRange: true,
            search: true,
            display: false
            display: false,
          },
          {
            label: "公司名称",
            prop: "company",
            search: true,
            searchSpan: 4,
            display: false
          },
          {
            label: "社保缴纳人数",
            prop: "sbjnrs",
            display: false
            display: false,
          },
          {
            label: "社保缴纳总额(万)",
            prop: "sbjnze",
            display: false
            display: false,
          },
          {
            label: "公司派遣人数",
            prop: "gspqrs",
            display: false
            display: false,
          },
          {
            label: "社保缴纳人数占比(%)",
            prop: "sbjnrszb",
            display: false
            display: false,
          },
          {
            label: "备注",
            prop: "bz",
            display: false
          }
        ]
            display: false,
          },
        ],
      },
      typeValue: "0",
      typeOptions: [
        {
          value: "0",
          label: "全部"
          label: "全部",
        },
        {
          value: "1",
          label: "社保缴纳人数"
          label: "社保缴纳人数",
        },
        {
          value: "2",
          label: "社保缴纳总额"
          label: "社保缴纳总额",
        },
        {
          value: "3",
          label: "公司派遣人数"
          label: "公司派遣人数",
        },
        {
          value: "4",
          label: "社保缴纳人数占比"
        }
          label: "社保缴纳人数占比",
        },
      ],
      subofficeValue: "0",
      subofficeOptions: [
        {
          value: "0",
          label: "南昌市公安局"
          label: "南昌市公安局",
        },
        {
          value: "2",
          label: "东湖分局"
          label: "东湖分局",
        },
        {
          value: "3",
          label: "西湖分局"
          label: "西湖分局",
        },
        {
          value: "4",
          label: "青云谱分局"
          label: "青云谱分局",
        },
        {
          value: "5",
          label: "青山湖分局"
        }
          label: "青山湖分局",
        },
      ],
      companyName: ""
      companyName: "",
    };
  },
  computed: {
@@ -369,12 +338,12 @@
        addBtn: this.vaildData(this.permission.post_add, false),
        viewBtn: this.vaildData(this.permission.post_view, false),
        delBtn: this.vaildData(this.permission.post_delete, false),
        editBtn: this.vaildData(this.permission.post_edit, false)
        editBtn: this.vaildData(this.permission.post_edit, false),
      };
    }
    },
  },
  methods: {
    dateChange() {}
    dateChange() {},
    // downExcel() {
    //   let et = XLSX.utils.table_to_book(document.getElementById("table"));
    //   let etout = XLSX.write(et, {
@@ -395,7 +364,7 @@
    //   return etout;
    // }
  },
  mounted() {}
  mounted() {},
};
</script>
<style lang="scss" scoped>
src/views/securityUnitOperation/operationAnalysis.vue
@@ -114,65 +114,65 @@
      options0: [
        {
          value: "2012",
          label: "2012年"
          label: "2012年",
        },
        {
          value: "2011",
          label: "2011年"
          label: "2011年",
        },
        {
          value: "2010",
          label: "2010年"
          label: "2010年",
        },
        {
          value: "2009",
          label: "2009年"
          label: "2009年",
        },
        {
          value: "2008",
          label: "2008年"
          label: "2008年",
        },
        {
          value: "2007",
          label: "2007年"
        }
          label: "2007年",
        },
      ],
      options1: [
        {
          value: "1",
          label: "南昌市公安局"
          label: "南昌市公安局",
        },
        {
          value: "2",
          label: "东湖分局"
          label: "东湖分局",
        },
        {
          value: "3",
          label: "西湖分局"
          label: "西湖分局",
        },
        {
          value: "4",
          label: "青云谱分局"
          label: "青云谱分局",
        },
        {
          value: "5",
          label: "青山湖分局"
        }
          label: "青山湖分局",
        },
      ],
      options2: [
        {
          value: "1",
          label: "江西省永安保安服务有限公司"
          label: "江西省永安保安服务有限公司",
        },
        {
          value: "2",
          label: "南昌市赣水保安服务有限公司"
          label: "南昌市赣水保安服务有限公司",
        },
        {
          value: "3",
          label: "江西中业兴达保安服务有限公司"
        }
      ]
          label: "江西中业兴达保安服务有限公司",
        },
      ],
    };
  },
  methods: {
@@ -191,11 +191,11 @@
    },
    toOperationTable() {
      this.$router.push({ path: "/securityUnitOperation/operationTable" });
    }
    },
  },
  mounted() {
    this.setEchart();
  }
  },
};
</script>
<style lang="scss" scoped>
src/views/securityUnitOperation/operationTable.vue
File was deleted
src/views/statisticalQueryManagement/businessStatistics.vue
New file
@@ -0,0 +1,169 @@
<template>
  <basic-container>
    <avue-crud
      :option="tableOption"
      :data="tableData"
      :page.sync="tablePage"
      :permission="permissionList"
      :before-open="beforeOpen"
      @date-change="dateChange"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
import FileSaver from "file-saver";
import XLSX from "xlsx";
import { mapGetters } from "vuex";
export default {
  name: "业务情况统计",
  data() {
    return {
      value1: "",
      value2: "",
      tableData: [
        {
          company: "江西省永安保安服务有限公司",
          subOffice: "南昌市公安局",
          customer: "76",
          num: "1124",
        },
        {
          company: "南昌市赣水保安服务有限公司",
          subOffice: "东湖分局",
          customer: "85",
          num: "1428",
        },
        {
          company: "江西中业兴达保安服务有限公司",
          subOffice: "西湖分局",
          customer: "46",
          num: "974",
        },
      ],
      tablePage: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      tableOption: {
        excelBtn: true,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        // dateBtn: true,
        align: "center",
        height: "auto",
        calcHeight: 30,
        tip: false,
        searchShowBtn: false,
        searchShow: true,
        searchMenuSpan: 6,
        index: true,
        viewBtn: true,
        dialogClickModal: false,
        column: [
          {
            label: "公司名称",
            prop: "company",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "所属辖区",
            prop: "subOffice",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "南昌市公安局",
              },
              {
                value: "2",
                label: "东湖分局",
              },
              {
                value: "3",
                label: "西湖分局",
              },
              {
                value: "4",
                label: "青云谱分局",
              },
              {
                value: "5",
                label: "青山湖分局",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "blur",
              },
            ],
          },
          {
            label: "服务对象数量",
            prop: "customer",
            display: false,
          },
          {
            label: "保安员人数",
            prop: "num",
            display: false,
          },
        ],
      },
    };
  },
  computed: {
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.post_add, false),
        viewBtn: this.vaildData(this.permission.post_view, false),
        delBtn: this.vaildData(this.permission.post_delete, false),
        editBtn: this.vaildData(this.permission.post_edit, false),
      };
    },
  },
  methods: {
    dateChange() {},
    // downExcel() {
    //   let et = XLSX.utils.table_to_book(document.getElementById("table"));
    //   let etout = XLSX.write(et, {
    //     bookType: "xlsx",
    //     bookSST: true,
    //     type: "array"
    //   });
    //   try {
    //     FileSaver.saveAs(
    //       new Blob([etout], {
    //         type: "application/octet-stream"
    //       }),
    //       `表.xlsx`
    //     ); //导出的文件名
    //   } catch (e) {
    //     console.log(e, etout);
    //   }
    //   return etout;
    // }
  },
  mounted() {},
};
</script>
<style lang="scss" scoped>
</style>
src/views/statisticalQueryManagement/businessStatisticsDetail.vue
New file
@@ -0,0 +1,253 @@
<template>
  <basic-container>
    <avue-crud
      :option="tableOption"
      :data="tableData"
      :page.sync="tablePage"
      :permission="permissionList"
      :before-open="beforeOpen"
      @date-change="dateChange"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
import FileSaver from "file-saver";
import XLSX from "xlsx";
import { mapGetters } from "vuex";
export default {
  name: "业务情况统计",
  data() {
    return {
      value1: "",
      value2: "",
      tableData: [
        {
          company: "江西省永安保安服务有限公司",
          subOffice: "南昌市公安局",
          customerName: "南昌市幼儿园",
          num: "7",
          status: "正在服务",
        },
        {
          company: "南昌市赣水保安服务有限公司",
          subOffice: "东湖分局",
          customerName: "南昌市第一人民医院",
          num: "32",
          status: "已完成",
        },
        {
          company: "江西中业兴达保安服务有限公司",
          subOffice: "西湖分局",
          customerName: "南昌市动物园",
          num: "12",
          status: "未下单",
        },
      ],
      tablePage: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      tableOption: {
        excelBtn: true,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        // dateBtn: true,
        align: "center",
        height: "auto",
        calcHeight: 30,
        tip: false,
        searchShowBtn: false,
        searchShow: true,
        searchMenuSpan: 6,
        index: true,
        viewBtn: true,
        dialogClickModal: false,
        column: [
          {
            label: "公司名称",
            prop: "company",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "所属辖区",
            prop: "subOffice",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "南昌市公安局",
              },
              {
                value: "2",
                label: "东湖分局",
              },
              {
                value: "3",
                label: "西湖分局",
              },
              {
                value: "4",
                label: "青云谱分局",
              },
              {
                value: "5",
                label: "青山湖分局",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "blur",
              },
            ],
          },
          {
            label: "服务单位名称",
            prop: "customerName",
            display: false,
          },
          {
            label: "保安人数",
            prop: "num",
            display: false,
          },
          {
            label: "服务状态",
            prop: "status",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "已完成",
              },
              {
                value: "2",
                label: "正在服务",
              },
              {
                value: "3",
                label: "未下单",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择服务状态",
                trigger: "blur",
              },
            ],
          },
        ],
      },
      typeValue: "0",
      typeOptions: [
        {
          value: "0",
          label: "全部",
        },
        {
          value: "1",
          label: "社保缴纳人数",
        },
        {
          value: "2",
          label: "社保缴纳总额",
        },
        {
          value: "3",
          label: "公司派遣人数",
        },
        {
          value: "4",
          label: "社保缴纳人数占比",
        },
      ],
      subofficeValue: "0",
      subofficeOptions: [
        {
          value: "0",
          label: "南昌市公安局",
        },
        {
          value: "2",
          label: "东湖分局",
        },
        {
          value: "3",
          label: "西湖分局",
        },
        {
          value: "4",
          label: "青云谱分局",
        },
        {
          value: "5",
          label: "青山湖分局",
        },
      ],
      companyName: "",
    };
  },
  computed: {
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.post_add, false),
        viewBtn: this.vaildData(this.permission.post_view, false),
        delBtn: this.vaildData(this.permission.post_delete, false),
        editBtn: this.vaildData(this.permission.post_edit, false),
      };
    },
  },
  methods: {
    dateChange() {},
    // downExcel() {
    //   let et = XLSX.utils.table_to_book(document.getElementById("table"));
    //   let etout = XLSX.write(et, {
    //     bookType: "xlsx",
    //     bookSST: true,
    //     type: "array"
    //   });
    //   try {
    //     FileSaver.saveAs(
    //       new Blob([etout], {
    //         type: "application/octet-stream"
    //       }),
    //       `表.xlsx`
    //     ); //导出的文件名
    //   } catch (e) {
    //     console.log(e, etout);
    //   }
    //   return etout;
    // }
  },
  mounted() {},
};
</script>
<style lang="scss" scoped>
</style>
src/views/statisticalQueryManagement/companyDetails.vue
New file
@@ -0,0 +1,331 @@
<template>
  <basic-container>
    <avue-crud
      :option="tableOption"
      :data="tableData"
      :page.sync="tablePage"
      :permission="permissionList"
      :before-open="beforeOpen"
      @date-change="dateChange"
    >
    </avue-crud>
  </basic-container>
</template>
<script>
import FileSaver from "file-saver";
import XLSX from "xlsx";
import { mapGetters } from "vuex";
export default {
  name: "公司人员详情",
  data() {
    return {
      value1: "",
      value2: "",
      tableData: [
        {
          name: "张强",
          No: "NO.2143",
          idNumber: "230229187623601221",
          tel: "13728198762",
          holder: "是",
          socialSecurity: "是",
          picture: "是",
          qualification: "通过",
          pass: "是",
          send: "是",
        },
        {
          name: "张强",
          No: "NO.2143",
          idNumber: "230229187623601221",
          tel: "13728198762",
          holder: "是",
          socialSecurity: "是",
          picture: "是",
          qualification: "通过",
          pass: "是",
          send: "是",
        },
        {
          name: "张强",
          No: "NO.2143",
          idNumber: "230229187623601221",
          tel: "13728198762",
          holder: "是",
          socialSecurity: "是",
          picture: "是",
          qualification: "通过",
          pass: "是",
          send: "是",
        },
      ],
      tablePage: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      tableOption: {
        excelBtn: true,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        // dateBtn: true,
        align: "center",
        height: "auto",
        calcHeight: 90,
        tip: false,
        searchShowBtn: false,
        searchShow: true,
        searchMenuSpan: 6,
        index: true,
        viewBtn: true,
        dialogClickModal: false,
        column: [
          {
            label: "保安员姓名",
            searchLabelWidth: 110,
            prop: "name",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "保安员编号",
            prop: "No",
            display: false,
          },
          {
            label: "身份证号",
            prop: "idNumber",
            display: false,
          },
          {
            label: "联系电话",
            prop: "tel",
            display: false,
          },
          {
            label: "是否持证",
            prop: "holder",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "是",
              },
              {
                value: "2",
                label: "否",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择是否持证",
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否缴纳社保",
            //  labelWidth: 120,
            searchLabelWidth: 110,
            prop: "socialSecurity",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            dicData: [
              {
                value: "0",
                label: "是",
              },
              {
                value: "2",
                label: "否",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择是否缴纳社保",
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否已采集照片",
            searchLabelWidth: 120,
            prop: "picture",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            dicData: [
              {
                value: "0",
                label: "是",
              },
              {
                value: "2",
                label: "否",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择是否已采集照片",
                trigger: "blur",
              },
            ],
          },
          {
            label: "资格审查情况",
            searchLabelWidth: 110,
            prop: "qualification",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            dicData: [
              {
                value: "0",
                label: "通过",
              },
              {
                value: "2",
                label: "异常",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择资格审查情况",
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否通过考试",
            searchLabelWidth: 110,
            prop: "pass",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            dicData: [
              {
                value: "0",
                label: "是",
              },
              {
                value: "2",
                label: "否",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择是否通过考试",
                trigger: "blur",
              },
            ],
          },
          {
            label: "是否派遣",
            prop: "send",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            dicData: [
              {
                value: "0",
                label: "是",
              },
              {
                value: "2",
                label: "否",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择是否派遣",
                trigger: "blur",
              },
            ],
          },
        ],
      },
      companyName: "",
    };
  },
  computed: {
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.post_add, false),
        viewBtn: this.vaildData(this.permission.post_view, false),
        delBtn: this.vaildData(this.permission.post_delete, false),
        editBtn: this.vaildData(this.permission.post_edit, false),
      };
    },
  },
  methods: {
    dateChange() {},
    // downExcel() {
    //   let et = XLSX.utils.table_to_book(document.getElementById("table"));
    //   let etout = XLSX.write(et, {
    //     bookType: "xlsx",
    //     bookSST: true,
    //     type: "array"
    //   });
    //   try {
    //     FileSaver.saveAs(
    //       new Blob([etout], {
    //         type: "application/octet-stream"
    //       }),
    //       `表.xlsx`
    //     ); //导出的文件名
    //   } catch (e) {
    //     console.log(e, etout);
    //   }
    //   return etout;
    // }
  },
  mounted() {},
};
</script>
<style lang="scss" scoped>
/deep/ .avue-crud__menu {
  height: 130px !important;
}
</style>
src/views/statisticalQueryManagement/securityGuardStatistics.vue
New file
@@ -0,0 +1,231 @@
<template>
  <basic-container>
    <avue-crud
      :option="tableOption"
      :data="tableData"
      :page.sync="tablePage"
      :permission="permissionList"
      :before-open="beforeOpen"
      @date-change="dateChange"
      @row-click="handleRowClick"
    >
      <template slot-scope="{ type, size }" slot="menu">
        <el-button icon="el-icon-check" :size="size" :type="type"
          >自定义菜单按钮</el-button
        >
      </template>
    </avue-crud>
  </basic-container>
</template>
<script>
import FileSaver from "file-saver";
import XLSX from "xlsx";
import { mapGetters } from "vuex";
export default {
  name: "业务情况统计",
  data() {
    return {
      value1: "",
      value2: "",
      tableData: [
        {
          company: "江西省永安保安服务有限公司",
          subOffice: "东湖分局",
          total: "21540",
          holder: "21520",
          nosend: "10200",
          send: "1320",
          nopicture: "314",
          qualification: "142",
          pass: "21120",
          socialSecurity: "21535",
        },
        {
          company: "南昌市赣水保安服务有限公司",
          subOffice: "东湖分局",
          total: "21540",
          holder: "21520",
          nosend: "10200",
          send: "1320",
          nopicture: "314",
          qualification: "142",
          pass: "21120",
          socialSecurity: "21535",
        },
        {
          company: "江西中业兴达保安服务有限公司",
          subOffice: "东湖分局",
          total: "21540",
          holder: "21520",
          nosend: "10200",
          send: "1320",
          nopicture: "314",
          qualification: "142",
          pass: "21120",
          socialSecurity: "21535",
        },
      ],
      tablePage: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      tableOption: {
        align: "center",
        viewBtn: true,
        excelBtn: true,
        delBtn: false,
        editBtn: false,
        addBtn: false,
        selection: false,
        menu: false,
        // dateBtn: true,
        height: "auto",
        menuWidth: 380,
        calcHeight: 30,
        tip: false,
        searchShowBtn: false,
        searchShow: true,
        searchMenuSpan: 6,
        index: true,
        dialogClickModal: false,
        column: [
          {
            label: "公司名称",
            prop: "company",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "所属辖区",
            prop: "subOffice",
            searchSpan: 4,
            type: "select",
            props: {
              label: "label",
              value: "value",
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [
              {
                value: "0",
                label: "南昌市公安局",
              },
              {
                value: "2",
                label: "东湖分局",
              },
              {
                value: "3",
                label: "西湖分局",
              },
              {
                value: "4",
                label: "青云谱分局",
              },
              {
                value: "5",
                label: "青山湖分局",
              },
            ],
            search: true,
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "blur",
              },
            ],
          },
          {
            label: "保安员总数",
            prop: "total",
            display: false,
          },
          {
            label: "持证上岗人数",
            prop: "holder",
            display: false,
          },
          {
            label: "未派遣人数",
            prop: "nosend",
            display: false,
          },
          {
            label: "派遣人数",
            prop: "send",
            display: false,
          },
          {
            label: "未采集照片人数",
            prop: "nopicture",
            display: false,
          },
          {
            label: "资格审查异常人数",
            prop: "qualification",
            display: false,
          },
          {
            label: "过考保安人数",
            prop: "pass",
            display: false,
          },
          {
            label: "缴纳社保人数",
            prop: "socialSecurity",
            display: false,
          },
        ],
      },
      companyName: "",
    };
  },
  computed: {
    ...mapGetters(["permission"]),
    permissionList() {
      return {
        addBtn: this.vaildData(this.permission.post_add, false),
        viewBtn: this.vaildData(this.permission.post_view, false),
        delBtn: this.vaildData(this.permission.post_delete, false),
        editBtn: this.vaildData(this.permission.post_edit, false),
      };
    },
  },
  methods: {
    toCompanyDetails() {
      this.$router.push({ path: "/statisticalQueryManagement/companyDetails" });
    },
    handleRowClick(row, event, column) {
      this.$router.push({ path: "/statisticalQueryManagement/companyDetails" });
    },
    dateChange() {},
    // downExcel() {
    //   let et = XLSX.utils.table_to_book(document.getElementById("table"));
    //   let etout = XLSX.write(et, {
    //     bookType: "xlsx",
    //     bookSST: true,
    //     type: "array"
    //   });
    //   try {
    //     FileSaver.saveAs(
    //       new Blob([etout], {
    //         type: "application/octet-stream"
    //       }),
    //       `表.xlsx`
    //     ); //导出的文件名
    //   } catch (e) {
    //     console.log(e, etout);
    //   }
    //   return etout;
    // }
  },
  mounted() {},
};
</script>
<style lang="scss" scoped>
</style>
src/views/system/dept.vue
@@ -86,7 +86,7 @@
        index: true,
        selection: true,
        viewBtn: true,
        menuWidth: 300,
        menuWidth: 400,
        dialogClickModal: false,
        column: [
          {
src/views/system/menu.vue
@@ -86,7 +86,7 @@
        index: true,
        selection: true,
        viewBtn: true,
        menuWidth: 300,
        menuWidth: 400,
        dialogClickModal: false,
        column: [
          {
src/views/system/user.vue
@@ -270,6 +270,7 @@
        searchShowBtn: false,
        border: true,
        index: true,
        menuWidth: 300,
        selection: true,
        viewBtn: true,
        //dialogType: 'drawer',