From 0f2fe7499e107ffd98bf41800045f16bb2f246d3 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期四, 17 十月 2024 16:47:20 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 admin/src/views/business/visits.vue                                                                   |   12 
 server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PositionServiceImpl.java |    4 
 h5/pages/driver/reserved.vue                                                                          |   21 +
 h5/pages/staffLogin/forgetPsd.vue                                                                     |    4 
 admin/src/views/meeting/rooms.vue                                                                     |    1 
 screen/src/router/index.js                                                                            |    2 
 screen/src/views/SecurityControl.vue                                                                  |  545 +++++++++++++++++++++++++++++++++++++++++++++
 admin/src/views/meeting/notice.vue                                                                    |    1 
 admin/src/assets/images/default_homeimg.png                                                           |    0 
 admin/src/components/operation/OperCarUseBookParamWindow.vue                                          |   36 +-
 admin/src/views/index.vue                                                                             |    4 
 admin/src/views/meeting/roomStatistics.vue                                                            |    1 
 server/system_service/src/main/java/com/doumee/core/utils/DESUtil.java                                |    9 
 admin/src/views/business/relativeMember.vue                                                           |    2 
 server/visits/dmvisit_admin/src/main/java/com/doumee/cloud/openapi/HkOpenApiController.java           |   12 
 admin/src/views/meeting/bookings.vue                                                                  |    2 
 admin/src/views/meeting/projects.vue                                                                  |    1 
 admin/src/views/meeting/userStatistics.vue                                                            |    1 
 admin/src/views/business/internalMember.vue                                                           |    4 
 admin/src/views/meeting/components/OperaBookingsWindow.vue                                            |    6 
 admin/src/views/meeting/devices.vue                                                                   |    1 
 21 files changed, 610 insertions(+), 59 deletions(-)

diff --git a/admin/src/assets/images/default_homeimg.png b/admin/src/assets/images/default_homeimg.png
new file mode 100644
index 0000000..623dce4
--- /dev/null
+++ b/admin/src/assets/images/default_homeimg.png
Binary files differ
diff --git a/admin/src/components/operation/OperCarUseBookParamWindow.vue b/admin/src/components/operation/OperCarUseBookParamWindow.vue
index c571bcb..64f9063 100644
--- a/admin/src/components/operation/OperCarUseBookParamWindow.vue
+++ b/admin/src/components/operation/OperCarUseBookParamWindow.vue
@@ -139,7 +139,7 @@
                 v-for="(item, i) in timeList"
                 :key="i"
               >
-                {{ item.startHours }}-{{ item.endHours }}
+                {{ item.startHours }} - {{ item.endHours }}
               </div>
             </div>
           </div>
@@ -168,20 +168,22 @@
         <el-form-item label="鐢ㄨ溅寮�濮嬫椂闂�" prop="startTime">
           <el-date-picker
             v-model="form.startTime"
-            format="yyyy-MM-dd HH:mm"
+            format="yyyy-MM-dd HH:mm:ss"
             value-format="yyyy-MM-dd HH:mm:ss"
             type="datetime"
-            :picker-options="pickerOptions"
-            @change="seletedShiwaiDate"
+            :default-time="defaultTime"
+            :picker-options="pickerOptionsNow"
+            @change="seletedShiwaiDate(1)"
           >
           </el-date-picker>
         </el-form-item>
         <el-form-item label="鐢ㄨ溅缁撴潫鏃堕棿" prop="endTime">
           <el-date-picker
             v-model="form.endTime"
-            format="yyyy-MM-dd HH:mm"
+            format="yyyy-MM-dd HH:mm:ss"
             value-format="yyyy-MM-dd HH:mm:ss"
             type="datetime"
+            :default-time="defaultTime"
             :picker-options="pickerOptions"
             @change="seletedShiwaiDate"
           >
@@ -283,6 +285,7 @@
 
       memberList: [],
       timeList: [],
+      defaultTime: dayjs().format('HH:mm:ss'),
       selDatetime: '',
       colorOptions: [
         { color: this.$store.state.primaryColor, name: '宸查�夋嫨' },
@@ -329,6 +332,11 @@
         },
         selectableRange: '00:00:00 - 23:59:59'
       },
+      pickerOptionsNow: {
+        disabledDate: (time) => {
+          return time.getTime() < Date.now() - 8.64e7;
+        }
+      },
       // 楠岃瘉瑙勫垯
       rules: {
         type: [{ required: true, message: '璇烽�夋嫨', trigger: 'change' }],
@@ -350,16 +358,6 @@
       handler (newValue, oldValue) {
         if (newValue) {
           this.$set(this.pickerOptions, 'selectableRange', this.form.startTime.slice(11, 19) + ' - ' + this.form.endTime.slice(11, 19))
-          // this.startPickerOptions = this.startPickerOptions
-        }
-      },
-      deep: true,
-      immediate: true
-    },
-    'form.startTime': {
-      handler (newValue, oldValue) {
-        if (newValue) {
-          this.$set(this.pickerOptions, 'selectableRange', this.form.startTime.slice(11, 19) + ' - ' + '23:59:59')
           // this.startPickerOptions = this.startPickerOptions
         }
       },
@@ -417,6 +415,7 @@
         this.isShowTime = true
       } else {
         this.clearTime()
+        this.selDatetime = ''
         this.isShowShiwai = true
       }
     },
