| | |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | v-if="visible" |
| | | :option="option" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | import { getdata, adddata, update, remove } from "@/api/car/car"; |
| | | import { mapGetters } from "vuex"; |
| | | export default { |
| | | props: ["fromDeptId"], |
| | | props: ["fromDeptId", "windowHeight"], |
| | | watch: { |
| | | windowHeight() { |
| | | if (!this.windowHeight) { |
| | | return; |
| | | } |
| | | this.option.height = this.windowHeight - 320; |
| | | this.visible = false; |
| | | this.$nextTick(() => { |
| | | this.visible = true; |
| | | this.refreshChange(); |
| | | }); |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | visible: true, |
| | | deptIds: "", |
| | | excelBox: false, |
| | | excelForm: {}, |
| | |
| | | searchSize: "mini", |
| | | border: true, |
| | | searchMenuSpan: 6, |
| | | height: 583, |
| | | height: "auto", |
| | | menuWidth: 160, |
| | | align: "center", |
| | | selection: true, |
| | |
| | | this.deptIds = this.userInfo.dept_id; |
| | | }, |
| | | created() { |
| | | if (this.windowHeight) { |
| | | this.option.height = this.windowHeight - 320; |
| | | } |
| | | var that = this; |
| | | if ( |
| | | this.userInfo.role_name == "装备管理员" || |