后台前端修改
This commit is contained in:
parent
1ef4e7a278
commit
7a65ecad0b
@ -37,9 +37,6 @@
|
||||
</el-upload>
|
||||
<p class="formInfo">建议尺寸:100*100像素,jpg、png图片类型</p>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="图片" prop="coverImage">
|
||||
<el-input v-model="dataForm.coverImage" placeholder="图片"></el-input>
|
||||
</el-form-item> -->
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
|
@ -1,11 +1,7 @@
|
||||
<template>
|
||||
<div class="mod-config">
|
||||
<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-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:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
||||
</el-form-item>
|
||||
|
@ -7,9 +7,6 @@
|
||||
<el-form-item label="父级id" prop="pid">
|
||||
<el-input v-model="dataForm.pid" placeholder="父级id"></el-input>
|
||||
</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-input v-model="dataForm.uid" placeholder="评论作者ID"></el-input>
|
||||
</el-form-item>
|
||||
|
@ -29,12 +29,6 @@
|
||||
align="center"
|
||||
label="父级id">
|
||||
</el-table-column>
|
||||
<!-- <el-table-column
|
||||
prop="type"
|
||||
header-align="center"
|
||||
align="center"
|
||||
label="评论类型:1帖子">
|
||||
</el-table-column> -->
|
||||
<el-table-column
|
||||
prop="uid"
|
||||
header-align="center"
|
||||
|
@ -3,7 +3,7 @@
|
||||
:title="!dataForm.id ? '新增' : '修改'"
|
||||
:close-on-click-modal="false"
|
||||
: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-input v-model="dataForm.readCount" placeholder="浏览量"></el-input>
|
||||
@ -46,50 +46,7 @@
|
||||
createTime: '',
|
||||
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: {
|
||||
|
@ -25,14 +25,6 @@
|
||||
|
||||
<el-button @click="getDataList()">查询</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
|
||||
v-if="isAuth('admin:post:delete')"
|
||||
type="danger"
|
||||
@ -115,9 +107,7 @@
|
||||
<template slot-scope="scope">
|
||||
<div>
|
||||
<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-if="scope.row.type == 3" type="info">文章</el-tag>
|
||||
<el-tag v-else type="danger">投票</el-tag>
|
||||
<el-tag v-else type="danger">未知</el-tag>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -262,14 +252,12 @@
|
||||
>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog
|
||||
title="图片预览"
|
||||
:visible.sync="dialogVisible2"
|
||||
width="60%"
|
||||
:before-close="handleClose"
|
||||
>
|
||||
|
||||
<div class="position">图片展示</div>
|
||||
<div class="images">
|
||||
<div v-for="(item, index) in media" :key="index" class="image-middle">
|
||||
|
@ -1,11 +1,7 @@
|
||||
<template>
|
||||
<div class="mod-config">
|
||||
<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-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:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
||||
</el-form-item>
|
||||
|
@ -4,69 +4,18 @@
|
||||
:close-on-click-modal="false"
|
||||
:visible.sync="visible">
|
||||
<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-radio-group v-model="dataForm.status">
|
||||
<el-radio :label="1">禁用</el-radio>
|
||||
<el-radio :label="0">正常</el-radio>
|
||||
</el-radio-group>
|
||||
</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-radio-group v-model="dataForm.type">
|
||||
<el-radio :label="1">官方账号</el-radio>
|
||||
<el-radio :label="0">普通用户</el-radio>
|
||||
</el-radio-group>
|
||||
</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>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="visible = false">取消</el-button>
|
||||
|
Loading…
Reference in New Issue
Block a user