doway-coms 1.6.74 → 1.6.76
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 +227 -0
- package/packages/index.js +3 -1
- package/packages/utils/api.js +7 -0
- package/packages/utils/store.js +5 -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,227 @@
|
|
|
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
|
+
import { objectAuditLogApi } from "../../utils/api";
|
|
48
|
+
export default {
|
|
49
|
+
name: "auditsList",
|
|
50
|
+
props: {
|
|
51
|
+
formId: {
|
|
52
|
+
type: String
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
components: {},
|
|
56
|
+
watch: {
|
|
57
|
+
showModal(newVal, oldVal) {
|
|
58
|
+
console.log(newVal);
|
|
59
|
+
if (newVal) {
|
|
60
|
+
this.getHistoryData();
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
immediate: true
|
|
64
|
+
},
|
|
65
|
+
filters: {
|
|
66
|
+
filterData(val) {
|
|
67
|
+
switch (val) {
|
|
68
|
+
case "update":
|
|
69
|
+
return "修改";
|
|
70
|
+
case "add":
|
|
71
|
+
return "新增";
|
|
72
|
+
default:
|
|
73
|
+
return val;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
mounted() {},
|
|
78
|
+
data() {
|
|
79
|
+
return {
|
|
80
|
+
historyList: [],
|
|
81
|
+
showModal: false
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
methods: {
|
|
85
|
+
getHistoryData() {
|
|
86
|
+
let postData = {
|
|
87
|
+
begin: 1,
|
|
88
|
+
size: 0,
|
|
89
|
+
expression: {
|
|
90
|
+
expressions: [
|
|
91
|
+
{
|
|
92
|
+
field: "logDataKeyId",
|
|
93
|
+
operator: "EQ",
|
|
94
|
+
value: this.formId
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
operator: "and"
|
|
98
|
+
},
|
|
99
|
+
sorts: [["createTime", "asc"]]
|
|
100
|
+
};
|
|
101
|
+
objectAuditLogApi(postData).then(res => {
|
|
102
|
+
res.content.forEach(item => {
|
|
103
|
+
item.logData = JSON.parse(item.logData);
|
|
104
|
+
});
|
|
105
|
+
this.historyList = res.content;
|
|
106
|
+
});
|
|
107
|
+
},
|
|
108
|
+
historyData(val) {
|
|
109
|
+
this.$emit("historyData", val);
|
|
110
|
+
},
|
|
111
|
+
textColor(val) {
|
|
112
|
+
switch (val) {
|
|
113
|
+
case "add":
|
|
114
|
+
return "green";
|
|
115
|
+
case "update":
|
|
116
|
+
return "orange";
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
</script>
|
|
122
|
+
|
|
123
|
+
<style lang="less" scoped>
|
|
124
|
+
.icon {
|
|
125
|
+
position: fixed;
|
|
126
|
+
top: 46%;
|
|
127
|
+
right: 5px;
|
|
128
|
+
z-index: 100;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
width: 40px;
|
|
131
|
+
height: 40px;
|
|
132
|
+
display: flex;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
align-items: center;
|
|
135
|
+
border-radius: 5px;
|
|
136
|
+
background: #089def;
|
|
137
|
+
}
|
|
138
|
+
::v-deep .vxe-modal--wrapper .vxe-modal--content {
|
|
139
|
+
padding: 0;
|
|
140
|
+
}
|
|
141
|
+
.history {
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 100%;
|
|
144
|
+
overflow-x: hidden;
|
|
145
|
+
overflow-y: auto;
|
|
146
|
+
.title {
|
|
147
|
+
text-align: center;
|
|
148
|
+
padding: 10px;
|
|
149
|
+
font-size: 15px;
|
|
150
|
+
font-weight: bold;
|
|
151
|
+
}
|
|
152
|
+
.box {
|
|
153
|
+
.item {
|
|
154
|
+
height: 40px;
|
|
155
|
+
max-height: 40px;
|
|
156
|
+
display: flex;
|
|
157
|
+
cursor: pointer;
|
|
158
|
+
.time {
|
|
159
|
+
flex: 2.5;
|
|
160
|
+
display: flex;
|
|
161
|
+
justify-content: center;
|
|
162
|
+
align-items: center;
|
|
163
|
+
}
|
|
164
|
+
.status {
|
|
165
|
+
flex: 1;
|
|
166
|
+
display: flex;
|
|
167
|
+
justify-content: center;
|
|
168
|
+
align-items: center;
|
|
169
|
+
}
|
|
170
|
+
.name {
|
|
171
|
+
flex: 1;
|
|
172
|
+
display: flex;
|
|
173
|
+
justify-content: center;
|
|
174
|
+
align-items: center;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
.item:hover {
|
|
178
|
+
background: #e3e5e7;
|
|
179
|
+
transition: all 0.5s;
|
|
180
|
+
}
|
|
181
|
+
.divider {
|
|
182
|
+
height: 5px;
|
|
183
|
+
max-height: 5px;
|
|
184
|
+
display: flex;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
align-items: center;
|
|
187
|
+
div {
|
|
188
|
+
width: 180px;
|
|
189
|
+
height: 1px;
|
|
190
|
+
background: #eee;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/*滚动条整体部分*/
|
|
196
|
+
.history::-webkit-scrollbar {
|
|
197
|
+
width: 5px;
|
|
198
|
+
height: 5px;
|
|
199
|
+
z-index: 10;
|
|
200
|
+
}
|
|
201
|
+
/*滚动条的轨道*/
|
|
202
|
+
.history::-webkit-scrollbar-track {
|
|
203
|
+
background-color: #ffffff;
|
|
204
|
+
z-index: 10;
|
|
205
|
+
}
|
|
206
|
+
/*滚动条里面的小方块,能向上向下移动*/
|
|
207
|
+
.history::-webkit-scrollbar-thumb {
|
|
208
|
+
background-color: #bfbfbf;
|
|
209
|
+
border-radius: 5px;
|
|
210
|
+
border: 1px solid #f1f1f1;
|
|
211
|
+
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
|
|
212
|
+
z-index: 10;
|
|
213
|
+
}
|
|
214
|
+
.history::-webkit-scrollbar-thumb:hover {
|
|
215
|
+
background-color: #a8a8a8;
|
|
216
|
+
z-index: 10;
|
|
217
|
+
}
|
|
218
|
+
.history::-webkit-scrollbar-thumb:active {
|
|
219
|
+
background-color: #787878;
|
|
220
|
+
z-index: 10;
|
|
221
|
+
}
|
|
222
|
+
/*边角,即两个滚动条的交汇处*/
|
|
223
|
+
.history::-webkit-scrollbar-corner {
|
|
224
|
+
background-color: #ffffff;
|
|
225
|
+
z-index: 10;
|
|
226
|
+
}
|
|
227
|
+
</style>
|
package/packages/index.js
CHANGED
|
@@ -23,6 +23,7 @@ import BaseKanbanEmpty from "./BaseKanbanEmpty/index";
|
|
|
23
23
|
import BaseSearch from "./BaseSearch/index";
|
|
24
24
|
import BaseButton from "./BaseButton/index";
|
|
25
25
|
import LeaveAMessage from "./LeaveAMessage/index";
|
|
26
|
+
import AuditsList from "./AuditsList/index";
|
|
26
27
|
|
|
27
28
|
import store from './utils/store'
|
|
28
29
|
import request from './utils/request'
|
|
@@ -34,7 +35,7 @@ const components = [
|
|
|
34
35
|
BaseTextArea, BaseSelect, BaseSelectMulti, BaseTime, BasePagination,
|
|
35
36
|
BaseNumberInput, BaseTool, BaseToolStatus, BasePulldown, BaseIntervalInput,
|
|
36
37
|
BaseForm, BasePictureCard, BaseGrid, BasePrintPreview, BaseGantt,
|
|
37
|
-
BaseKanbanEmpty, BaseSearch, BaseButton,LeaveAMessage
|
|
38
|
+
BaseKanbanEmpty, BaseSearch, BaseButton,LeaveAMessage,AuditsList
|
|
38
39
|
];
|
|
39
40
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
40
41
|
|
|
@@ -163,6 +164,7 @@ export {
|
|
|
163
164
|
BaseSearch,
|
|
164
165
|
BaseButton,
|
|
165
166
|
LeaveAMessage,
|
|
167
|
+
AuditsList,
|
|
166
168
|
store,
|
|
167
169
|
request,
|
|
168
170
|
}
|
package/packages/utils/api.js
CHANGED
|
@@ -86,4 +86,11 @@ export function userInfoSearchApi(data) {
|
|
|
86
86
|
method: 'get',
|
|
87
87
|
params: data
|
|
88
88
|
})
|
|
89
|
+
}
|
|
90
|
+
export function objectAuditLogApi(data) {
|
|
91
|
+
return request({
|
|
92
|
+
url: store.getters.baseUrl + '/v1/objectAuditLog/search',
|
|
93
|
+
method: 'get',
|
|
94
|
+
params: data
|
|
95
|
+
})
|
|
89
96
|
}
|
package/packages/utils/store.js
CHANGED
|
@@ -10,6 +10,7 @@ Vue.use(Vuex)
|
|
|
10
10
|
export default new Vuex.Store({
|
|
11
11
|
state: {
|
|
12
12
|
umsUrl:'',
|
|
13
|
+
baseUrl:'',
|
|
13
14
|
msgUrl:'',
|
|
14
15
|
wmsUrl:'',
|
|
15
16
|
identityUrl:'',
|
|
@@ -142,6 +143,9 @@ export default new Vuex.Store({
|
|
|
142
143
|
SET_UMS_URL:(state,url) => {
|
|
143
144
|
state.umsUrl = url
|
|
144
145
|
},
|
|
146
|
+
SET_BASE_URL:(state,url) => {
|
|
147
|
+
state.baseUrl = url
|
|
148
|
+
},
|
|
145
149
|
SET_WMS_URL:(state,url) => {
|
|
146
150
|
state.wmsUrl = url
|
|
147
151
|
},
|
|
@@ -245,6 +249,7 @@ export default new Vuex.Store({
|
|
|
245
249
|
industryVersion:state=>state.industryVersion,
|
|
246
250
|
isGenerateMatCode:state=>state.isGenerateMatCode,
|
|
247
251
|
umsUrl:state=>state.umsUrl,
|
|
252
|
+
baseUrl:state=>state.baseUrl,
|
|
248
253
|
msgUrl:state=>state.msgUrl,
|
|
249
254
|
identityUrl:state=>state.identityUrl,
|
|
250
255
|
token: state => state.token,
|