|
|
@ -140,17 +140,18 @@ function loadNetworkConfigs() { |
|
|
|
|
|
|
|
function renderConfigTable(data) { |
|
|
|
let html = `<table class="table table-bordered network-config-table"><thead><tr> |
|
|
|
<th>Key</th><th>APN</th><th>Band</th><th>Comment</th><th>操作</th> |
|
|
|
<th>Key</th><th>RagConfig</th><th>APN</th><th>Band</th><th>Comment</th><th>操作</th> |
|
|
|
</tr></thead><tbody>`; |
|
|
|
if (data.length === 0) { |
|
|
|
html += '<tr><td colspan="5" class="text-center text-muted">暂无数据</td></tr>'; |
|
|
|
html += `<tr><td colspan="5" class="alert-service-check"> |
|
|
|
html += '<tr><td colspan="6" class="text-center text-muted">暂无数据</td></tr>'; |
|
|
|
html += `<tr><td colspan="6" class="alert-service-check"> |
|
|
|
<i class="fas fa-exclamation-circle"></i> 服务是否正常?请检查Agent服务和网络配置接口是否可用。 |
|
|
|
</td></tr>`; |
|
|
|
} else { |
|
|
|
data.forEach(item => { |
|
|
|
html += `<tr> |
|
|
|
<td>${item.configKey}</td> |
|
|
|
<td>${item.ragConfig || ''}</td> |
|
|
|
<td>${item.apn || ''}</td> |
|
|
|
<td>${item.band ? item.band.join(',') : ''}</td> |
|
|
|
<td>${item.comment || ''}</td> |
|
|
@ -162,7 +163,7 @@ function renderConfigTable(data) { |
|
|
|
</tr>`; |
|
|
|
// 子表格 |
|
|
|
if (item.coreOrImsConfigs && item.coreOrImsConfigs.length > 0) { |
|
|
|
html += `<tr><td colspan="5" style="padding:0;"> |
|
|
|
html += `<tr><td colspan="6" style="padding:0;"> |
|
|
|
<table class="table table-sm mb-0"> |
|
|
|
<thead> |
|
|
|
<tr style="background:#f8f9fa;"> |
|
|
|