소스 검색

常见应用

11wqe1 3 달 전
부모
커밋
93ca0a277b
1개의 변경된 파일11개의 추가작업 그리고 7개의 파일을 삭제
  1. 11 7
      src/components/topPage.vue

+ 11 - 7
src/components/topPage.vue

@@ -61,8 +61,15 @@
                 <div class="footList">
                     <div class="footListCon" v-for="(item,index) in admincocoFlow" @click="openNewWindow(item)" :key="index+'2p'">
                         <div class="footListConimg">
-                            <img style="margin-bottom: 12px;height: 24px;width: 22px;" 
-                            :src="appImgList[index]" alt=""></div>
+                            <img v-if="!fromL.admin.cocoFlow.length" 
+                            style="margin-bottom: 12px;height: 24px;width: 22px;" 
+                            :src="appImgList[index]" alt="">
+                            <img
+                            style="margin-bottom: 12px;height: 24px;width: 22px;"  
+                            v-else :src="JSON.parse(item.json).icon" alt="">
+                        </div>
+                           
+                            
                         <div class="TabListName">{{ item.name }}</div>
                         <div class="TabListBri">
                             <el-tooltip class="item" effect="light" :content="item.detail" placement="bottom">
@@ -235,7 +242,6 @@ import { API_CONFIG } from "@/common/apiConfig";
                     require('../assets/img/img2.svg'),
                     require('../assets/img/img7.svg'),
                     require('../assets/img/img6.svg'),
-
                 ],
 
                 hovList:[],
@@ -411,7 +417,7 @@ import { API_CONFIG } from "@/common/apiConfig";
 
             },
             getAdmincocoFlow(){
-                // 筛选可用平台工具
+                // 筛选可用平台工具,判断是否管理员可见,去除已删除工具
                 this.siftCoco()
                 // console.log('getAdmincocoFlow',this.fromL);
                 
@@ -423,13 +429,11 @@ import { API_CONFIG } from "@/common/apiConfig";
                             "701615ab-ffe8-11ef-b508-005056924926",
                             "d1edef14-ef6f-11ef-b508-005056924926",
                             "a8781a86-00d8-11f0-b508-005056924926"]
-                // 如果后台预设常用ai工具为0则不执行
-                if (this.fromL.admin.cocoFlow.length == 0) return 
 
                 let params = [
                     {
                         functionName: API_CONFIG.ajax_AdminApp.functionName,
-                        con: appList.join(','), 
+                        con: this.fromL.admin.cocoFlow.length == 0 ? appList.join(',') : this.fromL.admin.cocoFlow.join(','), 
                     },
                 ];