From 690eaac5ed710462a5f2635ccf9736e560f09381 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 06 十一月 2024 10:07:02 +0800
Subject: [PATCH] 大图展示得分分开

---
 src/views/system/monitor/face/index.vue |   50 +++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 39 insertions(+), 11 deletions(-)

diff --git a/src/views/system/monitor/face/index.vue b/src/views/system/monitor/face/index.vue
index 007b042..0b3ce68 100644
--- a/src/views/system/monitor/face/index.vue
+++ b/src/views/system/monitor/face/index.vue
@@ -1,13 +1,16 @@
 <template>
   <div class="app-container">
     <div
-      style="display: flex;flex-direction: row;min-width: 158px;max-width: 158px;margin-bottom: 5px;border-radius: 1px; user-select: none"
+      style="display: flex;flex-direction: row;min-width: 300px;max-width: 300px;margin-bottom: 5px;border-radius: 1px; user-select: none"
     >
       <div @click="clickTab(null)" class="tab"
-           :class="{tabActive: null == queryParams.provinceTag, tabInactive: null != queryParams.provinceTag}">鍏ㄩ儴
+           :class="{tabActive: !queryParams.provinceTag && !queryParams.deptTag, tabInactive: queryParams.provinceTag || queryParams.deptTag}">鍏ㄩ儴
       </div>
       <div @click="clickTab(0)" class="tab"
-           :class="{tabActive: 0 === queryParams.provinceTag, tabInactive: 0 !== queryParams.provinceTag}">鐪佸巺鑰冩牳
+           :class="{tabActive: queryParams.provinceTag, tabInactive: !queryParams.provinceTag}">鐪佸巺鑰冩牳
+      </div>
+      <div @click="clickTab(1)" class="tab"
+           :class="{tabActive: queryParams.deptTag, tabInactive: !queryParams.deptTag}">鍏畨閮ㄨ�冩牳
       </div>
     </div>
     <el-card class="box-card" >
@@ -32,6 +35,10 @@
               <p>寮傚父鏁�</p >
             </div>
             <div class="dashboard-item">
+              <h3 style="color:  #4f4f4f">{{ count.unknownNumbers }}</h3>
+              <p>鏈煡鏁�</p>
+            </div>
+            <div class="dashboard-item">
               <h3>{{ count.viewsPercentage }}%</h3>
               <p>璁惧杩愯鐜�</p >
             </div>
@@ -47,6 +54,7 @@
           placeholder="璇疯緭鍏ュ叧閿瓧"
           clearable
           @keyup.enter.native="handleQuery"
+          @clear="handleQuery"
         />
       </el-form-item>
       <el-form-item label="鍖哄煙" prop="onState">
@@ -69,6 +77,7 @@
           v-model="queryParams.onState"
           placeholder="璁惧鐘舵��"
           clearable
+          @change="handleQuery"
           style="width: 100px"
         >
         <el-option
@@ -92,7 +101,13 @@
       <el-table-column label="ip" align="center" prop="ip" width="180"/>
       <el-table-column label="鏍囩" align="center" width="180" v-if="columns[0].visible">
         <template slot-scope="scope">
-          <div>{{ scope.row.provinceTag == 0 ? "鐪佸巺" : "甯傚眬" }}</div>
+          <div>
+            {{
+              (
+                (scope.row.provinceTag ? '鐪佸巺銆�' : '') +
+                (scope.row.deptTag ? '鍏畨閮ㄣ��' : '')).replace(/銆�$/, '')
+            }}
+          </div>
         </template>
       </el-table-column>
       <el-table-column label="鍖哄煙" align="center" prop="area" width="180" v-if="columns[1].visible"/>
@@ -127,7 +142,6 @@
       <el-table-column label="寤烘ā澶辫触鐜�" align="center" prop="failPercent" width="180" v-if="columns[12].visible"/>
       <el-table-column label="浜鸿劯鍚堟牸鐜�" align="center" prop="facePercent" width="180" v-if="columns[13].visible"/>
       <el-table-column label="澶у浘鍙敤鐜�" align="center" prop="bigUsefulPercent" width="180" v-if="columns[14].visible"/>
-      <el-table-column label="url鍙敤鐜�" align="center" prop="urlPercent" width="180" v-if="columns[15].visible"/>
       <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"  fixed="right">
           <template slot-scope="scope">
             <el-button
@@ -197,10 +211,16 @@
           <el-form-item label="璁惧鍚嶇О锛�">{{ form.name }}</el-form-item>
           <el-col :span="12">
             <el-form-item label="璁惧缂栫爜锛�">{{ form.serialNumber }}</el-form-item>
-            <el-form-item label="鏍囩锛�">{{ form.provinceTag == 0 ? '鐪佸巺' : '甯傚眬' }}</el-form-item>
+            <el-form-item label="鏍囩锛�">
+              {{
+                ((form.provinceTag ? '鐪佸巺銆�' : '') +
+                  (form.deptTag ? '鍏畨閮ㄣ��' : '')).replace(/銆�$/, '')
+              }}
+            </el-form-item>
             <el-form-item label="璁惧鐘舵�侊細">
-              <div v-if="form.onState === 0">绂荤嚎</div>
+              <div v-if="form.onState === 0">鏈煡</div>
               <div v-else-if="form.onState === 1">鍦ㄧ嚎</div>
+              <div v-else-if="form.onState === -1">绂荤嚎</div>
             </el-form-item>
             <el-form-item label="绠$悊鍗曚綅锛�">{{ form.unitName }}</el-form-item>
           </el-col>
@@ -243,7 +263,6 @@
             <el-form-item label="褰撴棩鎶撴媿閲忥細">{{ form.snapCount }}</el-form-item>
             <el-form-item label="涓婁紶鍙婃椂鐜囷細">{{ form.uploadPercent }}</el-form-item>
             <el-form-item label="浜鸿劯鍚堟牸鐜囷細">{{ form.facePercent }}</el-form-item>
-            <el-form-item label="url鍙敤鐜囷細">{{ form.urlPercent }}</el-form-item>
           </el-col>
         </el-row>
       </el-form>
@@ -280,13 +299,13 @@
         { key: 11, label: `涓婁紶鍙婃椂鐜嘸, visible: false },
         { key: 12, label: `寤烘ā澶辫触鐜嘸, visible: false },
         { key: 13, label: `浜鸿劯鍚堟牸鐜嘸, visible: false },
-        { key: 14, label: `鍥剧墖璁块棶寮傚父閲廯, visible: false },
-        { key: 15, label: `澶у浘涓嶅彲鐢ㄩ噺`, visible: false }
+        { key: 14, label: `澶у浘涓嶅彲鐢ㄩ噺`, visible: false }
       ],
       count: {
         totalPosts: 0,
         totalMembers: 0,
         postsPercentage: 0,
+        unknownNumbers: 0,
         totalViews: 0,
         totalFace: 0,
         viewsPercentage: 0
@@ -350,7 +369,16 @@
   },
   methods: {
     clickTab(active) {
-      this.queryParams.provinceTag = active
+      if (active === 0) {
+        this.queryParams.provinceTag = true
+        this.queryParams.deptTag =null
+      } else if (active === 1) {
+        this.queryParams.provinceTag = null
+        this.queryParams.deptTag = true
+      }else {
+        this.queryParams.provinceTag = null
+        this.queryParams.deptTag = null
+      }
       this.getList()
       this.getVideoCount()
     },

--
Gitblit v1.8.0