From bc365ef47ae4e01754aeadbae26170e11c9bb80e Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 22 六月 2026 16:56:12 +0800
Subject: [PATCH] 新疆马铃薯 1.删除按钮添加操作权限

---
 src/views/collaborativeApproval/notificationManagement/meetApplication/index.vue |   99 +++++++++++++------------------------------------
 1 files changed, 26 insertions(+), 73 deletions(-)

diff --git a/src/views/collaborativeApproval/notificationManagement/meetApplication/index.vue b/src/views/collaborativeApproval/notificationManagement/meetApplication/index.vue
index 7781593..f36004f 100644
--- a/src/views/collaborativeApproval/notificationManagement/meetApplication/index.vue
+++ b/src/views/collaborativeApproval/notificationManagement/meetApplication/index.vue
@@ -84,34 +84,24 @@
         <el-row :gutter="20">
           <el-col :span="12">
             <el-form-item label="寮�濮嬫椂闂�" prop="startTime">
-              <el-select
+              <el-time-picker
                   v-model="meetingForm.startTime"
                   placeholder="璇烽�夋嫨寮�濮嬫椂闂�"
+                  value-format="HH:mm"
+                  format="HH:mm"
                   style="width: 100%"
-              >
-                <el-option
-                    v-for="time in timeOptions"
-                    :key="time.value"
-                    :label="time.label"
-                    :value="time.value"
-                />
-              </el-select>
+              />
             </el-form-item>
           </el-col>
           <el-col :span="12">
             <el-form-item label="缁撴潫鏃堕棿" prop="endTime">
-              <el-select
+              <el-time-picker
                   v-model="meetingForm.endTime"
                   placeholder="璇烽�夋嫨缁撴潫鏃堕棿"
+                  value-format="HH:mm"
+                  format="HH:mm"
                   style="width: 100%"
-              >
-                <el-option
-                    v-for="time in timeOptions"
-                    :key="time.value"
-                    :label="time.label"
-                    :value="time.value"
-                />
-              </el-select>
+              />
             </el-form-item>
           </el-col>
         </el-row>
@@ -126,9 +116,9 @@
           >
             <el-option
                 v-for="person in employees"
-                :key="person.id"
-                :label="`${person.staffName} (${person.postJob})`"
-                :value="person.id"
+                :key="person.userId"
+                :label="`${person.nickName || person.userName}${person.dept?.deptName ? ` (${person.dept.deptName})` : ''}`"
+                :value="person.userId"
             />
           </el-select>
         </el-form-item>
@@ -152,11 +142,11 @@
 </template>
 
 <script setup>
-import {ref, reactive, onMounted} from 'vue'
+import {ref, reactive, onActivated} from 'vue'
 import {ElMessage} from 'element-plus'
-import {Plus, Document, Promotion, Bell} from '@element-plus/icons-vue'
+import {Document, Promotion, Bell} from '@element-plus/icons-vue'
 import {getRoomEnum, saveMeetingApplication} from '@/api/collaborativeApproval/meeting.js'
-import {getStaffOnJob} from "@/api/personnelManagement/onboarding.js";
+import {userListNoPageByTenantId} from "@/api/system/user.js";
 
 // 褰撳墠鐢宠绫诲瀷
 const currentType = ref('department') // approval: 瀹℃壒娴佺▼, department: 閮ㄩ棬绾�, notification: 閫氱煡鍙戝竷
@@ -196,17 +186,6 @@
   description: ''
 })
 
-// 琛ㄥ崟鏍¢獙瑙勫垯
-const rules = {
-  title: [{required: true, message: '璇疯緭鍏ヤ細璁富棰�', trigger: 'blur'}],
-  roomId: [{required: true, message: '璇烽�夋嫨浼氳瀹�', trigger: 'change'}],
-  host: [{required: true, message: '璇疯緭鍏ヤ富鎸佷汉', trigger: 'blur'}],
-  meetingDate: [{required: true, message: '璇烽�夋嫨浼氳鏃ユ湡', trigger: 'change'}],
-  startTime: [{required: true, message: '璇烽�夋嫨寮�濮嬫椂闂�', trigger: 'change'}],
-  endTime: [{required: true, message: '璇烽�夋嫨缁撴潫鏃堕棿', trigger: 'change'}],
-  participants: [{required: true, message: '璇烽�夋嫨鍙備細浜哄憳', trigger: 'change'}]
-}
-
 // 琛ㄥ崟寮曠敤
 const meetingFormRef = ref(null)
 
