Index.cshtml
2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@{ 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>
}