| | |
| | | <el-container > |
| | | |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-row :gutter="10" class="mb8" v-if="userId != 2"> |
| | | <el-col > |
| | | <el-button |
| | | plain |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 操作 --> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" v-if="!editStatus[scope.row.id]" |
| | | @click="editRow(scope.row)" v-hasPermi="['system:role:edit']">修改</el-button> |
| | |
| | | import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; |
| | | import {listMarry,updateMarry,delMarryOld,addMarryOld,updateMarryOld} from "@/api/marry/index"; |
| | | import { blobValidate } from '../../utils/ruoyi' |
| | | import {getInfo} from "@/api/login"; |
| | | |
| | | export default { |
| | | name: "show", |
| | | dicts: ['sys_normal_disable'], |
| | | data() { |
| | | return { |
| | | |
| | | userId: undefined, |
| | | showOldSpouse:false,//显示前任信息 |
| | | // 遮罩层 |
| | | disabled: false, |
| | |
| | | }, |
| | | created() { |
| | | this.getList() |
| | | this.getInfo() |
| | | }, |
| | | methods: { |
| | | |
| | | getInfo(){ |
| | | console.log('-----------------') |
| | | getInfo().then(response=>{ |
| | | console.log(response.user.roles[0].roleId,'roleID') |
| | | this.userId = response.user.roles[0].roleId |
| | | }) |
| | | }, |
| | | handleMarryStatusChange() { |
| | | // 判断当前选中的婚姻状态是否为再婚 |
| | | if (this.mrs === '3') { |