| | |
| | | > |
| | | <basic-container> |
| | | <avue-crud |
| | | v-if="visible" |
| | | :option="option1" |
| | | :data="data1" |
| | | :page.sync="page1" |
| | |
| | | > |
| | | <basic-container> |
| | | <avue-crud |
| | | v-if="visible" |
| | | :option="option2" |
| | | :data="data2" |
| | | :page.sync="page2" |
| | |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab4'" class="tab"> --> |
| | | <el-tab-pane label="装备管理" name="tab4"> |
| | | <!-- 装备管理 --> |
| | | <equipments :fromDeptId="departmentid" v-if="overzb"></equipments> |
| | | <equipments |
| | | v-if="overzb" |
| | | :fromDeptId="departmentid" |
| | | :windowHeight="windowHeight" |
| | | ></equipments> |
| | | <!-- </span> --> |
| | | </el-tab-pane> |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab5'" class="tab"> --> |
| | | <el-tab-pane label="车辆管理" name="tab5"> |
| | | <!-- 车辆管理 --> |
| | | <car :fromDeptId="departmentid" v-if="overcar"></car> |
| | | <car |
| | | :fromDeptId="departmentid" |
| | | v-if="overcar" |
| | | :windowHeight="windowHeight" |
| | | ></car> |
| | | <!-- </span> --> |
| | | </el-tab-pane> |
| | | <!-- <span v-else-if="typeTABS.prop === 'tab6'" class="tab"> |
| | |
| | | import licence from "./licence.vue"; |
| | | import businessLicense from "./businessLicense.vue"; |
| | | import social from "./social.vue"; |
| | | import { mapState } from "vuex"; |
| | | import { mapGetters } from "vuex"; |
| | | import { getRoleDetail } from "@/api/system/role"; |
| | | |
| | | export default { |
| | |
| | | ], |
| | | }; |
| | | return { |
| | | visible: false, |
| | | overcar: false, //结决id传入、信息获取的优先级 |
| | | overzb: false, //结决id传入、信息获取的优先级 |
| | | overcar: false, //结决id传入、信息获取的优先级 |
| | |
| | | tip: false, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 8, |
| | | height: 563, |
| | | height: "auto", |
| | | menuWidth: 200, |
| | | align: "center", |
| | | selection: true, |
| | |
| | | tip: false, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 8, |
| | | height: 563, |
| | | height: "auto", |
| | | menuWidth: 200, |
| | | menuAlign: "center", |
| | | align: "center", |
| | |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapState({ |
| | | userInfo: (state) => state.user.userInfo, |
| | | }), |
| | | ...mapGetters(["userInfo", "windowHeight"]), |
| | | chuzitime() { |
| | | return this.data1.capitaltime; |
| | | }, |
| | |
| | | // |
| | | onLoad1(page, params = {}) { |
| | | this.loading1 = true; |
| | | console.log(page, params, 3435434); |
| | | // console.log(page, params, 3435434); |
| | | params["deptId"] = this.departmentid; |
| | | getdataOnce1( |
| | | page.currentPage, |
| | |
| | | const data = res.data.data; |
| | | this.page1.total = data.total; |
| | | this.data1 = data.records; |
| | | console.log(this.data1); |
| | | // console.log(this.data1); |
| | | this.loading1 = false; |
| | | |
| | | this.$refs.crudrec1.refreshTable(); |
| | | this.$refs.crudrec1.doLayout(); |
| | | // this.$refs.crudrec1.refreshTable(); |
| | | // this.$refs.crudrec1.doLayout(); |
| | | }); |
| | | // onLoad1(page, params = {}) { |
| | | // this.loading1 = true; |
| | |
| | | const data = res.data.data; |
| | | this.page2.total = data.total; |
| | | this.data2 = data.records; |
| | | console.log(this.data2); |
| | | // console.log(this.data2); |
| | | this.loading2 = false; |
| | | this.$refs.crudrec2.refreshTable(); |
| | | this.$refs.crudrec2.doLayout(); |
| | |
| | | if (that.readLock("danweidata") != null) { |
| | | row = JSON.parse(that.readLock("danweidata")); |
| | | // that.obj0.title = row.enterprisename; |
| | | console.log(row, "rowneibu"); |
| | | // console.log(row, "rowneibu"); |
| | | that.departmentid = row.departmentid; |
| | | for (var k in row) { |
| | | that.obj0[k] = row[k]; |
| | |
| | | this.onloads(); |
| | | }, |
| | | watch: { |
| | | // chuzitime() { |
| | | // console.log(this.chuzitime, "chuzitime"); |
| | | // windowWidth() { |
| | | // console.log(this.windowWidth, "windowWidth"); |
| | | // }, |
| | | windowHeight() { |
| | | // console.log(this.windowHeight, "windowHeight"); |
| | | this.option1.height = this.windowHeight - 320; |
| | | this.option2.height = this.windowHeight - 320; |
| | | this.visible = false; |
| | | this.$nextTick(() => { |
| | | this.visible = true; |
| | | this.refreshChange1(); |
| | | this.refreshChange2(); |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |