修改三期优化点

This commit is contained in:
sunFlower
2022-09-28 17:08:53 +08:00
parent 4ae0d27077
commit e3527900fd
@@ -52,10 +52,14 @@
<span style="color: #21c9cc"
:class="{'content-box-box-text-admin':!item2.lableName || item2.lableName == 'null' || item2.lableName == 'undefined'? true : false}"
class="content-box-box-text content-box-box-text-index"
@click="viewFileClick(item2.lableName)"
v-else-if="item2.lableType == 7 && item2.lableName && index2 != 0">
{{$t('viewFile')}}
<!-- <span v-if="item2.lableName && item2.lableName.split(',').length == 1">-->
<!-- <span class="file-text">{{item2.lableName}}</span>-->
<!-- <a-icon @click="download(item2)" type="download" class="icon-text"/>-->
<!-- </span>-->
<span @click="viewFileClick(item2.lableName)">
{{$t('viewFile')}}
</span>
</span>
<span class="content-box-box-text content-box-box-text-index"
v-else-if="item2.lableType != 7 && !item2.lableName && index2 != 0"
@@ -97,6 +101,7 @@
import displayInformationModel from './displayInformationModel'
import countryCardViewAdd from './countryCardViewAdd'
import viewFileModel from '@/components/viewFileModel/index'
import { mapGetters } from 'vuex'
export default {
name: 'countryCardView',
@@ -131,6 +136,7 @@
})
},
methods: {
...mapGetters(['userInfo']),
displayInformationClick() {
this.$refs.displayInformationModelRef.getData(JSON.parse(JSON.stringify(this.displayList)))
},
@@ -142,6 +148,9 @@
newlyAddedClick() {
this.$refs.countryCardViewAddRef.add(this.countryCardViewList)
},
download(item) {
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username })
},
countryCardViewAddForm(val) {
this.countryCardViewList = JSON.parse(JSON.stringify(val))
let content = []
@@ -473,4 +482,21 @@
vertical-align: middle;
border-style: none;
}
.file-text {
width: calc(100% - 30px);
display: inline-block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
float: left;
}
.icon-text {
width: 30px;
display: inline-block;
overflow: hidden;
float: left;
margin-top: 21px;
}
</style>