Xiao_123 4 kuukautta sitten
vanhempi
commit
7c44dd5e63
3 muutettua tiedostoa jossa 14 lisäystä ja 11 poistoa
  1. 4 0
      components.d.ts
  2. 9 10
      src/components/Enterprise/hotPromoted.vue
  3. 1 1
      src/components/Position/item.vue

+ 4 - 0
components.d.ts

@@ -33,6 +33,7 @@ declare module 'vue' {
     Echarts: typeof import('./src/components/Echarts/index.vue')['default']
     ElCascader: typeof import('element-plus/es')['ElCascader']
     ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
+    ElTree: typeof import('element-plus/es')['ElTree']
     Empty: typeof import('./src/components/Empty/index.vue')['default']
     File: typeof import('./src/components/Upload/file.vue')['default']
     HeadSearch: typeof import('./src/components/headSearch/index.vue')['default']
@@ -76,4 +77,7 @@ declare module 'vue' {
     VerifySlide: typeof import('./src/components/Verifition/Verify/VerifySlide.vue')['default']
     WangEditor: typeof import('./src/components/FormUI/wangEditor/index.vue')['default']
   }
+  export interface ComponentCustomProperties {
+    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
+  }
 }

+ 9 - 10
src/components/Enterprise/hotPromoted.vue

@@ -24,7 +24,6 @@
           <span class="welfareTag" v-for="(k, i) in item.enterprise.welfareList" :key="i">{{ spaces(i ? 4 : 0) + k }}</span>
         </div>
         <!-- 职位列表 -->
-        <!-- :class="{'company-job-item-hover': k.active}" -->
         <ul class="company-job-list pt-3">
           <li v-for="(k, i) in item.jobList" :key="i" @mouseenter="k.active = true" @mouseleave="k.active = false" @click="handleClickPosition(k)">
             <v-card :elevation="k.active ? 5 : 0" class="company-job-item cursor-pointer mb-3">
@@ -33,16 +32,16 @@
                 <span v-if="!k.payFrom && !k.payTo" class="salary">面议</span>
                 <span v-else class="salary">{{ k.payFrom ? k.payFrom + '-' : '' }}{{ k.payTo }}{{ k.payName ? '/' + k.payName : '' }}</span>
               </div>
-              <div style="height: 24px; overflow: hidden; color: #808080;">
-                <span v-for="(j, index) in desc" :key="index">
-                  <span v-if="k[j] || j === 'areaName'" class="mr-1 font-size-13">
-                    {{ j === 'areaName' ? !k.areaId ? '全国' : k.area?.str : k[j] }}
-                    <!-- {{ (j === 'areaName' && !k.areaId) ? '全国' : k[j] }} -->
+              <div class="d-flex font-size-13" style="height: 24px; overflow: hidden; color: #808080; line-height: 24px;">
+                <div class="text-truncate mr-3" style="flex: 1">
+                  <span v-for="(j, index) in desc" :key="index">
+                    <span v-if="k[j] || j === 'areaName'" class="mr-1">
+                      {{ j === 'areaName' ? !k.areaId ? '全国' : k.area?.str : k[j] }}
+                    </span>
+                    <span v-if="index !== desc.length - 1 && (k[j] || j === 'areaName') && k[desc[index + 1]]" class="septal-line ml-1"></span>
                   </span>
-                  <span v-if="index !== desc.length - 1 && (k[j] || j === 'areaName') && k[desc[index + 1]]" class="septal-line ml-1"></span>
-                  <!-- <span v-if="k[j] && index !== desc.length - 1 && (k[desc[index + 1]] || (j === 'areaName' && !k.areaId))" class="septal-line ml-1"></span> -->
-                </span>
-                <span class="font-size-13 float-right">{{ timesTampChange(k.updateTime, 'Y-M-D') }}</span>
+                </div>
+                <div style="width: 73px;">{{ timesTampChange(k.updateTime, 'Y-M-D') }}</div>
               </div>
             </v-card>
           </li>

+ 1 - 1
src/components/Position/item.vue

@@ -13,7 +13,7 @@
             </div>
           </div>
           <div class="d-flex justify-space-between align-center">
-            <div class="text-truncate" style="width: 190px; color: #808080;">
+            <div class="text-truncate" style="color: #808080;" :style="{'width': !item.payFrom && !item.payTo ? '290px' : '190px'}">
               <span v-for="(j, i) in desc" :key="i" class="font-size-13" style="">
                 <span
                   v-if="item[j.value] || j.value === 'areaName'"