文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit 2e67275e by 李梓桢

图像修改

parent daccca3b
...@@ -189,7 +189,8 @@ export default { ...@@ -189,7 +189,8 @@ export default {
let imageName = routeParams.file.url let imageName = routeParams.file.url
this.relationId = routeParams.relationId this.relationId = routeParams.relationId
this.description = routeParams.piece.template this.description = routeParams.piece.template
console.log(this.baseURL)
let baseURL = this.baseURL
// 获取图片列表并转换格式 // 获取图片列表并转换格式
let imageList = await this.getLabelList() let imageList = await this.getLabelList()
console.log(imageList) console.log(imageList)
...@@ -199,7 +200,8 @@ export default { ...@@ -199,7 +200,8 @@ export default {
// 这个是原来的代码 // 这个是原来的代码
// var imgUrl = this.data.length ? this.data[0].imageUrl : 'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200627155321.png' // var imgUrl = this.data.length ? this.data[0].imageUrl : 'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200627155321.png'
// 这个是现在使用的代码 // 这个是现在使用的代码
var imgUrl = 'http://127.0.0.1:9100/api/files/getImage/' + imageName var imgUrl = baseURL + '/files/getImage/' + imageName
console.log(imgUrl)
// 如果不使用后端可以用这个模拟 // 如果不使用后端可以用这个模拟
// var imgUrl = 'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png' // var imgUrl = 'https://juanmdbucket.oss-cn-beijing.aliyuncs.com/20200301231737.png'
this.imageUrl = imgUrl this.imageUrl = imgUrl
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<el-aside class="sidebar" style="position: absolute;margin-top: 350px;height: calc(100vh - 71px - 400px);"> <el-aside class="sidebar" style="position: absolute;margin-top: 350px;height: calc(100vh - 71px - 400px);">
<div class="sidebar-box"> <div class="sidebar-box">
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="地列表" name="first"> <el-tab-pane label="地列表" name="first">
<div class="img-title-list-box" style="height: 205px"> <div class="img-title-list-box" style="height: 205px">
<div v-for="(item, index) in landmarkData" :key="item.id" class="listLeft" style="text-align: left" @dblclick="markInfo(index)" @mouseenter="markEnter(index)" @mouseleave="restore()"> <div v-for="(item, index) in landmarkData" :key="item.id" class="listLeft" style="text-align: left" @dblclick="markInfo(index)" @mouseenter="markEnter(index)" @mouseleave="restore()">
{{index+1}}. &nbsp; {{item.landmarkName}} {{index+1}}. &nbsp; {{item.landmarkName}}
......
...@@ -17,6 +17,8 @@ Vue.prototype.$math = math ...@@ -17,6 +17,8 @@ Vue.prototype.$math = math
axios.defaults.baseURL = 'http://47.92.1.107:9100/api' axios.defaults.baseURL = 'http://47.92.1.107:9100/api'
axios.defaults.timeout = 8000 axios.defaults.timeout = 8000
Vue.prototype.baseURL = axios.defaults.baseURL // 图片标注接口使用
Vue.use(VueAxios, axios) Vue.use(VueAxios, axios)
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.config.productionTip = false Vue.config.productionTip = false
......
...@@ -27,7 +27,7 @@ app.register_blueprint(data) ...@@ -27,7 +27,7 @@ app.register_blueprint(data)
app.register_blueprint(image) app.register_blueprint(image)
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True, host='47.92.1.107', port=9100) app.run(debug=True, host='127.0.0.1', port=9100)
@app.route('/') @app.route('/')
......
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