| | |
| | | v-hasPermi="['system:role:remove']" |
| | | >批量取消授权</el-button> |
| | | </el-col> --> |
| | | <el-col :span="1.5"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | |
| | | size="mini" |
| | | @click="handleClose" |
| | | >关闭</el-button> |
| | | </el-col> |
| | | </el-col> --> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | | |
| | |
| | | created() { |
| | | const roleId = this.$route.params && this.$route.params.roleId |
| | | const recordId = this.$route.params && this.$route.params.archiveRecordsId |
| | | |
| | | |
| | | if (roleId && recordId) { |
| | | this.queryParams.roleId = roleId |
| | | // 进行类型转换 |
| | |
| | | // 创建一个新对象,将字符串类型的archiveRecordsId转换为数字类型 |
| | | const params = { |
| | | ...this.queryParams, |
| | | archiveRecordsId: !isNaN(Number(this.queryParams.archiveRecordsId)) ? |
| | | archiveRecordsId: !isNaN(Number(this.queryParams.archiveRecordsId)) ? |
| | | Number(this.queryParams.archiveRecordsId) : 0 |
| | | } |
| | | listArchiverecordstouser(params).then(response => { |
| | |
| | | /** 打开授权用户表弹窗 */ |
| | | openSelectUser() { |
| | | // 确保传递给select组件的recordId是数字类型 |
| | | const recordId = !isNaN(Number(this.queryParams.archiveRecordsId)) ? |
| | | const recordId = !isNaN(Number(this.queryParams.archiveRecordsId)) ? |
| | | Number(this.queryParams.archiveRecordsId) : 0 |
| | | |
| | | this.$refs.select.show(recordId) |
| | | }, |
| | | // 返回按钮 |