widget.html
6.02 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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>批后管理待办</title>
<script src="/frontweb/common/js/config.js"></script>
<link rel="stylesheet" href="/frontweb/libs/element-ui/lib-master/theme-chalk/index.css"/>
<script src="/frontweb/libs/vue/vue.js"></script>
<script src="/frontweb/libs/element/index.js"></script>
<script src="/frontweb/libs/axios/axios.min.js"></script>
<script type="text/javascript" src="/frontweb/libs/jquery/jquery.min.js"></script>
<script src="/frontweb/libs/jquery/jquery.cookie.js"></script>
<script type="text/javascript" src="/frontweb/common/js/global/global.localStorage.js"></script>
<script type="text/javascript" src="/frontweb/common/js/global/global.modelctls.js"></script>
<style>
.upload-demo{
padding: 0 10px;
}
.contanier{
margin:-20px 10px 0 10px;
height:100%;
background: #fff;
}
.el-row{
margin-top:20px;
}
.el-input{
margin-top:15px;
}
.el-button{
margin-top: 20px;
}
.el-table{
border: 1px solid #cac8c8;
min-height:750px
}
.el-table th {
background:#F2F2F2 !important;
}
.el-table tbody tr:hover>td {
background-color:#EEF9FF!important
}
.block{
float: right;
background: #fff;
position: fixed;
bottom: 15px;
right: 11px;
}
.el-pagination__jump{
margin-top: -15px;
}
.el-table__row{
cursor: pointer;
}
.btns{
width: 73px;
height: 30px;
border-radius: 2px;
background-color: white;
border: 1px solid #0096eb;
color: #0096eb;
cursor: pointer;
padding: 4px 10px;
margin-right: 7px;
outline: 0;
}
.btns:hover{
background: #0096eb;
color: #fff;
}
.el-col-4{
margin-top:20px
}
.div-search{
border: 1px solid #cac8c8;
border-radius: 2px;
float: left;
margin-right: 10px;
width: 280px;
height: 30px;
margin-left: 10px;
margin-left: -40px;
margin-top: 18px;
}
.div-search input{
border: none;
height: 27px;
padding-left: 15px;
border-radius: 2px;
outline: 0;
}
</style>
</head>
<body>
<div id="app">
<div class='contanier'>
<el-row :gutter="20">
<!-- <el-col :span="4">-->
<!-- <button class="btns" @click="openHandleJumpUrl('t1001_8a8610d86117e3b401611848a8690000')">添加</button>-->
<!-- <button class="btns">删除</button>-->
<!-- <button class="btns">导出</button>-->
<!-- </el-col>-->
<!-- <el-col :span="6">-->
<!-- <div class="div-search">-->
<!-- <input id="searchInput" type="text" placeholder="搜索待办项目" style="width: 82%;" v-model="search">-->
<!-- <img id="searchBtn" src="../../../../image/projecttask/search.png" style="margin-right: 10px; margin-top: 4px; width: 20px; height: 20px; float: right;">-->
<!-- </div>-->
<!-- </el-col>-->
<el-upload
class="upload-demo"
action="https://jsonplaceholder.typicode.com/posts/"
:on-preview="handlePreview"
:on-remove="handleRemove"
:before-remove="beforeRemove"
multiple
:limit="3"
:on-exceed="handleExceed"
:file-list="fileList">
<el-button size="small" type="primary">上传文件</el-button>
</el-upload>
</el-row>
<!-- 列表区域-->
<el-table
:data="tabaledata"
style="width: 100%;margin-top:10px;"
height="100%"
border
stripe
@row-click="clickData"
>
<el-table-column
type="selection"
width="60">
</el-table-column>
<el-table-column
prop="wjmc"
width="500"
label="文件名称"
align="center"
></el-table-column>
<el-table-column
prop="scsj"
label="上传时间"
align="center"
width="400"
>
</el-table-column>
<el-table-column
prop="size"
label="大小"
align="center"
width="250"
>
</el-table-column>
<el-table-column
label="操作"
align="center"
width="500"
>
<template slot-scope="scope">
<button class='btns' @click="handlePriview(scope.row)">预览</button>
<button class='btns' @click="handleEdit(scope.row)">下载</button>
<button class='btns' @click="handleDelete(scope.row)">删除</button>
</template>
</el-table-column>
</el-table>
<!-- 分页区域-->
</div>
<div class="block">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageNum"
:page-sizes="[2, 5, 8]"
:page-size="pageSize"
layout="total, sizes, prev, pager, next, jumper"
:total="total">
</el-pagination>
</div>
</div>
<script src="./js/widget.js"></script>
</body>
</html>