Commit 1cc7c5b1 authored by FangYuePeng's avatar FangYuePeng

修改图片回显地址

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