| | |
| | | :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; |
| | | } |