liuyg
2021-08-19 cb81eef3d9aabe280e506fc7971c539542cf13f7
冲突
12 files modified
262 ■■■■■ changed files
public/papers.html 23 ●●●● patch | view | raw | blame | history
public/papersApply.html 34 ●●●● patch | view | raw | blame | history
public/securityPrint.html 14 ●●●● patch | view | raw | blame | history
src/styles/element-ui.scss 34 ●●●● patch | view | raw | blame | history
src/views/applydetailed/index.vue 2 ●●● patch | view | raw | blame | history
src/views/companyApply/index.vue 10 ●●●● patch | view | raw | blame | history
src/views/desk/notice.vue 14 ●●●● patch | view | raw | blame | history
src/views/exam/papers.vue 5 ●●●● patch | view | raw | blame | history
src/views/securityGuard/data.js 2 ●●● patch | view | raw | blame | history
src/views/securityGuard/securityGuard.vue 118 ●●●●● patch | view | raw | blame | history
src/views/workreport/data.js 4 ●●● patch | view | raw | blame | history
src/views/workreport/workreport.vue 2 ●●●●● patch | view | raw | blame | history
public/papers.html
@@ -12,10 +12,27 @@
            justify-content: center;
            flex-direction: column;
        }
        /* .print-header {
            width: 100%;
            text-align: center;
        } */
        .print {
            position: absolute;
            left: 47%;
            top: 58%;
            width: 7%;
            height: 30px;
            border: 0px;
            border-radius: 6px;
            color: #fff;
            background-color: #1D5CE4;
            letter-spacing: 4px;
        }
        
        .user-info-table {
            margin-top: 30px;
            width: 60%;
            width: 90%;
            height: 60%;
            border: 1px solid #000;
            background-color: #fff;
@@ -51,8 +68,8 @@
<body>
    <div>
        <div>
            <button onclick="preview(1)">打印</button>
        <div class="print-header">
            <button onclick="preview(1)" class="print">打印</button>
        </div>
        <!--startprint-->
        <div id="table">
public/papersApply.html
@@ -13,6 +13,25 @@
            flex-direction: column;
        }
        
        .excelPrint {
            width: 100%;
            text-align: center;
            margin-top: 50px;
        }
        .print {
            /* position: absolute;
            left: 47%;
            top: 58%; */
            width: 7%;
            height: 30px;
            border: 0px;
            border-radius: 6px;
            color: #fff;
            background-color: #1D5CE4;
            letter-spacing: 4px;
        }
        .user-info-table {
            margin-top: 30px;
            width: 90%;
@@ -54,17 +73,17 @@
<body>
    <div>
        <div>
            <button onclick="preview(1)">打印</button>
        </div>
        <!--startprint-->
        <div id="table">
            <!-- <span class="title">准考证信息</span>
            <table class="user-info-table" border="1px" align="center" cellspacing="0" cellpadding="10">
            </table>
        </div> -->
            </table> -->
        </div>
            <!--endprint-->
        <div class="excelPrint">
            <button onclick="preview(1)" class="print">打印</button>
        </div>
        </div>
        <script>
            var getData = function(name) {
@@ -123,8 +142,7 @@
                            <td colspan="6">${data.num}人</td>
                        </tr>
                    </table>
                </div>`
                    </table>`
                var dom = $('#table');
                dom.empty();
public/securityPrint.html
@@ -12,13 +12,19 @@
            /* display: flex; */
            align-items: center;
            justify-content: center;
            background-color: #666666;
        }
        
        .print {
            position: absolute;
            left: 20px;
            top: 10px;
            left: 43%;
            top: 60%;
            width: 7%;
            height: 36px;
            border-radius: 9px;
            background-color: #1D5CE4;
            border: 0px;
            color: #fff;
            letter-spacing: 4px;
        }
        
        #table {
@@ -185,6 +191,8 @@
        </div>
    </div>
    <script>
        var getData = function(name) {
src/styles/element-ui.scss
@@ -89,7 +89,6 @@
//     box-shadow: none !important;
//     height: 40px;
// }
// //取消顶部搜索栏
// .user .el-card.is-never-shadow.avue-crud__search {
//     position: relative !important;
@@ -99,116 +98,93 @@
//     box-shadow: none !important;
//     height: auto;
// }
// .desk .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 360px) !important;
// }
// .securityGuard .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 300px) !important;
//     left: 120px;
// }
// .securityUnit .el-card.is-never-shadow.avue-crud__search {
//     left: 200px;
//     width: calc(100% - 380px) !important;
// }
// .equipments .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 380px) !important;
//     left: 200px;
// }
// .dispatch .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 380px) !important;
//     left: 200px;
// }
// .dispatchChildoperable .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 280px) !important;
//     left: 90px;
// }
// .workreply .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 380px) !important;
//     left: 200px !important;
// }
// .recruitmentManagement .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 380px) !important;
//     left: 120px !important;
// }
// .hasButOne .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 300px) !important;
//     left: 120px !important;
// }
// .hasButTwo .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 380px) !important;
//     left: 200px !important;
// }
// .desk1 .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 410px) !important;
//     left: 200px !important;
// }
// .topmenu .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 220px !important;
// }
// .hasButThree .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 510px) !important;
//     left: 310px !important;
// }
// .morpheus-box .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 590px) !important;
//     left: 420px !important;
// }
// .morpheus-box-exam .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 20px !important;
// }
// .morpheus-box-paper .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 220px !important;
// }
// .morpheus-box-score .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 150px !important;
// }
// .morpheus-box-apply-exam .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 120px !important;
// }
// .desk .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 280px !important;
// }
// .morpheus-box-apply-exam-1 .el-card.is-never-shadow.avue-crud__search {
//     width: calc(100% - 390px) !important;
//     left: 220px !important;
// }
// .avue-form {
//     position: relative;
//     top: -10px;
// }
// //顶部按钮栏
// .avue-crud__menu {
//     height: 60px;
// }
// //顶部按钮
// .avue-crud .avue-crud__left .el-button,
// .avue-crud .avue-crud__right .el-button,
@@ -225,6 +201,7 @@
.avue-form__menu--center .el-button {
    float: left;
}
.avue-form__menu--center .el-button:nth-child(1) {
    margin-left: 30px;
}
@@ -267,3 +244,12 @@
.el-dropdown {
    color: #fff !important;
}
.securityPapers {
    width: 100%;
    height: 100%;
    background-color: #f4f6f8;
    position: absolute;
    top: 40px;
    left: 0;
}
src/views/applydetailed/index.vue
@@ -54,7 +54,7 @@
                :type="type"
                size="small"
                icon="el-icon-receiving"
                :disabled="row.applyStatus == 4"
                :disabled="row.candidateNo==''"
                @click="handlePrint(row)"
                >准考证打印
              </el-button>
src/views/companyApply/index.vue
@@ -53,7 +53,7 @@
                :type="type"
                size="small"
                icon="el-icon-folder-checked"
                v-if="row.isApply == 2 || row.isApply == -1"
                v-if="row.isApply == 2 || row.isApply == -1 || row.isApply == 3"
                @click="questionBankRowSave(row)"
                >报名
              </el-button>
@@ -124,6 +124,10 @@
    {
      label: "已取消",
      value: 2,
    },
    {
      label: "考试结束",
      value: 3,
    },
  ],
};
@@ -379,8 +383,8 @@
                value: 2,
              },
              {
                label: "",
                value: -1,
                label: "考试结束",
                value: 3,
              },
            ],
            dataType: "number",
