|
@@ -7,11 +7,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<template #href="{ record }">
|
|
<template #href="{ record }">
|
|
- <a
|
|
|
|
- v-if="record.fileUrl"
|
|
|
|
- target="_blank"
|
|
|
|
- :title="record.name"
|
|
|
|
- @click="floadileUrl(record)">
|
|
|
|
|
|
+ <a v-if="record.fileUrl" target="_blank" :title="record.name" @click="floadileUrl(record)">
|
|
{{ record.name }}</a
|
|
{{ record.name }}</a
|
|
>
|
|
>
|
|
<span v-else-if="record.name">{{ record.name }}</span>
|
|
<span v-else-if="record.name">{{ record.name }}</span>
|
|
@@ -116,7 +112,7 @@
|
|
{
|
|
{
|
|
title: '文件类型',
|
|
title: '文件类型',
|
|
dataIndex: 'fileTypeStr',
|
|
dataIndex: 'fileTypeStr',
|
|
- width: 80
|
|
|
|
|
|
+ width: 80,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '文件格式',
|
|
title: '文件格式',
|
|
@@ -136,7 +132,7 @@
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return record.status == -1 ? '上传失败' : record.status == 0 ? '上传中' : '上传成功'
|
|
|
|
|
|
+ return record.status == -1 ? '上传失败' : record.status == 0 ? '上传中' : '上传成功';
|
|
},
|
|
},
|
|
width: 180,
|
|
width: 180,
|
|
},
|
|
},
|
|
@@ -212,7 +208,7 @@
|
|
label: '其他',
|
|
label: '其他',
|
|
value: '4',
|
|
value: '4',
|
|
key: '4',
|
|
key: '4',
|
|
- }
|
|
|
|
|
|
+ },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
colProps: {
|
|
colProps: {
|
|
@@ -430,7 +426,13 @@
|
|
}
|
|
}
|
|
function floadileUrl(record) {
|
|
function floadileUrl(record) {
|
|
if (record.fileType == 3) {
|
|
if (record.fileType == 3) {
|
|
- let url = `/code/index.html?title=${record.fileName}&type=${record.fileFormat}&fileUrl=${record.fileUrl}#/sign-model`
|
|
|
|
|
|
+ let wgs84 = '';
|
|
|
|
+ if (record.wgs84) {
|
|
|
|
+ wgs84 = `&wgs84=${record.wgs84}&gcj02=${record.gcj02}`;
|
|
|
|
+ }
|
|
|
|
+ let url = `/code/index.html?title=${record.fileName}&type=${record.fileFormat}&fileUrl=${
|
|
|
|
+ record.fileUrl
|
|
|
|
+ }&convertType=${record.convertType}${record.wgs84 ? wgs84 : ''}#/sign-model`;
|
|
return window.open(url);
|
|
return window.open(url);
|
|
} else {
|
|
} else {
|
|
return window.open(record.fileUrl);
|
|
return window.open(record.fileUrl);
|