Areas/Admin/Views/System/Configure/AdminMenu/Index.cshtml
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
string enTable = "pa_admin_menu";
}
<style>
.el-input-group__append, .el-input-group__prepend, .el-input__inner {
padding: 0px 10px;
}
</style>
<div class="main" id="main" v-cloak>
<div class="breadcrumb-box">
<el-breadcrumb separator="/">
<el-breadcrumb-item><i class="el-icon-s-home"></i><a href="javascript:void(0)" onclick="location.href=location.href">管理菜单</a></el-breadcrumb-item>
</el-breadcrumb>
</div>
<table border=0 cellpadding=0 cellspacing=0 class="tb-head form-inline form-group-sm">
<tr>
<td>
<div class="btn-group btn-group-sm">
<el-tooltip effect="dark" content="添加一级菜单" placement="bottom-start">
<el-button size="small" v-on:click="openDrawer({title:'添加顶部菜单',url:'@Url.ActionUrl("Add")?xuhao='+dataList.length,width:'90%',height:'90%',target:'self'})">
添加
</el-button>
</el-tooltip>
<el-dropdown>
<el-button size="small">
功能菜单<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("SetField","CommonMethod")?table=@enTable',data:{ids:getSelectedPropertys(selectList,'Id'),setField:'IsFinal',setValue:1},success:'loadData()',beforeExecute:function(){return checkSelectedItems(selectList)},})">转为最终分类</a></el-dropdown-item>
<el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("SetField","CommonMethod")?table=@enTable',data:{ids:getSelectedPropertys(selectList,'Id'),setField:'IsFinal',setValue:0},success:'loadData()',beforeExecute:function(){return checkSelectedItems(selectList)},})">转为非最终分类</a></el-dropdown-item>
<el-dropdown-item class="divider"></el-dropdown-item>
<el-dropdown-item><a href="javascript:void(0)" v-on:click="dialog({title:'菜单转移',url:'@Url.ActionUrl("Transfer","CommonMethod")?table=@enTable&selectedIds='+getSelectedPropertys(selectList,'Id'),beforeExecute:function(){return checkSelectedItems(selectList)},width:'600px',height:'90%',target:'self'})">转移</a></el-dropdown-item>
<el-dropdown-item class="divider"></el-dropdown-item>
<el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("ClearInvalid")'})">清理冗余菜单项</a></el-dropdown-item>
<el-dropdown-item><a href="javascript:void(0)" v-on:click="submit({url:'@Url.ActionUrl("Delete")',data:{Id:getSelectedPropertys(selectList,'Id')},confirmMsg:'确定删除吗?',success:'loadData()',beforeExecute:function(){return checkSelectedItems(selectList)},})">删除</a></el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div>
</td>
</tr>
</table>
<div class="table-list-box">
<template>
<el-table class="tree_table" :data="dataList" tooltip-effect="dark" highlight-current-row style="width: 100%" default-expand-all row-key="Id" :tree-props="{children: 'Children'}" v-on:selection-change="handleSelectionChange" border>
<el-table-column type="selection" align="center" width="40"> </el-table-column>
<el-table-column label="菜单名称" header-align="center" prop="Name" min-width="200">
<template slot-scope="scope">
<span v-show="scope.row.IsFinal==1">
<i class="el-icon-empty"></i>{{scope.row.Name}}
</span>
<span v-on:click="load(scope.row)" style="cursor:pointer;" v-show="scope.row.IsFinal==0">
<i v-bind:class="{'el-icon-arrow-right':scope.row.OpenChildren==false,'el-icon-arrow-down':scope.row.OpenChildren==true}"></i>{{scope.row.Name}}
</span>
</template>
</el-table-column>
<el-table-column label="系统菜单" width="100" align="center">
<template slot-scope="scope">
<i class="el-icon-success" v-if="scope.row.IsSys==1"></i>
<span v-else>‐</span>
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
