|
@@ -179,7 +179,20 @@ export default {
|
179
|
179
|
this.$message.error('请选择一行数据进行修改!')
|
180
|
180
|
return
|
181
|
181
|
}
|
182
|
|
- this.$router.push({ name: 'announcement-edit', params: { id: ids[0] }})
|
|
182
|
+ let ide= this.deleteIds[0]
|
|
183
|
+ this.listQuery.id = ide
|
|
184
|
+ this.$store.dispatch('AnnouncementById', this.listQuery).then((res) => {
|
|
185
|
+ const resData = res.data
|
|
186
|
+ const announcement = resData.tpAnnouncement
|
|
187
|
+ const imgList = resData.studentList
|
|
188
|
+ this.listQuery = announcement
|
|
189
|
+ console.log("1",this.listQuery.status)
|
|
190
|
+ if(this.listQuery.status == 0){
|
|
191
|
+ this.$message.error('已作废不可以修改')
|
|
192
|
+ return
|
|
193
|
+ }
|
|
194
|
+ this.$router.push({ name: 'announcement-edit', params: { id: ids[0] }})
|
|
195
|
+ })
|
183
|
196
|
},
|
184
|
197
|
deleteAnnouncement(){
|
185
|
198
|
const ids = this.deleteIds
|