|
@@ -294,8 +294,8 @@ export default {
|
|
|
this.module.push(moduleOptions[i])
|
|
|
}
|
|
|
})
|
|
|
- if (this.$route.query.threeId) {
|
|
|
- this.getDetail()
|
|
|
+ if (this.$route.query.threeId || this.$route.query.copyId) {
|
|
|
+ this.getDetail(this.$route.query.threeId || this.$route.query.copyId)
|
|
|
this.isRead = Boolean(this.$route.query.boolean)
|
|
|
}
|
|
|
}
|
|
@@ -303,8 +303,8 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 详情
|
|
|
- getDetail() {
|
|
|
- detail(this.$route.query.threeId).then(res => {
|
|
|
+ getDetail(id) {
|
|
|
+ detail(id).then(res => {
|
|
|
if (res.code === 0 && res.data.list.length > 0) {
|
|
|
this.form = JSON.parse(JSON.stringify(res.data))
|
|
|
this.form.list = []
|
|
@@ -340,6 +340,9 @@ export default {
|
|
|
obj.status = i.status
|
|
|
}
|
|
|
this.form.list.push(obj)
|
|
|
+ if(this.$route.query.copyId) {
|
|
|
+ this.form.threeId = ''
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -555,7 +558,7 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$message.error('请添加新增内容')
|
|
|
}
|
|
|
},
|