Commit 8d5764b9a0ed7bd9c0473dddcbe5acc5f64e7e6a

Authored by 648540858
1 parent 646419e4

优化信令配置展示界面

web_src/package-lock.json
... ... @@ -261,8 +261,8 @@
261 261 },
262 262 "async-validator": {
263 263 "version": "1.8.5",
264   - "resolved": "https://registry.nlark.com/async-validator/download/async-validator-1.8.5.tgz",
265   - "integrity": "sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=",
  264 + "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-1.8.5.tgz",
  265 + "integrity": "sha512-tXBM+1m056MAX0E8TL2iCjg8WvSyXu0Zc8LNtYqrVeyoL3+esHRZ4SieE9fKQyyU09uONjnMEjrNBMqT0mbvmA==",
266 266 "requires": {
267 267 "babel-runtime": "6.x"
268 268 }
... ... @@ -3091,8 +3091,8 @@
3091 3091 },
3092 3092 "deepmerge": {
3093 3093 "version": "1.5.2",
3094   - "resolved": "https://registry.npm.taobao.org/deepmerge/download/deepmerge-1.5.2.tgz?cache=0&sync_timestamp=1572279556265&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdeepmerge%2Fdownload%2Fdeepmerge-1.5.2.tgz",
3095   - "integrity": "sha1-EEmdhohEza1P7ghC34x/bwyVp1M="
  3094 + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-1.5.2.tgz",
  3095 + "integrity": "sha512-95k0GDqvBjZavkuvzx/YqVLv/6YYa17fz6ILMSf7neqQITCPbnfEnQvEgMPNjH4kgobe7+WIL0yJEHku+H3qtQ=="
3096 3096 },
3097 3097 "define-properties": {
3098 3098 "version": "1.1.3",
... ... @@ -3381,9 +3381,9 @@
3381 3381 "dev": true
3382 3382 },
3383 3383 "element-ui": {
3384   - "version": "2.15.1",
3385   - "resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.15.1.tgz?cache=0&sync_timestamp=1614082623756&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felement-ui%2Fdownload%2Felement-ui-2.15.1.tgz",
3386   - "integrity": "sha1-raAKpuMsAndKLndWPdhGaPgTzf8=",
  3384 + "version": "2.15.6",
  3385 + "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.6.tgz",
  3386 + "integrity": "sha512-rcYXEKd/j2G0AgficAOk1Zd1AsnHRkhmrK4yLHmNOiimU2JfsywgfKUjMoFuT6pQx0luhovj8lFjpE4Fnt58Iw==",
3387 3387 "requires": {
3388 3388 "async-validator": "~1.8.1",
3389 3389 "babel-helper-vue-jsx-merge-props": "^2.0.0",
... ... @@ -5990,7 +5990,7 @@
5990 5990 },
5991 5991 "normalize-wheel": {
5992 5992 "version": "1.0.1",
5993   - "resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
  5993 + "resolved": "https://registry.npmjs.org/normalize-wheel/-/normalize-wheel-1.0.1.tgz",
5994 5994 "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
5995 5995 },
5996 5996 "npm-run-path": {
... ... @@ -9380,8 +9380,8 @@
9380 9380 },
9381 9381 "resize-observer-polyfill": {
9382 9382 "version": "1.5.1",
9383   - "resolved": "https://registry.nlark.com/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz",
9384   - "integrity": "sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ="
  9383 + "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz",
  9384 + "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg=="
9385 9385 },
9386 9386 "resolve": {
9387 9387 "version": "1.17.0",
... ... @@ -10316,8 +10316,8 @@
10316 10316 },
10317 10317 "throttle-debounce": {
10318 10318 "version": "1.1.0",
10319   - "resolved": "https://registry.npm.taobao.org/throttle-debounce/download/throttle-debounce-1.1.0.tgz",
10320   - "integrity": "sha1-UYU9o3vmihVctugns1FKPEIuic0="
  10319 + "resolved": "https://registry.npmjs.org/throttle-debounce/-/throttle-debounce-1.1.0.tgz",
  10320 + "integrity": "sha512-XH8UiPCQcWNuk2LYePibW/4qL97+ZQ1AN3FNXwZRBNPPowo/NRU5fAlDCSNBJIYCKbioZfuYtMhG4quqoJhVzg=="
10321 10321 },
10322 10322 "through2": {
10323 10323 "version": "2.0.5",
... ...
web_src/package.json
... ... @@ -13,7 +13,7 @@
13 13 "axios": "^0.24.0",
14 14 "core-js": "^2.6.5",
15 15 "echarts": "^4.9.0",
16   - "element-ui": "^2.15.1",
  16 + "element-ui": "^2.15.6",
17 17 "fingerprintjs2": "^2.1.2",
18 18 "moment": "^2.29.1",
19 19 "postcss-pxtorem": "^5.1.1",
... ...
web_src/src/components/channelList.vue
... ... @@ -212,10 +212,10 @@ export default {
212 212 url: '/api/play/start/' + deviceId + '/' + channelId
213 213 }).then(function (res) {
214 214 that.isLoging = false;
215   - if (res.data.code == 0) {
  215 + if (res.data.code === 0) {
216 216  
217 217 setTimeout(()=>{
218   - console.log("下载截图")
  218 +
219 219 let snapId = deviceId + "_" + channelId;
220 220 that.loadSnap[snapId] = 0;
221 221 that.getSnapErrorEvent(snapId)
... ... @@ -224,7 +224,10 @@ export default {
224 224 streamInfo: res.data.data,
225 225 hasAudio: itemData.hasAudio
226 226 });
227   - that.initData();
  227 + setTimeout(()=>{
  228 + that.initData();
  229 + },1000)
  230 +
228 231 }else {
229 232 that.$message.error(res.data.msg);
230 233 }
... ...
web_src/src/components/control.vue
... ... @@ -30,27 +30,68 @@
30 30 </div>
31 31 <el-button type="primary" slot="reference" size="mini" @click="getServerConfig()">媒体服务器配置</el-button>
32 32 </el-popover>
33   - <el-popover placement="bottom" width="750" height="300" trigger="click">
34   - <div style="height: 600px;overflow:auto;">
35   - <div v-for="(value, key, index) in wvpServerConfig">
36   - {{ key }}:
37   - <table v-if="key != 'server.port'" class="table-c" cellspacing="0">
38   - <tr v-for="(subValue, subKey, subIndex) in value">
39   - <td style="width: 18rem; text-align: right;">{{ subKey }}</td>
40   - <td style="width: 33rem; text-align:left">{{ subValue }}</td>
41   - </tr>
42   - </table>
43   - <span v-if="key == 'server.port'">{{ value }}</span>
44   - </div>
  33 + <el-popover placement="bottom" width="900" height="300" trigger="click">
  34 + <div style="height: 600px;overflow:auto; padding: 20px">
45 35  
  36 + <el-descriptions title="基础配置" border>
  37 + <template slot="extra">
  38 + <el-button style="float: right;" type="primary" size="mini" icon="el-icon-document-copy" title="点击拷贝" v-clipboard="JSON.stringify(wvpServerConfig.base)" @success="$message({type:'success', message:'成功拷贝到粘贴板'})"></el-button>
  39 + </template>
  40 + <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.base">
  41 + <template slot="label" >
  42 + {{ getNameFromKey(key) }}
  43 + </template>
  44 + <div v-if="key === 'interfaceAuthenticationExcludes'">
  45 + <el-dropdown>
  46 + <span class="el-dropdown-link">
  47 + 查看<i class="el-icon-arrow-down el-icon--right"></i>
  48 + </span>
  49 + <el-dropdown-menu slot="dropdown">
  50 + <el-dropdown-item v-for="(value, key, index) in wvpServerConfig.base.interfaceAuthenticationExcludes">{{value}}</el-dropdown-item>
  51 + </el-dropdown-menu>
  52 + </el-dropdown>
  53 + </div>
  54 + <div v-if="key !== 'interfaceAuthenticationExcludes'">
  55 + <div v-if="value === true">
  56 + 已启用
  57 + </div>
  58 + <div v-if="value === false">
  59 + 未启用
  60 + </div>
  61 + <div v-if="value !== true && value !== false">
  62 + {{ value }}
  63 + </div>
  64 + </div>
  65 +
  66 + </el-descriptions-item>
  67 + </el-descriptions>
46 68 <div style="margin-top: 1rem">
47   - 版本信息:
48   - <table class="table-c" cellspacing="0">
49   - <tr v-for="(value, key, index) in wvpServerVersion">
50   - <td style="width: 18rem; text-align: right;">{{ key }}</td>
51   - <td style="width: 33rem; text-align:left">{{ value }}</td>
52   - </tr>
53   - </table>
  69 + <el-descriptions title="国标配置" border>
  70 + <template slot="extra">
  71 + <el-button style="float: right;" type="primary" size="mini" icon="el-icon-document-copy" title="点击拷贝" v-clipboard="JSON.stringify(wvpServerConfig.sip)" @success="$message({type:'success', message:'成功拷贝到粘贴板'})"></el-button>
  72 + </template>
  73 + <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip">
  74 + <template slot="label">
  75 + {{ getNameFromKey(key) }}
  76 + </template>
  77 + {{ value }}
  78 + </el-descriptions-item>
  79 + </el-descriptions>
  80 + </div>
  81 + <div style="margin-top: 1rem">
  82 + <el-descriptions title="版本信息" border>
  83 + <template slot="extra">
  84 + <el-button style="float: right;" type="primary" size="mini" icon="el-icon-document-copy" title="点击拷贝" v-clipboard="JSON.stringify(wvpServerVersion)" @success="$message({type:'success', message:'成功拷贝到粘贴板'})"></el-button>
  85 + </template>
  86 + <el-descriptions-item v-for="(value, key, index) in wvpServerVersion">
  87 + <template slot="label">
  88 + {{ getNameFromKey(key) }}
  89 + </template>
  90 + {{ value }}
  91 + </el-descriptions-item>
  92 + </el-descriptions>
  93 +
  94 +
54 95 </div>
55 96 </div>
56 97 <el-button type="primary" slot="reference" size="mini" @click="getWVPServerConfig()">信令服务器配置</el-button>
... ... @@ -410,6 +451,49 @@ export default {
410 451 message: '删除成功!'
411 452 });
412 453 });
  454 + },
  455 + getNameFromKey: function(key) {
  456 + let nameData = {
  457 + "waitTrack": "等待编码信息",
  458 + "interfaceAuthenticationExcludes": "不进行鉴权的接口",
  459 + "playTimeout": "点播超时时间",
  460 + "autoApplyPlay": "自动点播",
  461 + "recordPushLive": "推流录像",
  462 + "redisConfig": "自动配置redis",
  463 + "thirdPartyGBIdReg": "stream信息正则",
  464 + "savePositionHistory": "保存轨迹信息",
  465 + "interfaceAuthentication": "接口鉴权",
  466 + "serverId": "服务ID",
  467 + "logInDatebase": "日志存储进数据库",
  468 + "seniorSdp": "扩展SDP",
  469 + "password": "密码",
  470 + "port": "端口号",
  471 + "keepaliveTimeOut": "心跳超时",
  472 + "domain": "国标域",
  473 + "ip": "IP地址",
  474 + "monitorIp": "监听IP",
  475 + "alarm": "存储报警信息",
  476 + "ptzSpeed": "云台控制速度",
  477 + "id": "国标ID",
  478 + "registerTimeInterval": "注册间隔",
  479 + "artifactId": "模块名称",
  480 + "version": "版本",
  481 + "project": "工程",
  482 + "git_Revision": "GIT修订版本",
  483 + "git_BRANCH": "GIT分支",
  484 + "git_URL": "GIT地址",
  485 + "build_DATE": "构建时间",
  486 + "create_By": "作者",
  487 + "git_Revision_SHORT": "GIT修订版本(短)",
  488 + "build_Jdk": "构建用JDK",
  489 + };
  490 + console.log(key + ": " + nameData[key])
  491 +
  492 + if (nameData[key]) {
  493 + return nameData[key]
  494 + }else {
  495 + return key;
  496 + }
413 497 }
414 498 }
415 499 };
... ...