| | |
| | | </el-form> |
| | | </div> |
| | | <el-radio-group v-model="data.tabName" style="margin-bottom: 30px" @change="changBtn"> |
| | | <el-radio-button label="all" v-if="data.userType == 0 || data.userType == 6">全部</el-radio-button> |
| | | <el-radio-button label="apply" >我申请的</el-radio-button> |
| | | <el-radio-button label="approval">待审批的</el-radio-button> |
| | | </el-radio-group> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="160" > |
| | | <template #default="scope"> |
| | | <div v-if="data.tabName === 'apply'"> |
| | | <div v-if="data.tabName === 'apply' || data.tabName === 'all'"> |
| | | <el-button link type="primary" @click="openDialog('review',scope.row)">查看</el-button> |
| | | <el-button link type="primary" @click="openDialog('edit',scope.row)" v-hasPermi="['sealApply:list:edit']">编辑</el-button> |
| | | <el-button link type="primary" v-if="scope.row.status == 1" @click="openDialog('edit',scope.row)" v-hasPermi="['sealApply:list:edit']">编辑</el-button> |
| | | <el-button link type="danger" @click="handleDelete(scope.row)" v-hasPermi="['sealApply:list:del']">删除</el-button> |
| | | </div> |
| | | <div v-else> |
| | | <div v-if="data.tabName === 'approval'"> |
| | | <el-button link type="primary" @click="openDialog('review',scope.row)">查看</el-button> |
| | | <el-button link type="primary" @click="openApplyDialog(scope.row)" v-hasPermi="['sealApply:list:apply']">审批</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | nextCheck:null, |
| | | applyUserId: null |
| | | }, |
| | | tabName:'apply', |
| | | tabName:'', |
| | | companyList: [], |
| | | isAdmin: false, |
| | | userId: null, |
| | | showDialog: false, |
| | | userType: null, |
| | | applyForm: { |
| | | useSealId: null, |
| | | approveUserId: null, |
| | |
| | | const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | console.log("userInfo",userInfo) |
| | | data.isAdmin = userInfo.userType === 0; |
| | | data.userType = userInfo.userType |
| | | data.tabName = userInfo.userType == 0 || userInfo.userType == 6 ?'all':'apply' |
| | | data.userId = userInfo.id |
| | | data.queryParams.applyUserId = userInfo.id |
| | | if(data.isAdmin){ |