| | |
| | | > |
| | | </el-pagination> |
| | | </el-dialog> |
| | | <!--保安员预警弹框 --> |
| | | <el-dialog |
| | | class="form-dialog" |
| | | title="保安员预警" |
| | | v-loading="dialogloading" |
| | | element-loading-text="数据加载中" |
| | | :visible.sync="guardWarningShowing" |
| | | > |
| | | <el-form label-width="120px" :model="formData"> |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="保安姓名"> |
| | | <el-input v-model="formData.realName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="保安公司"> |
| | | <el-input v-model="formData.deptName"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="性别"> |
| | | <el-input v-model="formData.sex"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="年龄"> |
| | | <el-input v-model="formData.age"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="身份证号"> |
| | | <el-input v-model="formData.cardid"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="保安员证编号"> |
| | | <el-input v-model="formData.securitynumber"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="联系方式"> |
| | | <el-input v-model="formData.phone"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="审查状态"> |
| | | <el-input v-model="formData.examinationType"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="审查明细"> |
| | | <el-input v-model="formData.examinationMx"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </el-form> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | node2: {}, |
| | | params: null, |
| | | peopleGps: {}, |
| | | carGps: {} |
| | | carGps: {}, |
| | | guardWarningShowing: false, |
| | | formData: |
| | | { |
| | | realName: "", |
| | | deptName: "", |
| | | sex: "", |
| | | cardid: "", |
| | | age: "", |
| | | securitynumber: "", |
| | | phone: "", |
| | | examinationType: "", |
| | | examinationMx: "" |
| | | } |
| | | |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | // examinationType: 1, |
| | | // jurisdiction: this.value1 |
| | | // }; |
| | | let types = this.poorPerformanceType.toString() |
| | | let types = this.poorPerformanceType.toString(); |
| | | let params = { |
| | | current: this.gridData.current, |
| | | size: 10, |
| | | jurisdiction: this.value1, |
| | | examinationType: 1, |
| | | types:types |
| | | types: types |
| | | }; |
| | | qualificationPages(params).then(res => { |
| | | if (res.data.code === 200) { |
| | |
| | | this.gridData.current = page; |
| | | this.dialogloading = true; |
| | | this.gridData.data = []; |
| | | let types = this.poorPerformanceType.toString() |
| | | let types = this.poorPerformanceType.toString(); |
| | | let params = { |
| | | current: this.gridData.current, |
| | | size: 10, |
| | | jurisdiction: this.value1, |
| | | type:types |
| | | type: types |
| | | }; |
| | | xsbxPages(params).then(res => { |
| | | if (res.data.code === 200) { |
| | |
| | | // this.$router.push({ path: "/register/index" }); |
| | | // this.$router.push({ path: "/securityGuardManagement/register" }); |
| | | this.$router.push({ path: website.fistPage.value }); |
| | | }, |
| | | getSecurityGuardTimer() { |
| | | this.formData = {} |
| | | let _this = this; |
| | | setInterval(function() { |
| | | selectExtype({ |
| | | jurisdiction: _this.value1, |
| | | type: _this.poorPerformanceType |
| | | }).then(res => { |
| | | if (res.data.code === 200) { |
| | | var num = res.data.data[0].count; |
| | | if (num > _this.rightData.qualification) { |
| | | let types = _this.poorPerformanceType.toString(); |
| | | let params = { |
| | | current: 1, |
| | | size: 100000, |
| | | jurisdiction: _this.value1, |
| | | examinationType: 1, |
| | | types: types |
| | | }; |
| | | qualificationPages(params).then(res => { |
| | | if (res.data.code === 200) { |
| | | var data = res.data.data.records[0]; |
| | | var obj = { |
| | | realName: data.realName, |
| | | deptName: data.deptName, |
| | | sex: data.sex, |
| | | cardid: data.cardid, |
| | | age: data.age, |
| | | securitynumber: data.securitynumber, |
| | | phone: data.phone, |
| | | examinationType: data.examinationType, |
| | | examinationMx: data.examinationMx |
| | | }; |
| | | if (data.sex === 1) { |
| | | obj.sex = "男"; |
| | | } else if (data.sex === 2) { |
| | | obj.sex = "女"; |
| | | } |
| | | if (data.examinationType === "1") { |
| | | obj.examinationType = "异常"; |
| | | } else if (data.examinationType === "0") { |
| | | obj.examinationType = "正常"; |
| | | } |
| | | _this.formData = obj; |
| | | _this.guardWarningShowing = true; |
| | | } |
| | | }); |
| | | _this.rightData.qualification = num; |
| | | } |
| | | } else { |
| | | _this.$message.error(res.msg); |
| | | } |
| | | }); |
| | | }, 5000); |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | // this.getTableData(0); |
| | | // this.getCompanyMap(); |
| | | this.getOfficeData(); |
| | | this.getSecurityGuardTimer(); |
| | | } |
| | | }; |
| | | </script> |
| | |
| | | /deep/ .el-table .cell { |
| | | text-align: center; |
| | | } |
| | | /deep/ .form-dialog { |
| | | height: 600px; |
| | | |
| | | .el-dialog { |
| | | width: 800px !important; |
| | | background-color: #fff !important; |
| | | color: #000 !important; |
| | | box-shadow: 0px 0px 12px red; |
| | | .el-input__inner { |
| | | border: 1px solid #f0eaea !important; |
| | | color: #000 !important; |
| | | } |
| | | .el-dialog__header { |
| | | background-color: red !important; |
| | | } |
| | | .el-dialog__body { |
| | | background-color: #fff !important; |
| | | color: #000 !important; |
| | | } |
| | | .el-form-item__label { |
| | | color: #000 !important; |
| | | } |
| | | } |
| | | } |
| | | </style> |