| | |
| | | <template> |
| | | <el-row :class="{ securityGuard: isSecurity }"> |
| | | |
| | | <el-col :span="0" |
| | | style="display: none"> |
| | | <div class="box"> |
| | |
| | | :upload-after="uploadAfter2"> |
| | | </avue-form> |
| | | </el-dialog> |
| | | <div style="position: fixed; left: 99999999px; width: 100%; height: 100%;"> |
| | | <certificate |
| | | ref="certificate" |
| | | :data="certificateObj"></certificate> |
| | | </div> |
| | | </basic-container> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | import { getToken } from "@/util/auth"; |
| | | import { securityFormPageColumn } from "./data"; |
| | | import { mapState } from "vuex"; |
| | | import certificate from "./certificate.vue"; |
| | | |
| | | export default { |
| | | data () { |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | console.log(this.userInfo, 123); |
| | | |
| | | return { |
| | | certificateObj: { title: "我是头部标题", }, |
| | | securityid: "", |
| | | excelBox1: false, |
| | | excelBox2: false, |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | components: { certificate }, |
| | | watch: { |
| | | "form.tenantId" () { |
| | | if (this.form.tenantId !== "" && this.initFlag) { |
| | |
| | | if (!website.tenantMode) { |
| | | this.initData(website.tenantId); |
| | | } |
| | | console.log(this.search, 111); |
| | | this.search["status"] = 1; |
| | | this.deptIds = this.userInfo.dept_id; |
| | | }, |
| | |
| | | |
| | | //行点击事件 |
| | | rowClick (row) { |
| | | // console.log(row, 111); |
| | | this.$router.push({ |
| | | path: "/securityGuardDetail", |
| | | query: { row: JSON.stringify(row) }, |
| | |
| | | }, |
| | | //行点击事件 |
| | | certificateClick (row) { |
| | | // console.log(row, 111); |
| | | this.$router.push({ |
| | | path: "/certificateOfPrint", |
| | | query: { row: JSON.stringify(row) }, |
| | | }); |
| | | if (row) { |
| | | for (var k in row) { |
| | | this.certificateObj[k] = row[k]; |
| | | } |
| | | |
| | | this.$refs.certificate.Print(); |
| | | } |
| | | }, |
| | | rowClickSelf (row) { |
| | | console.log(row, "baoan"); |
| | | this.$router.push({ |
| | | path: "/securityUnitChild", |
| | | query: { fromSecunityGuardId: row }, |
| | |
| | | }) |
| | | .then(() => { |
| | | let cho = this.choiceList; |
| | | console.log(this.choiceList, 14521); |
| | | let str = ""; |
| | | for (let k in cho) { |
| | | str += cho[k].id; |
| | |
| | | str += ","; |
| | | } |
| | | } |
| | | console.log(str, 1132); |
| | | const data = { |
| | | ids: str, |
| | | createUser: this.userInfo.user_id |
| | |
| | | ); |
| | | }, |
| | | rowDellook (row) { |
| | | // console.log(row.reasonForLeav); |
| | | this.$alert( |
| | | row.reasonForLeav == "" ? "未填写" : row.reasonForLeav, |
| | | "离职原因", |
| | |
| | | inputErrorMessage: "", |
| | | }) |
| | | .then(({ value }) => { |
| | | console.log(value); |
| | | row.reasonForLeav = value; |
| | | row.status = "2"; |
| | | // console.log(update); |
| | | // return; |
| | | update(row).then((res) => { |
| | | this.$message({ |