|
@@ -30,10 +30,6 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table table-pano" v-show="currentMaterialType === 'pano'">
|
|
|
- <!-- <div class="table-head-row">
|
|
|
- <span class="table-head">1</span>
|
|
|
- <span class="table-head" v-for="(item,i) in tableHeadersForPano" :key="i">{{ item.name && $i18n.t(`zh_key.${item.name}`) }}</span>
|
|
|
- </div> -->
|
|
|
<div
|
|
|
v-show="panoList.length !== 0"
|
|
|
class="table-body"
|
|
@@ -53,11 +49,13 @@
|
|
|
@change="v => selectItem(item, v)"
|
|
|
/>
|
|
|
</span>
|
|
|
- <span class="table-data" v-for="(sub,idx) in tableHeadersForPano" :key="idx">
|
|
|
- <div v-if="sub.type=='image'" class="list-img">
|
|
|
- <img :src="item.icon + (Number(item.fileSize)>512 ? $imgsuffix : ``)" alt="">
|
|
|
+ <span class="table-data">
|
|
|
+ <div class="list-img">
|
|
|
+ <img :src="item.icon + (Number(item.fileSize) > 512 ? $imgsuffix : ``)" alt="">
|
|
|
</div>
|
|
|
- <span class="ellipsis" v-else v-title="item.sceneTitle">{{item.sceneTitle}}</span>
|
|
|
+ </span>
|
|
|
+ <span class="table-data">
|
|
|
+ <span class="name ellipsis" v-title="item.sceneTitle">{{item.sceneTitle}}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="no-more-data">
|
|
@@ -78,10 +76,6 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="table table-3D" v-show="currentMaterialType === '3D'">
|
|
|
- <!-- <div class="table-head-row">
|
|
|
- <span class="table-head">1</span>
|
|
|
- <span class="table-head" v-for="(item,i) in tableHeadersFor3D" :key="i">{{ item.name && $i18n.t(`zh_key.${item.name}`) }}</span>
|
|
|
- </div> -->
|
|
|
<div
|
|
|
v-show="scene3DList.length !== 0"
|
|
|
class="table-body"
|
|
@@ -101,11 +95,13 @@
|
|
|
@change="v => selectItem(item, v)"
|
|
|
/>
|
|
|
</span>
|
|
|
- <span class="table-data" v-for="(sub,idx) in tableHeadersFor3D" :key="idx">
|
|
|
- <div v-if="sub.type=='image'" class="list-img">
|
|
|
- <img :src="item.icon + (Number(item.fileSize)>512 ? $imgsuffix : ``)" alt="">
|
|
|
+ <span class="table-data">
|
|
|
+ <div class="list-img">
|
|
|
+ <img :src="item.icon + (Number(item.fileSize) > 512 ? $imgsuffix : ``)" alt="">
|
|
|
</div>
|
|
|
- <span class="ellipsis" v-else v-title="item.sceneTitle">{{item.sceneTitle}}</span>
|
|
|
+ </span>
|
|
|
+ <span class="table-data">
|
|
|
+ <span class="name ellipsis" v-title="item.sceneTitle">{{item.sceneTitle}}</span>
|
|
|
</span>
|
|
|
</div>
|
|
|
<div class="no-more-data">
|
|
@@ -158,16 +154,6 @@ export default {
|
|
|
...mapGetters([
|
|
|
'info',
|
|
|
]),
|
|
|
- tableHeadersForPano() {
|
|
|
- return this.$MAPTABLEHEADER['pano'].filter(item => {
|
|
|
- return ['icon', 'name'].includes(item.key)
|
|
|
- })
|
|
|
- },
|
|
|
- tableHeadersFor3D() {
|
|
|
- return this.$MAPTABLEHEADER['scene'].filter(item => {
|
|
|
- return ['thumb', 'sceneName'].includes(item.key)
|
|
|
- })
|
|
|
- },
|
|
|
panoList() {
|
|
|
return this.info.scenes.filter((item) => {
|
|
|
return item.type === 'pano'
|
|
@@ -358,18 +344,6 @@ export default {
|
|
|
background: #1A1B1D;
|
|
|
width: 100%;
|
|
|
height: @table-height;
|
|
|
- > .table-head-row {
|
|
|
- width: 100%;
|
|
|
- height: @table-head-row-height;
|
|
|
- background: #252526;
|
|
|
- color: rgba(255, 255, 255, 0.6);
|
|
|
- .table-head {
|
|
|
- font-size: 16px;
|
|
|
- line-height: @table-head-row-height;
|
|
|
- height: 100%;
|
|
|
- display: inline-block;
|
|
|
- }
|
|
|
- }
|
|
|
> .table-body {
|
|
|
height: calc(@table-height - @table-head-row-height - @table-border-size - @table-border-size);
|
|
|
overflow: auto;
|
|
@@ -402,6 +376,18 @@ export default {
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
}
|
|
|
+ > .name {
|
|
|
+ display: inline-block;
|
|
|
+ height: 100%;
|
|
|
+ width: 50%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ > .table-body-row:hover {
|
|
|
+ > .table-data {
|
|
|
+ > .name {
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.no-more-data {
|
|
@@ -445,11 +431,8 @@ export default {
|
|
|
width: calc(146px - 50px);
|
|
|
}
|
|
|
&:nth-of-type(3) {
|
|
|
- width: calc(380px - 146px);
|
|
|
- padding-right: 30px;
|
|
|
- }
|
|
|
- &:nth-of-type(4) {
|
|
|
- width: calc(100% - 380px);
|
|
|
+ width: calc(100% - 146px);
|
|
|
+ padding-right: 10px;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -463,11 +446,8 @@ export default {
|
|
|
width: calc(146px - 50px);
|
|
|
}
|
|
|
&:nth-of-type(3) {
|
|
|
- width: calc(380px - 146px);
|
|
|
- padding-right: 30px;
|
|
|
- }
|
|
|
- &:nth-of-type(4) {
|
|
|
- width: calc(100% - 380px);
|
|
|
+ width: calc(100% - 146px);
|
|
|
+ padding-right: 10px;
|
|
|
}
|
|
|
}
|
|
|
|