소스 검색

表单添加tips

lifanagju_citu 3 주 전
부모
커밋
ee255207b9
2개의 변경된 파일14개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/CtForm/index.vue
  2. 13 1
      src/views/recruit/enterprise/positionManagement/components/baseInfo.vue

+ 1 - 1
src/components/CtForm/index.vue

@@ -8,7 +8,7 @@
             <template v-if="item.slotTitle">
               <div :class="item.class" :style="item.slotTitleStyle">{{ item.slotTitle }}</div>
             </template>
-            <div class="d-flex mb-2" :class="item.flexStyle || 'flex-row'">
+            <div class="d-flex mb-2" :class="item.flexStyle || 'flex-row', item.appendClass">
               <!-- <span>{{ item.value }}</span> -->
               <textUI
                 v-if="['text', 'password', 'number', 'phoneNumber'].includes(item.type)"

+ 13 - 1
src/views/recruit/enterprise/positionManagement/components/baseInfo.vue

@@ -2,7 +2,7 @@
   <div>
     <CtForm ref="formPageRef" :items="items" style="width: 650px;">
       <template #bizId="{ item }">
-        <div>
+        <div style="position: relative; padding-bottom: 20px;">
           <v-checkbox-btn
             v-model="jobFairCheckbox"
             color="primary"
@@ -14,6 +14,9 @@
             hide-details
             @update:modelValue="v => jobFairCheckboxChange(v, item)"
           ></v-checkbox-btn>
+          <div class="bizTips">
+            <div>* 该职位如需加入到招聘会中,请勾选上方选项并选择要加入的【招聘会】,未选择【招聘会】将会作为普通职位发布收费!</div>
+          </div>
         </div>
       </template>
       <template #positionId="{ item }">
@@ -82,6 +85,7 @@ const items = ref({
   options: [
     {
       slotName: 'bizId',
+      appendClass: 'pb-8',
       type: 'autocomplete',
       key: 'bizId',
       value: null,
@@ -306,4 +310,12 @@ defineExpose({
   display: block;
   width: 120px;
 }
+.bizTips {
+  width: 650px;
+  position: absolute;
+  left: -460px;
+  color: var(--v-error-base);
+  margin-top: 8px;
+  font-size: 14px;
+}
 </style>