Commit d7bfd9bfa7af26d6c76fe771bb8cfe0d3f84da5e
Merge remote-tracking branch 'origin/wvp-28181-2.0' into map
Showing
3 changed files
with
10 additions
and
10 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/utils/XmlUtil.java
| ... | ... | @@ -20,8 +20,8 @@ import java.util.*; |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * 基于dom4j的工具包 |
| 23 | - * | |
| 24 | - * | |
| 23 | + * | |
| 24 | + * | |
| 25 | 25 | */ |
| 26 | 26 | public class XmlUtil { |
| 27 | 27 | /** |
| ... | ... | @@ -31,9 +31,9 @@ public class XmlUtil { |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * 解析XML为Document对象 |
| 34 | - * | |
| 34 | + * | |
| 35 | 35 | * @param xml 被解析的XMl |
| 36 | - * | |
| 36 | + * | |
| 37 | 37 | * @return Document |
| 38 | 38 | */ |
| 39 | 39 | public static Element parseXml(String xml) { |
| ... | ... | @@ -51,7 +51,7 @@ public class XmlUtil { |
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * 获取element对象的text的值 |
| 54 | - * | |
| 54 | + * | |
| 55 | 55 | * @param em 节点的对象 |
| 56 | 56 | * @param tag 节点的tag |
| 57 | 57 | * @return 节点 |
| ... | ... | @@ -62,12 +62,12 @@ public class XmlUtil { |
| 62 | 62 | } |
| 63 | 63 | Element e = em.element(tag); |
| 64 | 64 | // |
| 65 | - return null == e ? null : e.getText(); | |
| 65 | + return null == e ? null : e.getText().trim(); | |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * 递归解析xml节点,适用于 多节点数据 |
| 70 | - * | |
| 70 | + * | |
| 71 | 71 | * @param node node |
| 72 | 72 | * @param nodeName nodeName |
| 73 | 73 | * @return List<Map<String, Object>> |
| ... | ... | @@ -106,7 +106,7 @@ public class XmlUtil { |
| 106 | 106 | |
| 107 | 107 | /** |
| 108 | 108 | * xml转json |
| 109 | - * | |
| 109 | + * | |
| 110 | 110 | * @param element |
| 111 | 111 | * @param json |
| 112 | 112 | */ | ... | ... |
web_src/src/components/control.vue
| ... | ... | @@ -41,7 +41,7 @@ |
| 41 | 41 | <template slot="extra"> |
| 42 | 42 | <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> |
| 43 | 43 | </template> |
| 44 | - <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip"> | |
| 44 | + <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip" :key="key"> | |
| 45 | 45 | <template slot="label"> |
| 46 | 46 | {{ getNameFromKey(key) }} |
| 47 | 47 | </template> | ... | ... |
web_src/src/components/live.vue
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | <el-header> |
| 5 | 5 | <uiHeader></uiHeader> |
| 6 | 6 | </el-header> |
| 7 | - <el-container v-loading="loading" element-loading-text="拼命加载中"> | |
| 7 | + <el-container v-loading="loading" element-loading-text="拼命加载中" style="margin: 0 20px;"> | |
| 8 | 8 | <el-aside width="300px" style="background-color: #ffffff"> |
| 9 | 9 | <div style="text-align: center;padding-top: 20px;">设备列表</div> |
| 10 | 10 | <el-menu v-loading="loading"> | ... | ... |