拆分详情新增

This commit is contained in:
caoyang
2022-03-29 15:16:04 +08:00
parent 3052d6e317
commit 19b9ce86f6
7 changed files with 719 additions and 317 deletions
+16 -7
View File
@@ -13,12 +13,12 @@
@change="tableOnChange"
>
<span slot="operation" slot-scope="record">
<a v-for="(ol,index) in OperationList"
@click="OperationClick(ol,record)">
<span class="text">
{{ol.text}}
</span>
</a>
<a v-for="(ol,index) in OperationList"
@click="OperationClick(ol,record)">
<span class="text">
{{ol.text}}
</span>
</a>
</span>
</a-table>
</div>
@@ -61,6 +61,10 @@
showAction: {
type: Boolean,
default: false
},
infoId: {
type:String,
default:''
}
},
data() {
@@ -129,7 +133,7 @@
})
if (res.click) {
this.columns[index].scopedSlots = {
customRender: 'detailClick'
customRender: 'showContent'
}
} else {
this.columns[index].scopedSlots = {
@@ -167,9 +171,11 @@
...this.searchParmes,
orderBy: this.orderBy,
orderByField: this.orderByField,
infoId:this.infoId,
pageNo: pageNo + '',
pageSize: pageSize + ''
}
console.log('parmsss',params)
this.loading = true
getAction(this.url.tableList, params).then((res) => {
if (res.success) {
@@ -204,6 +210,9 @@
},
detailClick(item, index) {
this.$emit('detailClick', item)
},
showContent(item, index) {
this.$emit('showContent', item)
}
}
}