| | |
| | | >证书制证申请 |
| | | </el-button> |
| | | <el-button |
| | | type="primary" |
| | | type="warning" |
| | | size="small" |
| | | plain |
| | | v-if="permission.securityGuard_escort_personnel_import" |
| | | icon="el-icon-collection-tag" |
| | | @click="handleEscortPersonnelImport" |
| | | >押运人员批量导入 |
| | | icon="el-icon-download" |
| | | @click="handleExportSecurityInfo" |
| | | >保安信息导出 |
| | | </el-button> |
| | | |
| | | <el-button |
| | |
| | | import {getToken} from "@/util/auth"; |
| | | import {securityFormPageColumn} from "./data"; |
| | | import {mapState} from "vuex"; |
| | | import Qs from "qs"; |
| | | |
| | | //加载指纹类 |
| | | import Client from "./Client"; |
| | |
| | | beforeCreate() { |
| | | }, |
| | | created() { |
| | | console.log(this.userInfo, 9999); |
| | | // console.log(this.userInfo, 9999); |
| | | if (this.userInfo.role_name == "办证管理员") { |
| | | this.search["userType"] = 7; |
| | | this.search["hold"] = "1"; |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | //保安员信息导出 |
| | | handleExportSecurityInfo() { |
| | | this.$confirm("是否导出保安员信息数据?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }).then(() => { |
| | | //获取查询条件 |
| | | // const { releaseTimeRange } = this.search; |
| | | // if (releaseTimeRange) { |
| | | // this.search["startTime"] = releaseTimeRange[0]; |
| | | // this.search["endTime"] = releaseTimeRange[1]; |
| | | // } |
| | | var data = { |
| | | cardid:this.search.cardid, |
| | | deptId:this.search.deptId, |
| | | hold:this.search.hold, |
| | | realName: this.search.realName, |
| | | securitynumber: this.search.securitynumber, |
| | | status: this.search.status, |
| | | userType: this.search.startTime, |
| | | }; |
| | | //导出 |
| | | if (this.userInfo.role_name == "保安公司管理员") { |
| | | //如果是保安公司管理员 |
| | | data["deptId"] = this.userInfo.dept_id; |
| | | } |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | //如果是培训公司管理员 |
| | | data["trainingUnitId"] = this.userInfo.Id; |
| | | } |
| | | if (this.userInfo.role_name == "公安管理员") { |
| | | //如果是公安管理员 |
| | | data["jurisdiction"] = this.userInfo.jurisdiction; |
| | | } |
| | | //序列号url形式,用&拼接 |
| | | data = Qs.stringify(data); |
| | | window.open(`/api/blade-user/export-security-info?${this.website.tokenHeader}=${getToken()}&`+data); |
| | | }); |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | // var dom = document.getElementById("zhiwenOur"); |
| | | // window.frames["iframe的name值"].document.getElementById("iframe中控件的ID").click(); |
| | |
| | | ); |
| | | importColumn.action = |
| | | "/api/blade-user/import-security?deptId=" + this.deptIds; |
| | | } else if (roleAlias == "公安管理员") { |
| | | } else if (roleAlias == "公安管理员" || roleAlias == "administrator") { |
| | | params["jurisdiction"] = that.userInfo.jurisdiction; |
| | | var columnDept = that.findObject(that.option.column, "deptId"); |
| | | columnDept.dicUrl = |
| | |
| | | ColumnDeptUpdate.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697&jurisdiction=" + |
| | | that.userInfo.jurisdiction; |
| | | |
| | | //审查状态查询开启 |
| | | var columnExaminationType = that.findObject(that.option.column, "examinationType"); |
| | | columnExaminationType.search = true; |
| | | columnExaminationType.hide = false; |
| | | } else if (roleAlias == "培训公司管理员") { |
| | | //如果是保安公司管理员 |
| | | params["trainingUnitId"] = that.userInfo.dept_id; |
| | | //如果是培训公司管理员 |
| | | // params["trainingUnitId"] = that.userInfo.dept_id; |
| | | var columnDept2 = that.findObject(that.option.column, "deptId"); |
| | | columnDept2.dicUrl = |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | |
| | | "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697"; |
| | | } |
| | | |
| | | |
| | | let values = { |
| | | ...params, |
| | | }; |