钟日健
2022-02-08 2c461eb9efb980d55dfd7407ee70088fc90a4a7a
src/views/dispatch/dispatchChildoperableSee.vue
@@ -1,6 +1,11 @@
<template>
  <basic-container>
    <div class="dispatchChildoperable">
    <div
      :class="[
        'dispatchChildoperable',
        $store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '',
      ]"
    >
      <avue-crud
        :option="option1"
        :data="data1"
@@ -20,7 +25,7 @@
      </avue-crud>
    </div>
  </basic-container>
</template>
</template>
<script>
import {
@@ -46,6 +51,7 @@
        pageSize: 10,
        currentPage: 1,
        total: 0,
        ...this.$store.state.control.changePageSize,
      },
      form: {},
      query1: {},
@@ -65,6 +71,7 @@
        // menuWidth: 160,
        align: "center",
        selection: true,
        ...this.$store.state.control.clearOtherBut,
        column: [
          // },
          {
@@ -82,9 +89,10 @@
          {
            label: "保安公司",
            prop: "deptId",
            search: true,
            // search: true,
            labelWidth: 120,
            type: "tree",
            disabled: true,
            searchSpan: 4,
            cascaderItem: ["userIds"],
            props: {
@@ -129,9 +137,10 @@
            prop: "userIds",
            type: "tree",
            width: 70,
            disabled: true,
            labelWidth: 120,
            searchSpan: 3,
            search: true,
            // search: true,
            hide: true,
            props: {
              label: "realName",
@@ -152,6 +161,7 @@
            label: "保安员",
            prop: "securityName",
            type: "tree",
            disabled: true,
            width: 70,
            labelWidth: 120,
            addDisplay: false,
@@ -278,8 +288,10 @@
    };
  },
  created() {
    this.option1.column[1]["value"] = this.userInfo.dept_id;
    this.option1.column[3]["value"] = this.userInfo.Id;
    this.option1.column[4]["value"] = this.userInfo.nick_name;
    if (this.userInfo.role_name == "保安公司管理员") {
      console.log("保安公司管理员登入");
      const deptColumn = this.findObject(this.option1.column, "deptId");
      deptColumn.search = false;
    } else {
@@ -404,10 +416,8 @@
    },
    selectionChange1(list) {
      this.selectionList1 = list;
      // console.log(this.selectionList1.length);
    },
    handleDelete1() {
      console.log(this.selectionList1);
      if (this.selectionList1.length === 0) {
        this.$message.warning("请选择至少一条数据");
        return;
@@ -430,7 +440,6 @@
        });
    },
    refreshChange1() {
      // console.log(4534)
      this.onLoad1(this.page1, this.query1);
    },
@@ -513,7 +522,6 @@
            this.option1.column,
            "dispatcherUnitId"
          );
          // console.log(res.data.data, 111);
          dispatcherUnitIdColumn.dicData = res.data.data;
        });
      }
@@ -537,7 +545,6 @@
  //   //   this.initData();
  //   // }
  //   deps(){
  //     console.log(this.deps,5646646)
  //   }
  // },
  mounted() {
@@ -556,4 +563,4 @@
.el-collapse-item {
  padding-top: 15px !important;
}
</style>
</style>