src/views/securityGuard/securityGuard.vue
@@ -26,7 +26,6 @@
          @row-del="rowDel"
          @row-update="rowUpdate"
          @row-save="rowSave"
          @row-click="rowClick"
          :before-open="beforeOpen"
          :page.sync="page"
          @search-change="searchChange"
@@ -109,14 +108,13 @@
          </template>
          <template slot-scope="{ type, size, row }" slot="menu">
            <!-- <el-button
                style="display:none"
                icon="el-icon-edit"
                :size="size"
                :type="type"
                @click.stop="addOrUpdateHandle(row.id)"
                >修改
              </el-button> -->
            <el-button
              icon="el-icon-s-custom"
              :size="size"
              :type="type"
              @click.stop="rowClick(row)"
              >查看
            </el-button>
            <el-button
              icon="el-icon-edit"
              :size="size"
@@ -131,7 +129,11 @@
            <el-tag v-if="row.sex == 1">男</el-tag>
            <el-tag v-if="row.sex == 2">女</el-tag>
          </template>
          <template slot-scope="{ row }" slot="deptId">
            <el-tag class="rowClickSelf" @click="rowClickSelf(row.deptId)">{{
              row.$deptId
            }}</el-tag>
          </template>
          <template slot-scope="{ row }" slot="tenantName">
            <el-tag>{{ row.tenantName }}</el-tag>
          </template>
@@ -387,6 +389,7 @@
        align: "center",
        index: true,
        delBtnText: "注销",
        menuWidth: 276,
        selection: true,
        viewBtn: true,
        defaultExpandAll: true,
@@ -959,9 +962,17 @@
    //行点击事件
    rowClick(row) {
      // console.log(row, 111);
      this.$router.push({
        path: "/securityGuardDetail",
        query: { row: JSON.stringify(row) },
      });
    },
    rowClickSelf(row) {
      console.log(row, "baoan");
      this.$router.push({
        path: "/securityUnitChild",
        query: { fromSecunityGuardId: row },
      });
    },
    nodeClick(data) {
@@ -1426,7 +1437,7 @@
};
</script>
 
<style>
<style lang="scss" scoped>
.box {
  height: 800px;
}
@@ -1438,4 +1449,9 @@
.box .el-scrollbar__wrap {
  overflow: scroll;
}
.rowClickSelf {
  &:hover {
    cursor: pointer;
  }
}
</style>