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

Loading…
Cancel
Save