shuishen
2021-11-30 8cbb44a2182a992faeeb0c1fa08e64fb104ae75c
src/views/securityUnitOperation/economicTable.vue
@@ -23,7 +23,7 @@
import XLSX from "xlsx";
import { mapGetters } from "vuex";
import { selectJj } from "../../api/securityUnitOperation/securityUnitOperation";
import { lazyTreeJu } from "../../api/index/index";
import { lazyTreeJu,lazyTrees } from "../../api/index/index";
export default {
  name: "公司经济情况智能分析详情表",
  data() {
@@ -33,7 +33,7 @@
        currentPage: 1,
        total: 0
      },
      query:{},
      query: {},
      value1: "",
      value2: "",
      tableData: [
@@ -84,6 +84,7 @@
        searchShow: true,
        searchMenuSpan: 6,
        index: true,
        indexLabel:'序号',
        viewBtn: true,
        dialogClickModal: false,
        column: [
@@ -137,6 +138,7 @@
            prop: "enterpriseName",
            search: true,
            searchSpan: 4,
            width:300,
            display: false
          },
          {
@@ -179,7 +181,10 @@
          {
            label: "社保缴纳总额(万)",
            prop: "sbcount",
            display: false
            display: false,
            formatter: function(row, value) {
              return (value = value / 10000);
            }
          },
          {
            label: "公司派遣人数",
@@ -187,9 +192,12 @@
            display: false
          },
          {
            label: "社保缴纳人数占比(%)",
            label: "社保缴纳人数占比",
            prop: "zb",
            display: false
            display: false,
            formatter: function(row, value) {
              return (value = value * 100 + "%");
            }
          },
          {
            label: "备注",
@@ -222,28 +230,6 @@
        }
      ],
      subofficeValue: "0",
      subofficeOptions: [
        {
          value: "0",
          label: "南昌市公安局"
        },
        {
          value: "2",
          label: "东湖分局"
        },
        {
          value: "3",
          label: "西湖分局"
        },
        {
          value: "4",
          label: "青云谱分局"
        },
        {
          value: "5",
          label: "青山湖分局"
        }
      ],
      companyName: "",
      loading: true
    };
@@ -329,7 +315,7 @@
      });
    },
    getSubOfficeData() {
      lazyTreeJu().then(res => {
      lazyTrees().then(res => {
        if (res.data.code === 200) {
          this.tableOption.column.forEach(item => {
            if (item.label == "所属辖区") {
@@ -351,8 +337,11 @@
      }
      let jurisdiction = object["jurisdiction1"] || "";
      let enterpriseName = object["enterpriseName"] || "";
      let obj = { jurisdiction: jurisdiction, enterpriseName: enterpriseName };
      this.onLoad(this.page, obj);
      this.query = {
        jurisdiction: jurisdiction,
        enterpriseName: enterpriseName
      };
      this.onLoad(this.page, this.query);
    }
  },
  mounted() {