src/views/securityCompany/dispatch.vue
@@ -33,13 +33,14 @@
</template>
<script>
import {
  getList,
  getDetail,
  add,
  update,
  remove,
} from "@/api/securityCompany/dispatch";
// import {
//   getList,
//   getDetail,
//   add,
//   update,
//   remove,
// } from "@/api/securityCompany/dispatch";
import { getdata } from "@/api/dispatch/dispatch";
import { mapGetters } from "vuex";
export default {
@@ -75,21 +76,28 @@
        column: [
          {
            label: "公司名称",
            prop: "enterprisename",
            label: "派遣单位",
            prop: "name",
            search: true,
            searchSpan: 4,
            display: false,
          },
          {
            label: "法定代表人",
            prop: "representative",
            label: "联系人",
            prop: "linkman",
            display: false,
            width: 120,
          },
          {
            label: "成立日期",
            prop: "establishtime",
            label: "联系电话",
            prop: "phone",
            display: false,
            width: 200,
          },
          {
            label: "创建时间",
            prop: "createTime",
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
@@ -103,24 +111,7 @@
            width: 180,
          },
          {
            label: "注册资金",
            prop: "registeredcapital",
            display: false,
            width: 200,
          },
          {
            label: "实缴资金",
            prop: "capital",
            display: false,
            width: 200,
          },
          {
            label: "公司类型",
            prop: "enterprises",
            display: false,
          },
          {
            label: "注册地址",
            label: "派遣地址",
            prop: "address",
            display: false,
            width: 200,
@@ -260,30 +251,30 @@
    },
    onLoad(page, params = {}) {
      this.loading = true;
      getList(
      getdata(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query),
        4
        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, "dis");
        this.loading = false;
        this.selectionClear();
      });
    },
    // 行单击
    handleRowClick(row) {
      // delete (row["name"]);
      var obj = row;
      obj["name"] = "保安公司详细资料";
      this.$router.push({
        path: `/securityCompany/index`,
        query: obj,
      });
    },
    // handleRowClick(row) {
    //   // delete (row["name"]);
    //   var obj = row;
    //   obj["name"] = "保安公司详细资料";
    //   this.$router.push({
    //     path: `/securityCompany/index`,
    //     query: obj,
    //   });
    // },
  },
};
</script>