| | |
| | | <script> |
| | | import { getListhonor } from "@/api/register/honor"; |
| | | export default { |
| | | props: ["form"], |
| | | props: ["form", "see"], |
| | | data() { |
| | | return { |
| | | punishOption: { |
| | |
| | | delBtn: false, |
| | | editBtn: false, |
| | | addBtn: false, |
| | | searchShowBtn: false, |
| | | // searchShowBtn: false, |
| | | selection: true, |
| | | menu: false, |
| | | |
| | |
| | | height: "auto", |
| | | calcHeight: 270, |
| | | tip: false, |
| | | searchShow: false, |
| | | // searchShow: false, |
| | | searchMenuSpan: 4, |
| | | // index: false, |
| | | viewBtn: true, |
| | |
| | | label: "保安员名称", |
| | | prop: "name", |
| | | span: 24, |
| | | search: false, |
| | | searchLabelWidth: 100, |
| | | searchSpan: 4, |
| | | labelWidth: 110, |
| | | disabled: true, |
| | | rules: [ |
| | |
| | | label: "身份证号码", |
| | | prop: "cardid", |
| | | span: 24, |
| | | search: false, |
| | | searchSpan: 5, |
| | | labelWidth: 110, |
| | | searchLabelWidth: 100, |
| | | width: 190, |
| | | disabled: true, |
| | | rules: [ |
| | |
| | | { |
| | | label: "荣誉情况", |
| | | prop: "honor", |
| | | search: false, |
| | | searchSpan: 5, |
| | | searchLabelWidth: 90, |
| | | span: 24, |
| | | labelWidth: 110, |
| | | }, |
| | |
| | | i: 1, |
| | | }; |
| | | }, |
| | | mounted() {}, |
| | | mounted() { |
| | | if (this.see) { |
| | | this.punishOption.height = "615"; |
| | | this.punishOption.column[0].search = true; |
| | | this.punishOption.column[1].search = true; |
| | | this.punishOption.column[3].search = true; |
| | | } |
| | | }, |
| | | methods: { |
| | | punishOnLoad(page, params = {}) { |
| | | this.punishLoading = true; |
| | | if (this.see) { |
| | | getListhonor( |
| | | page.currentPage, |
| | | page.pageSize, |
| | | Object.assign(params, this.punishQuery) |
| | | ).then((res) => { |
| | | this.i++; |
| | | const data = res.data.data; |
| | | |
| | | this.punishPage.total = data.total; |
| | | this.punishData = data.records; |
| | | console.log(this.punishData); |
| | | this.punishLoading = false; |
| | | this.$refs.punishCrud.refreshTable(); |
| | | this.$refs.punishCrud.doLayout(); |
| | | if (this.i % 2 != 0) { |
| | | this.punishAngin(); |
| | | } |
| | | }); |
| | | return; |
| | | } |
| | | getListhonor( |
| | | page.currentPage, |
| | | page.pageSize, |