Areas/Admin/Views/User/MemberGroup/Index.cshtml
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
CurrentUser user = ViewBag.CurrentUser;
IEnumerable<dynamic> fieldData = Html.GetFieldList((string)ViewBag.Table, "list", user);
}
<div class="main" id="main" v-cloak>
<div class="breadcrumb-box" onclick="loadData()">
<el-breadcrumb separator="/">
<el-breadcrumb-item><i class="el-icon-s-home"></i>用户组管理</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div class="menu-bar-box">
<table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
<tr>
<td>
<el-tooltip class="item" effect="dark" content="添加用户组" placement="bottom-start">
<el-button size="small" type="button" v-on:click="openDrawer({title:'添加用户组', url:'@Url.ActionUrl("Add")',width:'80%',height:'80%'})">添加</el-button>
</el-tooltip>
<el-button size="small" type="button" style="margin-left:0px;" v-on:click="submit({url:'@Url.ActionUrl("Delete")',data:{Id:getSelectedPropertys(selectList,'Id')},confirmMsg:'确定删除吗?',success:'loadData()',beforeExecute:function(){return checkSelectedItems(selectList)},})">删除</el-button>
</td>
</tr>
</table>
<el-table ref="multipleTable" :data="dataList" row-key="Id" tooltip-effect="dark" border highlight-current-row style="width: 100%" v-on:selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center"> </el-table-column>
<el-table-column prop="Name" label="用户组" min-width="100"></el-table-column>
<el-table-column prop="Id" label="ID" align="center" width="90"></el-table-column>
<el-table-column prop="Remark" label="备注" align="center" :show-overflow-tooltip="true" min-width="150"></el-table-column>
<el-table-column label="开放注册" align="center" width="90">
<template slot-scope="scope">
<span :class="'sp_state is-'+scope.row.CanReg"></span>
</template>
</el-table-column>
<el-table-column label="级别" align="center" width="180">
<template slot-scope="scope">
<el-input v-model="scope.row.Rank" size="small" readonly style="width:120px">
<template slot="prepend">
<el-button v-on:click="updateXuhao({type:-1,sortField:'Rank',row:scope.row,url:'@Url.ActionUrl("UpdataListXuhao")',dataList:dataList})">↑</el-button>
</template>
<template slot="append">
<el-button slot="append" v-on:click="updateXuhao({type:1,sortField:'Rank',row:scope.row,url:'@Url.ActionUrl("UpdataListXuhao")',dataList:dataList})">↓</el-button>
</template>
</el-input>
</template>
</el-table-column>
<el-table-column prop="Remark" label="用户组菜单权限" align="center">
<template slot-scope="scope">
<el-button v-on:click="openDrawer({title:scope.row.Name+'-菜单权限设置',url:'@Url.ActionUrl("MenuPermission")?memberGroupId='+scope.row.Id,width:'90%',height:'95%'})" size="small"><span class="fa fa-navicon"> 设置</span></el-button>
</template>
</el-table-column>
<el-table-column prop="Remark" label="信息发布权限" align="center">
<template slot-scope="scope">
<el-button v-on:click="openDrawer({title:scope.row.Name+'-信息权限设置',url:'@Url.ActionUrl("InfoPermission")?memberGroupId='+scope.row.Id,width:'80%',height:'80%'})" size="small"> <span class="fa fa-pencil-square"> 设置</span></el-button>
</template>
</el-table-column>
<el-table-column prop="Remark" label="操作" align="center" width="150">
<template slot-scope="scope">
<el-button-group>
<el-button v-on:click="openDrawer({title:scope.row.Name+'-修改', url:'@Url.ActionUrl("Edit")?id='+scope.row.Id,width:'90%',height:'95%'})" size="small">修改</el-button>
<el-button v-on:click="submit({url:'@Url.ActionUrl("Delete")',data:{id:scope.row.Id},confirmMsg:'确定删除吗?',success:'loadData()'})" :disabled="scope.row.IsDefault==1" size="small">删除</el-button>
</el-button-group>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
