浏览代码

feat(records): change

gemercheung 1 年之前
父节点
当前提交
a29cb631f0
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      src/app/map/App.vue
  2. 1 1
      src/app/map/company-select/organization.ts

+ 2 - 1
src/app/map/App.vue

@@ -17,7 +17,8 @@
     <div class="card-list">
       <template v-for="item of list">
         <el-card style="width: 480px" shadow="hover" @click="handCardClick(item.caseId)">
-          <img class="cover" :src="item.cover || 'https://test-mix3d.4dkankan.com/code/assets/pic.d5781b0c.jpg'"
+          <img class="cover"
+            :src="item.cover ? item.cover : 'https://test-mix3d.4dkankan.com/code/assets/pic.d5781b0c.jpg'"
             style="width: 100%" />
           <div class="card">
             <span> 项目: {{ item.projectName }}</span>

+ 1 - 1
src/app/map/company-select/organization.ts

@@ -28,7 +28,7 @@ export type Organization = {
 };
 
 export const getOrganizationTree = async (type?: string) =>
-  (await axios.get<Organization[]>(getTreeselect, { headers: { share: 1 }, params: { type } })).data;
+  (await axios.get<Organization[]>(getTreeselect, { headers: { share: 1 }, params: { type ,ingoreRes: true } })).data;
 
 export const addOrganization = async (
   dept: Omit<Organization, "id">,