Showing
2 changed files
with
6 additions
and
2 deletions
@@ -273,7 +273,12 @@ export default { | @@ -273,7 +273,12 @@ export default { | ||
273 | 273 | ||
274 | let getChartData = () => { | 274 | let getChartData = () => { |
275 | 275 | ||
276 | - let timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "") | 276 | + let timeScope = ''; |
277 | + try { | ||
278 | + timeScope = form.value.scene.timeScope.replaceAll("time_scope_", "") | ||
279 | + }catch (e) { | ||
280 | + timeScope = form.value.scene.timeScope.replace("time_scope_", "") | ||
281 | + } | ||
277 | if (timeScope == '') { | 282 | if (timeScope == '') { |
278 | proxy.$global.showMsg("请选择时间范围!", "warning"); | 283 | proxy.$global.showMsg("请选择时间范围!", "warning"); |
279 | return; | 284 | return; |
@@ -7,7 +7,6 @@ | @@ -7,7 +7,6 @@ | ||
7 | <div class="analysis-index-container" style="display: grid;"> | 7 | <div class="analysis-index-container" style="display: grid;"> |
8 | <img src="/vue3/src/assets/images/analysis/icon-add.png" style="margin-left: 20px;"></img> | 8 | <img src="/vue3/src/assets/images/analysis/icon-add.png" style="margin-left: 20px;"></img> |
9 | <span style="text-align: center;line-height: 50px;color: #0C4493">点击添加对比分析</span> | 9 | <span style="text-align: center;line-height: 50px;color: #0C4493">点击添加对比分析</span> |
10 | - | ||
11 | </div> | 10 | </div> |
12 | </router-link> | 11 | </router-link> |
13 | 12 |
-
Please register or login to post a comment