| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="240"> |
| | | <template #default="scope"> |
| | | <div v-if="data.isAdmin"> |
| | | <div v-if="data.isAdmin || data.userType == 6"> |
| | | <div v-if="scope.row.state !== 3"> |
| | | <el-button link type="primary" v-if="scope.row.state == 1" @click="openApprove(scope.row)">审核</el-button> |
| | | <el-button link type="primary" @click="openDialog('edit',scope.row)">编辑</el-button> |
| | |
| | | id: 3, |
| | | name: '审批不通过' |
| | | }, |
| | | ] |
| | | ], |
| | | userType: null |
| | | }); |
| | | |
| | | const { queryParams, total, dataList } = toRefs(data); |
| | |
| | | } |
| | | const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | console.log("userInfo",userInfo) |
| | | data.userType = userInfo.userType |
| | | if(userInfo.userType === 0){ |
| | | data.isAdmin = true; |
| | | }else { |