src/views/desk/notice.vue
@@ -55,6 +55,7 @@
import { getListPage, remove, update, add, getNotice } from "@/api/desk/notice";
import { getDept } from "@/api/system/dept";
import { mapGetters } from "vuex";
import { mapState } from 'vuex';
export default {
  data() {
@@ -223,8 +224,13 @@
      });
      return ids.join(",");
    },
    ...mapState({
        userInfo: state => state.user.userInfo
    })
  },
  mounted() {},
  mounted() {
    this.getDeptInfo(this.userInfo.dept_id);
  },
  methods: {
    //获取当前用户部门信息
    getDeptInfo(deptId) {
@@ -254,7 +260,11 @@
      });
    },
    rowSave(row, done, loading) {
      if (this.deptCategory) {
      row.category = 1;
      }else{
        row.category = 2;
      }
      row.deptId = this.deptId;
      add(row).then(
        () => {
@@ -384,7 +394,7 @@
        const { releaseTimeRange } = this.query;
        // if (that.deptCategory) {
        params["deptId"] = this.deptId;
        // params["deptId"] = this.deptId;
        params["jurisdiction"] = this.jurisdiction;
        // }
        let values = {
src/views/exam/papers.vue
@@ -1,6 +1,9 @@
<template>
  <!-- <iframe src="http://124.71.113.22/map/index.html?openid=PatrolManagement" style="width: 100%;height: 100%" frameborder="0"></iframe> -->
<div class="securityPapers">
  <iframe :src="url" style="width: 100%; height: 100%" frameborder="0"></iframe>
</div>
  <!-- <iframe src="http://124.71.113.22/map/index.html?openid=PatrolManagement" style="width: 100%;height: 100%" frameborder="0"></iframe> -->
</template>
<script>
src/views/securityGuard/data.js
@@ -529,7 +529,7 @@
        // prop: "deptName",
        prop: "deptId",
        type: "tree",
        dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        // dicUrl: "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        props: {
            label: "title",
            value: "id",
src/views/securityGuard/securityGuard.vue
@@ -284,6 +284,7 @@
    return {
      securityid: "",
      excelBox1: false,
      isSecurity: false,
      excelForm1: {},
      excelOption1: {
        submitBtn: false,
@@ -377,7 +378,7 @@
        tip: false,
        searchShow: true,
        searchMenuSpan: 6,
        border: true, //liu
        border: false,
        stripe: true,
        align: "center",
        index: true,
@@ -399,8 +400,8 @@
                label: "所属保安公司",
                prop: "deptId",
                type: "tree",
                dicUrl:
                  "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
                // dicUrl:
                  // "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
                // dicUrl: "/api/blade-system/dept/lazy-tree?parentId=0",
                props: {
                  label: "title",
@@ -680,7 +681,7 @@
              {
                prop: "UserPractitionersInfo",
                type: "dynamic",
                border: true, //liu
                border: false,
                span: 24,
                children: {
                  align: "left",
@@ -925,28 +926,18 @@
      userInfo: (state) => state.user.userInfo,
    }),
  },
  beforeCreate() {
  },
  created() {
  },
  mounted() {
    // this.option.column[0].hide = true
    // 非保安单位模式默认加载管理组数据
    if (!website.tenantMode) {
      this.initData(website.tenantId);
    }
    //获取当前登录人员的角色信息
    var roleIds = this.userInfo.role_id.split(",");
    roleIds.forEach((roleId) => {
      getRoleDetail(roleId).then((res) => {
        var roleAlias = res.data.data.roleAlias;
        if (
          roleAlias == "保安公司管理员" ||
          roleAlias == "保安" ||
          roleAlias == "未持证保安"
        ) {
          const column = this.findObject(this.option.column, "deptId");
          column.search = false;
        }
      });
    });
  },
  methods: {
    handleImport1() {
@@ -975,18 +966,18 @@
      this.onLoad(this.page);
    },
    initData(tenantId) {
      getRoleTree(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "roleId");
        column.dicData = res.data.data;
      });
      // getRoleTree(tenantId).then((res) => {
      //   const column = this.findObject(this.option.group, "roleId");
      //   column.dicData = res.data.data;
      // });
      // getDeptTree(tenantId).then((res) => {
      //   const column = this.findObject(this.option.group, "deptId");
      //   column.dicData = res.data.data;
      // });
      getPostList(tenantId).then((res) => {
        const column = this.findObject(this.option.group, "postId");
        column.dicData = res.data.data;
      });
      // getPostList(tenantId).then((res) => {
      //   const column = this.findObject(this.option.group, "postId");
      //   column.dicData = res.data.data;
      // });
    },
    submitRole() {
      const roleList = this.$refs.treeRole.getCheckedKeys().join(",");
@@ -1289,40 +1280,65 @@
      this.onLoad(this.page, this.query);
    },
    onLoad(page, params = {}) {
      var that = this;
      //获取当前登录人员的角色信息
      var roleIds = this.userInfo.role_id.split(",");
      roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
          var roleAlias = res.data.data.roleAlias;
          if (
            roleAlias == "保安公司管理员" ||
            roleAlias == "保安" ||
            roleAlias == "未持证保安"
          ) {
            //去除保安公司查询
            const column = that.findObject(that.option.column, "deptId");
            column.search = false;
            const deptColumn = that.findObject(that.option.group, "deptId");
            deptColumn.dicUrl = "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
            //禁止编辑
            deptColumn.disabled = true;
            deptColumn.value = that.userInfo.dept_id;
            that.isSecurity = true;
            //如果是保安公司管理员
            params["deptId"] = that.userInfo.dept_id;
          }else if (roleAlias == "公安管理员") {
            params["jurisdiction"] = that.userInfo.jurisdiction;
            var columnDept = that.findObject(that.option.column, "deptId");
            columnDept.dicUrl =
                "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction="+that.userInfo.jurisdiction
            var ColumnDeptUpdate = that.findObject(that.option.group, "deptId");
            ColumnDeptUpdate.dicUrl =
                "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction="+that.userInfo.jurisdiction
          }else{
            var columnDept1 = that.findObject(that.option.column, "deptId");
            columnDept1.dicUrl = "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
            var ColumnDeptUpdate1 = that.findObject(that.option.group, "deptId");
            ColumnDeptUpdate1.dicUrl = "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697";
          }
      let values = {
        ...params,
      };
      values = {
        ...params,
        roleAlias: "111",
        ...this.query,
            ...that.query,
      };
      //获取当前登录人员的角色信息
      var roleIds = this.userInfo.role_id.split(",");
      roleIds.forEach((roleId) => {
        getRoleDetail(roleId).then((res) => {
          var roleAlias = res.data.data.roleAlias;
          if (roleAlias == "保安公司管理员") {
            values["deptId"] = this.userInfo.dept_id;
          }
          that.loading = true;
          getList(page.currentPage, page.pageSize, values).then((res) => {
            const data = res.data.data;
            that.page.total = data.total;
            that.data = data.records;
            that.loading = false;
            that.selectionClear();
          });
        });
      });
      if (this.userInfo.role_id == "1414840172333842433") {
        console.log("是公安add jurisdiction");
        values["jurisdiction"] = this.userInfo.jurisdiction;
      }
      this.loading = true;
      getList(page.currentPage, page.pageSize, values, this.treeDeptId).then(
        (res) => {
          const data = res.data.data;
          this.page.total = data.total;
          this.data = data.records;
          this.loading = false;
          this.selectionClear();
        }
      );
    },
    platformRowUpdate(row, index, done, loading) {
      updatePlatform(row.id, row.userType, row.userExt).then(
src/views/workreport/data.js
@@ -22,6 +22,7 @@
        prop: "category",
        type: "select",
        dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory",
        cascaderItem: ["receivedIds"],
        props: {
            label: "dictValue",
            value: "dictKey"
@@ -76,7 +77,8 @@
        prop: "receivedIds",
        span: 24,
        type: "tree",
        // dicUrl: "/api/blade-system/dept/lazy-tree-user",
        // lazy: true,
        dicUrl: "/api/blade-system/dept/lazy-tree-user-app?type={{key}}",
        hide: true,
        props: {
            label: "title",
src/views/workreport/workreport.vue
@@ -80,6 +80,8 @@
        searchMenuSpan: 6,
        border: true, //liu
        addBtnText: "发起",
        saveBtnText: "发起",
        addTitle: "发起",
        index: true,
        stripe: true,
        viewBtn: true,