|
@@ -89,6 +89,11 @@ export default { |
|
@@ -89,6 +89,11 @@ export default { |
89
|
proxy.$http.post('/api-web/vulnerabilities/save', docForm.value, function (res) {
|
89
|
proxy.$http.post('/api-web/vulnerabilities/save', docForm.value, function (res) {
|
90
|
addDialogVisible.value = false;
|
90
|
addDialogVisible.value = false;
|
91
|
getVulnerabilityList();
|
91
|
getVulnerabilityList();
|
|
|
92
|
+ docForm.value.name = '';
|
|
|
93
|
+ docForm.value.level = '';
|
|
|
94
|
+ docForm.value.remark = '';
|
|
|
95
|
+ docForm.value.impactSite = '';
|
|
|
96
|
+ docForm.value.repairSuggestions = '';
|
92
|
})
|
97
|
})
|
93
|
}
|
98
|
}
|
94
|
})
|
99
|
})
|
|
@@ -143,12 +148,11 @@ export default { |
|
@@ -143,12 +148,11 @@ export default { |
143
|
handleVisible.value = false;
|
148
|
handleVisible.value = false;
|
144
|
}
|
149
|
}
|
145
|
let handleForm = Vue.ref({
|
150
|
let handleForm = Vue.ref({
|
146
|
- manufacturer:'',
|
151
|
+ manufacturerName:'',
|
147
|
solveResult:'',
|
152
|
solveResult:'',
|
148
|
solveRemark:'',
|
153
|
solveRemark:'',
|
149
|
solveTime:'',
|
154
|
solveTime:'',
|
150
|
vulnerabilitiesId:''
|
155
|
vulnerabilitiesId:''
|
151
|
-
|
|
|
152
|
})
|
156
|
})
|
153
|
let handleRulesForm = Vue.ref({
|
157
|
let handleRulesForm = Vue.ref({
|
154
|
solveResult:[{
|
158
|
solveResult:[{
|
|
@@ -168,6 +172,18 @@ export default { |
|
@@ -168,6 +172,18 @@ export default { |
168
|
if (validate){
|
172
|
if (validate){
|
169
|
proxy.$http.post('/api-web/vulnerabilities/solve',handleForm.value, function (res) {
|
173
|
proxy.$http.post('/api-web/vulnerabilities/solve',handleForm.value, function (res) {
|
170
|
handleVisible.value = false;
|
174
|
handleVisible.value = false;
|
|
|
175
|
+
|
|
|
176
|
+ handleForm.value.manufacturerName = '';
|
|
|
177
|
+ handleForm.value.solveResult = '';
|
|
|
178
|
+ handleForm.value.solveRemark = '';
|
|
|
179
|
+ handleForm.value.solveTime = '';
|
|
|
180
|
+ handleForm.value.vulnerabilitiesId = '';
|
|
|
181
|
+
|
|
|
182
|
+ if(res.success){
|
|
|
183
|
+ proxy.$global.showMsg('处理成功');
|
|
|
184
|
+ }else{
|
|
|
185
|
+ proxy.$global.showMsg('处理失败,请稍后再试!', 'warning');
|
|
|
186
|
+ }
|
171
|
})
|
187
|
})
|
172
|
}
|
188
|
}
|
173
|
})
|
189
|
})
|
|
@@ -191,8 +207,7 @@ export default { |
|
@@ -191,8 +207,7 @@ export default { |
191
|
// 获取当前登陆人所属厂商
|
207
|
// 获取当前登陆人所属厂商
|
192
|
const getManufacturer = ()=>{
|
208
|
const getManufacturer = ()=>{
|
193
|
proxy.$http.get('/api-web/vulnerabilities/manufacturer',{}, function (res) {
|
209
|
proxy.$http.get('/api-web/vulnerabilities/manufacturer',{}, function (res) {
|
194
|
- // console.log("res---->",res.str)
|
|
|
195
|
- handleForm.value.manufacturer = res.str;
|
210
|
+ handleForm.value.manufacturerName = res.str;
|
196
|
})
|
211
|
})
|
197
|
}
|
212
|
}
|
198
|
|
213
|
|