| | |
| | | : "" |
| | | }} |
| | | </template> |
| | | <template slot-scope="{ row }" slot="deptId"> |
| | | <template slot-scope="{ row }" slot="deptName"> |
| | | <el-tag |
| | | class="rowClickSelf" |
| | | title="点击查看所属公司情况" |
| | | @click="rowClickSelf(row.deptId)" |
| | | >{{ row.$deptId }}</el-tag |
| | | >{{ row.deptName }}</el-tag |
| | | > |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | |
| | | import { getToken } from "@/util/auth"; |
| | | import { addhonor, getER } from "@/api/register/honor"; |
| | | import baoanz from "./baoanz.vue"; |
| | | import { getInformationDetails } from "@/api/securityCompany/security"; |
| | | export default { |
| | | components: { |
| | | baoanz, |
| | |
| | | display: false, |
| | | }, |
| | | { |
| | | label: "所属保安公司", |
| | | label: "企业名称", |
| | | searchLabelWidth: "110", |
| | | // prop: "deptName", |
| | | prop: "deptId", |
| | |
| | | value: "id", |
| | | }, |
| | | slot: true, |
| | | hide:true, |
| | | searchSpan: 5, |
| | | display: false, |
| | | overHidden: true, |
| | | search: true, |
| | | }, |
| | | { |
| | | label: "企业名称", |
| | | prop: "deptName", |
| | | slot: true, |
| | | display: false, |
| | | overHidden: true, |
| | | width: 198, |
| | | }, |
| | | { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | rowClickSelf(row) { |
| | | // console.log(row, "baoan"); |
| | | this.$router.push({ |
| | | path: "/securityCompany/index", |
| | | query: { fromSecunityGuardId: row }, |
| | | }); |
| | | rowClickSelf(deptId) { |
| | | var data = { |
| | | departmentid:deptId |
| | | } |
| | | getInformationDetails(data).then((res) => { |
| | | var obj = res.data.data; |
| | | obj["name"] = "保安公司详细信息"; |
| | | var data = JSON.stringify(obj); |
| | | this.$router.push({ |
| | | path: "/securityCompany/index", |
| | | query: { data: data }, |
| | | }); |
| | | }) |
| | | |
| | | }, |
| | | Print() { |
| | | this.$Print(this.$refs.baoanzheng); |
| | |
| | | }, |
| | | errorf(err) { |
| | | this.$message.success("请查看控制台"); |
| | | console.log(err); |
| | | // console.log(err); |
| | | }, |
| | | handleClose(done) { |
| | | this.objf = {}; |
| | |
| | | this.dialogVisible = true; |
| | | }, |
| | | nodeClick(data) { |
| | | // this.treeDeptId = data.id; |
| | | // console.log(data, 55555); |
| | | if (data.title != "南昌市公安局") { |
| | | this.jurisdiction = data.id; |
| | | } else { |
| | |
| | | }, |
| | | onLoad(page, params = {}) { |
| | | this.loading = true; |
| | | // console.log(this.jurisdiction,33333); |
| | | params["jurisdiction"] = this.jurisdiction; |
| | | // console.log(params, 1, this.query, 2); |
| | | getListSecurity( |
| | | page.currentPage, |
| | | page.pageSize, |
| | |
| | | }) |
| | | .then(() => { |
| | | updateHold(3, row.cardid).then((res) => { |
| | | console.log(res); |
| | | // console.log(res); |
| | | this.$message({ |
| | | type: "success", |
| | | message: "吊销成功!", |