|
|
@@ -30,7 +30,22 @@
|
|
|
}}
|
|
|
</div>
|
|
|
</template>
|
|
|
+ <template v-slot:tbOpreation="scope">
|
|
|
+ <el-button size="small" type="text" @click="openDetail(scope.data.data)">{{ $t("查看明细") }}</el-button>
|
|
|
+ </template>
|
|
|
</basicLayout>
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ :visible.sync="detailVisible"
|
|
|
+ :title="$t('积分明细')"
|
|
|
+ width="70%"
|
|
|
+ append-to-body
|
|
|
+ >
|
|
|
+ <el-table :data="detailData" border stripe style="width: 100%" max-height="500">
|
|
|
+ <el-table-column v-for="col in detailLayout" :key="col.columnname" :prop="col.columnname" :label="$t(col.title)" :min-width="col.width || 150" show-overflow-tooltip>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -44,6 +59,10 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
columns: [],
|
|
|
+ detailVisible: false,
|
|
|
+ detailData: [],
|
|
|
+ detailLayout: [],
|
|
|
+ currentRow: null,
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -61,6 +80,23 @@ export default {
|
|
|
this.columns = this.$refs.list.columns;
|
|
|
this.$refs.list.listData();
|
|
|
},
|
|
|
+ async openDetail(row) {
|
|
|
+ this.currentRow = row;
|
|
|
+ this.detailVisible = true;
|
|
|
+ const res = await this.$api.requested({
|
|
|
+ id: 2026052510110906,
|
|
|
+ content: {
|
|
|
+ pageSize: 20,
|
|
|
+ pageNumber: 1,
|
|
|
+ pageSorting: "",
|
|
|
+ userid: row.userid,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ if (res.data) {
|
|
|
+ this.detailData = res.data || [];
|
|
|
+ this.detailLayout = this.tool.tabelCol(this.$route.name)['detailTable'].tablecols
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|