...
|
...
|
@@ -89,6 +89,11 @@ export default { |
|
|
proxy.$http.post('/api-web/vulnerabilities/save', docForm.value, function (res) {
|
|
|
addDialogVisible.value = false;
|
|
|
getVulnerabilityList();
|
|
|
docForm.value.name = '';
|
|
|
docForm.value.level = '';
|
|
|
docForm.value.remark = '';
|
|
|
docForm.value.impactSite = '';
|
|
|
docForm.value.repairSuggestions = '';
|
|
|
})
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -143,12 +148,11 @@ export default { |
|
|
handleVisible.value = false;
|
|
|
}
|
|
|
let handleForm = Vue.ref({
|
|
|
manufacturer:'',
|
|
|
manufacturerName:'',
|
|
|
solveResult:'',
|
|
|
solveRemark:'',
|
|
|
solveTime:'',
|
|
|
vulnerabilitiesId:''
|
|
|
|
|
|
})
|
|
|
let handleRulesForm = Vue.ref({
|
|
|
solveResult:[{
|
...
|
...
|
@@ -168,6 +172,18 @@ export default { |
|
|
if (validate){
|
|
|
proxy.$http.post('/api-web/vulnerabilities/solve',handleForm.value, function (res) {
|
|
|
handleVisible.value = false;
|
|
|
|
|
|
handleForm.value.manufacturerName = '';
|
|
|
handleForm.value.solveResult = '';
|
|
|
handleForm.value.solveRemark = '';
|
|
|
handleForm.value.solveTime = '';
|
|
|
handleForm.value.vulnerabilitiesId = '';
|
|
|
|
|
|
if(res.success){
|
|
|
proxy.$global.showMsg('处理成功');
|
|
|
}else{
|
|
|
proxy.$global.showMsg('处理失败,请稍后再试!', 'warning');
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
})
|
...
|
...
|
@@ -191,8 +207,7 @@ export default { |
|
|
// 获取当前登陆人所属厂商
|
|
|
const getManufacturer = ()=>{
|
|
|
proxy.$http.get('/api-web/vulnerabilities/manufacturer',{}, function (res) {
|
|
|
// console.log("res---->",res.str)
|
|
|
handleForm.value.manufacturer = res.str;
|
|
|
handleForm.value.manufacturerName = res.str;
|
|
|
})
|
|
|
}
|
|
|
|
...
|
...
|
|