|
|
@@ -9,7 +9,7 @@
|
|
|
<el-breadcrumb-item to="">首页</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item to="">馆藏管理</el-breadcrumb-item>
|
|
|
<el-breadcrumb-item>藏品登记</el-breadcrumb-item>
|
|
|
- <el-breadcrumb-item id="mytitle">新增</el-breadcrumb-item>
|
|
|
+ <el-breadcrumb-item id="mytitle">{{mydata.unit?'编辑':'新增'}}</el-breadcrumb-item>
|
|
|
</el-breadcrumb>
|
|
|
</div>
|
|
|
<div class="conten">
|
|
|
@@ -212,8 +212,11 @@ export default {
|
|
|
async created () {
|
|
|
// 拿到从第一层点击新增传递过来的num和id
|
|
|
this.mydata = this.$route.query
|
|
|
+ // console.log(6666666, this.mydata)
|
|
|
this.mydata.id = Number(this.mydata.id)
|
|
|
this.fromData.number = this.mydata.num
|
|
|
+ this.fromData.unit = this.mydata.unit
|
|
|
+ this.fromData.description = this.mydata.description
|
|
|
|
|
|
// 获取服务器前缀地址
|
|
|
this.baseURL = axios.defaults.baseURL
|