Index.cshtml 2.23 KB
@{ Layout = "~/Views/Shared/_Layout.cshtml"; }
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@section header
{    <style type="text/css">
    .layui-table-tool {
        padding-bottom: 0 !important;
        padding-left: 0px;
        padding-right: 0px;
    }
         .layui-btn-container:first-child {
             margin-left: 10px;
             margin-top: 10px;
 
         }
     </style>
}

<div id="listForm" class="layui-tab-item layui-show">
    <div id="ImportData" style="padding: 60px; line-height: 22px;  background-color: white; color: #000; font-weight: 300;display: none;">
        <div>
            <br />
            <br />
            <input type="file" name="excelfile"  multiple id="excelfile" accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
        </div>
    </div>
    <div class="layui-table-tool" style="padding-top: 10px;">
        <div class="layui-table-tool-temp">
            <div class="layui-btn-container">
                <a href="javascript:;" lay-event="btnUpload" class="layui-btn layui-btn-sm layui-btn-mini"><i class="layui-icon"></i>上传 </a>
            </div>
        </div>
    </div>

    <table class="layui-table">
        
        <thead>
            <tr>
                <th style="width:100px;">序号</th>
                <th style="color: red;width: 400px;">名称(下载后模板名称不能随便修改,系统时间设置成默认格式)</th>
                <th>模板下载地址</th>
            </tr>
        </thead>
        <tbody>
            <tr v-for="(index,item) in contentList" :key="index">
                <td>{{(index+1)}}</td>
                <td>{{item.title}}</td>
                <td>
                    <a class="fileName" style="color: blue; text-decoration: revert;" :href="item.href">{{item.title}}.xlsx</a>
                </td>
            </tr>
           @* <tr>
                <td>设备管理</td>
                <td>
                    <a class="fileName" style="color: blue; text-decoration: revert;" href="~/ExcelTemplate/设备管理.xlsx">设备管理.xlsx</a>
                </td>
            </tr>*@
        </tbody>
    </table>
</div>


@section Scripts
{
    <script src="~/productjs/Planned/Import.js" asp-append-version="true"></script>
}