feature_0521
zhenghuang 5 years ago
parent 6d58d0f638
commit d4f82a47ce

@ -33,7 +33,7 @@
<p style="margin:10px 0 10px -480px;text-align:center">招募海报</p>
<div style="text-align: center;">
<img style="width:500px;height:500px"
:src="recruit.logo"
:src="recruit.scheduleVO.logo"
alt="" />
</div>
<!-- <div style="margin-top:20px;text-align: center;"><Button ghost type="primary">上传</Button></div> -->
@ -88,7 +88,7 @@ export default {
scheduleVO: {
id: null,
name: "招募令",
categoryId: 0,
categoryId: 4,
categoryCode: 'recruit',
logo: "",
description: "",
@ -100,10 +100,10 @@ export default {
params: [],
},
categoryCode: 'recruit',
name: null,
name: "招募令",
beginTime: '2020-06-03',
endTime: '2020-06-22',
content: '',
content: '招募令',
params: [],
organizations: [],
stores: [],
@ -159,7 +159,7 @@ export default {
that.imgUrl = data.data.results.scheduleVO.params[0].defaultVal
that.oldImg = data.data.results.scheduleVO.params[0].defaultVal
}
that.initData = { ...that.initData, ...data.data.results }
that.recruit = { ...that.recruit, ...data.data.results }
}
},
function (err) {
@ -170,10 +170,21 @@ export default {
},
doShow () {
this.showStoreCheck = false
let _this = this;
this.recruit = { ...this.recruit, ...store.getters.useData }
this.recruit.organizations = this._.filter(store.getters.useData.company, item => {
return _this._.find(store.getters.useData.stores, store => store.parentId == item.id) !== undefined
})
store.commit('ReSET_useData');
this.$forceUpdate()
},
showStores () {
this.recruit.company = [...this.recruit.organizations]
store.commit('SET_useData', {
...store.getters.useData,
...this.recruit
})
console.log({
...store.getters.useData,
...this.recruit,
})
@ -192,11 +203,6 @@ export default {
return false
}
param.isGetActivityInfo = true
if (this.uploadUrl != '') {
param.scheduleVO.params.forEach((item) => {
item.defaultVal = item.description = this.uploadUrl
})
}
bulletinService.dosave(
param,
function (data) {
@ -247,7 +253,7 @@ export default {
name: "recruitImage",
type: 1
}]
_this.recruit.scheduleVO = _this.recruit.params
_this.recruit.scheduleVO.params = _this.recruit.params
_this.recruit.scheduleVO.logo = res.data.results.localPath
}
})

Loading…
Cancel
Save