Merge branch 'wangfeng-500-dev' into 'master-500-dev'
bug修复 See merge request !1235
Showing
2 changed files
with
22 additions
and
12 deletions
@@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
8 | </el-form-item> | 8 | </el-form-item> |
9 | <el-form-item> | 9 | <el-form-item> |
10 | <el-select clearable :size="$global.elementConfig.size.input" v-model="queryParams.type" placeholder="漏洞类型"> | 10 | <el-select clearable :size="$global.elementConfig.size.input" v-model="queryParams.type" placeholder="漏洞类型"> |
11 | + <el-option :value="" label="全部漏洞"/> | ||
11 | <el-option :value="1" label="高危漏洞"/> | 12 | <el-option :value="1" label="高危漏洞"/> |
12 | <el-option :value="2" label="中危漏洞"/> | 13 | <el-option :value="2" label="中危漏洞"/> |
13 | <el-option :value="3" label="低危漏洞"/> | 14 | <el-option :value="3" label="低危漏洞"/> |
@@ -20,8 +21,7 @@ | @@ -20,8 +21,7 @@ | ||
20 | </el-form> | 21 | </el-form> |
21 | </div> | 22 | </div> |
22 | </div> | 23 | </div> |
23 | - | ||
24 | - <el-row :gutter="20" style="padding: 3px 10px;"> | 24 | + <el-row :gutter="20" style="padding: 3px 10px;" v-show="userVulnRole == 'bugManager'"> |
25 | <el-col :span="1"> | 25 | <el-col :span="1"> |
26 | <el-button @click="handleAdd" type="primary" >新增</el-button> | 26 | <el-button @click="handleAdd" type="primary" >新增</el-button> |
27 | </el-col> | 27 | </el-col> |
@@ -44,18 +44,20 @@ | @@ -44,18 +44,20 @@ | ||
44 | </template> | 44 | </template> |
45 | <template #tools="{scope}"> | 45 | <template #tools="{scope}"> |
46 | <div class="list-handle"> | 46 | <div class="list-handle"> |
47 | - <span class="icon-bg" @click="handleFun(scope.row)"> | 47 | + <span class="icon-bg" @click="handleFun(scope.row)" |
48 | + v-show=" '1' == scope.row.currentUserResolution.isRelated" > | ||
48 | <i class="el-icon-s-check" title="处理"></i> | 49 | <i class="el-icon-s-check" title="处理"></i> |
49 | </span> | 50 | </span> |
50 | <span class="icon-bg" @click="handleDetail(scope.row)"> | 51 | <span class="icon-bg" @click="handleDetail(scope.row)"> |
51 | <i class="el-icon-view" title="详情"></i> | 52 | <i class="el-icon-view" title="详情"></i> |
52 | </span> | 53 | </span> |
53 | - <span class="icon-bg" @click="handleDel(scope.row)"> | 54 | + <span class="icon-bg" @click="handleDel(scope.row)" |
55 | + v-show = "userVulnRole != 'manufacturer' "> | ||
54 | <i class="el-icon-delete"></i> | 56 | <i class="el-icon-delete"></i> |
55 | </span> | 57 | </span> |
56 | - <span class="icon-bg"@click="handleDownload(scope.row)"> | ||
57 | - <i class="el-icon-download" title="下载"></i> | ||
58 | - </span> | 58 | + <!--<span class="icon-bg"@click="handleDownload(scope.row)">--> |
59 | + <!-- <i class="el-icon-download" title="下载"></i>--> | ||
60 | + <!--</span>--> | ||
59 | </div> | 61 | </div> |
60 | </template> | 62 | </template> |
61 | </cm-table-page> | 63 | </cm-table-page> |
@@ -23,7 +23,7 @@ export default { | @@ -23,7 +23,7 @@ export default { | ||
23 | }, | 23 | }, |
24 | { | 24 | { |
25 | prop: 'level', | 25 | prop: 'level', |
26 | - label: '漏洞级别', | 26 | + label: '漏洞类型', |
27 | sortable: true, | 27 | sortable: true, |
28 | align: 'center' | 28 | align: 'center' |
29 | }, | 29 | }, |
@@ -57,8 +57,7 @@ export default { | @@ -57,8 +57,7 @@ export default { | ||
57 | }) | 57 | }) |
58 | 58 | ||
59 | let dataList = Vue.ref([]); | 59 | let dataList = Vue.ref([]); |
60 | - let totalCount = Vue.ref(0); | ||
61 | - | 60 | + let userVulnRole = Vue.ref(''); |
62 | let addDialogVisible = Vue.ref(false) | 61 | let addDialogVisible = Vue.ref(false) |
63 | let addDialogTitle = Vue.ref('') | 62 | let addDialogTitle = Vue.ref('') |
64 | 63 | ||
@@ -199,7 +198,7 @@ export default { | @@ -199,7 +198,7 @@ export default { | ||
199 | 198 | ||
200 | // 获取漏洞列表 | 199 | // 获取漏洞列表 |
201 | const getVulnerabilityList = ()=>{ | 200 | const getVulnerabilityList = ()=>{ |
202 | - proxy.$http.get('/api-web/vulnerabilities/list', queryParams, function (res) { | 201 | + proxy.$http.get('/api-web/vulnerabilities/list', queryParams.value, function (res) { |
203 | if (res.data) { | 202 | if (res.data) { |
204 | dataList.value = res.data; | 203 | dataList.value = res.data; |
205 | queryParams.value.count = res.count; | 204 | queryParams.value.count = res.count; |
@@ -212,7 +211,15 @@ export default { | @@ -212,7 +211,15 @@ export default { | ||
212 | getVulnerabilityList(); | 211 | getVulnerabilityList(); |
213 | } | 212 | } |
214 | 213 | ||
214 | + // 获取当前登陆人漏洞处理角色 | ||
215 | + const getRole =()=>{ | ||
216 | + proxy.$http.get('/api-web/vulnerabilities/role',{}, function (res) { | ||
217 | + userVulnRole.value = res.str; | ||
218 | + }) | ||
219 | + } | ||
220 | + | ||
215 | Vue.onMounted(() => { | 221 | Vue.onMounted(() => { |
222 | + getRole(); | ||
216 | getVulnerabilityList(); | 223 | getVulnerabilityList(); |
217 | }) | 224 | }) |
218 | 225 | ||
@@ -240,7 +247,8 @@ export default { | @@ -240,7 +247,8 @@ export default { | ||
240 | dataList, | 247 | dataList, |
241 | handleQuery, | 248 | handleQuery, |
242 | viewDrawer, | 249 | viewDrawer, |
243 | - detail | 250 | + detail, |
251 | + userVulnRole | ||
244 | }; | 252 | }; |
245 | }, | 253 | }, |
246 | } | 254 | } |
-
Please register or login to post a comment