@@ -505,10 +504,13 @@
     seletedDate (e) {
       this.gettimes()
     },
-    seletedShiwaiDate () {
+    seletedShiwaiDate (str) {
       const { form } = this
+      if(str && str == 1){
+        this.$set(this.form, 'endTime', '')
+      }
       if (form.startTime && form.endTime) {
-        this.selDatetime = form.startTime + '-' + form.endTime
+        this.selDatetime = form.startTime + ' - ' + form.endTime
         carUseBookList({
           carId: form.carId,
           startTime: form.startTime,
diff --git a/admin/src/views/business/internalMember.vue b/admin/src/views/business/internalMember.vue
index e52b5e8..3360015 100644
--- a/admin/src/views/business/internalMember.vue
+++ b/admin/src/views/business/internalMember.vue
@@ -96,8 +96,8 @@
         <el-table-column prop="positionName" label="宀椾綅" min-width="100px"></el-table-column>
         <el-table-column prop="isDangyuan" label="鏄惁鍏氬憳" min-width="100px">
           <template slot-scope="{row}">
-          <span v-if="row.isDangyuan ==1 " style="color: green">鍏氬憳</span>
-          <span v-else >闈炲厷鍛�</span>
+          <span v-if="row.isDangyuan ==1" style="color: green">鍏氬憳</span>
+          <span v-if="row.isDangyuan ==0">闈炲厷鍛�</span>
           </template>
         </el-table-column>
         <el-table-column prop="jobDate" label="鍏ヨ亴鏃ユ湡" min-width="100px"></el-table-column>
diff --git a/admin/src/views/business/relativeMember.vue b/admin/src/views/business/relativeMember.vue
index 881dc01..31248aa 100644
--- a/admin/src/views/business/relativeMember.vue
+++ b/admin/src/views/business/relativeMember.vue
@@ -102,7 +102,7 @@
         <el-table-column prop="isDangyuan" label="鏄惁鍏氬憳" min-width="100px">
           <template slot-scope="{row}">
             <span v-if="row.isDangyuan ==1 " style="color: green">鍏氬憳</span>
-            <span v-else >闈炲厷鍛�</span>
+            <span v-if="row.isDangyuan ==0">闈炲厷鍛�</span>
           </template>
         </el-table-column>
         <el-table-column prop="jobDate" label="鍏ヨ亴鏃ユ湡" min-width="100px">  </el-table-column>
diff --git a/admin/src/views/business/visits.vue b/admin/src/views/business/visits.vue
index 62d8330..6e28c5b 100644
--- a/admin/src/views/business/visits.vue
+++ b/admin/src/views/business/visits.vue
@@ -16,10 +16,10 @@
           <el-option label="寰呮彁浜ゅ鎵�" value="0"></el-option>
           <el-option label="瀹℃壒涓�" value="1"></el-option>
           <el-option label="瀹℃牳閫氳繃" value="2"></el-option>
-          <el-option label="瀹℃牳涓嶉�氳繃" value="3"></el-option>
+          <el-option label="瀹℃壒椹冲洖" value="3"></el-option>
           <el-option label="鍙栨秷" value="4"></el-option>
-          <el-option label="棰勭害鎴愬姛" value="5"></el-option>
-          <el-option label="棰勭害澶辫触" value="6"></el-option>
+          <el-option label="涓嬪彂鎴愬姛" value="5"></el-option>
+          <el-option label="涓嬪彂澶辫触" value="6"></el-option>
           <el-option label="鎷滆涓�" value="7"></el-option>
           <el-option label="宸茬绂�" value="8"></el-option>
           <el-option label="宸插け鏁�" value="9"></el-option>
@@ -75,9 +75,9 @@
         <el-table-column prop="status" fixed="right" label="鐘舵��" min-width="100px">
           <template slot-scope="{row}">
             <span style="color: rgba(245, 154, 35, 0.996);" v-if="row.status === 0">寰呮彁浜ゅ鎵�</span>
-            <span v-if="row.status === 1" style="color: rgba(245, 154, 35, 0.996);">澶勭悊涓�</span>
-            <span v-if="row.status === 2" style="color: rgba(245, 154, 35, 0.996);">宸插悓鎰�</span>
-            <span style="color: gray;" v-if="row.status === 3">宸叉嫆缁�</span>
+            <span v-if="row.status === 1" style="color: rgba(245, 154, 35, 0.996);">瀹℃壒涓�</span>
+            <span v-if="row.status === 2" style="color: rgba(245, 154, 35, 0.996);">瀹℃牳閫氳繃</span>
+            <span style="color: gray;" v-if="row.status === 3">瀹℃壒椹冲洖</span>
             <span v-if="row.status === 4" style="color: gray">鍙栨秷</span>
             <span v-if="row.status === 5" style="color: green">涓嬪彂鎴愬姛</span>
             <span v-if="row.status === 6" style="color: gray">涓嬪彂澶辫触</span>
diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
index 5230e3b..5ff323a 100644
--- a/admin/src/views/index.vue
+++ b/admin/src/views/index.vue
@@ -149,7 +149,7 @@
               <div class="btn" v-permissions="['business:staging:query']" @click="handleDetail(item)">澶勭悊</div>
             </div>
             <div v-if="taskList.length == 0" class="empty">
-              <img src="@/assets/images/default_nodata.png" alt="">
+              <img src="@/assets/images/default_homeimg.png" alt="">
             </div>
           </div>
         </div>
@@ -180,7 +180,7 @@
             </div>
           </div>
           <div v-if="warningList.length == 0" class="empty">
-            <img src="@/assets/images/default_nodata.png" alt="">
+            <img src="@/assets/images/default_homeimg.png" alt="">
           </div>
         </div>
       </div>
diff --git a/admin/src/views/meeting/bookings.vue b/admin/src/views/meeting/bookings.vue
index 73cc725..ffc3d68 100644
--- a/admin/src/views/meeting/bookings.vue
+++ b/admin/src/views/meeting/bookings.vue
@@ -66,7 +66,7 @@
             @click="exportExcel">瀵煎嚭</el-button>
         </li>
       </ul>
-      <el-table v-loading="isWorking.search" :data="tableData.list" stripe border
+      <el-table v-loading="isWorking.search" :data="tableData.list" stripe
         @selection-change="handleSelectionChange">
         <!-- <el-table-column type="selection" align="center" width="55"></el-table-column> -->
         <el-table-column prop="name" label="浼氳涓婚" align="center" min-width="120px" show-overflow-tooltip>
diff --git a/admin/src/views/meeting/components/OperaBookingsWindow.vue b/admin/src/views/meeting/components/OperaBookingsWindow.vue
index 8110e44..2d9a785 100644
--- a/admin/src/views/meeting/components/OperaBookingsWindow.vue
+++ b/admin/src/views/meeting/components/OperaBookingsWindow.vue
@@ -12,6 +12,7 @@
           v-model="form.roomId"
           filterable
           clearable
+          :disabled="isEdit"
           placeholder="璇烽�夋嫨鍏宠仈浼氳瀹�"
           @change="selectRoom"
         >
@@ -20,6 +21,7 @@
       </el-form-item>
       <el-form-item label="棰勫畾鏃ユ湡" prop="date">
         <el-date-picker
+          :disabled="isEdit"
           v-model="form.date"
           value-format="yyyy-MM-dd"
           placeholder="璇烽�夋嫨棰勫畾鏃ユ湡"
@@ -464,9 +466,9 @@
   .time-item {
     margin-right: 8px;
     margin-bottom: 8px;
-    border: #111 solid 1px;
+    border: #cccccc solid 1px;
     font-size: 14px;
-    font-weight: 500;
+    font-weight: 400;
     line-height: 14px;
     width: 124px;
     height: 36px;
diff --git a/admin/src/views/meeting/devices.vue b/admin/src/views/meeting/devices.vue
index 236e75e..ed02763 100644
--- a/admin/src/views/meeting/devices.vue
+++ b/admin/src/views/meeting/devices.vue
@@ -38,7 +38,6 @@
         v-loading="isWorking.search"
         :data="tableData.list"
         stripe
-        border
         @selection-change="handleSelectionChange"
       >
         <el-table-column type="index" prop="index" label="搴忓彿" align="center" min-width="50px"></el-table-column>
diff --git a/admin/src/views/meeting/notice.vue b/admin/src/views/meeting/notice.vue
index 7680ee4..b4bfeb7 100644
--- a/admin/src/views/meeting/notice.vue
+++ b/admin/src/views/meeting/notice.vue
@@ -25,7 +25,6 @@
         v-loading="isWorking.search"
         :data="tableData.list"
         stripe
-        border
         @selection-change="handleSelectionChange"
       >
         <el-table-column type="selection" width="55"></el-table-column>
diff --git a/admin/src/views/meeting/projects.vue b/admin/src/views/meeting/projects.vue
index 884eb7c..b0d02c6 100644
--- a/admin/src/views/meeting/projects.vue
+++ b/admin/src/views/meeting/projects.vue
@@ -50,7 +50,6 @@
         v-loading="isWorking.search"
         :data="tableData.list"
         stripe
-        border
         @selection-change="handleSelectionChange"
       >
         <el-table-column label="鍥炬爣" align="center" min-width="100px">
diff --git a/admin/src/views/meeting/roomStatistics.vue b/admin/src/views/meeting/roomStatistics.vue
index b32fe08..1ab4e4f 100644
--- a/admin/src/views/meeting/roomStatistics.vue
+++ b/admin/src/views/meeting/roomStatistics.vue
@@ -57,7 +57,6 @@
         v-loading="isWorking.search"
         :data="tableData.list"
         stripe
-        border
         @selection-change="handleSelectionChange"
       >
         <el-table-column prop="roomName" label="浼氳瀹�" align="center" min-width="120px"></el-table-column>
diff --git a/admin/src/views/meeting/rooms.vue b/admin/src/views/meeting/rooms.vue
index b701dc7..5380f67 100644
--- a/admin/src/views/meeting/rooms.vue
+++ b/admin/src/views/meeting/rooms.vue
@@ -41,7 +41,6 @@
         v-loading="isWorking.search"
         :data="tableData.list"
         stripe
-        border
         @selection-change="handleSelectionChange"
       >
         <!-- <el-table-column type="selection" width="55"></el-table-column> -->
diff --git a/admin/src/views/meeting/userStatistics.vue b/admin/src/views/meeting/userStatistics.vue
index 8c7b246..9d9e37f 100644
--- a/admin/src/views/meeting/userStatistics.vue
+++ b/admin/src/views/meeting/userStatistics.vue
@@ -48,7 +48,6 @@
         v-loading="isWorking.search"
         :data="tableData.list"
         stripe
-        border
         @selection-change="handleSelectionChange"
       >
         <!-- <el-table-column prop="roomName" label="浼氳瀹�" align="center" min-width="100px"></el-table-column> -->
diff --git a/h5/pages/driver/reserved.vue b/h5/pages/driver/reserved.vue
index 90f4ccd..7174127 100644
--- a/h5/pages/driver/reserved.vue
+++ b/h5/pages/driver/reserved.vue
@@ -48,7 +48,7 @@
 					<text>鎬昏繍杈撻噺</text>
 				</view>
 				<view class="value">
-					<input type="number" placeholder="璇疯緭鍏ユ�昏繍杈撻噺" v-model="param.totalNum" placeholder-style="color: #999999;" />
+					<input type="number" @blur="checkSurplus" placeholder="璇疯緭鍏ユ�昏繍杈撻噺" v-model="param.totalNum" placeholder-style="color: #999999;" />
 					<text class="unit">涓囨敮</text>
 				</view>
 			</view>
@@ -122,7 +122,7 @@
 
 <script>
 import keyboardInput from '@/components/keyboard-input/keyboard-input.vue';
-import { uploadUrl, driverCarApply,driverCarApplyEdit, driverReasonList, driverApplyDetail } from '@/api';
+import { uploadUrl, driverCarApply,driverCarApplyEdit, driverReasonList, driverApplyDetail, checkSurplusNum } from '@/api';
 import dayjs from 'dayjs'
 export default {
 	components: {
@@ -150,6 +150,21 @@
 		this.initData()
 	},
 	methods: {
+		checkSurplus() {
+		      const { arriveDate, reasonId, totalNum } = this.param
+		      if(!arriveDate || !reasonId || !totalNum) return
+		      checkSurplusNum({
+		        arriveDate: arriveDate + ':00',
+		        reasonId,
+		        totalNum
+		      }).then(res => {
+		        console.log('res', res);
+		        
+		        if( res.data == 0 ||  res.data < Number(totalNum)){
+		          this.showToast(`褰撴棩鍓╀綑鍙绾︿綔涓氶噺涓嶈冻璇烽�夋嫨鍏朵粬鍒板満鏃ユ湡`)
+		        }
+		      })
+		    },
 		reasonClick() {
 			if(this.param.id){
 				return
@@ -196,10 +211,12 @@
 			const index = e.indexs[0]
 			this.$set(this.param, 'inReason', reasonList[index].reason)
 			this.$set(this.param, 'reasonId', reasonList[index].id)
+			this.checkSurplus()
 			this.showReason = false
 		},
 		setinDate(e) {
 			this.$set(this.param, 'arriveDate', dayjs(e.value).format('YYYY-MM-DD HH:mm'))
+			this.checkSurplus()
 			this.showDatetime = false
 		},
 		inTypeClick(e) {
diff --git a/h5/pages/staffLogin/forgetPsd.vue b/h5/pages/staffLogin/forgetPsd.vue
index d7d6fd8..ab6b45e 100644
--- a/h5/pages/staffLogin/forgetPsd.vue
+++ b/h5/pages/staffLogin/forgetPsd.vue
@@ -123,7 +123,7 @@
   width: 100%;
   height: 100vh;
   display: flex;
-  padding-top: 160rpx;
+  padding-top: 130rpx;
   box-sizing: border-box;
   align-items: center;
   flex-direction: column;
@@ -146,7 +146,7 @@
     font-weight: 600;
     color: #333333;
     margin-top: 40rpx;
-    margin-bottom: 120rpx;
+    margin-bottom: 80rpx;
   }
   .login_list {
     width: 100%;
diff --git a/screen/src/router/index.js b/screen/src/router/index.js
index c56a2b5..8f104fe 100644
--- a/screen/src/router/index.js
+++ b/screen/src/router/index.js
@@ -6,7 +6,7 @@
   routes: [
     {
       path: '/',
-      component: () => import('../views/LogisticsEfficiency.vue')
+      component: () => import('../views/SecurityControl.vue')
     },
     {
       path: '/PlatformCall',
diff --git a/screen/src/views/SecurityControl.vue b/screen/src/views/SecurityControl.vue
index e2188dc..33bdaad 100644
--- a/screen/src/views/SecurityControl.vue
+++ b/screen/src/views/SecurityControl.vue
@@ -245,6 +245,181 @@
           </div>
         </div>
       </div>
+      <div class="main_footer">
+        <div class="car_warning">
+          <div class="com_header">
+            <div class="title">
+              <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" />
+              <div>褰撳墠杞﹁締婊炵暀棰勮</div>
+            </div>
+            <img src="@/assets/images/title@2x.png" class="bg" alt="" />
+          </div>
+          <div class="table">
+            <div class="line header">
+              <div>杞︾墝</div>
+              <div class="dept">鎷滆閮ㄩ棬</div>
+              <div class="time">瓒呮椂鏃堕暱</div>
+            </div>
+            <div class="line">
+              <div>鐨朅33234</div>
+              <div class="dept">缁煎悎绠$悊绉�</div>
+              <div class="time">10:21</div>
+            </div>
+            <div class="separate"></div>
+            <div class="line">
+              <div>鐨朅33234</div>
+              <div class="dept">缁煎悎绠$悊绉�</div>
+              <div class="time">10:21</div>
+            </div>
+            <div class="separate"></div>
+          </div>
+        </div>
+        <div class="safe_warning">
+          <div class="com_header">
+            <div class="title">
+              <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" />
+              <div>瀹夐槻鍛婅</div>
+            </div>
+            <div class="tabs">
+              <div class="tab active">鍏ㄩ儴</div>
+              <div class="separate"></div>
+              <div class="tab">鍖哄煙鍛婅</div>
+              <div class="separate"></div>
+              <div class="tab">琛屼负鍛婅</div>
+            </div>
+            <img src="@/assets/images/title@2x.png" class="bg" alt="" />
+          </div>
+          <div class="list">
+            <div class="item">
+              <div class="icon">
+                <div class="circle"></div>
+                <div class="line"></div>
+              </div>
+              <div class="content">
+                <div class="header">
+                  <div class="time">
+                    <span>123</span>
+                    <span class="status">澶勭悊涓�</span>
+                  </div>
+                  <div class="have_time">宸茬粡鍙戠敓<span>1</span>鍒嗛挓</div>
+                </div>
+                <div class="wrap">
+                  <div class="title">娑堥槻璀﹀憡</div>
+                  <div class="title">address</div>
+                </div>
+              </div>
+            </div>
+            <div class="item">
+              <div class="icon">
+                <div class="circle"></div>
+                <div class="line"></div>
+              </div>
+              <div class="content">
+                <div class="header">
+                  <div class="time">
+                    <span>123</span>
+                    <span class="status">澶勭悊涓�</span>
+                  </div>
+                  <div class="have_time">宸茬粡鍙戠敓<span>1</span>鍒嗛挓</div>
+                </div>
+                <div class="wrap">
+                  <div class="title">娑堥槻璀﹀憡</div>
+                  <div class="title">address</div>
+                </div>
+              </div>
+            </div>
+          </div>
+        </div>
+        <div class="garden_warning">
+          <div class="com_header">
+            <div class="title">
+              <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" />
+              <div>鍥尯瀹夐槻璁惧</div>
+            </div>
+            <img src="@/assets/images/title@2x.png" class="bg" alt="" />
+          </div>
+          <div class="content">
+            <div class="sa_static">
+              <div class="echart_wrap">
+                <div class="pie_text">
+                  <div class="fs30"><strong>300</strong></div>
+                  <div>鎬昏</div>
+                </div>
+                <div class="echart" id="echart2"></div>
+              </div>
+              <div class="list">
+                <div class="item">
+                  <div class="line">
+                    <div :style="{ background: colors[1] }" class="icon"></div>
+                    <div class="text">鍦ㄧ嚎</div>
+                  </div>
+                  <div :style="{ color: colors[1] }" class="num">100</div>
+                </div>
+                <div class="item">
+                  <div class="line">
+                    <div :style="{ background: colors[2] }" class="icon"></div>
+                    <div class="text">绂荤嚎</div>
+                  </div>
+                  <div :style="{ color: colors[2] }" class="num">100</div>
+                </div>
+              </div>
+            </div>
+            <div class="table">
+              <div class="line header">
+                <div class="driver">璁惧绫诲瀷</div>
+                <div>鎬绘暟</div>
+                <div>鍦ㄧ嚎鏁�</div>
+                <div>绂荤嚎鏁�</div>
+                <div>鍦ㄧ嚎鐜�</div>
+              </div>
+              <div class="line">
+                <div class="driver">闂ㄧ璁惧</div>
+                <div>10</div>
+                <div>10</div>
+                <div>10</div>
+                <div>10</div>
+              </div>
+              <div class="separate"></div>
+              <div class="line">
+                <div class="driver">闂ㄧ璁惧</div>
+                <div>10</div>
+                <div>10</div>
+                <div>10</div>
+                <div>10</div>
+              </div>
+              <div class="separate"></div>
+            </div>
+          </div>
+        </div>
+        <div class="visitor_warning">
+          <div class="com_header">
+            <div class="title">
+              <img src="@/assets/images/ic_title@2x.png" class="icon" alt="" />
+              <div>浠婃棩璁垮婊炵暀鎯呭喌</div>
+            </div>
+            <img src="@/assets/images/title@2x.png" class="bg" alt="" />
+          </div>
+          <div class="table">
+            <div class="line header">
+              <div>濮撳悕</div>
+              <div class="dept">鎷滆閮ㄩ棬</div>
+              <div class="dept">瓒呮椂鏃堕暱</div>
+            </div>
+            <div class="line">
+              <div>name</div>
+              <div class="dept">缁煎悎绠$悊绉�</div>
+              <div class="dept">10:21</div>
+            </div>
+            <div class="separate"></div>
+            <div class="line">
+              <div>name</div>
+              <div class="dept">缁煎悎绠$悊绉�</div>
+              <div class="dept">10:21</div>
+            </div>
+            <div class="separate"></div>
+          </div>
+        </div>
+      </div>
     </div>
   </v-scale-screen>
 </template>
@@ -361,10 +536,43 @@
     myChart.resize()
   })
 }
+const initEchart2 = () => {
+  const myChart = echarts.init(document.getElementById('echart2'))
+  const option = {
+    series: [
+      {
+        type: 'pie',
+        radius: ['86%', '100%'],
+        label: {
+          show: false,
+          position: 'center'
+        },
+        padAngle: 5,
+        itemStyle: {
+          borderRadius: 10
+        },
+        color: colors,
+        labelLine: {
+          show: false
+        },
+        data: [
+          { value: 1048, name: 'Search Engine' },
+          { value: 735, name: 'Direct' },
+          { value: 580, name: 'Email' }
+        ]
+      }
+    ]
+  }
+  myChart.setOption(option)
+  window.addEventListener('resize', function () { // 鎵ц
+    myChart.resize()
+  })
+}
 
 onMounted(() => {
   // initEnergy()
   initEchart1()
+  initEchart2()
 })
 
 
@@ -640,6 +848,7 @@
         display: flex;
         justify-content: space-between;
         padding: 20px;
+
         .item {
           font-size: 12px;
           color: #D2E0FF;
@@ -648,14 +857,16 @@
             display: flex;
             align-items: flex-end;
             margin-top: 8px;
-            .num{
+
+            .num {
               font-size: 22px;
               line-height: 22px;
               color: #FFFFFF;
             }
           }
         }
-        .spacing{
+
+        .spacing {
           width: 1px;
           height: 40px;
           background-color: #405173;
@@ -727,6 +938,284 @@
   }
 }
 
+.main_footer {
+  /* margin-top: 20px; */
+  display: flex;
+  padding: 20px 25px 0;
+
+  .car_warning {
+    width: 360px;
+
+    .table {
+      margin-top: 15px;
+
+      .line {
+        display: flex;
+        align-items: center;
+        font-size: 14px;
+        height: 32px;
+
+        div {
+          flex: 3;
+          height: 16px;
+          display: flex;
+          align-items: center;
+          justify-content: center;
+        }
+
+        .dept {
+          flex: 5;
+        }
+
+        .time {
+          flex: 4;
+        }
+      }
+
+      .header {
+        background: rgba(134, 156, 201, 0.1);
+        font-weight: 500;
+
+        div {
+          border-right: 1px solid rgba(255, 255, 255, 0.2);
+
+          &:nth-last-child(1) {
+            border: none;
+          }
+        }
+      }
+
+      .separate {
+        width: 100%;
+        height: 2px;
+        background-color: rgba(255, 255, 255, 0.2);
+        /* background-color: red; */
+        border-right: 4px solid #00F2F3;
+        border-left: 4px solid #00F2F3;
+      }
+    }
+  }
+
+  .safe_warning {
+    width: 406px;
+    margin-left: 20px;
+    margin-right: 20px;
+
+    .list {
+      height: 147px;
+      overflow: auto;
+      margin-top: 15px;
+      scrollbar-width: none;
+
+      .item {
+        display: flex;
+        font-size: 13px;
+        color: #D2E0FF;
+
+        .icon {
+          width: 40px;
+          display: flex;
+          flex-direction: column;
+          align-items: center;
+          padding-top: 3px;
+
+          .circle {
+            width: 7px;
+            height: 7px;
+            border-radius: 50%;
+            background: #01D9FE;
+            box-shadow: 0px 0px 1px 4px #34788f;
+            /* opacity: 0.52; */
+          }
+
+          .line {
+            margin-top: 3px;
+            width: 1px;
+            height: calc(100% - 10px);
+            background-color: #153947;
+          }
+        }
+
+        .content {
+          flex: 1;
+
+          .header {
+            display: flex;
+            justify-content: space-between;
+            align-items: center;
+
+            .time {
+              display: flex;
+              align-items: center;
+
+              .status {
+                height: 18px;
+                line-height: 18px;
+                border-radius: 2px;
+                padding: 2px 4px;
+                border: 1px solid #869CC9;
+                font-size: 12px;
+                margin-left: 8px;
+              }
+            }
+
+            .have_time {
+              font-size: 12px;
+              color: #D2E0FF;
+
+              span {
+                color: #FEAF01;
+              }
+            }
+          }
+
+          .wrap {
+            height: 40px;
+            background: linear-gradient(270deg, rgba(254, 85, 1, 0) 0%, rgba(254, 85, 1, 0.19) 100%);
+            border-radius: 2px 0px 0px 2px;
+            display: flex;
+            align-items: center;
+            border: 1px solid;
+            margin-bottom: 20px;
+            margin-top: 8px;
+            padding: 0 10px;
+            border-image: linear-gradient(270deg, rgba(254, 85, 1, 0), rgba(254, 85, 1, 0.6)) 1 1;
+
+            .title {
+              flex: 4;
+              font-weight: bold;
+              font-size: 15px;
+              color: #FFFFFF;
+            }
+
+            .address {
+              flex: 6;
+            }
+          }
+        }
+      }
+    }
+  }
+
+  .garden_warning {
+    flex: 1;
+    margin-right: 20px;
+
+    .content {
+      display: flex;
+
+      .sa_static {
+        width: 285px;
+        margin-top: 15px;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        padding: 16px 24px;
+
+        .echart_wrap {
+          position: relative;
+
+          .pie_text {
+            width: 82px;
+            height: 82px;
+            border: 1px dashed rgba(1, 217, 254, 0.7);
+            border-radius: 50%;
+            position: absolute;
+
+            left: 50%;
+            top: 50%;
+            transform: translate(-50%, -50%);
+            z-index: 999;
+            display: flex;
+            flex-direction: column;
+            justify-content: center;
+            align-items: center;
+            font-size: 12px;
+
+            .fs30 {
+              font-weight: bold;
+              font-size: 18px;
+              margin-bottom: 4px;
+            }
+          }
+        }
+
+        .echart {
+          width: 110px;
+          height: 110px;
+        }
+
+        .list {
+          margin-left: 36px;
+          flex: 1;
+          display: flex;
+          flex-direction: column;
+          justify-content: space-between;
+          height: 110px;
+
+          .item {
+            width: 100%;
+            font-size: 14px;
+
+            .line {
+              display: flex;
+              align-items: center;
+              margin-bottom: 6px;
+
+              .icon {
+                width: 12px;
+                height: 12px;
+                border-radius: 50%;
+                margin-right: 10px;
+                background: linear-gradient(270deg, #29aeff 0%, #207ff7 100%);
+              }
+            }
+
+            .num {
+              margin-left: 20px;
+            }
+          }
+        }
+      }
+
+      .table {
+        .line {
+          div {
+            justify-content: flex-end;
+            padding-right: 10px;
+          }
+
+          .driver {
+            flex: 4;
+            justify-content: center;
+          }
+        }
+
+        .header {
+          div {
+            justify-content: center;
+            padding-right: 0;
+          }
+        }
+      }
+    }
+
+  }
+
+  .visitor_warning {
+    width: 360px;
+    .table{
+      .line{
+        div{
+          .dept{
+            flex: 5;
+          }
+        }
+      }
+    }
+  }
+}
+
 .com_header {
   height: 40px;
   display: flex;
@@ -774,6 +1263,56 @@
   }
 }
 
+.table {
+  margin-top: 15px;
+  flex: 1;
+
+  .line {
+    display: flex;
+    align-items: center;
+    font-size: 14px;
+    height: 32px;
+
+    div {
+      flex: 3;
+      height: 16px;
+      display: flex;
+      align-items: center;
+      justify-content: center;
+    }
+
+    .dept {
+      flex: 5;
+    }
+
+    .time {
+      flex: 4;
+    }
+  }
+
+  .header {
+    background: rgba(134, 156, 201, 0.1);
+    font-weight: 500;
+
+    div {
+      border-right: 1px solid rgba(255, 255, 255, 0.2);
+
+      &:nth-last-child(1) {
+        border: none;
+      }
+    }
+  }
+
+  .separate {
+    width: 100%;
+    height: 2px;
+    background-color: rgba(255, 255, 255, 0.2);
+    /* background-color: red; */
+    border-right: 4px solid #00F2F3;
+    border-left: 4px solid #00F2F3;
+  }
+}
+
 .second_title {
   height: 24px;
   display: flex;
@@ -816,10 +1355,8 @@
   height: 960px;
   /* width: 100%;
   height: 100vh; */
-  background: #0b2539;
   color: #FFFFFF;
   position: relative;
-  z-index: -2;
   font-size: 14px;
 
   .main_bg {
diff --git a/server/system_service/src/main/java/com/doumee/core/utils/DESUtil.java b/server/system_service/src/main/java/com/doumee/core/utils/DESUtil.java
index 1871e2d..89cfa4f 100644
--- a/server/system_service/src/main/java/com/doumee/core/utils/DESUtil.java
+++ b/server/system_service/src/main/java/com/doumee/core/utils/DESUtil.java
@@ -18,6 +18,7 @@
 import java.net.URLEncoder;
 import java.security.Key;
 import java.util.Base64;
+import java.util.UUID;
 import java.util.concurrent.TimeUnit;
 
 public class DESUtil {
@@ -191,12 +192,14 @@
          long currentTimeMillis = System.currentTimeMillis() + 1000*60*60*hour;
          String encrypt = DESUtil.encrypt("12345678",currentTimeMillis + "_" + userName );
         try{
-            encrypt = URLEncoder.encode(encrypt,"UTF-8");
+//            encrypt =  Base64.getEncoder().encodeToString(encrypt.getBytes());
+//            encrypt = URLEncoder.encode(encrypt,"UTF-8");
         }catch (Exception e){
             throw new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"鐢熸垚鍔犲瘑鐮佸け璐�!");
         }
-        redisTemplate.opsForValue().set(Constants.REDIS_HK_TOKEN_KEY+encrypt, encrypt,1000*60*60*hour, TimeUnit.MILLISECONDS);
-         return encrypt;
+        String token = UUID.randomUUID().toString();
+        redisTemplate.opsForValue().set(Constants.REDIS_HK_TOKEN_KEY+token, encrypt,1000*60*60*hour, TimeUnit.MILLISECONDS);
+        return token;
     }
 
 
diff --git a/server/visits/dmvisit_admin/src/main/java/com/doumee/cloud/openapi/HkOpenApiController.java b/server/visits/dmvisit_admin/src/main/java/com/doumee/cloud/openapi/HkOpenApiController.java
index 83fb8c8..7782d65 100644
--- a/server/visits/dmvisit_admin/src/main/java/com/doumee/cloud/openapi/HkOpenApiController.java
+++ b/server/visits/dmvisit_admin/src/main/java/com/doumee/cloud/openapi/HkOpenApiController.java
@@ -68,12 +68,10 @@
     @ApiOperation("token瑙f瀽")
     @GetMapping("/water/decodeToken")
     public Map<String,Object> decodeToken(@RequestParam String token) {
-        String token1 =token;
-        log.info("銆愬畨闃插钩鍙板崟鐐圭櫥褰晅oken瑙f瀽銆�================="+token1);
+        log.info("銆愬畨闃插钩鍙板崟鐐圭櫥褰晅oken瑙f瀽銆�================="+token);
         int success = Constants.ZERO;
         Map<String,Object>  result = new HashMap<>() ;
         try {
-             token = URLEncoder.encode(token1);
             HkBaseTokenRequest hkBaseTokenRequest = new HkBaseTokenRequest();
             hkBaseTokenRequest.setToken(token);
             result = this.decodeTokenForHk(hkBaseTokenRequest);
@@ -85,7 +83,7 @@
             e.printStackTrace();
             success = Constants.ONE;
         }finally {
-            interfaceLogService.saveInterfaceLog("/hk/api/water/decodeToken", "銆愬畨闃插钩鍙般�戝崟鐐圭櫥褰晅oken瑙f瀽",token1,
+            interfaceLogService.saveInterfaceLog("/hk/api/water/decodeToken", "銆愬畨闃插钩鍙般�戝崟鐐圭櫥褰晅oken瑙f瀽",token,
                     success, JSONObject.toJSONString(result),Constants.ZERO);
         }
         return result;
@@ -106,11 +104,7 @@
             result.put("msg","token鏃犳晥!");
             return result;
         }
-        String userName = null;
-        try {
-             userName = DESUtil.verifyHkToken(URLDecoder.decode(hkBaseTokenRequest.getToken(),"UTF-8"));
-        }catch (Exception e){
-        }
+        String userName = DESUtil.verifyHkToken( redisToken);;
         if(StringUtils.isBlank(userName)){
             result.put("code","-1");
             result.put("msg","token鍙傛暟涓虹┖");
diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PositionServiceImpl.java b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PositionServiceImpl.java
index 4b518a6..6b5c2b8 100644
--- a/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PositionServiceImpl.java
+++ b/server/visits/dmvisit_service/src/main/java/com/doumee/service/business/impl/PositionServiceImpl.java
@@ -109,7 +109,9 @@
         QueryWrapper<Position> queryWrapper = new QueryWrapper<>();
         Utils.MP.blankToNull(pageWrap.getModel());
         pageWrap.getModel().setIsdeleted(Constants.ZERO);
-        queryWrapper.lambda()
+        queryWrapper
+                .select("*,(select count(1) from member where member.position_id = position.id and member.type=2 and isdeleted=0) as memberNum" )
+                .lambda()
                 .eq(pageWrap.getModel().getId() != null, Position::getId, pageWrap.getModel().getId())
                 .eq(pageWrap.getModel().getCreator() != null, Position::getCreator, pageWrap.getModel().getCreator())
                 .ge(pageWrap.getModel().getCreateDate() != null, Position::getCreateDate, Utils.Date.getStart(pageWrap.getModel().getCreateDate()))

--
Gitblit v1.9.3