| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:companyuserapply:create']"> |
| | | <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 |
| | |
| | | fixed="right" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.operaCompanyUserApplyWindow.open('申请记录详情', row)" icon="el-icon-view">查看</el-button> |
| | | <el-button type="text" @click="deleteById(row)" icon="el-icon-delete" v-permissions="['business:companyuserapply:delete']">删除</el-button> |
| | | <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> |
| | |
| | | </template> |
| | | <!-- 新建/修改 --> |
| | | <OperaCompanyUserApplyWindow ref="operaCompanyUserApplyWindow" @success="handlePageChange"/> |
| | | <!-- 查看 --> |
| | | <operaCompanyUserApplyDescWindow ref="operaCompanyUserApplyDescWindow" /> |
| | | <!-- 审核 --> |
| | | <OperaCompanyUserApplyCarefulWindow ref="operaCompanyUserApplyCarefulWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | 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 }, |
| | | components: { TableLayout, Pagination, OperaCompanyUserApplyWindow, operaCompanyUserApplyDescWindow, OperaCompanyUserApplyCarefulWindow }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | data () { |
| | | return { |
| | | // 搜索 |