详情弹窗
This commit is contained in:
@@ -85,13 +85,31 @@
|
|||||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
||||||
<el-table-column slot="options" label="操作" align="center">
|
<el-table-column slot="options" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
<!-- <el-button type="text" @click="handleDelete(row.id)">调整积分</el-button> -->
|
<el-button type="text" @click="open(row.id)">详情</el-button>
|
||||||
<el-button type="text" @click="toAdd(row.id)">详情</el-button>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</ai-table>
|
</ai-table>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
|
|
||||||
|
<el-dialog title="详情" :visible.sync="dialog" customFooter width="700">
|
||||||
|
<ai-detail>
|
||||||
|
<template #content>
|
||||||
|
<ai-wrapper>
|
||||||
|
<ai-info-item label="户主"/>
|
||||||
|
<ai-info-item label="对象"/>
|
||||||
|
<ai-info-item label="事件" isLine/>
|
||||||
|
<ai-info-item label="时间" isLine/>
|
||||||
|
<ai-info-item label="积分"/>
|
||||||
|
<ai-info-item label="积分余额"/>
|
||||||
|
<ai-info-item label="凭证" isLine></ai-info-item>
|
||||||
|
</ai-wrapper>
|
||||||
|
</template>
|
||||||
|
</ai-detail>
|
||||||
|
<span slot="footer" class="dialog-footer" center>
|
||||||
|
<el-button @click="dialog = false">关闭</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -120,7 +138,8 @@ export default {
|
|||||||
girdList: [],
|
girdList: [],
|
||||||
time: '',
|
time: '',
|
||||||
timeCheck: ['昨日','近7天','近30天','自定义'],
|
timeCheck: ['昨日','近7天','近30天','自定义'],
|
||||||
currrntTime: '0'
|
currrntTime: '0',
|
||||||
|
dialog: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -272,6 +291,17 @@ export default {
|
|||||||
timeChange(index) {
|
timeChange(index) {
|
||||||
this.currrntTime = index
|
this.currrntTime = index
|
||||||
},
|
},
|
||||||
|
open(id) {
|
||||||
|
this.dialog = true
|
||||||
|
this.getDetail(id)
|
||||||
|
},
|
||||||
|
getDetail(id) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getColEcherts1()
|
this.getColEcherts1()
|
||||||
@@ -281,6 +311,7 @@ export default {
|
|||||||
window.removeEventListener('resize', this.onResize1)
|
window.removeEventListener('resize', this.onResize1)
|
||||||
window.removeEventListener('resize', this.onResize2)
|
window.removeEventListener('resize', this.onResize2)
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -390,5 +421,14 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
::v-deep .el-dialog__footer {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
::v-deep .el-dialog__header {
|
||||||
|
border-bottom: 1px solid #DDD;
|
||||||
|
}
|
||||||
|
::v-deep .ai-detail {
|
||||||
|
background: #FFF;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user