正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
| @@ -61,7 +61,7 @@ | @@ -61,7 +61,7 @@ | ||
| 61 | </tr> | 61 | </tr> |
| 62 | </table> | 62 | </table> |
| 63 | </div> | 63 | </div> |
| 64 | - <div style="display:inline-block;width:45%;"> | 64 | + <div style="display:inline-block;width:45%;" v-if="picList"> |
| 65 | <div class="show" > | 65 | <div class="show" > |
| 66 | <!-- <img :src="getImgView(show)" :preview="num" alt="" height="100px"> --> | 66 | <!-- <img :src="getImgView(show)" :preview="num" alt="" height="100px"> --> |
| 67 | <img :src="httpUrl+show" :preview="num" alt="" height="100px"> | 67 | <img :src="httpUrl+show" :preview="num" alt="" height="100px"> |
| @@ -135,10 +135,14 @@ export default { | @@ -135,10 +135,14 @@ export default { | ||
| 135 | }, | 135 | }, |
| 136 | edit(record) { | 136 | edit(record) { |
| 137 | this.model = Object.assign({}, record); | 137 | this.model = Object.assign({}, record); |
| 138 | + console.log('this.model',this.model) | ||
| 139 | + if(this.model.pics){ | ||
| 138 | var picList = this.model.pics.split(',') | 140 | var picList = this.model.pics.split(',') |
| 141 | + console.log('picList',picList) | ||
| 139 | this.picList = picList | 142 | this.picList = picList |
| 140 | this.show = this.picList[0]; | 143 | this.show = this.picList[0]; |
| 141 | - // console.log('this.picList',this.picList) | 144 | + } |
| 145 | + | ||
| 142 | this.visible = true; | 146 | this.visible = true; |
| 143 | this.loadTree() | 147 | this.loadTree() |
| 144 | }, | 148 | }, |
-
请 注册 或 登录 后发表评论