152 lines
4.0 KiB
Vue
152 lines
4.0 KiB
Vue
![]() |
<template>
|
||
|
<div class="box">
|
||
|
<!-- 查询 -->
|
||
|
<div class="inquire">
|
||
|
<span>平台ID</span>
|
||
|
<el-input v-model="inquire.id" placeholder="" class="input"></el-input>
|
||
|
</div>
|
||
|
<!-- 查询按钮 -->
|
||
|
<el-button class="primary" type="primary" @click="getData()"
|
||
|
>查询</el-button
|
||
|
>
|
||
|
<!-- 表格 -->
|
||
|
<el-table
|
||
|
v-loading="loading"
|
||
|
:data="tableData"
|
||
|
border
|
||
|
style="width: 100%; margin-top: 25px"
|
||
|
>
|
||
|
<el-table-column prop="x" align="center" label="个人主页id" />
|
||
|
<el-table-column prop="x" align="center" label="个人主页名称" />
|
||
|
<el-table-column prop="x" align="center" label="用户uID" />
|
||
|
<el-table-column prop="x" align="center" label="用户昵称" />
|
||
|
<el-table-column prop="x" align="center" label="赠送天数" />
|
||
|
<el-table-column prop="x" align="center" label="备注" />
|
||
|
<el-table-column prop="x" align="center" label="操作时间" />
|
||
|
<el-table-column prop="x" align="center" label="操作人" />
|
||
|
<!-- <el-table-column align="center" label="操作" width="300">
|
||
|
<template v-slot="scope">
|
||
|
<el-button
|
||
|
@click="
|
||
|
operationDialog = true;
|
||
|
operationValue.partitionId = scope.row.x;
|
||
|
operationValue.nameZh = scope.row.x;
|
||
|
operationValue.nameEn = scope.row.x;
|
||
|
operationValue.nameAr = scope.row.x;
|
||
|
operationValue.nameTr = scope.row.x;
|
||
|
operationValue.price = scope.row.x;
|
||
|
operationValue.day = scope.row.x;
|
||
|
operationValue.imageUrl = scope.row.x;
|
||
|
operationValue.status = scope.row.x;
|
||
|
"
|
||
|
class="primary"
|
||
|
type="primary"
|
||
|
size="default"
|
||
|
>编辑</el-button
|
||
|
>
|
||
|
<el-button
|
||
|
@click="send()"
|
||
|
class="primary"
|
||
|
type="primary"
|
||
|
size="default"
|
||
|
>赠送</el-button
|
||
|
>
|
||
|
</template>
|
||
|
</el-table-column> -->
|
||
|
</el-table>
|
||
|
<!-- 分页 -->
|
||
|
<el-pagination
|
||
|
style="margin-top: 10px"
|
||
|
class="paginationClass"
|
||
|
v-model:current-page="currentPage"
|
||
|
v-model:page-size="pageSize"
|
||
|
:page-sizes="[10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 999999999]"
|
||
|
layout="sizes, prev, pager, next"
|
||
|
:total="total"
|
||
|
@size-change="handleSizeChange"
|
||
|
@current-change="handleCurrentChange"
|
||
|
/>
|
||
|
</div>
|
||
|
</template>
|
||
|
<script>
|
||
|
// import { } from "@/api/personalHomepageResourceManagement/personalHomepageResourceManagement";
|
||
|
// @ts-ignore
|
||
|
import { dateFormat } from "@/utils/system-helper";
|
||
|
// @ts-ignore
|
||
|
import { ElMessage } from "element-plus";
|
||
|
export default {
|
||
|
name: "personalHomepageGiftRecordManagement",
|
||
|
data() {
|
||
|
return {
|
||
|
loading: false,
|
||
|
//查询所需条件对象
|
||
|
inquire: {
|
||
|
id: "",
|
||
|
},
|
||
|
// 表格
|
||
|
tableData: [{ x: "x" }],
|
||
|
// 分页
|
||
|
total: 10, //总页数
|
||
|
currentPage: 1, //页码
|
||
|
pageSize: 10, //条数
|
||
|
};
|
||
|
},
|
||
|
created() {},
|
||
|
methods: {
|
||
|
// 查询接口
|
||
|
getData() {
|
||
|
this.loading = true;
|
||
|
// get({}).then((res) => {
|
||
|
// if (res.code == 200) {
|
||
|
// this.loading = false;
|
||
|
// } else {
|
||
|
// ElMessage({
|
||
|
// showClose: true,
|
||
|
// message: res.message,
|
||
|
// type: "error",
|
||
|
// });
|
||
|
// }
|
||
|
// });
|
||
|
},
|
||
|
// 分页导航
|
||
|
handleSizeChange() {
|
||
|
this.getData();
|
||
|
},
|
||
|
handleCurrentChange() {
|
||
|
this.getData();
|
||
|
},
|
||
|
},
|
||
|
};
|
||
|
</script>
|
||
|
<style lang="less" scoped>
|
||
|
.box {
|
||
|
padding-top: 20px;
|
||
|
background: #ecf0f5;
|
||
|
.inquire {
|
||
|
display: inline-block;
|
||
|
margin-right: 20px;
|
||
|
span {
|
||
|
margin-right: 10px;
|
||
|
}
|
||
|
.input {
|
||
|
width: 180px;
|
||
|
margin-right: 10px;
|
||
|
}
|
||
|
}
|
||
|
.dialogTableVisibleBut {
|
||
|
display: block;
|
||
|
margin: 30px 0 0 830px;
|
||
|
}
|
||
|
.paginationClass {
|
||
|
margin: 15px 0 5px 0px;
|
||
|
}
|
||
|
}
|
||
|
.operation {
|
||
|
margin-bottom: 20px;
|
||
|
width: 55%;
|
||
|
display: flex;
|
||
|
align-items: baseline;
|
||
|
justify-content: space-between;
|
||
|
}
|
||
|
</style>
|