| | |
| | | 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; |
| | |
| | | |
| | | <body> |
| | | <div> |
| | | <div> |
| | | <button onclick="preview(1)">打印</button> |
| | | <div class="print-header"> |
| | | <button onclick="preview(1)" class="print">打印</button> |
| | | </div> |
| | | <!--startprint--> |
| | | <div id="table"> |
| | |
| | | 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%; |
| | |
| | | |
| | | <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> --> |
| | | <!--endprint--> |
| | | |
| | | </table> --> |
| | | </div> |
| | | <script> |
| | | var getData = function(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) return unescape(r[2]); |
| | | return null; |
| | | }; |
| | | var id = JSON.parse(getData("data")).examId; |
| | | var name = JSON.parse(getData("data")).name; |
| | | // console.log(JSON.parse(getData("data")), 111); |
| | | <!--endprint--> |
| | | <div class="excelPrint"> |
| | | <button onclick="preview(1)" class="print">打印</button> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | var getData = function(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); |
| | | var r = window.location.search.substr(1).match(reg); |
| | | if (r != null) return unescape(r[2]); |
| | | return null; |
| | | }; |
| | | var id = JSON.parse(getData("data")).examId; |
| | | var name = JSON.parse(getData("data")).name; |
| | | // console.log(JSON.parse(getData("data")), 111); |
| | | |
| | | axios.get('http://223.82.109.183:2080/api/apply/getApplyDetailList?examId=' + id).then(function(res) { |
| | | // axios.get('http://localhost:81/apply/getApplyDetailList?examId=' + id).then(function(res) { |
| | | var data = res.data; |
| | | var list = data.applyList; |
| | | console.log(data, 123); |
| | | var str = `<span class="title">${data.examName}</span> |
| | | axios.get('http://223.82.109.183:2080/api/apply/getApplyDetailList?examId=' + id).then(function(res) { |
| | | // axios.get('http://localhost:81/apply/getApplyDetailList?examId=' + id).then(function(res) { |
| | | var data = res.data; |
| | | var list = data.applyList; |
| | | console.log(data, 123); |
| | | var str = `<span class="title">${data.examName}</span> |
| | | <table class="user-info-table" border="1px" align="center" cellspacing="0" cellpadding="10"> |
| | | <tr class="user-info-tr"> |
| | | <td width="80px">姓名</td> |
| | |
| | | <td width="200px">报名时间</td> |
| | | </tr>` |
| | | |
| | | for (var k in list) { |
| | | str += ` |
| | | for (var k in list) { |
| | | str += ` |
| | | <tr class="user-info-tr"> |
| | | <td>${list[k].realName}</td> |
| | | <td>${list[k].sex==1?"男":(data.sex==2?"女":"")}</td> |
| | |
| | | <td>${list[k].applyTime}</td> |
| | | </tr> |
| | | ` |
| | | } |
| | | } |
| | | |
| | | // <tr class="user-info-tr"> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // </tr> |
| | | // <tr class="user-info-tr"> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // <td></td> |
| | | // </tr> |
| | | |
| | | str += ` <tr class="user-info-tr"> |
| | | str += ` <tr class="user-info-tr"> |
| | | <td>总人数</td> |
| | | <td colspan="6">${data.num}人</td> |
| | | </tr> |
| | | |
| | | </table> |
| | | </div>` |
| | | </table>` |
| | | |
| | | var dom = $('#table'); |
| | | dom.empty(); |
| | | dom.append(str); |
| | | }) |
| | | var dom = $('#table'); |
| | | dom.empty(); |
| | | dom.append(str); |
| | | }) |
| | | |
| | | function preview(oper) { |
| | | if (oper < 10) { |
| | | bdhtml = window.document.body.innerHTML; |
| | | // 打印开始的标志 |
| | | sprnstr = "<!--startprint-->"; |
| | | // 打印结束的标志 |
| | | eprnstr = "<!--endprint-->"; |
| | | // 从打印开始的位置截取到末尾 |
| | | prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr)); |
| | | // 从开始截取到打印结束的位置 |
| | | prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); |
| | | // 替换html |
| | | window.document.body.innerHTML = prnhtml; |
| | | // 打印 |
| | | window.print(); |
| | | window.document.body.innerHTML = bdhtml; |
| | | } else { |
| | | window.print(); |
| | | } |
| | | function preview(oper) { |
| | | if (oper < 10) { |
| | | bdhtml = window.document.body.innerHTML; |
| | | // 打印开始的标志 |
| | | sprnstr = "<!--startprint-->"; |
| | | // 打印结束的标志 |
| | | eprnstr = "<!--endprint-->"; |
| | | // 从打印开始的位置截取到末尾 |
| | | prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr)); |
| | | // 从开始截取到打印结束的位置 |
| | | prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); |
| | | // 替换html |
| | | window.document.body.innerHTML = prnhtml; |
| | | // 打印 |
| | | window.print(); |
| | | window.document.body.innerHTML = bdhtml; |
| | | } else { |
| | | window.print(); |
| | | } |
| | | </script> |
| | | } |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |
| | |
| | | /* 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 { |
| | |
| | | </div> |
| | | |
| | | |
| | | |
| | | |
| | | </div> |
| | | <script> |
| | | var getData = function(name) { |
| | |
| | | } |
| | | |
| | | .el-menu--display, |
| | | .el-menu--display + .el-submenu__icon-arrow { |
| | | .el-menu--display+.el-submenu__icon-arrow { |
| | | display: none; |
| | | } |
| | | |
| | |
| | | |
| | | .el-dropdown-menu__item--divided:before, |
| | | .el-menu, |
| | | .el-menu--horizontal > .el-menu-item:not(.is-disabled):focus, |
| | | .el-menu--horizontal > .el-menu-item:not(.is-disabled):hover, |
| | | .el-menu--horizontal > .el-submenu .el-submenu__title:hover { |
| | | .el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, |
| | | .el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, |
| | | .el-menu--horizontal>.el-submenu .el-submenu__title:hover { |
| | | background-color: transparent; |
| | | } |
| | | |
| | | .el-dropdown-menu__item--divided:before, |
| | | .el-menu, |
| | | .el-menu--horizontal > .el-menu-item:not(.is-disabled):focus, |
| | | .el-menu--horizontal > .el-menu-item:not(.is-disabled):hover, |
| | | .el-menu--horizontal > .el-submenu .el-submenu__title:hover { |
| | | .el-menu--horizontal>.el-menu-item:not(.is-disabled):focus, |
| | | .el-menu--horizontal>.el-menu-item:not(.is-disabled):hover, |
| | | .el-menu--horizontal>.el-submenu .el-submenu__title:hover { |
| | | background-color: transparent !important; |
| | | } |
| | | |
| | |
| | | // box-shadow: none !important; |
| | | // height: 40px; |
| | | // } |
| | | |
| | | // //取消顶部搜索栏 |
| | | // .user .el-card.is-never-shadow.avue-crud__search { |
| | | // position: relative !important; |
| | |
| | | // 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, |
| | |
| | | .avue-form__menu--center .el-button { |
| | | float: left; |
| | | } |
| | | |
| | | .avue-form__menu--center .el-button:nth-child(1) { |
| | | margin-left: 30px; |
| | | } |
| | |
| | | } |
| | | |
| | | //top 导航 按钮 |
| | | .el-menu--horizontal > .el-menu-item.is-active, |
| | | .el-menu--horizontal>.el-menu-item.is-active, |
| | | .avue-top, |
| | | .el-dropdown { |
| | | color: #fff !important; |
| | | } |
| | | |
| | | .securityPapers { |
| | | width: 100%; |
| | | height: 100%; |
| | | background-color: #f4f6f8; |
| | | position: absolute; |
| | | top: 40px; |
| | | left: 0; |
| | | } |
| | |
| | | :type="type" |
| | | size="small" |
| | | icon="el-icon-receiving" |
| | | :disabled="row.applyStatus == 4" |
| | | :disabled="row.candidateNo==''" |
| | | @click="handlePrint(row)" |
| | | >准考证打印 |
| | | </el-button> |
| | |
| | | :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> |
| | |
| | | { |
| | | label: "已取消", |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "考试结束", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | }; |
| | |
| | | value: 2, |
| | | }, |
| | | { |
| | | label: "", |
| | | value: -1, |
| | | label: "考试结束", |
| | | value: 3, |
| | | }, |
| | | ], |
| | | dataType: "number", |
| | |
| | | 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() { |
| | |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | ...mapState({ |
| | | userInfo: state => state.user.userInfo |
| | | }) |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | this.getDeptInfo(this.userInfo.dept_id); |
| | | }, |
| | | methods: { |
| | | //获取当前用户部门信息 |
| | | getDeptInfo(deptId) { |
| | |
| | | }); |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | row.category = 1; |
| | | if (this.deptCategory) { |
| | | row.category = 1; |
| | | }else{ |
| | | row.category = 2; |
| | | } |
| | | row.deptId = this.deptId; |
| | | add(row).then( |
| | | () => { |
| | |
| | | |
| | | const { releaseTimeRange } = this.query; |
| | | // if (that.deptCategory) { |
| | | params["deptId"] = this.deptId; |
| | | // params["deptId"] = this.deptId; |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | // } |
| | | let values = { |
| | |
| | | <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> |
| | |
| | | // 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", |
| | |
| | | >导出 |
| | | </el-button> |
| | | </template> |
| | | |
| | | |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <!-- <el-button |
| | | style="display:none" |
| | |
| | | >离职登记 |
| | | </el-button> |
| | | </template> |
| | | |
| | | |
| | | <template slot-scope="{ row }" slot="sex"> |
| | | <el-tag v-if="row.sex == 1">男</el-tag> |
| | | <el-tag v-if="row.sex == 2">女</el-tag> |
| | | </template> |
| | | |
| | | |
| | | <template slot-scope="{ row }" slot="tenantName"> |
| | | <el-tag>{{ row.tenantName }}</el-tag> |
| | | </template> |
| | |
| | | :props="props" |
| | | > |
| | | </el-tree> |
| | | |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="roleBox = false">取 消</el-button> |
| | | <el-button type="primary" @click="submitRole">确 定</el-button> |
| | |
| | | </el-col> |
| | | </el-row> |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import { |
| | | getUser, |
| | |
| | | import { getToken } from "@/util/auth"; |
| | | import { securityFormPageColumn } from "./data"; |
| | | import { mapState } from "vuex"; |
| | | |
| | | |
| | | export default { |
| | | data() { |
| | | const validatePass = (rule, value, callback) => { |
| | |
| | | return { |
| | | securityid: "", |
| | | excelBox1: false, |
| | | isSecurity: false, |
| | | excelForm1: {}, |
| | | excelOption1: { |
| | | submitBtn: false, |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | |
| | | |
| | | form: {}, |
| | | search: {}, |
| | | roleBox: false, |
| | |
| | | tip: false, |
| | | searchShow: true, |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | border: false, |
| | | stripe: true, |
| | | align: "center", |
| | | index: true, |
| | |
| | | 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", |
| | |
| | | row: true, |
| | | prop: "myPicture", |
| | | }, |
| | | |
| | | |
| | | // { |
| | | // label: "编号", |
| | | // prop: "code", |
| | | // }, |
| | | |
| | | |
| | | { |
| | | label: "所属辖区", |
| | | prop: "jurisdiction", |
| | |
| | | { |
| | | prop: "UserPractitionersInfo", |
| | | type: "dynamic", |
| | | border: true, //liu |
| | | border: false, |
| | | span: 24, |
| | | children: { |
| | | align: "left", |
| | |
| | | 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; |
| | | this.initData(website.tenantId); |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | methods: { |
| | | handleImport1() { |
| | |
| | | handleTemplate1() { |
| | | window.open(`/api/examSubjectChoices/export-template`); |
| | | }, |
| | | |
| | | |
| | | //行点击事件 |
| | | rowClick(row) { |
| | | this.$router.push({ |
| | |
| | | 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(","); |
| | |
| | | this.onLoad(this.page, this.query); |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | let values = { |
| | | ...params, |
| | | }; |
| | | values = { |
| | | ...params, |
| | | roleAlias: "111", |
| | | ...this.query, |
| | | }; |
| | | |
| | | 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 == "保安公司管理员") { |
| | | values["deptId"] = this.userInfo.dept_id; |
| | | 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", |
| | | ...that.query, |
| | | }; |
| | | |
| | | 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( |
| | |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | |
| | | <style> |
| | | .box { |
| | | height: 800px; |
| | | } |
| | | |
| | | |
| | | .el-scrollbar { |
| | | height: 100%; |
| | | } |
| | | |
| | | |
| | | .box .el-scrollbar__wrap { |
| | | overflow: scroll; |
| | | } |
| | | </style> |
| | | </style> |
| | |
| | | prop: "category", |
| | | type: "select", |
| | | dicUrl: "/api/blade-system/dict-biz/dictionary?code=workReportCategory", |
| | | cascaderItem: ["receivedIds"], |
| | | props: { |
| | | label: "dictValue", |
| | | value: "dictKey" |
| | |
| | | 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", |
| | |
| | | searchMenuSpan: 6, |
| | | border: true, //liu |
| | | addBtnText: "发起", |
| | | saveBtnText: "发起", |
| | | addTitle: "发起", |
| | | index: true, |
| | | stripe: true, |
| | | viewBtn: true, |