| | |
| | | savePunish, |
| | | } from "@/api/securityCompany/security"; |
| | | import { mapGetters } from "vuex"; |
| | | import { companyColimn } from "./column"; |
| | | import { crossColumn } from "./column"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: true, |
| | | menuWidth: 175, |
| | | menuWidth: 210, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | viewBtn: true, |
| | | dialogClickModal: false, |
| | | |
| | | column: companyColimn, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | |
| | | column: crossColumn, |
| | | group: [ |
| | | { |
| | | label: "详细信息", |
| | |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | }, |
| | | created() { |
| | | //列控制 |
| | | const representativecolumn = this.findObject( |
| | | this.option.column, |
| | | "representative" |
| | | ); |
| | | const representativecellcolumn = this.findObject( |
| | | this.option.column, |
| | | "representativecell" |
| | | ); |
| | | //法人及电话,办公地址不可见 |
| | | representativecolumn.label = "分公司负责人"; |
| | | representativecellcolumn.label = "分公司负责人电话"; |
| | | }, |
| | | mounted() { |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | |
| | | // 行单击 |
| | | handleRowClick(row) { |
| | | // delete (row["name"]); |
| | | var obj = row; |
| | | obj["name"] = "保安公司详细信息"; |
| | | // console.log(obj, "obj"); |
| | | var data = JSON.stringify(obj); |
| | | this.$router.push({ |
| | | path: `/securityCompany/index`, |
| | | query: obj, |
| | | query: { data: data }, |
| | | }); |
| | | }, |
| | | }, |