样式优化,取消部分管理员权限

This commit is contained in:
axlrose2333 2023-03-23 00:24:29 +08:00
parent f2825083ee
commit 3f94ece6d4
3 changed files with 59 additions and 4 deletions

View File

@ -2,8 +2,8 @@ ENV = 'development'
VITE_CLI_PORT = 8088
VITE_SERVER_PORT = 8888
VITE_BASE_API = /api
VITE_BASE_PATH = http://192.168.1.133
//VITE_BASE_PATH = https://admin.api.gwkjxb.com
//VITE_BASE_PATH = http://192.168.1.133
VITE_BASE_PATH = http://122.9.143.61
VITE_EDITOR = vscode
// VITE_EDITOR = webstorm 如果使用webstorm开发且要使用dom定位到代码行功能 请先自定添加 webstorm到环境变量 再将VITE_EDITOR值修改为webstorm
// 如果使用docker-compose开发模式设置为下面的地址或本机主机IP

View File

@ -263,6 +263,26 @@ async function drawStateFunc(row,type) { //竞拍上架 下架
},
})
}
//
const viewParams = ref({
id:0,
type:1,
current_page:1,
page_size:10,
sort:'desc'
})
const dialogViewVisible = ref(false)
const viewInfo = ref({})
const view_total = ref(0)
async function viewAuctionFunc(row) { //
viewParams.value.id = row.id
dialogViewVisible.value = true
const res = await api.viewAutionDetail(viewParams.value)
if(res.code === 0) {
view_total.value = res.data.total
viewInfo.value = res.data.list
}
}
</script>
<template>
<div>
@ -354,6 +374,13 @@ async function drawStateFunc(row,type) { //竞拍上架 下架
link
@click="editDrawFunc(scope.row)"
>编辑</el-button>
<el-button
icon="view"
size="small"
type="primary"
link
@click="viewAuctionFunc(scope.row)"
>明细</el-button>
<el-button
icon="delete"
size="small"
@ -479,6 +506,32 @@ async function drawStateFunc(row,type) { //竞拍上架 下架
</div>
</template>
</el-drawer>
<!-- 查看明细窗口-->
<el-dialog v-model="dialogViewVisible" :before-close="closeViewDialog" title="竞拍明细">
<el-table :data="viewInfo" border >
<el-table-column align="center" label="ID" prop="id" />
<el-table-column align="center" label="用户名称" prop="name" />
<el-table-column align="center" label="投注积分" prop="point" />
<el-table-column align="center" label="是否中标" prop="status" />
<el-table-column align="center" label="参与时间" prop="CreatedAt" />
</el-table>
<div class="gva-pagination">
<el-pagination
:current-page="viewParams.current_page"
:page-size="viewParams.pageSize"
:page-sizes="[10, 30, 50, 100]"
:total="view_total"
layout="total, sizes, prev, pager, next, jumper"
@current-change="handleCurrentChange"
@size-change="handleSizeChange"
/>
</div>
<template #footer>
<div class="dialog-footer">
<el-button size="small" @click="closeViewDialog"> </el-button>
</div>
</template>
</el-dialog>
</div>
</template>
<style scoped lang="scss">

View File

@ -302,7 +302,7 @@ function getProvinceName(province) {
</el-popover>
</div>
<!-- 数据列表-->
<el-table :data="tableData" @selection-change="handleSelectionChange">
<el-table border :data="tableData" @selection-change="handleSelectionChange">
<!-- <el-table-column-->
<!-- type="selection"-->
<!-- width="55"-->
@ -428,7 +428,9 @@ function getProvinceName(province) {
<style scoped lang="scss">
.avatar-css{
height: 100px;
width: 150px;
width: 100px;
border-radius: 50%;
overflow: hidden;
}
.e-img{
width: 150px;