wkw 6 месяцев назад
Родитель
Сommit
9ffab489b8

+ 16 - 2
src/views/index/indexCompany.vue

@@ -214,7 +214,7 @@
 						{{ item.lastWorkStartTime ? item.lastWorkStartTime.slice(0,10): ''}}--{{item.lastWorkEndTime ?
 						item.lastWorkEndTime.slice(0, 10) : '' }}
 					</div>
-					<div class="list-box-item-label flex align-center flex-wrap">
+					<div class="list-box-item-label flex align-center flex-wrap" style="height: 80px;">
 						<div class="list-box-item-label-item"
 							v-for="skillname in parseSkills(item.intentPostSkill)"
 							:key="skillname">
@@ -306,7 +306,7 @@
 						选择跨境标签
 					</div>
 					<div class="my-header-title flex align-center" style="margin-left: 40px; width: 600px">
-						<el-select @remove-tag="removeTag" :collapse-tags="true" :max-collapse-tags="5"
+						<el-select :collapse-tags="true" :max-collapse-tags="5"
 							class="my-header-title-se" multiple-limit="20" v-model="selectedIndustryTags" multiple
 							placeholder="请选择跨境标签">
 							<el-option v-for="item in industryArrList" :key="item.postSkillName"
@@ -371,6 +371,7 @@
 			return {
 				industryDialog: false, // 控制弹窗
 				industryList: [], // 后端返回的完整行业树
+				industryArrList: [],
 				selectedIndustryTags: [], // ✅ 用这个数组代替 postPushForm.positionTag
 				customTags: [], // 自定义标签
 				inputVisible: false,
@@ -540,9 +541,21 @@
 				this.$Request.get('/app/userFirst/getPostSkill', { params: data }).then(res => {
 					if (res.code === 0) {
 						this.industryList = res.data || [];
+						this.industryArrList = [];
+						this.flattenIndustryList(this.industryList);
 					}
 				});
 			},
+			flattenIndustryList(list) {
+				for (const item of list) {
+					// 添加当前节点
+					this.industryArrList.push(item);
+					// 递归处理子节点
+					if (item.childrenList && item.childrenList.length > 0) {
+						this.flattenIndustryList(item.childrenList);
+					}
+				}
+			},
 			selectTag(tag) {
 				// 1. 如果点击的是“不限”
 				if (tag === '不限') {
@@ -937,6 +950,7 @@
 			selectTabs(index) {
 				this.tabsCurr = index;
 				console.log(this.tabsCurr)
+				this.getIndustryList();
 				//重新获取岗位
 				this.getRecommendJob()
 			},

+ 1 - 0
src/views/myPostPush/myPostPush.vue

@@ -54,6 +54,7 @@
 									:key="index">{{ welfareTagName }}
 								</div>
 							</div>
+							<div v-else></div>
 							<div class="" style="padding: 0 0 20px 0;">
 								<!-- <el-button v-if="item.status==1"
 									@click="cancelProject(item.postPushId)">取消招聘</el-button> -->

+ 7 - 5
src/views/post/postInfo.vue

@@ -61,15 +61,17 @@
 		<!-- 岗位介绍 -->
 		<div class="postJs flex align-center justify-center">
 			<div class="postJs-box">
-				<div class="postJs-box-title">
+				<div class="postJs-box-title" style="margin-bottom: 10px;">
 					岗位介绍
 				</div>
-				<div class="postJs-box-tag flex align-center flex-wrap">
-					<div class="postJs-box-tag-item" v-for="(item,index) in info.tag" :key="index">
-						{{item}}
+				<div class="postJs-box-content" v-html="info.positionDetails"></div>
+
+				<div class="postJs-box-tag flex align-center flex-wrap" v-if="info.positionTag">
+					<div class="postJs-box-tag-item"
+						v-for="(item, index) in info.positionTag ? info.positionTag.split(',') : []" :key="index">
+						{{ item }}
 					</div>
 				</div>
-				<div class="postJs-box-content" v-html="info.positionDetails"></div>
 			</div>
 		</div>
 		<!-- 岗位福利 -->