@@ -216,27 +195,15 @@
 // 鍛樺伐鍒楄〃
 const employees = ref([])
 
-// 鏃堕棿閫夐」锛堜互鍗婂皬鏃朵负闂撮殧锛�
-const timeOptions = ref([])
-
-// 鍒濆鍖栨椂闂撮�夐」
-const initTimeOptions = () => {
-  const options = []
-  for (let hour = 8; hour <= 18; hour++) {
-    // 姣忎釜灏忔椂娣诲姞涓や釜閫夐」锛氭暣鐐瑰拰鍗婄偣
-    options.push({
-      value: `${hour.toString().padStart(2, '0')}:00`,
-      label: `${hour.toString().padStart(2, '0')}:00`
-    })
-
-    if (hour < 18) { // 18:00涔嬪悗娌℃湁鍗婄偣閫夐」
-      options.push({
-        value: `${hour.toString().padStart(2, '0')}:30`,
-        label: `${hour.toString().padStart(2, '0')}:30`
-      })
-    }
-  }
-  timeOptions.value = options
+// 琛ㄥ崟鏍¢獙瑙勫垯
+const rules = {
+  title: [{required: true, message: '璇疯緭鍏ヤ細璁富棰�', trigger: 'blur'}],
+  roomId: [{required: true, message: '璇烽�夋嫨浼氳瀹�', trigger: 'change'}],
+  host: [{required: true, message: '璇疯緭鍏ヤ富鎸佷汉', trigger: 'blur'}],
+  meetingDate: [{required: true, message: '璇烽�夋嫨浼氳鏃ユ湡', trigger: 'change'}],
+  startTime: [{required: true, message: '璇烽�夋嫨寮�濮嬫椂闂�', trigger: 'change'}],
+  endTime: [{required: true, message: '璇烽�夋嫨缁撴潫鏃堕棿', trigger: 'change'}],
+  participants: [{required: true, message: '璇烽�夋嫨鍙備細浜哄憳', trigger: 'change'}]
 }
 
 // 绂佺敤鏃ユ湡锛堢鐢ㄤ粖澶╀箣鍓嶇殑鏃ユ湡锛�
@@ -276,19 +243,6 @@
 
         // 妯℃嫙鎻愪氦鎿嶄綔
         ElMessage.success(`${getCurrentTypeName()}鎻愪氦鎴愬姛`)
-
-        // 鏍规嵁涓嶅悓绫诲瀷鎵ц涓嶅悓鎿嶄綔
-        switch (currentType.value) {
-          case 'approval':
-            ElMessage.info('浼氳宸叉彁浜ゅ鎵规祦绋�')
-            break
-          case 'department':
-            ElMessage.info('閮ㄩ棬绾т細璁敵璇峰凡鎻愪氦')
-            break
-          case 'notification':
-            ElMessage.info('浼氳閫氱煡宸插彂甯�')
-            break
-        }
         resetForm()
       })
 
@@ -297,13 +251,12 @@
 }
 
 // 椤甸潰鍔犺浇鏃跺垵濮嬪寲
-onMounted(() => {
-  initTimeOptions()
+onActivated(() => {
   getRoomEnum().then(res => {
     meetingRooms.value = res.data
   })
-  getStaffOnJob().then(res => {
-    employees.value = res.data.sort((a, b) => a.postJob.localeCompare(b.postJob))
+  userListNoPageByTenantId().then(res => {
+    employees.value = res.data || []
   })
 })
 </script>

--
Gitblit v1.9.3