页面bug

This commit is contained in:
menxipeng
2025-09-30 20:22:42 +08:00
parent c00eb734e2
commit b8c87e3bce
3 changed files with 14 additions and 14 deletions

View File

@@ -89,7 +89,7 @@
<el-table v-loading="loading" :data="notificationsList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="notificationsList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="ID" align="center" prop="id" />
<el-table-column label="通知标题" align="center" prop="title" /> <el-table-column label="通知标题" align="center" prop="title" />
<el-table-column label="通知内容" align="center" prop="content" :show-overflow-tooltip="true" /> <el-table-column label="通知内容" align="center" prop="content" :show-overflow-tooltip="true" />
<el-table-column label="通知类型" align="center" prop="notificationType"> <el-table-column label="通知类型" align="center" prop="notificationType">
@@ -225,20 +225,20 @@
<el-table-column label="手机号码" align="center" prop="phone" /> <el-table-column label="手机号码" align="center" prop="phone" />
<el-table-column label="性别" align="center" prop="sex"> <el-table-column label="性别" align="center" prop="sex">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.sex === 1"></span> <span v-if="scope.row.sex === '1'"></span>
<span v-else-if="scope.row.sex === 2"></span> <span v-else-if="scope.row.sex === '2'"></span>
<span v-else>未知</span> <span v-else>未知</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="状态" align="center" prop="status"> <el-table-column label="状态" align="center" prop="status">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.status === 1" type="success">正常</el-tag> <el-tag v-if="scope.row.status === '1'" type="success">正常</el-tag>
<el-tag v-else-if="scope.row.status === 2" type="danger">黑名单</el-tag> <el-tag v-else-if="scope.row.status === '2'" type="danger">黑名单</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="VIP" align="center" prop="vip"> <el-table-column label="VIP" align="center" prop="vip">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag v-if="scope.row.vip === 1" type="warning">VIP</el-tag> <el-tag v-if="scope.row.vip === '1'" type="warning">VIP</el-tag>
<span v-else>普通用户</span> <span v-else>普通用户</span>
</template> </template>
</el-table-column> </el-table-column>
@@ -341,7 +341,7 @@ export default {
// 创建查询参数副本排除sendTime参数 // 创建查询参数副本排除sendTime参数
const params = { ...this.queryParams } const params = { ...this.queryParams }
delete params.sendTime delete params.sendTime
listNotifications(params).then(response => { listNotifications(params).then(response => {
this.notificationsList = response.rows this.notificationsList = response.rows
this.total = parseInt(response.total) || 0 this.total = parseInt(response.total) || 0
@@ -375,7 +375,7 @@ export default {
this.queryParams.findStart = null this.queryParams.findStart = null
this.queryParams.findEnd = null this.queryParams.findEnd = null
} }
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
this.getList() this.getList()
}, },
@@ -430,7 +430,7 @@ export default {
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids const ids = row.id || this.ids
let confirmMessage = '' let confirmMessage = ''
if (row && row.title) { if (row && row.title) {
// 单个删除,显示通知标题 // 单个删除,显示通知标题
confirmMessage = `是否确认删除通知"${row.title}"` confirmMessage = `是否确认删除通知"${row.title}"`
@@ -444,7 +444,7 @@ export default {
confirmMessage = `是否确认删除以下通知:${titles}` confirmMessage = `是否确认删除以下通知:${titles}`
} }
} }
this.$modal.confirm(confirmMessage).then(function() { this.$modal.confirm(confirmMessage).then(function() {
return delNotifications(ids) return delNotifications(ids)
}).then(() => { }).then(() => {

View File

@@ -21,12 +21,12 @@
</el-row> </el-row>
<el-table v-loading="loading" :data="userList"> <el-table v-loading="loading" :data="userList">
<el-table-column label="用户id" align="center" prop="id" width="80" />
<el-table-column label="手机号" align="center" prop="phone" width="120" /> <el-table-column label="手机号" align="center" prop="phone" width="120" />
<el-table-column label="昵称" align="center" prop="nickname" :show-overflow-tooltip="true" /> <el-table-column label="昵称" align="center" prop="nickname" :show-overflow-tooltip="true" />
<el-table-column label="性别" align="center" prop="gender" width="60"> <el-table-column label="性别" align="center" prop="sex" width="60">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.gender === '1' ? '男' : scope.row.gender === '2' ? '女' : '未知' }}</span> <span>{{ scope.row.sex === '1' ? '男' : scope.row.sex === '2' ? '女' : '未知' }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="生日" align="center" prop="birthday" width="100"> <el-table-column label="生日" align="center" prop="birthday" width="100">

View File

@@ -11,7 +11,7 @@ const name = process.env.VUE_APP_TITLE || '音乐APP后台管理系统' // 网
// const baseUrl = 'http://localhost:8080' // 后端接口 // const baseUrl = 'http://localhost:8080' // 后端接口
// const baseUrl = 'http://60.205.107.210:8080' // 后端接口 // const baseUrl = 'http://60.205.107.210:8080' // 后端接口
const baseUrl = 'http://192.168.31.240:8080' // 后端接口 const baseUrl = 'http://localhost:8080' // 后端接口
const port = process.env.port || process.env.npm_config_port || 80 // 端口 const port = process.env.port || process.env.npm_config_port || 80 // 端口