[update] 52998

This commit is contained in:
zhaomeijing
2022-05-26 12:06:16 +08:00
parent c3024be4f0
commit bc944b30f3
+14 -12
View File
@@ -34,16 +34,11 @@
{{text && text.length > 18?text.slice(0,17)+'...':text}} {{text && text.length > 18?text.slice(0,17)+'...':text}}
</span> </span>
</span> </span>
<!-- <span slot="numberText" slot-scope="text,record">--> <span slot="detail" slot-scope="text,record">
<!-- <span class="text" :title="text">--> <a class="text" :title="text" @click="urlClick(text,record)">
<!-- {{text && text.length > 18?text.slice(0,17)+'...':text}}--> {{text}}
<!-- </span>--> </a>
<!-- </span>--> </span>
<!-- <span slot="titleText" slot-scope="text,record">-->
<!-- <span class="text" :title="text">-->
<!-- {{text && text.length > 18?text.slice(0,17)+'...':text}}-->
<!-- </span>-->
<!-- </span>-->
</a-table> </a-table>
</div> </div>
<div class="page" v-if="dataSource.length > 0"> <div class="page" v-if="dataSource.length > 0">
@@ -130,7 +125,9 @@
this.getTableList() this.getTableList()
}, },
methods: { methods: {
urlClick(text,record) {
this.$emit('detailClick', record)
},
getTextWith(text, fontStyle) { getTextWith(text, fontStyle) {
var canvas = document.createElement('canvas') var canvas = document.createElement('canvas')
var context = canvas.getContext('2d') var context = canvas.getContext('2d')
@@ -159,9 +156,14 @@
// scope.row.itermsConditions ? scope.row.itermsConditions.replace(/<.*?>/ig, ' ') : '' // scope.row.itermsConditions ? scope.row.itermsConditions.replace(/<.*?>/ig, ' ') : ''
} }
this.columns[index].scopedSlots = {
customRender: 'detailText'
}
if(res.db_field_txt === "编号" || res.db_field_txt === "标题" ){
this.columns[index].scopedSlots = { this.columns[index].scopedSlots = {
customRender: 'detailText' customRender: 'detail'
} }
}
}) })
let width = 0 let width = 0