Administrator
2022-01-06 9e1f4bdd90924d4e286c49275cad22b4b8f4cefe
src/views/securityGuardManagement/register.vue
@@ -69,12 +69,12 @@
                  : ""
              }}
            </template>
            <template slot-scope="{ row }" slot="deptId">
            <template slot-scope="{ row }" slot="deptName">
              <el-tag
                class="rowClickSelf"
                title="点击查看所属公司情况"
                @click="rowClickSelf(row.deptId)"
                >{{ row.$deptId }}</el-tag
                >{{ row.deptName }}</el-tag
              >
            </template>
            <template slot-scope="{ type, size, row }" slot="menu">
@@ -230,6 +230,7 @@
import { getToken } from "@/util/auth";
import { addhonor, getER } from "@/api/register/honor";
import baoanz from "./baoanz.vue";
import { getInformationDetails } from "@/api/securityCompany/security";
export default {
  components: {
    baoanz,
@@ -411,7 +412,7 @@
            display: false,
          },
          {
            label: "所属保安公司",
            label: "企业名称",
            searchLabelWidth: "110",
            // prop: "deptName",
            prop: "deptId",
@@ -423,10 +424,18 @@
              value: "id",
            },
            slot: true,
            hide:true,
            searchSpan: 5,
            display: false,
            overHidden: true,
            search: true,
          },
          {
            label: "企业名称",
            prop: "deptName",
            slot: true,
            display: false,
            overHidden: true,
            width: 198,
          },
          {
@@ -753,12 +762,20 @@
    }
  },
  methods: {
    rowClickSelf(row) {
      // console.log(row, "baoan");
      this.$router.push({
        path: "/securityCompany/index",
        query: { fromSecunityGuardId: row },
      });
    rowClickSelf(deptId) {
      var data = {
        departmentid:deptId
      }
      getInformationDetails(data).then((res) => {
        var obj = res.data.data;
        obj["name"] = "保安公司详细信息";
        var data = JSON.stringify(obj);
        this.$router.push({
          path: "/securityCompany/index",
          query: { data: data },
        });
      })
    },
    Print() {
      this.$Print(this.$refs.baoanzheng);
@@ -794,7 +811,7 @@
    },
    errorf(err) {
      this.$message.success("请查看控制台");
      console.log(err);
      // console.log(err);
    },
    handleClose(done) {
      this.objf = {};
@@ -814,8 +831,6 @@
      this.dialogVisible = true;
    },
    nodeClick(data) {
      //   this.treeDeptId = data.id;
      // console.log(data, 55555);
      if (data.title != "南昌市公安局") {
        this.jurisdiction = data.id;
      } else {
@@ -930,8 +945,8 @@
    },
    onLoad(page, params = {}) {
      this.loading = true;
      // console.log(this.jurisdiction,33333);
      params["jurisdiction"] = this.jurisdiction;
      // console.log(params, 1, this.query, 2);
      getListSecurity(
        page.currentPage,
        page.pageSize,
@@ -1027,7 +1042,7 @@
        })
          .then(() => {
            updateHold(3, row.cardid).then((res) => {
              console.log(res);
              // console.log(res);
              this.$message({
                type: "success",
                message: "吊销成功!",