互联共享数据查询
Showing
2 changed files
with
23 additions
and
7 deletions
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
2 | * @Author: yangwei | 2 | * @Author: yangwei |
3 | * @Date: 2023-09-01 10:39:03 | 3 | * @Date: 2023-09-01 10:39:03 |
4 | * @LastEditors: yangwei | 4 | * @LastEditors: yangwei |
5 | * @LastEditTime: 2023-09-11 15:48:03 | 5 | * @LastEditTime: 2023-09-12 13:55:36 |
6 | * @FilePath: \bdcdj-web\src\views\sjgx\gbmhlgxsjgx\gbmhlgxsjgx.vue | 6 | * @FilePath: \bdcdj-web\src\views\sjgx\gbmhlgxsjgx\gbmhlgxsjgx.vue |
7 | * @Description: | 7 | * @Description: |
8 | * | 8 | * |
... | @@ -89,7 +89,7 @@ | ... | @@ -89,7 +89,7 @@ |
89 | > | 89 | > |
90 | <img :src="item.svg" alt="" /> | 90 | <img :src="item.svg" alt="" /> |
91 | </div> | 91 | </div> |
92 | <p>{{ item.name }}</p> | 92 | <p>{{ item.interfaceDescription }}</p> |
93 | </div> | 93 | </div> |
94 | </div> | 94 | </div> |
95 | <el-dialog | 95 | <el-dialog |
... | @@ -200,6 +200,12 @@ export default { | ... | @@ -200,6 +200,12 @@ export default { |
200 | comp: "zgfbm", | 200 | comp: "zgfbm", |
201 | svg: require("./images/zgfbm.svg"), | 201 | svg: require("./images/zgfbm.svg"), |
202 | }, | 202 | }, |
203 | { | ||
204 | name: "未知", | ||
205 | bgColor: "109, 114, 120", | ||
206 | comp: "", | ||
207 | svg: require("./images/unknow.svg"), | ||
208 | }, | ||
203 | ], | 209 | ], |
204 | dialogVisible: false, | 210 | dialogVisible: false, |
205 | dialogTitle: "", | 211 | dialogTitle: "", |
... | @@ -210,10 +216,19 @@ export default { | ... | @@ -210,10 +216,19 @@ export default { |
210 | mounted() { | 216 | mounted() { |
211 | getSysInterfaceList({ interfaceType: "4",pageSize:100 }).then((res) => { | 217 | getSysInterfaceList({ interfaceType: "4",pageSize:100 }).then((res) => { |
212 | if (res.code == 200) { | 218 | if (res.code == 200) { |
213 | this.searchType.forEach(item=>{ | 219 | res.result.records.forEach(i=>{ |
214 | let a = res.result.records.filter(i => i.interfaceService == item.name) | 220 | let a = this.searchType.filter(item => i.interfaceService == item.name) |
215 | 221 | if (a.length) { | |
222 | i.bgColor = a[0].bgColor | ||
223 | i.svg = a[0].svg | ||
224 | i.comp = a[0].comp | ||
225 | }else{ | ||
226 | i.bgColor = '109, 114, 120' | ||
227 | i.svg = require("./images/unknow.svg") | ||
228 | i.comp = '' | ||
229 | } | ||
216 | }) | 230 | }) |
231 | this.searchType = res.result.records | ||
217 | } | 232 | } |
218 | }); | 233 | }); |
219 | }, | 234 | }, |
... | @@ -225,10 +240,10 @@ export default { | ... | @@ -225,10 +240,10 @@ export default { |
225 | * @author: renchao | 240 | * @author: renchao |
226 | */ | 241 | */ |
227 | openDialog(item) { | 242 | openDialog(item) { |
228 | this.dialogTitle = item.name; | 243 | this.dialogTitle = item.interfaceDescription; |
229 | this.dialogVisible = true; | ||
230 | this.dialogComp = (r) => | 244 | this.dialogComp = (r) => |
231 | require.ensure([], () => r(require(`./components/${item.comp}.vue`))); | 245 | require.ensure([], () => r(require(`./components/${item.comp}.vue`))); |
246 | item.comp && (this.dialogVisible = true); | ||
232 | }, | 247 | }, |
233 | }, | 248 | }, |
234 | computed: { | 249 | computed: { | ... | ... |
src/views/sjgx/gbmhlgxsjgx/images/unknow.svg
0 → 100644
1 | <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1694481575357" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3080" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M908.91 937.6c0 17.67-14.33 32-32 32H147.09c-17.67 0-32-14.33-32-32V116.19c0-23.52 19.07-42.59 42.59-42.59h544.3l206.93 206.93V937.6z" fill="#B5B5B5" p-id="3081"></path><path d="M495.53 620.39c-37.63 0-44.43 6.79-44.43 43.38 0 37.63 6.8 43.91 44.43 43.91 37.11 0 44.43-6.27 44.43-43.91 0-36.59-7.32-43.38-44.43-43.38zM490.83 335.53c-31.36 0-59.58 3.66-78.92 9.41v64.82c18.29-5.76 42.33-8.89 63.77-8.89 42.33 0 55.4 6.79 55.4 38.15 0 21.95-4.7 31.88-27.7 50.18-30.84 26.65-40.25 42.85-40.25 72.64v23.52h63.77v-12.03c0-17.76 6.28-27.69 38.16-51.22 35.54-26.65 47.04-45.48 47.04-94.08-0.01-73.17-35.55-92.5-121.27-92.5zM700.91 73.6v173.92c0 17.47 14.05 31.7 31.52 31.91l176.48 2.18-208-208.01z" fill="#FFFFFF" p-id="3082"></path></svg> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment