From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/views/business/visitEvent.vue |   42 ++++++++++++++++++++++--------------------
 1 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/admin/src/views/business/visitEvent.vue b/admin/src/views/business/visitEvent.vue
index ced0982..c53bf54 100644
--- a/admin/src/views/business/visitEvent.vue
+++ b/admin/src/views/business/visitEvent.vue
@@ -8,13 +8,14 @@
             <el-form-item label="杞︾墝鍙�" prop="carNo">
                 <el-input v-model="searchForm.carNo" placeholder="璇疯緭鍏ヨ溅鐗屽彿" @keypress.enter.native="search"></el-input>
             </el-form-item>
-            <el-form-item label="鍏徃鍚嶇О" prop="companyName">
-                <el-input v-model="searchForm.companyName" placeholder="璇疯緭鍏ュ叕鍙稿悕绉�" @keypress.enter.native="search"></el-input>
+            <el-form-item label="缁勭粐鍚嶇О" prop="visitorWorkUint">
+                <el-input v-model="searchForm.visitorWorkUint" placeholder="璇疯緭鍏ョ粍缁囧悕绉�" @keypress.enter.native="search"></el-input>
             </el-form-item>
             <el-form-item label="浜嬩欢绫诲瀷" prop="eventType">
                 <el-select v-model="searchForm.eventType" placeholder="璇烽�夋嫨">
-                    <el-option label="璁垮鐧昏" value="1392513025"></el-option>
-                    <el-option label="璁垮绛剧" value="1392513026"></el-option>
+                    <el-option label="璁垮鐧昏" value="541200006"></el-option>
+                    <el-option label="璁垮绛剧" value="541200007"></el-option>
+                    <el-option label="璁垮閫氳" value="541200060"></el-option>
                 </el-select>
             </el-form-item>
             <el-form-item label="璧峰鏃堕棿" prop="carNo">
@@ -52,12 +53,12 @@
                 <el-table-column prop="personName" label="濮撳悕" min-width="100px"></el-table-column>
                 <el-table-column prop="phone" label="鎵嬫満鍙风爜" min-width="100px"></el-table-column>
                 <el-table-column prop="idcardDecode" label="韬唤璇佸彿鐮�" min-width="100px"></el-table-column>
-                <el-table-column prop="visitorWorkUint" label="鍏徃" min-width="100px"></el-table-column>
+                <el-table-column prop="visitorWorkUint" label="缁勭粐" min-width="100px"></el-table-column>
                 <el-table-column prop="carNo" label="杞︾墝鍙�" min-width="100px"></el-table-column>
                 <el-table-column prop="beVisitedPersonName" label="琚浜�" min-width="100px"></el-table-column>
                 <el-table-column prop="beVisitedPersonOrg" label="琚浜虹粍缁�" min-width="100px"></el-table-column>
                 <el-table-column prop="eventTypeName" label="浜嬩欢绫诲瀷" min-width="100px"></el-table-column>
-                <el-table-column label="鎶撴媿鍥緐ri" min-width="100px">
+                <el-table-column label="鎶撴媿鍥�" min-width="100px">
                     <template slot-scope="{row}">
                         <el-image v-if="row.captureUrlFull!=null"
                             style="width: 80px; height: 80px"
@@ -97,8 +98,8 @@
         startTime: '',
         endTime: '',
         eventType: '',
-        companyName: '',
-        radio: null
+        visitorWorkUint: '',
+        radio: '0'
       },
       time: []
     }
@@ -110,6 +111,8 @@
       'field.id': 'id',
       'field.main': 'id'
     })
+
+    this.changeRadio('0')
     this.search()
   },
   methods: {
@@ -121,26 +124,25 @@
     },
     changeRadio (e) {
       if (e === '0') {
-        this.searchForm.startTime = timeForMat(1)[0]
-        this.searchForm.endTime = timeForMat(1)[1]
-        this.time = timeForMat(1)
+        this.searchForm.startTime = timeForMat(0)[0]
+        this.searchForm.endTime = timeForMat(0)[1]
+        this.time = timeForMat(0)
       } else if (e === '1') {
-        this.searchForm.startTime = timeForMat(7)[0]
-        this.searchForm.endTime = timeForMat(7)[1]
-        this.time = timeForMat(7)
+        this.searchForm.startTime = timeForMat(6)[0]
+        this.searchForm.endTime = timeForMat(6)[1]
+        this.time = timeForMat(6)
       } else if (e === '2') {
-        this.searchForm.startTime = timeForMat(30)[0]
-        this.searchForm.endTime = timeForMat(30)[1]
-        this.time = timeForMat(30)
+        this.searchForm.startTime = timeForMat(29)[0]
+        this.searchForm.endTime = timeForMat(29)[1]
+        this.time = timeForMat(29)
       }
       this.search()
     },
     reset () {
       this.$refs.searchForm.resetFields()
-      this.searchForm.startTime = ''
-      this.searchForm.endTime = ''
       this.time = []
-      this.searchForm.radio = null
+      this.searchForm.radio = '0'
+      this.changeRadio('0')
       this.search()
     }
   }

--
Gitblit v1.9.3