zhengpz
2021-08-27 a43d62066eb0300adc4072fbfc552082851a94f5
表数据格式化
2 files modified
116 ■■■■■ changed files
src/views/home/index.vue 20 ●●●●● patch | view | raw | blame | history
src/views/statisticalQueryManagement/businessStatisticsDetail.vue 96 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue
@@ -588,6 +588,7 @@
            :key="gridData.type"
            prop="punishtype"
            label="处罚类别"
            :formatter="punishType"
            :show-overflow-tooltip="true"
            width="150"
          ></el-table-column>
@@ -761,6 +762,25 @@
        return "正常";
      }
    },
    punishType(row) {
      if (row.punishtype === "0") {
        return "警告";
      } else if (row.punishtype === "1") {
        return "罚款";
      }else if (row.punishtype === "2") {
        return "没收违法所得";
      }else if (row.punishtype === "3") {
        return "没收非法财物";
      }else if (row.punishtype === "4") {
        return "责令停止施工";
      }else if (row.punishtype === "5") {
        return "责令停止使用";
      }else if (row.punishtype === "6") {
        return "责令停止违法行为";
      }else if (row.punishtype === "7") {
        return "责令停业";
      }
    },
    // 左侧表的接口返回数据
    initEchart() {
src/views/statisticalQueryManagement/businessStatisticsDetail.vue
@@ -94,48 +94,38 @@
        viewBtn: true,
        dialogClickModal: false,
        column: [
          {
            label: "公司名称",
            prop: "gsname",
            // search: true,
            // searchSpan: 4,
            display: false
          },
          // {
          //   label: "公司名称",
          //   prop: "gsname",
          //   // search: true,
          //   // searchSpan: 4,
          //   display: false
          // },
          {
            label: "所属辖区",
            prop: "jurname",
            searchSpan: 4,
            props: {
              label: "title",
              value: "id"
            },
            // cascaderItem: ["city", "area"],
            // dicUrl:subofficeOptions,
            dicData: [],
            search: true,
            type: "tree",
            rules: [
              {
                required: true,
                message: "请选择所属辖区",
                trigger: "blur"
              }
            ]
          },
          {
            label: "服务开始时间",
            prop: "dispatcherTime",
            display: false
          },
          {
            label: "服务到期时间",
            prop: "end_time",
            display: false
          },
          // {
          //   label: "所属辖区",
          //   prop: "jurname",
          //   searchSpan: 4,
          //   props: {
          //     label: "title",
          //     value: "id"
          //   },
          //   // cascaderItem: ["city", "area"],
          //   // dicUrl:subofficeOptions,
          //   dicData: [],
          //   search: true,
          //   type: "tree",
          //   rules: [
          //     {
          //       required: true,
          //       message: "请选择所属辖区",
          //       trigger: "blur"
          //     }
          //   ]
          // },
          {
            label: "服务单位名称",
            prop: "fwname",
            prop: "name",
            props: {
              label: "name",
              value: "id"
@@ -155,8 +145,28 @@
            // display: false
          },
          {
            label: "保安派遣人数",
            prop: "num",
            label: "服务开始时间",
            prop: "startTime",
            display: false
          },
          {
            label: "服务到期时间",
            prop: "endTime",
            display: false
          },
          // {
          //   label: "保安派遣人数",
          //   prop: "num",
          //   display: false
          // },
          {
            label: "联系人",
            prop: "linkman",
            display: false
          },
          {
            label: "联系电话",
            prop: "phone",
            display: false
          }
          // {
@@ -256,8 +266,8 @@
      this.loading = true;
      let param = {};
      // param["jurisdiction"] = params["jurname"] || "";
      // param["fid"] = params["fwname"] || "";
      param["deptid"] = this.deptid;
      param["id"] = params["name"] || "";
      param["deptId"] = this.deptid;
      param["current"] = page.currentPage;
      param["size"] = page.pageSize;
      fwList(param).then(res => {