From 434fda2bd16d78e9596fc98f7ec290e90103037c Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 04 九月 2024 16:01:11 +0800
Subject: [PATCH] 阈值卡片调整、登录路由

---
 src/views/system/data-manage/data-detail/index.vue |   55 +++++++++++++++++++++++--------------------------------
 1 files changed, 23 insertions(+), 32 deletions(-)

diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue
index df57a6b..247f092 100644
--- a/src/views/system/data-manage/data-detail/index.vue
+++ b/src/views/system/data-manage/data-detail/index.vue
@@ -2,13 +2,14 @@
   <div class="app-container">
     <el-card class="box-card" v-show="index !== 'image_resource_security'">
       <el-row style="display: flex; flex-direction: row; align-items: center" justify="space-between">
-        <div v-for="card in cardList" style="display: flex;flex-direction: row; margin-right: 50px" :key="card.label">
+        <div style="font-size: 18px;min-width: 200px">{{ruleName}}</div>
+        <div v-if="cardList && cardList.length > 0" v-for="card in cardList" style="display: flex;flex-direction: row; margin-right: 50px;margin-left: 20px;align-items: center" :key="card.label">
           <div>
             <div class="icon-container">
               <i :class="card.icon"></i>
             </div>
           </div>
-          <div v-if="card.dataList && card.dataList.length > 0">
+          <div v-if="card.dataList && card.dataList.length > 0" style="display: flex; flex-direction: row">
             <div v-if="data" v-for="(data, index) in card.dataList" class="dashboard-item" :key="data.label">
               <div style="color: #5C9BF8;margin-bottom: 20px;font-size: 20px">{{ tableData.count[index] }}</div>
               <div>{{ data.label }}</div>
@@ -25,7 +26,7 @@
       </el-row>
     </el-card>
 
-    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
+    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
       <el-form-item label="鍏抽敭璇�" prop="bayonetNumber">
         <el-input v-model="queryParams.keyword" placeholder="鍏抽敭璇嶆悳绱�" clearable
           @keyup.enter.native="handleQuery" />
@@ -64,7 +65,7 @@
                   </el-button>
                 </div>
                 <div style="font-size: 14px;height: 50px; font-weight: bold;">{{ item.deptName }}</div>
-                <div style="font-size: 14px;">璧勬簮锛歿{ item.imageResourceSecurity }}</div>
+                <div style="font-size: 14px;">寰楀垎锛歿{ item.imageResourceSecurity }}</div>
                 <!-- <div style="font-size: 14px;">瑙嗛浼犺緭缃戣祫浜у噯纭巼锛歿{ item.propertyAccuracy }}</div>
                 <div style="font-size: 14px;">寮卞彛浠ゅ緱鍒嗭細{{ item.weakPassword }}</div>
                 <div style="font-size: 14px;">瑙嗛浼犺緭缃戝嵄闄╄祫浜ф瘮渚嬶細{{ item.riskProperty }}</div>
@@ -79,10 +80,10 @@
           v-hasPermi="['platform:platform:export']">瀵煎叆
         </el-button>
       </el-col>
-      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      <right-toolbar  :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <right-toolbar :showSearch.sync="showSearch" @queryTable="handleQuery" :columns="showList"></right-toolbar>
+    <right-toolbar v-show="index !== 'image_resource_security'" :showSearch.sync="showSearch" @queryTable="handleQuery" :columns="showList"></right-toolbar>
 
     <div>
       <el-table v-loading="loading" :data="tableData.list">
@@ -100,20 +101,23 @@
           <el-input v-model="resourceForm.deptName" disabled />
         </el-form-item>
         <el-form-item label="骞冲彴杩愯鐜�" prop="platformOnline">
-          <el-input-number v-model="resourceForm.platformOnline" />
+          <el-input-number v-model="resourceForm.platformOnline" :precision="2" :step="0.1" :min="0" :max="1"/>
         </el-form-item>
         <el-form-item label="瑙嗛浼犺緭缃戣祫浜у噯纭巼" prop="propertyAccuracy">
-          <el-input-number v-model="resourceForm.propertyAccuracy" />
+          <el-input-number v-model="resourceForm.propertyAccuracy" :precision="2" :step="0.1" :min="0" :max="1"/>
         </el-form-item>
         <el-form-item label="寮卞彛浠ゅ緱鍒�" prop="weakPassword">
-          <el-input-number v-model="resourceForm.weakPassword" />
+          <el-input-number v-model="resourceForm.weakPassword" :precision="2" :step="0.1" :min="0" :max="1"/>
         </el-form-item>
         <el-form-item label="瑙嗛浼犺緭缃戝嵄闄╄祫浜ф瘮渚�" prop="riskProperty">
-          <el-input-number v-model="resourceForm.riskProperty" />
+          <el-input-number v-model="resourceForm.riskProperty" :precision="2" :step="0.1" :min="0" :max="1"/>
         </el-form-item>
-        <el-form-item label="瑙嗛浼犺緭缃戣竟鐣屽畬鏁存�ф娴嬫墸鍒嗛」" prop="boundaryIntegrity">
-          <el-input-number v-model="resourceForm.boundaryIntegrity" />
-        </el-form-item>
+        <el-tooltip class="item" effect="dark" content="杩濊杩炴帴浜掕仈缃戞墸鍑�20涓櫨鍒嗙偣/娆★紝杩濊鏃犵嚎AP鎺ュ叆銆侀殢韬玾ifi鎺ュ叆銆佸叡浜綉缁滃悇鎵e噺5涓櫨鍒嗙偣/娆★紝鐩磋嚦姝ら」鎸囨爣鎵e畬涓烘銆�" placement="top-start">
+          <el-form-item label="瑙嗛浼犺緭缃戣竟鐣屽畬鏁存�ф娴嬫墸鍒嗛」" prop="boundaryIntegrity">
+            <el-input-number v-model="resourceForm.boundaryIntegrity" :precision="2" :step="0.1" :min="0" :max="1"/>
+          </el-form-item>
+        </el-tooltip>
+
       </el-form>
       <div slot="footer" class="dialog-footer">
         <el-button @click="cancelR">鍙� 娑�</el-button>
@@ -150,27 +154,13 @@
 import { getToken } from "@/utils/auth";
 export default {
   name: "Platform",
-  // watch: {
-  //   tableData: {
-  //     immediate: true,
-  //     deep: true,
-  //     handler(newVal) {
-  //       if(newVal && newVal.list) {
-  //         this.list = newVal.detail;
-  //       }
-  //     }
-  //   }
-  // },
-  // computed: {
-  //   startTime() {
-  //     var date = new Date();
-  //     var s1 = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + (date.getDate()-1);
-  //     return s1;
-  //   }
-  // },
+  computed: {
+    ruleName() {
+      return this.$route.query.ruleName
+    }
+  },
   data() {
     return {
-      list: [],
       // 瀵煎叆鍙傛暟
       upload: {
         // 鏄惁鏄剧ず寮瑰嚭灞�
@@ -443,5 +433,6 @@
   justify-content: center;
   align-items: center;
   width: 150px;
+  margin: 0 30px;
 }
 </style>

--
Gitblit v1.8.0