+
liuyg
2021-11-23 2c41bb9bde06f279c41d3d2a4bdc65edc4be24b8
src/views/dispatch/dispatch.vue
@@ -1,6 +1,11 @@
<template>
  <basic-container>
    <div class="dispatch">
    <div
      :class="[
        'dispatch',
        $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
      ]"
    >
      <!-- <avue-tabs :option="optionTABS" @change="handleChangeTABS"></avue-tabs>
    <span v-if="typeTABS.prop === 'tab1'"> -->
      <avue-crud
@@ -95,7 +100,7 @@
      <!-- <span v-else-if="typeTABS.prop === 'tab3'">选项卡内容3</span> -->
    </div>
  </basic-container>
</template>
</template>
<script>
import {
@@ -150,6 +155,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      query: {},
      data: [],
@@ -216,10 +222,11 @@
        menuWidth: 160,
        align: "center",
        selection: true,
        ...this.$store.state.control.clearOtherBut,
        column: [
          //派遣服务公司登记
          {
            label: "派遣单位名称",
            label: "派遣企业名称",
            prop: "name",
            search: true,
            searchLabelWidth: 110,
@@ -310,6 +317,7 @@
            searchSpan: 4,
            overHidden: true,
            labelWidth: 138,
            parent: false,
            type: "tree",
            dicUrl: "/api/jurisdiction/lazy-tree",
            props: {
@@ -615,7 +623,6 @@
      this.onLoad(this.page, this.query);
    },
    rowClick(row) {
      // console.log(row);
      window.localStorage.setItem("paqiandata", JSON.stringify(row));
      this.$router.push({
        path: "/dispatchChild",
@@ -668,18 +675,15 @@
      if (this.useifid != 266) {
        values["deptId"] = this.useifid;
      }
      // console.log(values);
      if (this.userInfo.role_name == "公安管理员") {
        values["jurisdiction"] = that.userInfo.jurisdiction;
      }
      console.log(params);
      getdata(
        page.currentPage,
        page.pageSize,
        // Object.assign(params, this.query)
        values
      ).then((res) => {
        // console.log(res);
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
@@ -729,4 +733,4 @@
.el-collapse-item {
  padding-top: 15px !important;
}
</style>
</style>