浏览代码

style:样式相关优化

lizhi 3 月之前
父节点
当前提交
76a36c2a56
共有 2 个文件被更改,包括 14 次插入4 次删除
  1. 3 3
      web/src/router/routes/asyncRoutes.ts
  2. 11 1
      web/src/views/canteen/list/index.vue

+ 3 - 3
web/src/router/routes/asyncRoutes.ts

@@ -37,7 +37,7 @@ export const asyncRoutes: AppRouteRecord[] = [
         component: RoutesAlias.Layout,
         meta: {
             title: 'menus.school.list',
-            icon: ''
+            icon: ''
         },
         children: [
             {
@@ -154,7 +154,7 @@ export const asyncRoutes: AppRouteRecord[] = [
         component: RoutesAlias.Layout,
         meta: {
             title: 'menus.canteen.list',
-            icon: ''
+            icon: ''
         },
         children: [
             {
@@ -243,7 +243,7 @@ export const asyncRoutes: AppRouteRecord[] = [
         component: RoutesAlias.Layout,
         meta: {
             title: 'menus.company.list',
-            icon: ''
+            icon: ''
         },
         children: [
             {

+ 11 - 1
web/src/views/canteen/list/index.vue

@@ -5,7 +5,7 @@
 <template>
   <div class="user-page art-full-height">
     <!-- 搜索栏 -->
-    <UserSearch v-model="searchForm" @search="handleSearch" @reset="resetSearchParams" :school-list="selectList" :company-list="[]"></UserSearch>
+    <UserSearch v-model="searchForm" @search="handleSearch" @reset="resetSearchParams" :school-list="selectList" :company-list="companyList"></UserSearch>
 
     <!--   跟进弹窗   -->
     <FollowDialog
@@ -143,6 +143,7 @@ import EmojiText from '@utils/ui/emojo'
 import {router} from '@/router'
 import {RoutesAlias} from '@/router/routesAlias'
 import {schoolRelationApi} from "@/api/schoolRelationApi";
+import {companyApi} from "@/api/companyApi";
 
 defineOptions({name: 'User'})
 
@@ -187,6 +188,15 @@ const getSelectList = async () => {
 }
 getSelectList()
 
+const companyList = ref<Api.Common.SelectInfo[]>([])
+const getCompanyList = async () => {
+  await companyApi.selectList().then(res => {
+    companyList.value = res
+  })
+}
+getCompanyList()
+
+
 const drawerUid = ref(0)
 
 /**