From ff9b976bde73fe1d31e9b84cf1fa6b91e1b79dbc Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期五, 17 十二月 2021 11:46:32 +0800 Subject: [PATCH] 修复ztree显示空目录功能 --- src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 38 +++++++++++++++++++++++++++----------- 1 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue index 3579f09..dc61077 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue @@ -265,7 +265,7 @@ </span> </div> <div v-else-if="hasError(data)" class="has-error"> - <span>鏈夊紓甯�</span> + <span>{{ errWord(data) }}</span> </div> <div v-else class="no-error"> <span>鏃犲紓甯�</span> @@ -597,7 +597,6 @@ } }); Object.assign(query, ...filterQuerys); - getlst(query).then((res) => { if (_this.showType == "list") { _this.tableTotal = res.total; @@ -712,6 +711,20 @@ }); }); }); + }, + errWord(data) { + let text; + data.EventLst.forEach((item, i) => { + if ( + item.state == 0 && + item.Event.indexOf("杩涘嚭绔�") == -1 && + item.Event.indexOf("淇″彿鏈�") == -1 && + item.Event.indexOf("杩囧垎鐩�") == -1 + ) { + text= item.Event + } + }); + return text||"鏈墜姣�" }, hasError(data) { let status = true; @@ -916,7 +929,6 @@ background-color: #f4f6f9; margin: 0 5px; margin-bottom: 10px; - * { box-sizing: content-box; color: #425277; @@ -1045,9 +1057,9 @@ padding: 0 10px; text-align: left; width: fit-content; + cursor: pointer; } &:hover > .option-name { - // outline: 1px solid #a8b7ee; background: #e2e7f9; span { color: #2d52d7; @@ -1178,17 +1190,21 @@ .show-type { display: flex; .list span { - font-size: 20px; + font-size: 18px; + line-height: 20px; } .type { - font-size: 18px; - padding: 2px 4px 0px 4px; + font-size: 17px; border-radius: 4px; cursor: pointer; + height: 20px; + width: 20px; + line-height: 19px; + &.menu { - margin-right: 10px; + margin-right: 5px; span { - font-size: 15px; + font-size: 14px; } } &.current { @@ -1228,8 +1244,8 @@ cursor: pointer; border-radius: 3px; width: 100%; - padding-top: 56.25%; - height: 0; + // padding-top: 56.25%; + height: 57%; position: relative; img { position: absolute; -- Gitblit v1.8.0