Commit 1cc7c5b1 authored by FangYuePeng's avatar FangYuePeng

修改图片回显地址

parent 6b1ba1da
......@@ -59,8 +59,8 @@
<div :id="step(scope.$index)">
<el-image
style="width:100%;height:100%;"
:src="imagePath+scope.row.url"
:preview-src-list="[imagePath+scope.row.url]"
:src="scope.row.url"
:preview-src-list="[scope.row.url]"
@click="handleClickStop(scope.$index)"
@mouseover="justEnter($event)"
@mouseout="justOut($event)"
......@@ -214,7 +214,7 @@ export default {
data() {
return {
imageUrl: '',
imagePath: 'http://49.232.167.247:20020/teaServer/',
fileUpload: '/dev-api/common/fileUpload?file=' + this.file + '&temp=' + 'development',
// 遮罩层
loading: true,
......@@ -399,7 +399,7 @@ export default {
const id = row.businessId
getCmsBanner(id).then(response => {
this.form = response.data
this.imageUrl = this.imagePath + response.data.url
this.imageUrl = response.data.url
this.open = true
this.title = '修改banner'
})
......
......@@ -56,7 +56,7 @@
<el-table-column label="封面" prop="path">
<template slot-scope="scope">
<div :id="step(scope.$index)">
<el-image :src="imagePath+scope.row.path" :preview-src-list="scope.row.srclist" style="width:100%;height:100%;" @click="handleClickStop(scope.$index)" @mouseover="justEnter($event)" @mouseout="justOut($event)" />
<el-image :src="scope.row.path" :preview-src-list="scope.row.srclist" style="width:100%;height:100%;" @click="handleClickStop(scope.$index)" @mouseover="justEnter($event)" @mouseout="justOut($event)" />
</div>
</template>
</el-table-column>
......@@ -125,7 +125,6 @@ export default {
hasAddPerm: ['sys:contentNewssInformation:add'],
hasUpdatePerm: ['sys:contentNewssInformation:update'],
imageSrc: require('@/assets/image/test.png'),
imagePath: 'http://49.232.167.247:20020/teaServer/',
// 显示开关
showSwitch: {
courseContent: true,
......@@ -253,7 +252,7 @@ export default {
_this.bussid = []
res.rows.forEach(item => {
item.srclist = []
item.srclist.push(this.imagePath + item.path)
item.srclist.push(item.path)
console.log(item.srclist)
})
_this.tableData = res.rows
......
......@@ -123,7 +123,6 @@ export default {
},
data() {
return {
imagePath: 'http://49.232.167.247:20020/teaServer/',
businessId: null,
// 变更字段存储数组
formChanges: [],
......@@ -234,7 +233,7 @@ export default {
console.log('res', res.data)
if (res.code === 200) {
this.form = res.data
this.imageUrl = this.imagePath + res.data.path
this.imageUrl = res.data.path
console.log('this.form.imageUrl', this.form.imageUrl)
}
})
......
......@@ -94,8 +94,8 @@
<div :id="step(scope.$index)">
<el-image
style="width:100%;height:100%;"
:src="imagePath+scope.row.url"
:preview-src-list="[imagePath+scope.row.url]"
:src="scope.row.url"
:preview-src-list="[scope.row.url]"
@click="handleClickStop(scope.$index)"
@mouseover="justEnter($event)"
@mouseout="justOut($event)"
......@@ -241,7 +241,7 @@ export default {
data() {
return {
imageUrl: '',
imagePath: 'http://49.232.167.247:20020/teaServer/',
dialogImageUrl: '',
dialogVisible: false,
disabled: false,
......@@ -450,7 +450,7 @@ export default {
const id = row.businessId
getCmsDevelopment(id).then(response => {
this.form = response.data
this.form.url = this.imagePath + response.data.url
this.form.url = response.data.url
this.open = true
this.title = '修改发展历程'
})
......
......@@ -79,7 +79,7 @@
<el-table-column align="left" label="新闻标题图" prop="pictureId">
<template slot-scope="scope">
<div :id="step(scope.$index)">
<el-image :src="imagePath+scope.row.path" :preview-src-list="scope.row.srclist" style="width:100%;height:100%;" @click="handleClickStop(scope.$index)" @mouseover="justEnter($event)" @mouseout="justOut($event)" />
<el-image :src="scope.row.path" :preview-src-list="scope.row.srclist" style="width:100%;height:100%;" @click="handleClickStop(scope.$index)" @mouseover="justEnter($event)" @mouseout="justOut($event)" />
</div>
</template>
</el-table-column>
......@@ -185,7 +185,7 @@ export default {
hasUpdatePerm: ['sys:contentNewsInformation:update'],
hasDetailPerm: ['sys:contentNewsInformation:query'],
imageSrc: require('@/assets/image/test.png'),
imagePath: 'http://49.232.167.247:20020/teaServer/',
// 显示开关
showSwitch: {
courseContent: true,
......@@ -364,7 +364,7 @@ export default {
_this.bussid = []
res.rows.forEach(item => {
item.srclist = []
item.srclist.push(this.imagePath + item.pictureId)
item.srclist.push( item.pictureId)
})
_this.tableData = res.rows
_this.fullscreenLoading = false
......
......@@ -165,7 +165,7 @@ export default {
data() {
return {
title: '新增新闻',
imagePath: 'http://49.232.167.247:20020/teaServer/',
businessId: null,
// 变更字段存储数组
formChanges: [],
......@@ -305,7 +305,7 @@ export default {
console.log('res', res.data)
if (res.code === 200) {
this.form = res.data
this.imageUrl = this.imagePath + res.data.path
this.imageUrl = res.data.path
}
})
}
......
......@@ -222,7 +222,7 @@ export default {
name: 'Index',
data() {
return {
imagePath: 'http://49.232.167.247:20020/teaServer/',
// 方案集合
optionList: [],
// 岗位集合
......
......@@ -57,8 +57,7 @@
<el-table-column label="头像" prop="avatarId" width="150">
<template slot-scope="scope">
<div :id="step(scope.$index)" class="img">
<!-- <el-image @click="handleClickStop(scope.$index)" style="width:100px;height:100%;" :src="imagePath+scope.row.avatarUrl" :preview-src-list="[imagePath+scope.row.avatarUrl]"/>-->
<el-image fit="fill" class="self-avatar" :src="imagePath+scope.row.avatarUrl" :preview-src-list="[imagePath+scope.row.avatarUrl]" @click="handleClickStop(scope.$index)" />
<el-image fit="fill" class="self-avatar" :src="scope.row.avatarUrl" :preview-src-list="[scope.row.avatarUrl]" @click="handleClickStop(scope.$index)" />
</div>
</template>
</el-table-column>
......@@ -220,8 +219,8 @@ export default {
// 讲师信息表表格数据
cmsLecturerList: [],
fileUpload: '/dev-api/common/fileUpload?file=' + this.file + '&temp=' + 'lecturerManagement',
// imagePath: 'http://49.232.167.247:20020/eduServer/',
imagePath: 'http://49.232.167.247:20020/teaServer/',
imageUrl: '',
// 弹出层标题
title: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment