doway-coms 1.6.75 → 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
CHANGED
|
@@ -44,18 +44,23 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
|
+
import { objectAuditLogApi } from "../../utils/api";
|
|
47
48
|
export default {
|
|
48
49
|
name: "auditsList",
|
|
49
50
|
props: {
|
|
50
51
|
formId: {
|
|
51
52
|
type: String
|
|
52
|
-
},
|
|
53
|
-
historyList:{
|
|
54
53
|
}
|
|
55
54
|
},
|
|
56
55
|
components: {},
|
|
57
56
|
watch: {
|
|
58
|
-
|
|
57
|
+
showModal(newVal, oldVal) {
|
|
58
|
+
console.log(newVal);
|
|
59
|
+
if (newVal) {
|
|
60
|
+
this.getHistoryData();
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
immediate: true
|
|
59
64
|
},
|
|
60
65
|
filters: {
|
|
61
66
|
filterData(val) {
|
|
@@ -72,10 +77,34 @@ export default {
|
|
|
72
77
|
mounted() {},
|
|
73
78
|
data() {
|
|
74
79
|
return {
|
|
75
|
-
|
|
80
|
+
historyList: [],
|
|
81
|
+
showModal: false
|
|
76
82
|
};
|
|
77
83
|
},
|
|
78
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
|
+
},
|
|
79
108
|
historyData(val) {
|
|
80
109
|
this.$emit("historyData", val);
|
|
81
110
|
},
|
|
@@ -114,7 +143,7 @@ export default {
|
|
|
114
143
|
height: 100%;
|
|
115
144
|
overflow-x: hidden;
|
|
116
145
|
overflow-y: auto;
|
|
117
|
-
.title{
|
|
146
|
+
.title {
|
|
118
147
|
text-align: center;
|
|
119
148
|
padding: 10px;
|
|
120
149
|
font-size: 15px;
|
|
@@ -149,13 +178,13 @@ export default {
|
|
|
149
178
|
background: #e3e5e7;
|
|
150
179
|
transition: all 0.5s;
|
|
151
180
|
}
|
|
152
|
-
.divider{
|
|
181
|
+
.divider {
|
|
153
182
|
height: 5px;
|
|
154
183
|
max-height: 5px;
|
|
155
184
|
display: flex;
|
|
156
185
|
justify-content: center;
|
|
157
186
|
align-items: center;
|
|
158
|
-
div{
|
|
187
|
+
div {
|
|
159
188
|
width: 180px;
|
|
160
189
|
height: 1px;
|
|
161
190
|
background: #eee;
|
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,
|