|
|
@@ -84,7 +84,8 @@
|
|
|
customTags: [],
|
|
|
operationOptions: [],
|
|
|
tagParam: '' ,// 新增:保存传入的tag参数
|
|
|
- ruleClassifyId:''
|
|
|
+ ruleClassifyId:'',
|
|
|
+ fromPage: '', // 判断从哪个页面进入
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -111,6 +112,10 @@
|
|
|
}
|
|
|
this.getData()
|
|
|
set = options && options.set ? options.set : 0
|
|
|
+ // 判断从哪个页面进入 onlineResume:在线简历
|
|
|
+ if (options.from) {
|
|
|
+ this.fromPage = options.from
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
goBack() {
|
|
|
@@ -128,14 +133,25 @@
|
|
|
this.$Request.getT(action, data).then(res => {
|
|
|
if (res.code == 0) {
|
|
|
this.operationOptions = res.data
|
|
|
- // 数据加载完成后处理标签回显
|
|
|
- if (this.tagParam) {
|
|
|
+
|
|
|
+ if (this.fromPage === 'onlineResume') {
|
|
|
+ const tags = res.data.map(tag => tag.skillName)
|
|
|
+ this.setCustomTags(tags)
|
|
|
+ } else if (this.tagParam) {
|
|
|
+ // 数据加载完成后处理标签回显
|
|
|
this.handleTagDisplay(this.tagParam)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
|
|
|
+ // 设置自定义回显
|
|
|
+ setCustomTags(tags) {
|
|
|
+ tags.forEach(tag => {
|
|
|
+ this.customTags.push(tag)
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
handleTagDisplay(tagString) {
|
|
|
const tagArray = tagString
|
|
|
.split(',')
|
|
|
@@ -223,7 +239,7 @@
|
|
|
},
|
|
|
confirmSelection() {
|
|
|
// 合并选择的标签和自定义标签并回传
|
|
|
- const allSelectedTags = [...this.selectedOperation, ...this.customTags]
|
|
|
+ const allSelectedTags = this.fromPage === 'onlineResume' ? this.customTags : [...this.selectedOperation, ...this.customTags]
|
|
|
// 触发事件通知上一页面
|
|
|
uni.$emit('skillsUpdated', {
|
|
|
jobTitle: this.jobTitle,
|