Tang преди 4 години
родител
ревизия
9765cec4ef
променени са 3 файла, в които са добавени 189 реда и са изтрити 229 реда
  1. 26 69
      components/tki-tree/tki-tree.vue
  2. 161 158
      pages2/resume/addResume.vue
  3. 2 2
      pages2/wd/help.vue

Файловите разлики са ограничени, защото са твърде много
+ 26 - 69
components/tki-tree/tki-tree.vue


+ 161 - 158
pages2/resume/addResume.vue

@@ -138,7 +138,7 @@
 								<view class="color_b">{{ item.categoryName }}</view>
 								<view class="">
 									<span class="color_b">{{ item.endTime }}</span>
-									<u-icon name="arrow-right" color="#666" size="28" ></u-icon>
+									<u-icon name="arrow-right" color="#666" size="28"></u-icon>
 								</view>
 							</view>
 						</view>
@@ -205,9 +205,7 @@
 						<image style="width: 100%;height: 100%;" src="../../static/pdf@3x.png" mode="" @click="openPdf"></image>
 						<image class="img_auto" src="@/static/del@3x.png" mode="" @click="clearAttachUrl"></image>
 					</view>
-					<view v-if="attachUrl !== ''">
-						{{attachName}}
-					</view>
+					<view v-if="attachUrl !== ''">{{ attachName }}</view>
 				</view>
 				<view class="btn_fot" @click="submitForms">提交</view>
 			</view>
@@ -343,6 +341,7 @@
 								:foldAll="true"
 								ref="trees"
 								:range="range"
+								idKey="categoryId"
 								rangeKey="categoryName"
 								confirmColor="#4e8af7"
 								@confirm="getTreeActiveInfo"
