| | |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-row :gutter="10" class="mb8" v-if="userId != 2"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | |
| | | <!-- <el-table-column label="备注" prop="remark" sortable width="100" />--> |
| | | |
| | | |
| | | <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" |
| | |
| | | |
| | | |
| | | |
| | | <el-table-column label="操作" align="center" sortable width="180" > |
| | | <el-table-column label="操作" align="center" sortable width="180" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | <el-button |
| | | size="mini" |
| | |
| | | <el-table-column label="门票" prop="entrance" sortable :show-overflow-tooltip="true" width="100px" /> |
| | | <el-table-column label="购物" prop="shopping" sortable :show-overflow-tooltip="true" width="100px" /> |
| | | |
| | | <el-table-column label="操作" align="center" sortable class-name="small-padding fixed-width"> |
| | | <el-table-column label="操作" align="center" sortable class-name="small-padding fixed-width" v-if="userId != 2"> |
| | | <template slot-scope="scope" v-if="scope.row.roleId !== 1"> |
| | | |
| | | <el-button |
| | |
| | | <script> |
| | | import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; |
| | | import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; |
| | | |
| | | import {getInfo} from "@/api/login"; |
| | | |
| | | |
| | | //在system/note/index.js中导入接口函数 --接好了 |
| | |
| | | dicts: ['sys_normal_disable'], |
| | | data() { |
| | | return { |
| | | userId: undefined, |
| | | // 遮罩层 |
| | | disabled: false, |
| | | loading: true, |
| | |
| | | }, |
| | | 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 |
| | | }) |
| | | }, |
| | | //展开行 |
| | | expandRowClassName({ row, rowIndex }) { |
| | | // 返回对应行的样式配置对象 |