|
@@ -393,6 +393,7 @@ export default {
|
|
|
historicDetail
|
|
|
},
|
|
|
data() {
|
|
|
+ let ellipsis = (v, l ) => <j-ellipsis value={v} length={l} /> // 省略
|
|
|
return {
|
|
|
columns: [],
|
|
|
selectText: '全选',
|
|
@@ -632,6 +633,11 @@ export default {
|
|
|
// })
|
|
|
// }
|
|
|
},
|
|
|
+ getSubstring(e){
|
|
|
+ // this.ellipsis(e,l)
|
|
|
+ return <j-ellipsis value={e} length='5' />
|
|
|
+ // <j-ellipsis value={e} length={l} />
|
|
|
+ },
|
|
|
handleMenuClick_comm(e) {
|
|
|
if (this.checkedColumn.length === 0) {
|
|
|
this.$message.info('请至少勾选一项!')
|
|
@@ -641,6 +647,7 @@ export default {
|
|
|
this.visible = false
|
|
|
if (this.checkedColumn.length > 0) {
|
|
|
let selectedColumns = this.tableColumns.map(item => {
|
|
|
+ item.customRender=this.getSubstring;
|
|
|
//判断是否页面临时处理字段
|
|
|
let isscopedSlots = '1'
|
|
|
if (item.scopedSlots) {
|
|
@@ -668,7 +675,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
this.selectedColumns = _.cloneDeep([...selectedColumns.filter(item => item !== null)])
|
|
|
- // console.log(this.tableColumns)
|
|
|
}
|
|
|
//显示列记录保存到数据库
|
|
|
let dataObject = {
|
|
@@ -859,6 +865,9 @@ export default {
|
|
|
this.checkedColumn.push(t.key)
|
|
|
}
|
|
|
})
|
|
|
+ this.selectedColumns.map(item=>{
|
|
|
+ item.customRender=this.getSubstring;
|
|
|
+ })
|
|
|
})
|
|
|
//加载数据 若传入参数1则加载第一页的内容
|
|
|
if (arg === 1) {
|