后台前端修改

This commit is contained in:
linfeng 2022-12-15 16:04:42 +08:00
parent 1ef4e7a278
commit 7a65ecad0b
8 changed files with 3 additions and 129 deletions

View File

@ -37,9 +37,6 @@
</el-upload> </el-upload>
<p class="formInfo">建议尺寸100*100像素jpgpng图片类型</p> <p class="formInfo">建议尺寸100*100像素jpgpng图片类型</p>
</el-form-item> </el-form-item>
<!-- <el-form-item label="图片" prop="coverImage">
<el-input v-model="dataForm.coverImage" placeholder="图片"></el-input>
</el-form-item> -->
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button> <el-button @click="visible = false">取消</el-button>

View File

@ -1,11 +1,7 @@
<template> <template>
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<!-- <el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item> -->
<el-form-item> <el-form-item>
<!-- <el-button @click="getDataList()">查询</el-button> -->
<el-button v-if="isAuth('admin:category:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('admin:category:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('admin:category:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> <el-button v-if="isAuth('admin:category:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item> </el-form-item>

View File

@ -7,9 +7,6 @@
<el-form-item label="父级id" prop="pid"> <el-form-item label="父级id" prop="pid">
<el-input v-model="dataForm.pid" placeholder="父级id"></el-input> <el-input v-model="dataForm.pid" placeholder="父级id"></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="评论类型:1帖子" prop="type">
<el-input v-model="dataForm.type" placeholder="评论类型:1帖子"></el-input>
</el-form-item> -->
<el-form-item label="评论作者ID" prop="uid"> <el-form-item label="评论作者ID" prop="uid">
<el-input v-model="dataForm.uid" placeholder="评论作者ID"></el-input> <el-input v-model="dataForm.uid" placeholder="评论作者ID"></el-input>
</el-form-item> </el-form-item>

View File

@ -29,12 +29,6 @@
align="center" align="center"
label="父级id"> label="父级id">
</el-table-column> </el-table-column>
<!-- <el-table-column
prop="type"
header-align="center"
align="center"
label="评论类型:1帖子">
</el-table-column> -->
<el-table-column <el-table-column
prop="uid" prop="uid"
header-align="center" header-align="center"

View File

@ -3,7 +3,7 @@
:title="!dataForm.id ? '新增' : '修改'" :title="!dataForm.id ? '新增' : '修改'"
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="visible"> :visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<el-form-item label="浏览量" prop="readCount"> <el-form-item label="浏览量" prop="readCount">
<el-input v-model="dataForm.readCount" placeholder="浏览量"></el-input> <el-input v-model="dataForm.readCount" placeholder="浏览量"></el-input>
@ -46,50 +46,7 @@
createTime: '', createTime: '',
status:'', status:'',
}, },
dataRule: {
uid: [
{ required: true, message: '用户id不能为空', trigger: 'blur' }
],
topicId: [
{ required: true, message: '圈子id不能为空', trigger: 'blur' }
],
discussId: [
{ required: true, message: '话题id不能为空', trigger: 'blur' }
],
voteId: [
{ required: true, message: '投票id不能为空', trigger: 'blur' }
],
title: [
{ required: true, message: '标题不能为空', trigger: 'blur' }
],
content: [
{ required: true, message: '内容不能为空', trigger: 'blur' }
],
media: [
{ required: true, message: '文件不能为空', trigger: 'blur' }
],
readCount: [
{ required: true, message: '浏览量不能为空', trigger: 'blur' }
],
postTop: [
{ required: true, message: '置顶不能为空', trigger: 'blur' }
],
type: [
{ required: true, message: '帖子类型1 图文 2视频 3文章4投票不能为空', trigger: 'blur' }
],
address: [
{ required: true, message: '地址名称不能为空', trigger: 'blur' }
],
longitude: [
{ required: true, message: '经度不能为空', trigger: 'blur' }
],
latitude: [
{ required: true, message: '纬度不能为空', trigger: 'blur' }
],
createTime: [
{ required: true, message: '创建时间不能为空', trigger: 'blur' }
]
}
} }
}, },
methods: { methods: {

View File

@ -25,14 +25,6 @@
<el-button @click="getDataList()">查询</el-button> <el-button @click="getDataList()">查询</el-button>
<el-button @click="refresh()">重置</el-button> <el-button @click="refresh()">重置</el-button>
<!-- <el-button
v-if="isAuth('admin:post:delete')"
type="danger"
@click="statusHandle()"
:disabled="dataListSelections.length <= 0"
>批量审核</el-button
> -->
<el-button <el-button
v-if="isAuth('admin:post:delete')" v-if="isAuth('admin:post:delete')"
type="danger" type="danger"
@ -115,9 +107,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
<el-tag v-if="scope.row.type == 1" type="success">图文</el-tag> <el-tag v-if="scope.row.type == 1" type="success">图文</el-tag>
<el-tag v-else-if="scope.row.type == 2" type="warning">视频</el-tag> <el-tag v-else type="danger">未知</el-tag>
<el-tag v-else-if="scope.row.type == 3" type="info">文章</el-tag>
<el-tag v-else type="danger">投票</el-tag>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -262,14 +252,12 @@
> >
</span> </span>
</el-dialog> </el-dialog>
<el-dialog <el-dialog
title="图片预览" title="图片预览"
:visible.sync="dialogVisible2" :visible.sync="dialogVisible2"
width="60%" width="60%"
:before-close="handleClose" :before-close="handleClose"
> >
<div class="position">图片展示</div> <div class="position">图片展示</div>
<div class="images"> <div class="images">
<div v-for="(item, index) in media" :key="index" class="image-middle"> <div v-for="(item, index) in media" :key="index" class="image-middle">

View File

@ -1,11 +1,7 @@
<template> <template>
<div class="mod-config"> <div class="mod-config">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<!-- <el-form-item>
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
</el-form-item> -->
<el-form-item> <el-form-item>
<!-- <el-button @click="getDataList()">查询</el-button> -->
<el-button v-if="isAuth('admin:system:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button> <el-button v-if="isAuth('admin:system:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
<el-button v-if="isAuth('admin:system:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button> <el-button v-if="isAuth('admin:system:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
</el-form-item> </el-form-item>

View File

@ -4,69 +4,18 @@
:close-on-click-modal="false" :close-on-click-modal="false"
:visible.sync="visible"> :visible.sync="visible">
<el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> <el-form :model="dataForm" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
<!-- <el-form-item label="手机号" prop="mobile">
<el-input v-model="dataForm.mobile" placeholder="手机号"></el-input>
</el-form-item>
<el-form-item label="用户名" prop="username">
<el-input v-model="dataForm.username" placeholder="用户名"></el-input>
</el-form-item> -->
<!-- <el-form-item label="密码" prop="password">
<el-input v-model="dataForm.password" placeholder="密码"></el-input>
</el-form-item> -->
<!-- <el-form-item label="用户组" prop="groupId">
<el-input v-model="dataForm.groupId" placeholder="用户组"></el-input>
</el-form-item>
<el-form-item label="头像" prop="avatar">
<el-input v-model="dataForm.avatar" placeholder="头像"></el-input>
</el-form-item>
<el-form-item label="性别(0未知1男2女)" prop="gender">
<el-input v-model="dataForm.gender" placeholder="性别(0未知1男2女)"></el-input>
</el-form-item>
<el-form-item label="省份" prop="province">
<el-input v-model="dataForm.province" placeholder="省份"></el-input>
</el-form-item>
<el-form-item label="城市" prop="city">
<el-input v-model="dataForm.city" placeholder="城市"></el-input>
</el-form-item>
<el-form-item label="小程序openid" prop="openid">
<el-input v-model="dataForm.openid" placeholder="小程序openid"></el-input>
</el-form-item>
<el-form-item label="公众号openid" prop="mpOpenid">
<el-input v-model="dataForm.mpOpenid" placeholder="公众号openid"></el-input>
</el-form-item>
<el-form-item label="unionid" prop="unionid">
<el-input v-model="dataForm.unionid" placeholder="unionid"></el-input>
</el-form-item> -->
<el-form-item label="状态" prop="status"> <el-form-item label="状态" prop="status">
<el-radio-group v-model="dataForm.status"> <el-radio-group v-model="dataForm.status">
<el-radio :label="1">禁用</el-radio> <el-radio :label="1">禁用</el-radio>
<el-radio :label="0">正常</el-radio> <el-radio :label="0">正常</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- <el-form-item label="个性签名" prop="intro">
<el-input v-model="dataForm.intro" placeholder="个性签名"></el-input>
</el-form-item>
<el-form-item label="积分" prop="integral">
<el-input v-model="dataForm.integral" placeholder="积分"></el-input>
</el-form-item>
<el-form-item label="最后登录ip" prop="lastLoginIp">
<el-input v-model="dataForm.lastLoginIp" placeholder="最后登录ip"></el-input>
</el-form-item>
<el-form-item label="用户标签" prop="tagStr">
<el-input v-model="dataForm.tagStr" placeholder="用户标签"></el-input>
</el-form-item> -->
<el-form-item label="类型" prop="type"> <el-form-item label="类型" prop="type">
<el-radio-group v-model="dataForm.type"> <el-radio-group v-model="dataForm.type">
<el-radio :label="1">官方账号</el-radio> <el-radio :label="1">官方账号</el-radio>
<el-radio :label="0">普通用户</el-radio> <el-radio :label="0">普通用户</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<!-- <el-form-item label="更新时间" prop="updateTime">
<el-input v-model="dataForm.updateTime" placeholder="更新时间"></el-input>
</el-form-item>
<el-form-item label="创建时间" prop="createTime">
<el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
</el-form-item> -->
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="visible = false">取消</el-button> <el-button @click="visible = false">取消</el-button>