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