doway-coms 1.6.74 → 1.6.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/AuditsList/index.js +8 -0
- package/packages/AuditsList/src/index.vue +198 -0
- package/dist/css/chunk-vendors.7f83d8f9.css +0 -8
- package/dist/css/index.86478f73.css +0 -3
- package/dist/favicon.ico +0 -0
- package/dist/js/chunk-vendors.307eaa8f.js +0 -347
- package/dist/js/index.48e7f7ac.js +0 -2
package/package.json
CHANGED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="icon" @click="showModal = !showModal">
|
|
4
|
+
<a-icon type="edit" style="font-size: 30px; color: #fff" />
|
|
5
|
+
</div>
|
|
6
|
+
<vxe-modal
|
|
7
|
+
v-model="showModal"
|
|
8
|
+
:height="600"
|
|
9
|
+
:width="300"
|
|
10
|
+
:zIndex="1000"
|
|
11
|
+
:showHeader="false"
|
|
12
|
+
:mask="false"
|
|
13
|
+
:mask-closable="true"
|
|
14
|
+
:position="{
|
|
15
|
+
left: '78%',
|
|
16
|
+
top: '15%'
|
|
17
|
+
}"
|
|
18
|
+
destroy-on-close
|
|
19
|
+
>
|
|
20
|
+
<div class="history" v-if="historyList.length>0">
|
|
21
|
+
<div class="title">修改记录</div>
|
|
22
|
+
<div
|
|
23
|
+
class="box"
|
|
24
|
+
v-for="(item,index) in historyList"
|
|
25
|
+
:key="index"
|
|
26
|
+
@click="historyData(item)"
|
|
27
|
+
>
|
|
28
|
+
<div class="item">
|
|
29
|
+
<div
|
|
30
|
+
class="status"
|
|
31
|
+
:style="{color:textColor(item.logOperation)}"
|
|
32
|
+
>{{item.logOperation|filterData}}</div>
|
|
33
|
+
<div class="time">{{item.createTime}}</div>
|
|
34
|
+
<div class="name">{{item.createUserName}}</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="divider">
|
|
37
|
+
<div></div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div v-else class="history">暂无数据</div>
|
|
42
|
+
</vxe-modal>
|
|
43
|
+
</div>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
export default {
|
|
48
|
+
name: "auditsList",
|
|
49
|
+
props: {
|
|
50
|
+
formId: {
|
|
51
|
+
type: String
|
|
52
|
+
},
|
|
53
|
+
historyList:{
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
components: {},
|
|
57
|
+
watch: {
|
|
58
|
+
|
|
59
|
+
},
|
|
60
|
+
filters: {
|
|
61
|
+
filterData(val) {
|
|
62
|
+
switch (val) {
|
|
63
|
+
case "update":
|
|
64
|
+
return "修改";
|
|
65
|
+
case "add":
|
|
66
|
+
return "新增";
|
|
67
|
+
default:
|
|
68
|
+
return val;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
mounted() {},
|
|
73
|
+
data() {
|
|
74
|
+
return {
|
|
75
|
+
showModal: false,
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
methods: {
|
|
79
|
+
historyData(val) {
|
|
80
|
+
this.$emit("historyData", val);
|
|
81
|
+
},
|
|
82
|
+
textColor(val) {
|
|
83
|
+
switch (val) {
|
|
84
|
+
case "add":
|
|
85
|
+
return "green";
|
|
86
|
+
case "update":
|
|
87
|
+
return "orange";
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
</script>
|
|
93
|
+
|
|
94
|
+
<style lang="less" scoped>
|
|
95
|
+
.icon {
|
|
96
|
+
position: fixed;
|
|
97
|
+
top: 46%;
|
|
98
|
+
right: 5px;
|
|
99
|
+
z-index: 100;
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
width: 40px;
|
|
102
|
+
height: 40px;
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
align-items: center;
|
|
106
|
+
border-radius: 5px;
|
|
107
|
+
background: #089def;
|
|
108
|
+
}
|
|
109
|
+
::v-deep .vxe-modal--wrapper .vxe-modal--content {
|
|
110
|
+
padding: 0;
|
|
111
|
+
}
|
|
112
|
+
.history {
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
overflow-x: hidden;
|
|
116
|
+
overflow-y: auto;
|
|
117
|
+
.title{
|
|
118
|
+
text-align: center;
|
|
119
|
+
padding: 10px;
|
|
120
|
+
font-size: 15px;
|
|
121
|
+
font-weight: bold;
|
|
122
|
+
}
|
|
123
|
+
.box {
|
|
124
|
+
.item {
|
|
125
|
+
height: 40px;
|
|
126
|
+
max-height: 40px;
|
|
127
|
+
display: flex;
|
|
128
|
+
cursor: pointer;
|
|
129
|
+
.time {
|
|
130
|
+
flex: 2.5;
|
|
131
|
+
display: flex;
|
|
132
|
+
justify-content: center;
|
|
133
|
+
align-items: center;
|
|
134
|
+
}
|
|
135
|
+
.status {
|
|
136
|
+
flex: 1;
|
|
137
|
+
display: flex;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
align-items: center;
|
|
140
|
+
}
|
|
141
|
+
.name {
|
|
142
|
+
flex: 1;
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
.item:hover {
|
|
149
|
+
background: #e3e5e7;
|
|
150
|
+
transition: all 0.5s;
|
|
151
|
+
}
|
|
152
|
+
.divider{
|
|
153
|
+
height: 5px;
|
|
154
|
+
max-height: 5px;
|
|
155
|
+
display: flex;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
align-items: center;
|
|
158
|
+
div{
|
|
159
|
+
width: 180px;
|
|
160
|
+
height: 1px;
|
|
161
|
+
background: #eee;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
/*滚动条整体部分*/
|
|
167
|
+
.history::-webkit-scrollbar {
|
|
168
|
+
width: 5px;
|
|
169
|
+
height: 5px;
|
|
170
|
+
z-index: 10;
|
|
171
|
+
}
|
|
172
|
+
/*滚动条的轨道*/
|
|
173
|
+
.history::-webkit-scrollbar-track {
|
|
174
|
+
background-color: #ffffff;
|
|
175
|
+
z-index: 10;
|
|
176
|
+
}
|
|
177
|
+
/*滚动条里面的小方块,能向上向下移动*/
|
|
178
|
+
.history::-webkit-scrollbar-thumb {
|
|
179
|
+
background-color: #bfbfbf;
|
|
180
|
+
border-radius: 5px;
|
|
181
|
+
border: 1px solid #f1f1f1;
|
|
182
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
183
|
+
z-index: 10;
|
|
184
|
+
}
|
|
185
|
+
.history::-webkit-scrollbar-thumb:hover {
|
|
186
|
+
background-color: #a8a8a8;
|
|
187
|
+
z-index: 10;
|
|
188
|
+
}
|
|
189
|
+
.history::-webkit-scrollbar-thumb:active {
|
|
190
|
+
background-color: #787878;
|
|
191
|
+
z-index: 10;
|
|
192
|
+
}
|
|
193
|
+
/*边角,即两个滚动条的交汇处*/
|
|
194
|
+
.history::-webkit-scrollbar-corner {
|
|
195
|
+
background-color: #ffffff;
|
|
196
|
+
z-index: 10;
|
|
197
|
+
}
|
|
198
|
+
</style>
|