修改文档详情
This commit is contained in:
@@ -26,8 +26,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span slot="detailClick" slot-scope="text,record,ol">
|
<span slot="detailClick" slot-scope="text,record">
|
||||||
<a class="text" @click="detailClick(record,ol)">{{text}}</a>
|
<a class="text" @click="detailClick(record)">{{text}}</a>
|
||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
@@ -98,10 +98,12 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.searchParmes = search
|
this.searchParmes = search
|
||||||
|
this.getData()
|
||||||
this.getTableList()
|
this.getTableList()
|
||||||
})
|
})
|
||||||
eventBUs.$on('searchReset', target => {
|
eventBUs.$on('searchReset', target => {
|
||||||
this.searchParmes = {}
|
this.searchParmes = {}
|
||||||
|
this.getData()
|
||||||
this.getTableList()
|
this.getTableList()
|
||||||
})
|
})
|
||||||
this.getData()
|
this.getData()
|
||||||
@@ -129,9 +131,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
let width
|
let width = 0
|
||||||
if (this.OperationList.length > 0) {
|
if (this.OperationList.length > 0) {
|
||||||
width = this.OperationList.length * 55
|
this.OperationList.forEach((res) => {
|
||||||
|
width += res.text.length * 8 + width
|
||||||
|
})
|
||||||
}
|
}
|
||||||
if (this.showAction) {
|
if (this.showAction) {
|
||||||
this.columns.push({
|
this.columns.push({
|
||||||
@@ -184,11 +188,9 @@
|
|||||||
OperationClick(ol, item) {
|
OperationClick(ol, item) {
|
||||||
this.$emit(ol.ClickEvent, item)
|
this.$emit(ol.ClickEvent, item)
|
||||||
},
|
},
|
||||||
detailClick(item,index){
|
detailClick(item, index) {
|
||||||
console.log(item)
|
this.$emit('detailClick',item)
|
||||||
console.log(index)
|
}
|
||||||
// this.$emit('detailClick',item)
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user