zhengpz
2021-08-18 e8f9a6ab3d258c028da4fdc4a51c3985a9eba67c
src/views/statisticalQueryManagement/securityGuardStatistics.vue
@@ -4,17 +4,13 @@
      :option="tableOption"
      :data="tableData"
      :page.sync="tablePage"
       :table-loading="loading"
      :permission="permissionList"
      :before-open="beforeOpen"
      @date-change="dateChange"
      @row-click="handleRowClick"
      class="rowClick"
    >
      <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>
@@ -22,6 +18,7 @@
import FileSaver from "file-saver";
import XLSX from "xlsx";
import { mapGetters } from "vuex";
import { selectLi } from "../../api/statisticalQueryManagement/statisticalQueryManagement";
export default {
  name: "业务情况统计",
  data() {
@@ -29,42 +26,42 @@
      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",
        },
        // {
        //   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,
@@ -93,15 +90,14 @@
        column: [
          {
            label: "公司名称",
            prop: "company",
            prop: "deptname",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "所属辖区",
            prop: "subOffice",
            prop: "jurname",
            searchSpan: 4,
            type: "select",
            props: {
@@ -143,47 +139,48 @@
          },
          {
            label: "保安员总数",
            prop: "total",
            prop: "num",
            display: false,
          },
          {
            label: "持证上岗人数",
            prop: "holder",
            prop: "cznum",
            display: false,
          },
          {
            label: "未派遣人数",
            prop: "nosend",
            prop: "wpaiqnum",
            display: false,
          },
          {
            label: "派遣人数",
            prop: "send",
            prop: "paiqnum",
            display: false,
          },
          {
            label: "未采集照片人数",
            prop: "nopicture",
            prop: "wcaijnum",
            display: false,
          },
          {
            label: "资格审查异常人数",
            prop: "qualification",
            prop: "yicnum",
            display: false,
          },
          {
            label: "过考保安人数",
            prop: "pass",
            display: false,
          },
          // {
          //   label: "过考保安人数",
          //   prop: "pass",
          //   display: false,
          // },
          {
            label: "缴纳社保人数",
            prop: "socialSecurity",
            prop: "sbnum",
            display: false,
          },
        ],
      },
      companyName: "",
      loading:true,
    };
  },
  computed: {
@@ -205,6 +202,14 @@
      this.$router.push({ path: "/statisticalQueryManagement/companyDetails" });
    },
    dateChange() {},
    getTableData() {
      selectLi({current: 1, size: 10 }).then(res => {
        if (res.data.code === 200) {
          this.tableData = res.data.data;
          this.loading = false;
        }
      });
    }
    // downExcel() {
    //   let et = XLSX.utils.table_to_book(document.getElementById("table"));
    //   let etout = XLSX.write(et, {
@@ -225,7 +230,9 @@
    //   return etout;
    // }
  },
  mounted() {},
  mounted() {
    this.getTableData();
  },
};
</script>
<style lang="scss" scoped>