liuyg
2021-09-08 d356332a2003d00ca803b4e73dc404b9643b60d5
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: [
@@ -137,6 +137,7 @@
            prop: "enterpriseName",
            search: true,
            searchSpan: 4,
            width:300,
            display: false
          },
          {
@@ -179,7 +180,10 @@
          {
            label: "社保缴纳总额(万)",
            prop: "sbcount",
            display: false
            display: false,
            formatter: function(row, value) {
              return (value = value / 10000);
            }
          },
          {
            label: "公司派遣人数",
@@ -187,9 +191,12 @@
            display: false
          },
          {
            label: "社保缴纳人数占比(%)",
            label: "社保缴纳人数占比",
            prop: "zb",
            display: false
            display: false,
            formatter: function(row, value) {
              return (value = value * 100 + "%");
            }
          },
          {
            label: "备注",
@@ -222,28 +229,6 @@
        }
      ],
      subofficeValue: "0",
      subofficeOptions: [
        {
          value: "0",
          label: "南昌市公安局"
        },
        {
          value: "2",
          label: "东湖分局"
        },
        {
          value: "3",
          label: "西湖分局"
        },
        {
          value: "4",
          label: "青云谱分局"
        },
        {
          value: "5",
          label: "青山湖分局"
        }
      ],
      companyName: "",
      loading: true
    };
@@ -329,7 +314,7 @@
      });
    },
    getSubOfficeData() {
      lazyTreeJu().then(res => {
      lazyTrees().then(res => {
        if (res.data.code === 200) {
          this.tableOption.column.forEach(item => {
            if (item.label == "所属辖区") {
@@ -351,8 +336,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() {