| | |
| | | flowRoutes: state => state.dict.flowRoutes, |
| | | //控制按钮消失(表格右侧显影按钮) |
| | | clearOtherBut: state => state.control.clearOtherBut, |
| | | windowWidth: state => state.control.windowWidth, |
| | | windowHeight: state => state.control.windowHeight, |
| | | } |
| | | export default getters |
| | |
| | | pageSizes: [15, 30, 50, 100], |
| | | }, |
| | | windowWidth: 1025, |
| | | windowHeight: '', |
| | | }, |
| | | actions: { |
| | | }, |
| | | mutations: { |
| | | setWindowSize: (state, data) => { |
| | | state.windowWidth = data.innerWidth; |
| | | state.windowHeight = data.innerHeight; |
| | | // console.log(data) |
| | | }, |
| | | } |
| | |
| | | // menu: false, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 8, |
| | | height: 450, |
| | | height: "auto", |
| | | cellBtn: false, |
| | | delBtnText: "结束派遣", |
| | | editBtnText: "更改派遣", |
| | |
| | | // refreshBtn: false, |
| | | // card: true, |
| | | menu: false, |
| | | height: 450, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | // calcHeight: 54, |
| | | border: true, //liu |
| | |
| | | // refreshBtn: false, |
| | | // card: true, |
| | | menu: false, |
| | | height: 450, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | // calcHeight: 54, |
| | | border: true, //liu |
| | |
| | | // refreshBtn: false, |
| | | // card: true, |
| | | menu: false, |
| | | height: 450, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | // calcHeight: 54, |
| | | border: true, //liu |
| | |
| | | // refreshBtn: false, |
| | | // card: true, |
| | | menu: false, |
| | | height: 450, |
| | | height: "auto", |
| | | widtd: "auto", |
| | | // calcHeight: 54, |
| | | border: true, //liu |
| | |
| | | searchLabelWidth: "50", |
| | | width: 80, |
| | | overHidden: true, |
| | | searchSpan: 3, |
| | | searchSpan: 4, |
| | | search: true, |
| | | }, |
| | | { |
| | |
| | | searchMenuSpan: 6, |
| | | border: true, |
| | | index: true, |
| | | height: 430, |
| | | addBtn: sees, |
| | | viewBtn: true, |
| | | menu: false, |
| | |
| | | :title="titles" |
| | | append-to-body |
| | | :visible.sync="dialogVisible" |
| | | top="9vh" |
| | | top="8vh" |
| | | height="70%" |
| | | > |
| | | <situation |
| | | :card="{ deptId: deptid, jurisdiction: jurisdiction }" |
| | |
| | | ]" |
| | | > |
| | | <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 == "装备管理员" || |
| | |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | v-if="visible" |
| | | :option="option" |
| | | :data="data" |
| | | :page.sync="page" |
| | |
| | | import { getdata, adddata, update, remove } from "@/api/equipments/equipments"; |
| | | 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, |
| | | excelBox: false, |
| | | excelForm: {}, |
| | | excelOption: { |
| | |
| | | tip: false, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: 583, |
| | | height: "auto", |
| | | index: true, |
| | | menuWidth: 160, |
| | | border: true, |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | if (this.windowHeight) { |
| | | this.option.height = this.windowHeight - 320; |
| | | } |
| | | var that = this; |
| | | if ( |
| | | this.userInfo.role_name == "装备管理员" || |
| | |
| | | tip: false, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: 583, |
| | | height: "auto", |
| | | index: true, |
| | | menuWidth: 160, |
| | | align: "center", |
| | |
| | | tip: false, |
| | | searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: 583, |
| | | height: "auto", |
| | | menuWidth: 275, |
| | | align: "center", |
| | | border: true, |
| | |
| | | created() { |
| | | this.option0.column[4].value = 0; |
| | | this.option0.column[4].disabled = true; |
| | | if (this.userInfo.role_name == "培训公司管理员") { |
| | | for (let k in this.option0.column) { |
| | | if (this.option0.column[k].prop == "enterprisename") { |
| | | continue; |
| | | } |
| | | if (this.option0.column[k].rules) { |
| | | delete this.option0.column[k].rules; |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["userInfo"]), |
| | |
| | | > |
| | | <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> |
| | |
| | | }, |
| | | mounted() { |
| | | this.seeImg(); |
| | | console.log(this.row.licence); |
| | | // console.log(this.row.licence); |
| | | }, |
| | | comments: { |
| | | srcList() { |
| | |
| | | :class="[$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '']" |
| | | > |
| | | <avue-crud |
| | | v-if="visible" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | deptid = this.$store.getters.userInfo.dept_id; |
| | | } |
| | | return { |
| | | visible: true, |
| | | form: { cardid: "" }, |
| | | |
| | | query: {}, |
| | |
| | | selectionList: [], |
| | | option: { |
| | | height: "auto", |
| | | calcHeight: 30, |
| | | // calcHeight: 30, |
| | | tip: false, |
| | | searchShow: true, |
| | | align: "center", |
| | |
| | | this.$refs.crud.refreshTable(); |
| | | this.$refs.crud.doLayout(); |
| | | }, |
| | | windowHeight() { |
| | | console.log(this.windowHeight); |
| | | this.option.height = this.windowHeight - 320; |
| | | this.visible = false; |
| | | this.$nextTick(() => { |
| | | this.visible = true; |
| | | this.refreshChange(); |
| | | }); |
| | | }, |
| | | }, |
| | | created() { |
| | | this.option.height = this.windowHeight - 320; |
| | | }, |
| | | computed: { |
| | | ...mapGetters(["permission", "userInfo"]), |
| | | ...mapGetters(["permission", "userInfo", "windowHeight"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.social_add, true), |
| | |
| | | :class="[$store.state.control.windowWidth >= 1024 ? 'oneRowSearch' : '']" |
| | | > |
| | | <avue-crud |
| | | v-if="visibles" |
| | | :option="option" |
| | | :table-loading="loading" |
| | | :data="data" |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | visibles: true, |
| | | choiceName: [], |
| | | loading: true, |
| | | excelBox: false, |
| | |
| | | // tip: false, |
| | | // searchSize: "mini", |
| | | searchMenuSpan: 6, |
| | | height: 563, |
| | | height: "auto", |
| | | index: false, |
| | | selectable: (row, index) => { |
| | | console.log(row, index); |
| | | // console.log(row, index); |
| | | if (row.auditStatus == 4 && row.cancel == 1) { |
| | | return true; |
| | | } else { |
| | |
| | | }); |
| | | return ids.join(","); |
| | | }, |
| | | ...mapGetters(["userInfo", "permission"]), |
| | | ...mapGetters(["userInfo", "permission", "windowWidth"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.notice_add, false), |
| | |
| | | this.search["cancel"] = 1; |
| | | this.search["auditStatus"] = 4; |
| | | this.search["isExam"] = 1; |
| | | }, |
| | | watch: { |
| | | windowHeight() { |
| | | // console.log(this.windowHeight, "windowHeight"); |
| | | this.option.height = this.windowHeight - 320; |
| | | this.visibles = false; |
| | | this.$nextTick(() => { |
| | | this.visibles = true; |
| | | this.refreshChange(); |
| | | }); |
| | | }, |
| | | }, |
| | | mounted() { |
| | | // if (window.name == "baoming") { |
| | |
| | | roleIds.forEach((roleId) => { |
| | | getRoleDetail(roleId).then((res) => { |
| | | var roleAlias = res.data.data.roleAlias; |
| | | if (roleAlias == "保安公司管理员" || roleAlias == "保安" || roleAlias == "分公司管理员") { |
| | | if ( |
| | | roleAlias == "保安公司管理员" || |
| | | roleAlias == "保安" || |
| | | roleAlias == "分公司管理员" |
| | | ) { |
| | | //如果是保安公司管理员 |
| | | params["deptId"] = that.userInfo.dept_id; |
| | | } |