Areas/Admin/Views/System/Table/InfoTable/Index.cshtml

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

@{
    string enTable = "pa_info_table";
}
<div class="main" id="main" v-cloak>

    <div class="breadcrumb-box">
        <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 effect="dark" content="添加信息表" placement="bottom-start">
                        <el-button size="small" type="button" v-on:click="dialog({title:'添加信息表',url:'@Url.ActionUrl("Add")',width:'90%',height:'90%',target:'self'})">添加</el-button>
                    </el-tooltip>
                </td>
                <td align="right">
                    <ui-select size="mini" :options="siteOptions" v-model="searchData.siteId" v-on:change="loadData" clearable placeholder="请选择所属站点">
                    </ui-select>
                    <el-select size="mini" v-model="searchData.searchField" clearable>
                        <el-option value="name" label="按表名搜索"></el-option>
                        <el-option value="urlSymbol" label="按Url标识搜索"></el-option>
                        <el-option value="remark" label="按备注搜索"></el-option>
                    </el-select>
                    <el-input size="mini" style="width:150px;" placeholder="搜索关键词" v-model.trim="searchData.searchKeyword" clearable v-on:clear="loadData"></el-input>
                    <el-button size="mini" onclick="loadData()">确定</el-button>
                </td>
            </tr>
        </table>
    </div>
    <el-table :data="dataList" row-key="Id" tooltip-effect="dark" border highlight-current-row style="width: 100%" v-on:selection-change="handleSelectionChange">
        <el-table-column prop="Name" label="表名"></el-table-column>
        <el-table-column prop="Remark" label="备注"></el-table-column>
        <el-table-column label="所属站点">
            <template slot-scope="scope">
                {{getSiteName(scope.row.SiteId)}}
            </template>
        </el-table-column>
        <el-table-column label="删除保护" width="120" align="center">
            <template slot-scope="scope">
                <el-checkbox :true-label="1" :false-label="0" v-model="scope.row.DeleteProtect" v-on:change="submit({url:'@Url.ActionUrl("SetField","CommonMethod")?table=@enTable',data:{ids:scope.row.Id,setField:'DeleteProtect',setValue:scope.row.DeleteProtect},showSuccessMsg:false})"></el-checkbox>
            </template>
        </el-table-column>
        <el-table-column label="菜单启用" width="120" align="center">
            <template slot-scope="scope">
                <el-checkbox :true-label="1" :false-label="0" v-model="scope.row.ShowMenu" v-on:change="submit({url:'@Url.ActionUrl("SetField","CommonMethod")?table=@enTable',data:{ids:scope.row.Id,setField:'ShowMenu',setValue:scope.row.ShowMenu},showSuccessMsg:false})"></el-checkbox>
            </template>
        </el-table-column>
        <el-table-column label="序号" width="150" align="center">
            <template slot-scope="scope">
                <el-input v-model="scope.row.Xuhao" size="small" style="width:120px" maxlength="4" v-on:change="updateXuhao({row:scope.row,url:'@Url.ActionUrl("UpdataListXuhao", "CommonMethod")?table=@enTable',dataList:dataList})">
                    <template slot="prepend">
                        <el-button v-on:click="updateXuhao({type:'-',row:scope.row,url:'@Url.ActionUrl("UpdataListXuhao", "CommonMethod")?table=@enTable',dataList:dataList})">↑</el-button>
                    </template>
                    <template slot="append">
                        <el-button slot="append" v-on:click="updateXuhao({type:'+',row:scope.row,url:'@Url.ActionUrl("UpdataListXuhao","CommonMethod")?table=@enTable',dataList:dataList})">↓</el-button>
                    </template>

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。