Explorar el Código

闸机操作添加修改密码

ZhangJunQuan hace 4 meses
padre
commit
d0377a6edb
Se han modificado 2 ficheros con 10 adiciones y 1 borrados
  1. 9 0
      src/login/UserHome.vue
  2. 1 1
      src/stock-out/OutboundConfirm.vue

+ 9 - 0
src/login/UserHome.vue

@@ -49,6 +49,10 @@
               <i class="fas fa-door-open mr-2" />
               <span>闸机控制</span>
             </div>
+            <div v-if="isAdmin" class="dropdown-item" @click="updatePassward">
+              <i class="fas fa-truck mr-2" />
+              <span>修改密码</span>
+            </div>
 
             <!-- 调试使用 -->
             <div v-if="isOutMenu" class="dropdown-item" @click="toggleMenu">
@@ -552,6 +556,11 @@ const goControlGate = () => {
     router.push('/control-gate');
 };
 
+// 修改密码
+const updatePassward = () => {
+    isUpdatePassword.value = true;
+};
+
 // 跳转到异常停泊区页面
 const goAbnormalArea = () => {
     showSettings.value = false;

+ 1 - 1
src/stock-out/OutboundConfirm.vue

@@ -113,7 +113,7 @@
       <!-- 底部操作按钮 -->
       <div class="bottom-actions">
         <button class="submit-btn" @click="hasValidMaterials ? handleLeaveClick() : directExit()">
-          {{ hasValidMaterials ? '借用离开' : '直接出仓库' }}
+          {{ hasValidMaterials ? '闸机开门' : '直接出仓库' }}
           <span v-if="hasValidMaterials && selectedCount > 0">({{ selectedCount }})</span>
         </button>
       </div>