|
|
|
@ -101,7 +101,8 @@
@@ -101,7 +101,8 @@
|
|
|
|
|
label="图片" |
|
|
|
|
width="auto"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<img :src="'http://192.168.0.100/'+scope.row.image" alt="图片"/> |
|
|
|
|
<!-- <img :src="'http://192.168.0.100/'+scope.row.image" alt="图片"/> --> |
|
|
|
|
<img :src="imgurl+scope.row.image" alt="图片"/> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
@ -222,10 +223,13 @@ export default {
@@ -222,10 +223,13 @@ export default {
|
|
|
|
|
// 实例还没挂载 |
|
|
|
|
created() { |
|
|
|
|
this.getFileData(); |
|
|
|
|
console.log(this.imgurl); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 实例已经挂载 |
|
|
|
|
|
|
|
|
|
// mounted () { |
|
|
|
|
// console.log(this.imgurl); |
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
filters: { |
|
|
|
|
|
|
|
|
@ -262,6 +266,7 @@ export default {
@@ -262,6 +266,7 @@ export default {
|
|
|
|
|
// }, |
|
|
|
|
// value2: '', |
|
|
|
|
|
|
|
|
|
imgurl:process.env.VUE_APP_IMG_URL, |
|
|
|
|
//haveRealpath: 0, |
|
|
|
|
// 当前目录文件数据 |
|
|
|
|
tableData: [], |
|
|
|
|