@@ -487,18 +486,18 @@ export default {
 					res.data.data.projectExperienceJson = JSON.parse(res.data.data.projectExperienceJson);
 					res.data.data.workExperienceJson = JSON.parse(res.data.data.workExperienceJson);
 					res.data.data.userBirth = self.getYears(res.data.data.userBirth.slice(0, res.data.data.userBirth.indexOf('T')));
-					if(res.data.data.eduLevel){
-						self.index_level = self.dictObj['edu_level'].indexOf(res.data.data.eduLevel)
+					if (res.data.data.eduLevel) {
+						self.index_level = self.dictObj['edu_level'].indexOf(res.data.data.eduLevel);
 					}
 					if (res.data.data.attachUrl) {
 						self.attachUrl = baseUrls.BASE_IMG_URL + res.data.data.attachUrl;
-						self.attachName = res.data.data.attachName
+						self.attachName = res.data.data.attachName;
 					}
 					if (res.data.data.introduceVideoUrl) {
 						self.videoUrl = baseUrls.BASE_IMG_URL + res.data.data.introduceVideoUrl;
 					}
-					if(res.data.data.startYear){
-					res.data.data.startYear = res.data.data.startYear + "年"
+					if (res.data.data.startYear) {
+						res.data.data.startYear = res.data.data.startYear + '年';
 					}
 					this.formTableInfos = res.data.data;
 				}
@@ -608,7 +607,7 @@ export default {
 					index_JobType: 0,
 					index_Arrivaltime: 0,
 					index_PriceType: 0,
-					startYear: "2021年"
+					startYear: '2021年'
 				};
 				this.qzYX = true;
 			} else {
@@ -665,57 +664,56 @@ export default {
 		},
 		//保存求职意向
 		submitjobIntention() {
-			var testPrice = /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/
-			if(!this.jobIntentionForm.job){
+			var testPrice = /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/;
+			if (!this.jobIntentionForm.job) {
 				uni.showToast({
-					title:'请输入求职岗位',
+					title: '请输入求职岗位',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.jobIntentionForm.wantIncomeStart){
+			if (!this.jobIntentionForm.wantIncomeStart) {
 				uni.showToast({
-					title:'请输入开始薪资范围',
+					title: '请输入开始薪资范围',
 					icon: 'none',
-					duration:1500
-				})
-				return
-			}else{
-				if(!testPrice.test(this.jobIntentionForm.wantIncomeStart)){
+					duration: 1500
+				});
+				return;
+			} else {
+				if (!testPrice.test(this.jobIntentionForm.wantIncomeStart)) {
 					uni.showToast({
-						title:'请规范输入薪资起点',
+						title: '请规范输入薪资起点',
 						icon: 'none',
-						duration:1500
-					})
-					return
+						duration: 1500
+					});
+					return;
 				}
 			}
-			if(!this.jobIntentionForm.wantIncomeEnd){
+			if (!this.jobIntentionForm.wantIncomeEnd) {
 				uni.showToast({
-					title:'请输入结束薪资范围',
+					title: '请输入结束薪资范围',
 					icon: 'none',
-					duration:1500
-				})
-				return
-			}else{
-				if(!testPrice.test(this.jobIntentionForm.wantIncomeEnd)){
+					duration: 1500
+				});
+				return;
+			} else {
+				if (!testPrice.test(this.jobIntentionForm.wantIncomeEnd)) {
 					uni.showToast({
-						title:'请规范输入薪资结点',
+						title: '请规范输入薪资结点',
 						icon: 'none',
-						duration:1500
-					})
-					return
+						duration: 1500
+					});
+					return;
 				}
 			}
-			if(Number(this.jobIntentionForm.wantIncomeEnd) < Number(this.jobIntentionForm.wantIncomeStart)){
-				
-					uni.showToast({
-						title:'请规范输入薪资范围',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (Number(this.jobIntentionForm.wantIncomeEnd) < Number(this.jobIntentionForm.wantIncomeStart)) {
+				uni.showToast({
+					title: '请规范输入薪资范围',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
 			this.formTableInfos.job = this.jobIntentionForm.job;
 			this.formTableInfos.wantIncomeType = this.jobIntentionForm.index_PriceType == 0 ? 1 : 2;
@@ -732,21 +730,21 @@ export default {
 		//保存工作经历
 		submitWorking() {
 			var self = this;
-			if(!this.workJLForm.company){
-					uni.showToast({
-						title:'请输入公司',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (!this.workJLForm.company) {
+				uni.showToast({
+					title: '请输入公司',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.workJLForm.job){
-					uni.showToast({
-						title:'请输入岗位',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (!this.workJLForm.job) {
+				uni.showToast({
+					title: '请输入岗位',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
 			if (this.workStatus === 0) {
 				this.formTableInfos.workExperienceJson.forEach((item, index) => {
@@ -764,21 +762,21 @@ export default {
 		//保存教育
 		submiteduing() {
 			var self = this;
-			if(!this.eduJLForm.school){
-					uni.showToast({
-						title:'请输入学校',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (!this.eduJLForm.school) {
+				uni.showToast({
+					title: '请输入学校',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.eduJLForm.Professional){
-					uni.showToast({
-						title:'请输入专业',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (!this.eduJLForm.Professional) {
+				uni.showToast({
+					title: '请输入专业',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
 			this.eduJLForm.edu = this.array_eduType[Number(this.eduJLForm.edu)];
 			if (this.eduStatus === 0) {
@@ -797,24 +795,24 @@ export default {
 		//保存证书
 		submitcfing() {
 			var self = this;
-			if(this.cfJLForm.cfType == '0'){
-				if(!this.cfJLForm.categoryId === null){
+			if (this.cfJLForm.cfType == '0') {
+				if (!this.cfJLForm.categoryId === null) {
 					uni.showToast({
-						title:'请选择证书名称',
+						title: '请选择证书名称',
 						icon: 'none',
-						duration:1500
-					})
-					return
+						duration: 1500
+					});
+					return;
 				}
 			}
-			if(this.cfJLForm.cfType == '1'){
-				if(!this.cfJLForm.cfName){
+			if (this.cfJLForm.cfType == '1') {
+				if (!this.cfJLForm.cfName) {
 					uni.showToast({
-						title:'请输入证书名称',
+						title: '请输入证书名称',
 						icon: 'none',
-						duration:1500
-					})
-					return
+						duration: 1500
+					});
+					return;
 				}
 			}
 			// this.eduJLForm.edu = this.array_eduType[Number(this.eduJLForm.edu)];
@@ -834,21 +832,21 @@ export default {
 		//保存项目
 		submitItem() {
 			var self = this;
-			if(!this.itemJLForm.job){
-					uni.showToast({
-						title:'请输入岗位',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (!this.itemJLForm.job) {
+				uni.showToast({
+					title: '请输入岗位',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.itemJLForm.projectDescription){
-					uni.showToast({
-						title:'请输入项目描述',
-						icon: 'none',
-						duration:1500
-					})
-					return
+			if (!this.itemJLForm.projectDescription) {
+				uni.showToast({
+					title: '请输入项目描述',
+					icon: 'none',
+					duration: 1500
+				});
+				return;
 			}
 			if (this.itemStatus === 0) {
 				this.formTableInfos.projectExperienceJson.forEach((item, index) => {
@@ -865,101 +863,103 @@ export default {
 		},
 		//保存自我评价
 		submitMy() {
-			if(!this.myInfos){
+			if (!this.myInfos) {
 				uni.showToast({
-					title:'请输入自我评价',
+					title: '请输入自我评价',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
 			this.formTableInfos.selfEvaluation = this.myInfos;
 			this.qzMyStatus = false;
 		},
 		async submitForms() {
 			var self = this;
-			if(!this.formTableInfos.resumeName){
+			if (!this.formTableInfos.resumeName) {
 				uni.showToast({
-					title:'请输入简历名称',
+					title: '请输入简历名称',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.formTableInfos.realname){
+			if (!this.formTableInfos.realname) {
 				uni.showToast({
-					title:'请输入姓名',
+					title: '请输入姓名',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.formTableInfos.telphone){
+			if (!this.formTableInfos.telphone) {
 				uni.showToast({
-					title:'请输入手机号',
+					title: '请输入手机号',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(this.index_level === null){
+			if (this.index_level === null) {
 				uni.showToast({
-					title:'请选择学历',
+					title: '请选择学历',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.formTableInfos.email){
+			if (!this.formTableInfos.email) {
 				uni.showToast({
-					title:'请输入邮箱号',
+					title: '请输入邮箱号',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.formTableInfos.job){
+			if (!this.formTableInfos.job) {
 				uni.showToast({
-					title:'请增加求职意向',
+					title: '请增加求职意向',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
-			if(!this.formTableInfos.selfEvaluation){
+			if (!this.formTableInfos.selfEvaluation) {
 				uni.showToast({
-					title:'请输入自我评价',
+					title: '请输入自我评价',
 					icon: 'none',
-					duration:1500
-				})
-				return
+					duration: 1500
+				});
+				return;
 			}
 			uni.showLoading({
 				title: '提交中'
 			});
 			var data = JSON.parse(JSON.stringify(this.formTableInfos));
-			if(self.videoUrl){
+			if (self.videoUrl) {
 				const waitUpload1 = await self.uploadFileVids(self.videoUrl, 6);
-				if(waitUpload1 !== undefined){
-				data.introduceVideoUrl = waitUpload1;}
+				if (waitUpload1 !== undefined) {
+					data.introduceVideoUrl = waitUpload1;
+				}
 				// const waitUpload1 = await self.uploadFile(self.videoUrl, 6, '视频');
 				// if(waitUpload1 !== undefined){
 				// data.introduceVideoUrl = waitUpload1;}
-				
-			}else{
-				data.introduceVideoUrl = null
+			} else {
+				data.introduceVideoUrl = null;
 			}
-			if(self.attachUrl){
+			if (self.attachUrl) {
 				const waitUpload2 = await self.uploadFile(self.attachUrl, 6, '附件');
-				if(waitUpload2 !== undefined){
-				data.attachUrl = waitUpload2;
-				data.attachName = self.attachName;}
-			}else{
+				if (waitUpload2 !== undefined) {
+					data.attachUrl = waitUpload2;
+					data.attachName = self.attachName;
+				}
+			} else {
 				data.attachUrl = null;
 				data.attachName = null;
 			}
-			if(data.startYear.indexOf("年") === -1){}else{
-				data.startYear = Number(data.startYear.slice(0,data.startYear.indexOf("年")))
+			if (data.startYear.indexOf('年') === -1) {
+			} else {
+				data.startYear = Number(data.startYear.slice(0, data.startYear.indexOf('年')));
 			}
 			data.sex = self.userInfo.sex === 0 ? 1 : self.userInfo.sex === 1 ? 2 : null;
 			data.userBirth = self.userInfo.userBirth;
@@ -1148,7 +1148,10 @@ export default {
 				};
 				this.$api.aliyunpolicy(data).then(res => {
 					var ossToken = res.data.data.resultContent;
-					var fileExtension = options.split('.').pop().toLowerCase()
+					var fileExtension = options
+						.split('.')
+						.pop()
+						.toLowerCase();
 					uni.uploadFile({
 						url: ossToken.host,
 						name: 'file',
@@ -1158,7 +1161,7 @@ export default {
 							AuthorizationToken: 'WX ' + uni.getStorageSync('token')
 						},
 						formData: {
-							key: ossToken.dir + "." + fileExtension,
+							key: ossToken.dir + '.' + fileExtension,
 							OSSAccessKeyId: ossToken.accessid,
 							policy: ossToken.policy,
 							Signature: ossToken.signature,
@@ -1167,7 +1170,7 @@ export default {
 						},
 						success: result => {
 							if (result.statusCode === 200) {
-								resolve(ossToken.dir + "." + fileExtension);
+								resolve(ossToken.dir + '.' + fileExtension);
 							} else {
 								uni.showToast({
 									title: '视频上传失败',
@@ -1210,7 +1213,7 @@ export default {
 						if (asary.code === 200) {
 							resolve(asary.data);
 						} else {
-							uni.hideLoading()
+							uni.hideLoading();
 							uni.showToast({
 								itle: names + '上传失败',
 								icon: 'none'
@@ -1219,7 +1222,7 @@ export default {
 						}
 					},
 					fail: error => {
-						uni.hideLoading()
+						uni.hideLoading();
 						uni.showToast({
 							title: names + '上传报错',
 							icon: 'none'

+ 2 - 2
pages2/wd/help.vue

@@ -14,7 +14,7 @@
 						<view class="box_title">{{ $method.timestampToTime(item.startTime) }}至{{ $method.timestampToTime(item.endTime) }}</view>
 					</u-col>
 					<u-col span="6" text-align="right">
-						<view style="padding: 8rpx;"><view class="boxbtn" :class="item.useStatus === 'yes' ? 'boxbtnYes':''" @click="item.useStatus === 'no' ? uploadActives(item) : uploadActives(1)">{{item.useStatus === 'no' ? '立即参加' : '已参加'}} </view></view>
+						<view style="padding: 8rpx;"><view class="boxbtn" :class="item.useStatus === 'yes' ? 'boxbtnYes':''" @click="uploadActives(item)">{{item.useStatus === 'no' ? '立即参加' : '已参加'}} </view></view>
 					</u-col>
 				</u-row>
 			</view>
@@ -57,7 +57,7 @@ export default {
 			});
 		},
 		uploadActives(item) {
-			if(item === 1){
+			if(item.useStatus === "yes"){
 				uni.showToast({
 					title:'已参加过该活动',
 					icon:'none'

Някои файлове не бяха показани, защото твърде много файлове са промени