Merge remote-tracking branch 'origin/wvp-28181-2.0' into map

pull/446/head
648540858 2022-04-21 10:30:46 +08:00
commit d7bfd9bfa7
3 changed files with 10 additions and 10 deletions

View File

@ -20,8 +20,8 @@ import java.util.*;
/** /**
* dom4j * dom4j
* *
* *
*/ */
public class XmlUtil { public class XmlUtil {
/** /**
@ -31,9 +31,9 @@ public class XmlUtil {
/** /**
* XMLDocument * XMLDocument
* *
* @param xml XMl * @param xml XMl
* *
* @return Document * @return Document
*/ */
public static Element parseXml(String xml) { public static Element parseXml(String xml) {
@ -51,7 +51,7 @@ public class XmlUtil {
/** /**
* elementtext * elementtext
* *
* @param em * @param em
* @param tag tag * @param tag tag
* @return * @return
@ -62,12 +62,12 @@ public class XmlUtil {
} }
Element e = em.element(tag); Element e = em.element(tag);
// //
return null == e ? null : e.getText(); return null == e ? null : e.getText().trim();
} }
/** /**
* xml * xml
* *
* @param node node * @param node node
* @param nodeName nodeName * @param nodeName nodeName
* @return List<Map<String, Object>> * @return List<Map<String, Object>>
@ -106,7 +106,7 @@ public class XmlUtil {
/** /**
* xmljson * xmljson
* *
* @param element * @param element
* @param json * @param json
*/ */

View File

@ -41,7 +41,7 @@
<template slot="extra"> <template slot="extra">
<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> <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>
</template> </template>
<el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip"> <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip" :key="key">
<template slot="label"> <template slot="label">
{{ getNameFromKey(key) }} {{ getNameFromKey(key) }}
</template> </template>

View File

@ -4,7 +4,7 @@
<el-header> <el-header>
<uiHeader></uiHeader> <uiHeader></uiHeader>
</el-header> </el-header>
<el-container v-loading="loading" element-loading-text="拼命加载中"> <el-container v-loading="loading" element-loading-text="拼命加载中" style="margin: 0 20px;">
<el-aside width="300px" style="background-color: #ffffff"> <el-aside width="300px" style="background-color: #ffffff">
<div style="text-align: center;padding-top: 20px;">设备列表</div> <div style="text-align: center;padding-top: 20px;">设备列表</div>
<el-menu v-loading="loading"> <el-menu v-loading="loading">