修改ip
This commit is contained in:
@ -89,10 +89,7 @@
|
||||
style="width: 80px; height: 60px"
|
||||
:src="'http://127.0.0.1:8848' + row.militaryDataUrl"
|
||||
/> -->
|
||||
<el-image
|
||||
style="width: 80px; height: 60px"
|
||||
:src="'http://127.0.0.1:8848' + row.militaryDataUrl"
|
||||
/>
|
||||
<el-image style="width: 80px; height: 60px" :src="service + row.militaryDataUrl" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作">
|
||||
@ -154,6 +151,7 @@ const fs = require('fs')
|
||||
const eventBus: any = inject('bus')
|
||||
var clickTreeNode: any = reactive({})
|
||||
var leftClickTreeNode: any = reactive({})
|
||||
const service = ref(localStorage.getItem('service'))
|
||||
|
||||
interface TypeNode {
|
||||
id: string
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
<template #default="{ row }">
|
||||
<el-image
|
||||
style="width: 80px; height: 60px"
|
||||
:src="'http://127.0.0.1:8848' + row.posterDataUrl"
|
||||
:src="service + row.posterDataUrl"
|
||||
fit="contain"
|
||||
/>
|
||||
</template>
|
||||
@ -159,6 +159,7 @@ const fs = require('fs')
|
||||
const eventBus: any = inject('bus')
|
||||
var clickTreeNode: any = reactive({})
|
||||
var leftClickTreeNode: any = reactive({})
|
||||
const service = ref(localStorage.getItem('service'))
|
||||
|
||||
interface TypeNode {
|
||||
id: string
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
>
|
||||
<div class="imgbg">
|
||||
<el-image
|
||||
:src="'http://127.0.0.1:8848' + model.militaryDataUrl"
|
||||
:src="service + model.militaryDataUrl"
|
||||
fit="contain"
|
||||
class="thumbnail"
|
||||
>
|
||||
@ -121,6 +121,7 @@ const isShowPup = ref(false)
|
||||
const eventBus: any = inject('bus')
|
||||
const { cusUpdateNode } = useTreeNode()
|
||||
var modelName = ref('')
|
||||
const service = ref(localStorage.getItem('service'))
|
||||
|
||||
//tab
|
||||
interface Model {
|
||||
@ -303,7 +304,7 @@ const renderModel = async (model) => {
|
||||
let option = {
|
||||
id: id,
|
||||
name: model.militaryName,
|
||||
url: 'http://127.0.0.1:8848' + model.militaryDataUrl,
|
||||
url: service.value + model.militaryDataUrl,
|
||||
position: positions
|
||||
}
|
||||
|
||||
|
||||
@ -77,11 +77,7 @@
|
||||
@click="modelClick(mIndex, model)"
|
||||
>
|
||||
<div class="imgbg">
|
||||
<el-image
|
||||
:src="'http://127.0.0.1:8848' + model.posterDataUrl"
|
||||
fit="contain"
|
||||
class="thumbnail"
|
||||
>
|
||||
<el-image :src="service + model.posterDataUrl" fit="contain" class="thumbnail">
|
||||
<template #error>
|
||||
<div class="image-error">加载失败</div>
|
||||
</template>
|
||||
@ -126,6 +122,8 @@ const eventBus: any = inject('bus')
|
||||
var modelName = ref('')
|
||||
var clickTreeNode: any = ref('')
|
||||
|
||||
const service = ref(localStorage.getItem('service'))
|
||||
|
||||
//tab
|
||||
interface Model {
|
||||
id: string
|
||||
@ -296,7 +294,7 @@ const modelClick = (index, row) => {
|
||||
typeof selectCallback === 'function' &&
|
||||
addType.value === 'trajectoryMotion'
|
||||
) {
|
||||
selectCallback('http://127.0.0.1:8848' + row.modelDataUrl)
|
||||
selectCallback(service.value + row.modelDataUrl)
|
||||
close()
|
||||
return
|
||||
}
|
||||
@ -314,7 +312,7 @@ const modelClick = (index, row) => {
|
||||
id: id,
|
||||
type: typeArr[isSetting.key],
|
||||
spacing: isSetting['value'] * 1,
|
||||
url: 'http://127.0.0.1:8848' + isSetting[row.modelDataUrl]
|
||||
url: service.value + isSetting[row.modelDataUrl]
|
||||
},
|
||||
function (data) {
|
||||
// posiArr.forEach((item, index) => {
|
||||
@ -351,7 +349,7 @@ const renderModel = async (data, model) => {
|
||||
name: model.modelName + index,
|
||||
show: true,
|
||||
scale: { x: 1, y: 1, z: 1 },
|
||||
url: 'http://127.0.0.1:8848' + model.modelDataUrl,
|
||||
url: service.value + model.modelDataUrl,
|
||||
maximumScale: 1,
|
||||
// host: 'http://127.0.0.1:8848',
|
||||
rotate: {
|
||||
|
||||
Reference in New Issue
Block a user