vue传参包括2中方式,一种通过路径,一种通过params,如果用params的情况下,传值
this.
r
o
u
t
e
r
.
p
u
s
h
(
n
a
m
e
:
′
T
r
a
i
n
S
k
e
t
c
h
′
,
p
a
r
a
m
s
:
m
o
d
e
l
I
d
:
r
o
w
.
m
o
d
e
l
I
d
,
o
u
t
l
i
n
e
N
a
m
e
:
r
o
w
.
o
u
t
l
i
n
e
N
a
m
e
,
o
u
t
l
i
n
e
T
e
x
t
:
r
o
w
.
o
u
t
l
i
n
e
T
e
x
t
,
t
r
o
o
p
s
:
r
o
w
.
t
r
o
o
p
s
,
a
r
m
:
r
o
w
.
a
r
m
,
s
t
a
f
f
i
n
g
T
i
m
e
:
r
o
w
.
s
t
a
f
f
i
n
g
T
i
m
e
,
u
s
e
Y
e
a
r
:
r
o
w
.
u
s
e
Y
e
a
r
,
v
e
r
s
i
o
n
:
r
o
w
.
v
e
r
s
i
o
n
,
i
d
:
r
o
w
.
i
d
)
取
值
的
话
用
t
h
i
s
.
router.push( { name: 'TrainSketch', params: { modelId: row.modelId, outlineName: row.outlineName, outlineText: row.outlineText, troops: row.troops, arm: row.arm, staffingTime: row.staffingTime, useYear: row.useYear, version: row.version, id: row.id } }) 取值的话用this.
router.push(name:′TrainSketch′,params:modelId:row.modelId,outlineName:row.outlineName,outlineText:row.outlineText,troops:row.troops,arm:row.arm,staffingTime:row.staffingTime,useYear:row.useYear,version:row.version,id:row.id)取值的话用this.router.params;
03-11
08-14
08-14
12-15