-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
113 lines (104 loc) · 4.01 KB
/
index.html
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mrp</title>
<script src="./dist/mrp.js"></script>
<script src="./public/js/nedb.min.js"></script>
<script src="./public/js/localforage.min.js"></script>
<script src="./public/js/vue.js"></script>
<script src="./public/js/db.js"></script>
<script src="./public/js/utils.js"></script>
<style>
table {
border-collapse: collapse;
}
table,
th,
td {
border: 1px solid black;
}
tr:nth-child(even) {
background-color: #e8e8e8;
}
.red {
color: red;
}
</style>
</head>
<body>
<div id="app">
<a href="./vmrp_v1.0/main.html">vmrp_v1.0</a>
<form onsubmit="return false" style="display: inline-block;">
<input id="search" type="text" autocomplete="off" />
<input type="submit" @click="search()" value="搜索" />
</form>
<input type="checkbox" id="showAdmin" v-model="admin"><label for="showAdmin">显示高级功能</label>
<input type="file" id="files" multiple style="display:none" />
<button @click="importFile()" v-if="admin">导入文件</button>
<button @click="downloadData()" v-if="admin">下载数据</button>
<div style="margin: 10px;">
<button @click="prev()">上页</button>
<button @click="next()">下页</button>
当前页:{{page}}/{{totalPage}} 每页显示:{{pageSize}} 总数:{{total}}
</div>
<table>
<thead>
<tr>
<th>info</th>
<th>FileName</th>
<th>DisplayName</th>
<th>Vendor</th>
<th>Desc</th>
<th>Appid</th>
<th>Version</th>
<th>BuilderVersion</th>
<th>Screen</th>
<th>Crc32</th>
<th>Crc32OK</th>
<th></th>
</tr>
</thead>
<tbody>
<tr v-for="item in items">
<td>
<ul>
<li>Len: {{item.MrpTotalLen}}</li>
<li>Flag: {{item.Flag}}</li>
<li>Plat: {{item.Plat}}</li>
</ul>
</td>
<td>
<a v-if="admin" :href="'/viewMrp.html?f=/public/mrps/'+item.file">{{item.FileName}}</a>
<span v-else>{{item.FileName}}</span>
</td>
<td>
<a v-if="admin"
:href="'/vmrp_v1.0/main.html?f=/public/temp/'+item.file+'&title='+item.DisplayName">{{item.DisplayName}}</a>
<a v-else
:href="'/vmrp_v1.0/main.html?f=/public/mrps/'+item.file+'&title='+item.DisplayName">{{item.DisplayName}}</a>
</td>
<td>{{item.Vendor}}</td>
<td>{{item.Desc}}</td>
<td>{{item.Appid}}</td>
<td>{{item.Version}}</td>
<td>{{item.BuilderVersion}}</td>
<td>{{item.ScreenWidth}}x{{item.ScreenHeight}}</td>
<td>{{item.Crc32}}</td>
<td :class="{ red: !item.Crc32OK }">{{item.Crc32OK}}</td>
<td>
<button @click="del(item)" v-if="admin">删</button>
<a :href="'/public/mrps/'+item.file" :download="item.file">下载</a>
</td>
</tr>
</tbody>
</table>
<div style="margin: 10px;">
<button @click="prev()">上页</button>
<button @click="next()">下页</button>
</div>
</div>
<script src="./public/js/index.js"></script>
</body>
</html>