|
@@ -376,8 +376,8 @@ export default {
|
|
|
|
|
|
})
|
|
})
|
|
if (this.$route.query.id){
|
|
if (this.$route.query.id){
|
|
- console.log(this.$route.query.id)
|
|
|
|
let id = this.$route.query.id.replace(/\"/g, "")
|
|
let id = this.$route.query.id.replace(/\"/g, "")
|
|
|
|
+ // let id = parseInt(this.$route.query.id)
|
|
detail(id).then(res => {
|
|
detail(id).then(res => {
|
|
console.log(res.data.data)
|
|
console.log(res.data.data)
|
|
this.form = res.data.data;
|
|
this.form = res.data.data;
|
|
@@ -394,7 +394,7 @@ export default {
|
|
'$route'(to,from) {
|
|
'$route'(to,from) {
|
|
console.log(to,from);
|
|
console.log(to,from);
|
|
if (this.$route.query.id){
|
|
if (this.$route.query.id){
|
|
- let id = this.$route.query.id.replace(/\"/g, "")
|
|
|
|
|
|
+ let id = JSON.parse(this.$route.query.id).replace(/\"/g, "")
|
|
detail(id).then(res => {
|
|
detail(id).then(res => {
|
|
console.log(res.data.data)
|
|
console.log(res.data.data)
|
|
this.form = res.data.data;
|
|
this.form = res.data.data;
|