| | |
| | | /* |
| | | * @Author: Morpheus |
| | | * @Date: 2021-07-05 16:31:54 |
| | | * @Last Modified by: liu |
| | | * @Last Modified time: 2021-10-21 15:31:24 |
| | | * menu-name 保安员注册查询 |
| | | */ |
| | | /* * @Author: Morpheus * @Date: 2021-07-05 16:31:54 * @Last Modified by: liu * |
| | | @Last Modified time: 2021-10-21 15:31:24 * menu-name 保安员注册查询 */ |
| | | <template> |
| | | <div> |
| | | <el-row class="registersss"> |
| | | <el-col :span="3"> |
| | | <div class="box"> |
| | | <div class="box changeBoxs"> |
| | | <el-scrollbar> |
| | | <basic-container> |
| | | <avue-tree |
| | |
| | | </el-scrollbar> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="21"> |
| | | <basic-container> |
| | | <el-col :span="21" class="clearBottomMargin"> |
| | | <basic-container |
| | | :class="[ |
| | | $store.state.control.screenSize == 1366 |
| | | ? 'smallSize' |
| | | : 'normalSize', |
| | | $store.state.control.windowWidth >= 1024 ? 'tooRowSearch1' : '', |
| | | ]" |
| | | > |
| | | <avue-crud |
| | | class="tablesss" |
| | | :option="option" |
| | | :search.sync="search" |
| | | :table-loading="loading" |
| | |
| | | > |
| | | </template> |
| | | <template slot-scope="{ type, size, row }" slot="menu"> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleRowClick(row)" |
| | | >详情</el-button |
| | | <el-tooltip |
| | | placement="bottom" |
| | | effect="light" |
| | | transition="el-collapse-transition" |
| | | popper-class="caozuolanpopper" |
| | | v-if="$store.state.control.changeMenuSize" |
| | | > |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="honor(row)" |
| | | >荣誉录入</el-button |
| | | > |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleViewCredentials(row)" |
| | | >打印证件</el-button |
| | | > |
| | | <div slot="content"> |
| | | <el-button |
| | | icon="el-icon-user" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleRowClick(row)" |
| | | >查看详情</el-button |
| | | > |
| | | <br /> |
| | | <el-button |
| | | icon="el-icon-mobile" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="honor(row)" |
| | | >荣誉录入</el-button |
| | | > |
| | | <br /> |
| | | <el-button |
| | | icon="el-icon-printer" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleViewCredentials(row)" |
| | | >打印证件</el-button |
| | | > |
| | | |
| | | <el-button |
| | | icon="icon-zhengjian" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleCredentials(row)" |
| | | >证件吊销</el-button |
| | | > |
| | | <br /> |
| | | <el-button |
| | | icon="el-icon-brush" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleCredentials(row)" |
| | | >证件吊销</el-button |
| | | > |
| | | </div> |
| | | <el-button icon="el-icon-s-operation" :size="size" :type="type" |
| | | >操作 |
| | | </el-button> |
| | | </el-tooltip> |
| | | <div v-if="!$store.state.control.changeMenuSize"> |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="handleRowClick(row)" |
| | | >详情</el-button |
| | | > |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | @click.stop="honor(row)" |
| | | >荣誉录入</el-button |
| | | > |
| | | <el-button |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleViewCredentials(row)" |
| | | >打印证件</el-button |
| | | > |
| | | |
| | | <el-button |
| | | icon="icon-zhengjian" |
| | | :size="size" |
| | | :type="type" |
| | | class="zhengJian-icon" |
| | | :disabled="row.hold != 1" |
| | | :title="row.hold != 1 ? '暂无证件或已吊销' : ''" |
| | | @click.stop="handleCredentials(row)" |
| | | >证件吊销</el-button |
| | | > |
| | | </div> |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog |
| | |
| | | callback(); |
| | | } |
| | | }; |
| | | |
| | | let menuSize = this.$store.state.control.changeMenuSize ? 90 : 310; |
| | | return { |
| | | dialogVisiblecertificates: false, |
| | | objVisiblecertificates: {}, |
| | |
| | | pageSize: 10, |
| | | currentPage: 1, |
| | | total: 0, |
| | | ...this.$store.state.control.changePageSize, |
| | | }, |
| | | |
| | | init: { |
| | |
| | | //dialogType: 'drawer', |
| | | dialogClickModal: false, |
| | | // 操作栏宽度 |
| | | menuWidth: 310, |
| | | menuWidth: menuSize, |
| | | ...this.$store.state.control.clearOtherBut, |
| | | column: [ |
| | | { |
| | | label: "姓名", |
| | | prop: "realName", |
| | | search: true, |
| | | searchSpan: 3, |
| | | width: 65, |
| | | width: 69, |
| | | searchLabelWidth: 50, |
| | | display: false, |
| | | }, |
| | |
| | | prop: "cardid", |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | searchSpan: 4, |
| | | minWidth: 140, |
| | | searchSpan: 5, |
| | | minWidth: 165, |
| | | |
| | | display: false, |
| | | }, |
| | |
| | | { |
| | | label: "联系电话", |
| | | prop: "phone", |
| | | minWidth: 95, |
| | | minWidth: 110, |
| | | display: false, |
| | | }, |
| | | { |
| | |
| | | search: true, |
| | | searchLabelWidth: 90, |
| | | minWidth: 105, |
| | | searchSpan: 4, |
| | | searchSpan: 5, |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | // hide: true, |
| | |
| | | prop: "hold", |
| | | slot: true, |
| | | search: true, |
| | | searchSpan: 3, |
| | | searchSpan: 4, |
| | | width: 100, |
| | | display: false, |
| | | dicData: [ |
| | |
| | | if (!website.tenantMode) { |
| | | this.initData(website.tenantId); |
| | | } |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | }, |
| | | methods: { |
| | | rowClickSelf(row) { |
| | |
| | | this.data = data.records; |
| | | // console.log(this.data); |
| | | this.loading = false; |
| | | this.$store.commit("setWindowSizeHeightAdd"); |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang='scss' scoped> |
| | | <style lang="scss" scoped> |
| | | .box { |
| | | height: 800px; |
| | | height: auto; |
| | | } |
| | | |
| | | .el-scrollbar { |