| | |
| | | <template> |
| | | <div> |
| | | <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;"> |
| | | <!-- <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}">--> |
| | | <!-- <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;">--> |
| | | <div class="body" style="background-color: #ffffff; padding: 20px 10px 0 20px;" :style="{height:mainHeight+'px'}"> |
| | | <div> |
| | | <el-form |
| | | ref="form" |
| | |
| | | <el-input v-model="form.RoleName" placeholder="请输入" style="width: calc(100%-30px)" /> |
| | | </el-form-item> |
| | | <el-form-item label="角色类型" style=" display: flex;"> |
| | | <el-select v-model="form.RoleTypeCode" style="width: calc(100%-30px)" placeholder="请选择"> |
| | | <el-select v-model="form.RoleTypeCode" filterable style="width: calc(100%-30px)" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in RoleTypeCodeArr2" |
| | | :key="item.roletype_code" |
| | |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | :style="{width: 100+'%',height:tableHeight+'px'}" |
| | | highlight-current-row |
| | | :header-cell-style="this.$headerCellStyle" |
| | | :cell-style="this.$cellStyle" |
| | | @sort-change="sortChange" |
| | | > |
| | | <!-- :style="{width: 100+'%',height:tableHeight+'px'}"--> |
| | | |
| | | <!-- <el-table-column--> |
| | | <!-- type="selection"--> |
| | |
| | | <el-form-item prop="RoleTypeCode" label="角色类型"> |
| | | <el-select |
| | | v-model="dialogForm.RoleTypeCode" |
| | | filterable |
| | | style="width: 220px" |
| | | placeholder="请选择" |
| | | > |
| | |
| | | <div v-else> {{ row.roletype_name }}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column> |
| | | <el-table-column label="操作"> |
| | | |
| | | <template slot-scope="{row}"> |
| | | <div class="operationClass"> |
| | |
| | | <el-cascader |
| | | ref="dialogCascaderUser" |
| | | key="cascaderKey" |
| | | filterable |
| | | :options="StuOrgArr" |
| | | :props="defaultProps" |
| | | class="userDialogVisibleInput" |
| | |
| | | <el-form-item label="关联角色"> |
| | | <el-select |
| | | v-model="dialogFormUser.isrole" |
| | | filterable |
| | | style="width: 220px" |
| | | placeholder="请选择" |
| | | class="userDialogVisibleInput" |
| | |
| | | DeleteRole, RoleAssociationRight, |
| | | RoleAssociationUser, |
| | | RoleSearch, RoleTypeAdd, |
| | | RoleTypeDelete, RoleTypeSearch, SaveRoleAssoctUser, SaveUserAssoctRight, UserOrganization |
| | | RoleTypeDelete, RoleTypeSearch, RoleTypeSelect, SaveRoleAssoctUser, SaveUserAssoctRight, UserOrganization |
| | | } from '@/api/jcsz' |
| | | import { getCookie } from '@/utils/auth' |
| | | import $ from 'jquery' |
| | |
| | | prop: 'lm_date', // 排序字段 |
| | | order: 'desc', // 排序字段 |
| | | page: 1, // 第几页 |
| | | rows: 10 // 每页多少条 |
| | | rows: 20 // 每页多少条 |
| | | }, |
| | | total: 10, |
| | | RoleTypeCodeArr: [], // 角色类型编码数组 |
| | |
| | | }) |
| | | }, |
| | | async getRoleTypeSearch2() { // 搜索展示的内容 |
| | | const data = { |
| | | page: 1, |
| | | rows: 1000000, |
| | | prop: 'roletype_code', |
| | | order: 'desc' |
| | | } |
| | | const res = await RoleTypeSearch(data) |
| | | const res = await RoleTypeSelect() |
| | | this.RoleTypeCodeArr2 = res.data |
| | | }, |
| | | settingButton() { |