lifanagju_citu 10 bulan lalu
induk
melakukan
760e293c0b
1 mengubah file dengan 10 tambahan dan 4 penghapusan
  1. 10 4
      src/views/entrances/list/index.vue

+ 10 - 4
src/views/entrances/list/index.vue

@@ -17,6 +17,7 @@
       :class="item.active ? 'elevation-0 mt-0' : 'elevation-0 mt-2'"
       @mouseover="item.active = true"
       @mouseleave="item.active = false"
+      @click="handleClick(item)"
     >
       <!-- <span>{{ item.title }}</span> -->
       <v-icon color="primary" size="50" class="mt-6" style="height: 100px; line-height: 100px;">{{ item.icon }}</v-icon>
@@ -27,6 +28,7 @@
 </template>
 
 <script setup>
+// import { useRouter } from 'vue-router'; const router = useRouter()
 import { ref } from 'vue'
 
 defineOptions({name: 'entrances-list'})
@@ -39,11 +41,15 @@ const smallTitle = [
   '尽享海量VIP特权',
 ]
 const menuList = ref([
-  { icon: 'mdi-account-group', title: '招聘管理系统' },
-  { icon: 'mdi-ballot-outline', title: '考勤管理系统' },
-  { icon: 'mdi-chart-bar-stacked', title: '绩效管理系统' },
-  { icon: 'mdi-checkbox-marked-outline', title: '审批管理系统' },
+  { icon: 'mdi-account-group-outline', title: '招聘管理系统', to: '/personal' },
+  { icon: 'mdi-shopping-outline', title: '臻选商城系统', to: '/mall' },
+  { icon: 'mdi-chart-bar-stacked', title: '考勤管理系统', to: '' },
+  { icon: 'mdi-checkbox-marked-outline', title: '审批管理系统', to: '' },
 ])
+ const handleClick = (item) => {
+  // router.push(item.to)
+  window.open(item.to)
+ }
 </script>
 <style lang="scss" scoped>
 .listBox {