| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-07 17:30:05 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-07-10 16:01:42 |
| | | * menu-name 保安服务公司查询 |
| | | */ |
| | | /* * @Author: Morpheus * @Date: 2021-07-07 17:30:05 * @Last Modified by: liu * |
| | | @Last Modified time: 2021-09-18 09:14:43 * menu-name 保安服务公司查询 */ |
| | | <template> |
| | | <basic-container> |
| | | <basic-container |
| | | :class="[ |
| | | $store.state.control.screenSize == 1366 ? 'smallSize' : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '', |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @row-click="handleRowClick" |
| | | @on-load="onLoad" |
| | | > |
| | | <!-- @row-click="handleRowClick" --> |
| | | <template slot-scope="{ row }" slot="znum"> |
| | | <el-tag |
| | | class="rowClickSelf" |
| | | @click="rowClickSelf(row)" |
| | | title="点击查看保安人员情况" |
| | | >{{ row.znum }}</el-tag |
| | | > |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | icon="el-icon-s-custom" |
| | | :size="size" |
| | | :type="type" |
| | | @click.stop="handleRowClick(row)" |
| | | >查看 |
| | | </el-button> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | icon="el-icon-warning" |
| | | class="zhengJian-icon" |
| | | @click.stop="punish(row)" |
| | | >处罚</el-button |
| | |
| | | savePunish, |
| | | } from "@/api/securityCompany/security"; |
| | | import { mapGetters } from "vuex"; |
| | | import { companyColimn } from "./column"; |
| | | import { crossColumn } from "./column"; |
| | | |
| | | export default { |
| | | data() { |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | selectionList: [], |
| | | option: { |
| | |
| | | selection: true, |
| | | searchShowBtn: false, |
| | | // menu: false, |
| | | |
| | | border: true, |
| | | align: "center", |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | tip: false, |
| | | searchShow: true, |
| | | menuWidth: 100, |
| | | menuWidth: 210, |
| | | searchMenuSpan: 6, |
| | | index: true, |
| | | viewBtn: true, |
| | | dialogClickModal: false, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | |
| | | column: companyColimn, |
| | | // [ |
| | | // { |
| | | // label: "公司名称", |
| | | // prop: "enterprisename", |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // // width: 300, |
| | | // minWidth: 120, |
| | | // overHidden: true, |
| | | // display: false, |
| | | // }, |
| | | // { |
| | | // label: "法定代表人", |
| | | // prop: "representative", |
| | | // display: false, |
| | | // width: 86, |
| | | // }, |
| | | // { |
| | | // label: "法人电话", |
| | | // prop: "representativecell", |
| | | // display: false, |
| | | // width: 95, |
| | | // }, |
| | | // { |
| | | // label: "注册时间", |
| | | // prop: "establishtime", |
| | | // type: "date", |
| | | // format: "yyyy-MM-dd", |
| | | // valueFormat: "yyyy-MM-dd", |
| | | // mock: { |
| | | // type: "datetime", |
| | | // format: "yyyy-MM-dd", |
| | | // }, |
| | | // search: true, |
| | | // searchSpan: 4, |
| | | // display: false, |
| | | // width: 140, |
| | | // }, |
| | | // { |
| | | // label: "注册资金", |
| | | // prop: "registeredcapital", |
| | | // display: false, |
| | | // width: 110, |
| | | // }, |
| | | // { |
| | | // label: "实缴资金", |
| | | // prop: "capital", |
| | | // display: false, |
| | | // width: 110, |
| | | // }, |
| | | // // { |
| | | // // label: "公司类型", |
| | | // // prop: "enterprises", |
| | | // // display: false, |
| | | // // width: 220, |
| | | // // overHidden: true, |
| | | // // }, |
| | | |
| | | // { |
| | | // label: "联系人", |
| | | // prop: "contacts", |
| | | // display: false, |
| | | // overHidden: true, |
| | | // width: 95, |
| | | // }, |
| | | // { |
| | | // label: "联系电话", |
| | | // prop: "contactscell", |
| | | // display: false, |
| | | // overHidden: true, |
| | | // width: 95, |
| | | // }, |
| | | // { |
| | | // label: "注册地址", |
| | | // prop: "address", |
| | | // display: false, |
| | | // overHidden: true, |
| | | // }, |
| | | // ], |
| | | 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"); |
| | | }, |
| | | methods: { |
| | | rowClickSelf(val) { |
| | | // console.log(val.departmentid); |
| | | this.$router.push({ |
| | | path: "/securityGuardManagement/registerOnce", |
| | | query: { departmentid: val.departmentid }, |
| | | }); |
| | | }, |
| | | close(row) { |
| | | this.dialogVisible = false; |
| | | this.objf = { |
| | |
| | | }; |
| | | }, |
| | | submitf(form, done) { |
| | | console.log(form); |
| | | // console.log(form); |
| | | var that = this; |
| | | savePunish(form).then((res) => { |
| | | this.$message({ |
| | |
| | | const data = res.data.data; |
| | | this.page.total = data.total; |
| | | this.data = data.records; |
| | | console.log(this.data); |
| | | // console.log(this.data); |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.loading = false; |
| | | this.selectionClear(); |
| | | }); |
| | |
| | | |
| | | // 行单击 |
| | | handleRowClick(row) { |
| | | // delete (row["name"]); |
| | | var obj = row; |
| | | obj["name"] = "保安公司详细信息"; |
| | | var data = JSON.stringify(obj); |
| | | this.$router.push({ |
| | | path: `/securityCompany/index`, |
| | | query: obj, |
| | | query: { data: data }, |
| | | }); |
| | | |
| | | var flag = false, |
| | | i = 0, |
| | | ind = null; |
| | | |
| | | this.$store.state.tags.tagList.forEach((item, index) => { |
| | | if (item.label == "保安公司详细信息") { |
| | | if (flag == false) { |
| | | ind = index; |
| | | flag = true; |
| | | } |
| | | i++; |
| | | } |
| | | }); |
| | | if (i > 1) { |
| | | this.$store.state.tags.tagList.splice(ind, 1); |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style> |
| | | </style> |
| | | <style lang="scss"></style> |