Browse Source

接口替换

master
Jackwang 4 years ago
parent
commit
ed2b0176c8
  1. 6
      src/views/modules/heart/actinfo-add-or-update.vue
  2. 6
      src/views/modules/heart/volunteerteam-add-or-update.vue
  3. 6
      src/views/modules/heart/volunteerteam.vue

6
src/views/modules/heart/actinfo-add-or-update.vue

@ -417,7 +417,7 @@ export default {
this.init()
},
created () {
this.getTeamTypeList()
this.getSysTeamTypeList()
this.$http
.get(`/sys/user/deptOptions/getByLoginUser`)
.then(({ data: res }) => {
@ -559,8 +559,8 @@ export default {
}).catch(() => {
})
},
getTeamTypeList() {
this.$http.get(`heart/volunteerteamtype/getTeamTypeList`).then(({data: res}) => {
getSysTeamTypeList() {
this.$http.get(`heart/volunteerteamtype/getSysTeamTypeList`).then(({data: res}) => {
this.teamTypeList = res.data
}).catch(() => {
})

6
src/views/modules/heart/volunteerteam-add-or-update.vue

@ -97,11 +97,11 @@ export default {
TinymceEditor
},
created: function () {
this.getTeamTypeList()
this.getSysTeamTypeList()
},
methods: {
getTeamTypeList () {
this.$http.get(`heart/volunteerteamtype/getTeamTypeList`).then(({ data: res }) => {
getSysTeamTypeList () {
this.$http.get(`heart/volunteerteamtype/getSysTeamTypeList`).then(({ data: res }) => {
this.teamTypeList = res.data
}).catch(() => {})
},

6
src/views/modules/heart/volunteerteam.vue

@ -87,7 +87,7 @@ export default {
VolunteerteamRelationUser
},
created: function () {
this.getTeamTypeList()
this.getSysTeamTypeList()
},
methods: {
//
@ -98,8 +98,8 @@ export default {
this.$refs.volunteerteamRelationUser.init()
})
},
getTeamTypeList() {
this.$http.get(`heart/volunteerteamtype/getTeamTypeList`).then(({data: res}) => {
getSysTeamTypeList() {
this.$http.get(`heart/volunteerteamtype/getSysTeamTypeList`).then(({data: res}) => {
this.teamTypeList = res.data
}).catch(() => {
})

Loading…
Cancel
Save