| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <TableLayout :permissions="['business:companyuserapply:query']"> |
| | | <!-- æç´¢è¡¨å --> |
| | | <el-form ref="searchForm" slot="search-form" :model="searchForm" label-width="100px" inline> |
| | | <el-form-item label="ç³è¯·ç¶æ" prop="status"> |
| | | <el-select v-model="searchForm.status" @change="search" placeholder="è¯·éæ©"> |
| | | <el-option label="å¾
å®¡æ ¸" :value="0"></el-option> |
| | | <el-option label="å®¡æ ¸éè¿" :value="1"></el-option> |
| | | <el-option label="å®¡æ ¸ä¸éè¿" :value="2"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <section> |
| | | <el-button type="primary" @click="search">æç´¢</el-button> |
| | | <el-button @click="reset">éç½®</el-button> |
| | | </section> |
| | | </el-form> |
| | | <!-- è¡¨æ ¼åå页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:companyuserapply:create']" v-if="userInfo.type === 1"> |
| | | <li><el-button type="primary" @click="$refs.operaCompanyUserApplyWindow.open('æ°å»ºç³è¯·')" icon="el-icon-plus" v-permissions="['business:companyuserapply:create']">æ°å»º</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | > |
| | | <el-table-column label="åºå·" width="80px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="realName" label="ç³è¯·äºº"></el-table-column> |
| | | <el-table-column prop="userName" label="ææè´¦å·"></el-table-column> |
| | | <el-table-column prop="content" label="ç³è¯·è¯´æ"></el-table-column> |
| | | <el-table-column prop="createDate" label="ç³è¯·æ¶é´"></el-table-column> |
| | | <el-table-column label="ç³è¯·ç¶æ"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status === 0">å¾
å®¡æ ¸</span> |
| | | <span v-if="row.status === 1">å®¡æ ¸éè¿</span> |
| | | <span v-if="row.status === 2">å®¡æ ¸ä¸éè¿</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="æä½" |
| | | min-width="120" |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaCompanyUserApplyDescWindow.open('ç³è¯·è®°å½è¯¦æ
', row.id)" icon="el-icon-view">æ¥ç</el-button> |
| | | <el-button type="text" v-if="userInfo.type === 0 && row.status === 0" @click="$refs.operaCompanyUserApplyCarefulWindow.open('éå¢ç³è¯·è®°å½å®¡æ ¸', row.id)">å®¡æ ¸</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-if="userInfo.type === 1" v-permissions="['business:companyuserapply:delete']">å é¤</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handlePageChange" |
| | | :pagination="tableData.pagination" |
| | | > |
| | | </pagination> |
| | | </template> |
| | | <!-- æ°å»º/ä¿®æ¹ --> |
| | | <OperaCompanyUserApplyWindow ref="operaCompanyUserApplyWindow" @success="handlePageChange"/> |
| | | <!-- æ¥ç --> |
| | | <operaCompanyUserApplyDescWindow ref="operaCompanyUserApplyDescWindow" /> |
| | | <!-- å®¡æ ¸ --> |
| | | <OperaCompanyUserApplyCarefulWindow ref="operaCompanyUserApplyCarefulWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaCompanyUserApplyCarefulWindow from '@/components/business/OperaCompanyUserApplyCarefulWindow' |
| | | import OperaCompanyUserApplyWindow from '@/components/business/OperaCompanyUserApplyWindow' |
| | | import operaCompanyUserApplyDescWindow from '@/components/business/operaCompanyUserApplyDescWindow' |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'CompanyUserApply', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaCompanyUserApplyWindow, operaCompanyUserApplyDescWindow, OperaCompanyUserApplyCarefulWindow }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | data () { |
| | | return { |
| | | // æç´¢ |
| | | searchForm: { |
| | | status: '' |
| | | } |
| | | } |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: 'éå¢ç³è¯·è®°å½è¡¨', |
| | | api: '/business/companyUserApply', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | this.search() |
| | | } |
| | | } |
| | | </script> |