|
|
@@ -674,14 +674,15 @@ export default {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
let data = {
|
|
|
- courseId: row.courseId,
|
|
|
- gradeId: row.gradeId,
|
|
|
- gOriented: row.gOriented,
|
|
|
- pScoreStd: row.pScoreStd,
|
|
|
- sScoreStd: row.sScoreStd,
|
|
|
- rScoreStd: row.rScoreStd,
|
|
|
- eScoreStd: row.eScoreStd,
|
|
|
- nScoreStd: row.nScoreStd,
|
|
|
+ id: row.id,
|
|
|
+ // courseId: row.courseId,
|
|
|
+ // gradeId: row.gradeId,
|
|
|
+ // gOriented: row.gOriented,
|
|
|
+ // pScoreStd: row.pScoreStd,
|
|
|
+ // sScoreStd: row.sScoreStd,
|
|
|
+ // rScoreStd: row.rScoreStd,
|
|
|
+ // eScoreStd: row.eScoreStd,
|
|
|
+ // nScoreStd: row.nScoreStd,
|
|
|
publishFlag: 1
|
|
|
}
|
|
|
this.publishGPSREN(data)
|
|
|
@@ -697,13 +698,15 @@ export default {
|
|
|
publishGPSREN (data) {
|
|
|
publishGoal(data).then((res) => {
|
|
|
console.log(res)
|
|
|
- // if (res.data.code === 200) {
|
|
|
- // this.$message.success('发布成功')
|
|
|
- // } else {
|
|
|
- // this.$message.error(res.data.message)
|
|
|
- // }
|
|
|
- // }).catch((error) => {
|
|
|
- // console.log(error)
|
|
|
+ if (res.data.code === 1) {
|
|
|
+ this.$message.success('发布成功')
|
|
|
+ //刷新页面数据
|
|
|
+ this.getGoalInfoList()
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.data.message)
|
|
|
+ }
|
|
|
+ }).catch((error) => {
|
|
|
+ console.log(error)
|
|
|
})
|
|
|
},
|
|
|
|