持续集成分支
This commit is contained in:
@@ -0,0 +1,169 @@
|
||||
<template>
|
||||
<div class="document-flow">
|
||||
<AiTopFixed>
|
||||
<header class="pad">
|
||||
<u-search placeholder="请输入公文名称" v-model="documentName" @clear="documentName='',getList()" @search="getList"
|
||||
clearabled :show-action="false" height="64"></u-search>
|
||||
</header>
|
||||
</AiTopFixed>
|
||||
<div class="list pad" v-if="list.length">
|
||||
<div class="card" v-for="(item,index) in list" :key="index" @click="handleClick(item)">
|
||||
<u-row>
|
||||
<em v-if="item.redStatus==0"></em>
|
||||
<span>{{ item.documentName }}</span>
|
||||
</u-row>
|
||||
<u-gap height="16"></u-gap>
|
||||
<u-row>
|
||||
<label>公文类型:</label>
|
||||
<text style="color: #1365DD;">{{ $dict.getLabel("officialDocumentName", item.documentType) }}</text>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<label>登记人:</label>
|
||||
<text>{{ item.createUserName }}</text>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<label>登记日期:</label>
|
||||
<text>{{ item.createTime }}</text>
|
||||
</u-row>
|
||||
<img :src=" $cdn + tag(item.readType)" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty v-else></AiEmpty>
|
||||
<u-loadmore :status="status" v-if="list.length"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "AppDocumentFlow",
|
||||
appName: "公文流转",
|
||||
data() {
|
||||
return {
|
||||
documentName: "",
|
||||
current: 1,
|
||||
list: [],
|
||||
status: "加载更多"
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.$dict.load("officialDocumentName")
|
||||
uni.$on('updateList', () => {
|
||||
this.current = 1
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
tag(status) {
|
||||
return {
|
||||
"0": 'common/1ps.png',
|
||||
"1": 'common/2cy.png'
|
||||
}[status]
|
||||
},
|
||||
getList() {
|
||||
this.$http.post("/app/appofficialdocumentinfo/appList", null, {
|
||||
params: {
|
||||
documentName: this.documentName,
|
||||
size: 10,
|
||||
current: this.current
|
||||
}
|
||||
}).then(res => {
|
||||
if (res && res.data) {
|
||||
if (this.current > 1 && this.current > res.data.pages) {
|
||||
this.status = "已经到底啦"
|
||||
}
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
handleClick({id}) {
|
||||
uni.navigateTo({
|
||||
url: "./detail?id=" + id
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.getList()
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current = this.current + 1;
|
||||
this.getList()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.document-flow {
|
||||
min-height: 100%;
|
||||
background: #F5F5F5;
|
||||
|
||||
::v-deep .content {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
header {
|
||||
height: 112px;
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.list {
|
||||
margin: 32px 0;
|
||||
|
||||
.card {
|
||||
background: #FFFFFF;
|
||||
border-radius: 8px;
|
||||
box-sizing: border-box;
|
||||
padding: 32px;
|
||||
position: relative;
|
||||
margin-bottom: 32px;
|
||||
|
||||
.u-row {
|
||||
flex-wrap: nowrap !important;
|
||||
}
|
||||
|
||||
em {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background-color: #FF4466;
|
||||
font-style: normal;
|
||||
margin-right: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 32px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 30px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
text {
|
||||
font-size: 30px;
|
||||
color: #343D65;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pad {
|
||||
box-sizing: border-box;
|
||||
padding: 32px 32px 0 32px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
88
library/project/shandong10086/AppDocumentFlow/approval.vue
Normal file
88
library/project/shandong10086/AppDocumentFlow/approval.vue
Normal file
@@ -0,0 +1,88 @@
|
||||
<template>
|
||||
<div class="approval">
|
||||
<div class="card">
|
||||
<header>批示意见</header>
|
||||
<textarea placeholder="请输入批示意见" v-model.trim="description" maxlength="200"></textarea>
|
||||
<u-row justify="between">
|
||||
<span @click="description=''">清空内容</span>
|
||||
<span>{{ description.length || 0 }}/200</span>
|
||||
</u-row>
|
||||
</div>
|
||||
<u-button type="primary" @click="submit">提交</u-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "approval",
|
||||
data() {
|
||||
return {
|
||||
id: null,
|
||||
description: ""
|
||||
}
|
||||
},
|
||||
onLoad(opt) {
|
||||
this.id = opt.id
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
this.$http.post("/app/appofficialdocumentinfo/instructionById", null, {
|
||||
params: {
|
||||
id: this.id,
|
||||
description: this.description
|
||||
}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast("批示成功")
|
||||
uni.navigateBack({})
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.approval {
|
||||
background: #F5F5F5;
|
||||
|
||||
.card {
|
||||
background-color: #FFFFFF;
|
||||
box-sizing: border-box;
|
||||
padding: 32px;
|
||||
|
||||
header {
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
margin-bottom: 16px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
span:first-child {
|
||||
font-size: 28px;
|
||||
color: #1365DD;
|
||||
}
|
||||
|
||||
span:last-child {
|
||||
font-size: 24px;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
|
||||
.u-btn {
|
||||
width: 100%;
|
||||
height: 112px !important;
|
||||
font-size: 32px;
|
||||
color: #FFFFFF;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background: #197DF0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
452
library/project/shandong10086/AppDocumentFlow/detail.vue
Normal file
452
library/project/shandong10086/AppDocumentFlow/detail.vue
Normal file
@@ -0,0 +1,452 @@
|
||||
<template>
|
||||
<div class="detail">
|
||||
<AiSelectEnterprise :visible.sync="userSelect" v-if="userSelect" :multiple="false"
|
||||
@change="change"/>
|
||||
<template v-else>
|
||||
<div class="card">
|
||||
<header>{{ detail.documentName }}</header>
|
||||
<u-gap height="16"></u-gap>
|
||||
<u-row>
|
||||
<span>公文编号:</span>
|
||||
<span>{{ detail.documentCode }}</span>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<span>公文类型:</span>
|
||||
<span>{{ $dict.getLabel("officialDocumentName", detail.documentType) }}</span>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<span>紧急程度:</span>
|
||||
<span
|
||||
:style="{color:$dict.getColor('documentEmergencyLevel',detail.emergencyLevel)}">{{
|
||||
$dict.getLabel("documentEmergencyLevel", detail.emergencyLevel)
|
||||
}}</span>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<span>发文机关:</span>
|
||||
<span>{{ detail.issuingUnit }}</span>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<span>发文字号:</span>
|
||||
<span>{{ detail.issuingFont }}</span>
|
||||
</u-row>
|
||||
<u-gap height="8"></u-gap>
|
||||
<u-row>
|
||||
<span>签发人:</span>
|
||||
<span>{{ detail.signer }}</span>
|
||||
</u-row>
|
||||
<u-gap height="16"></u-gap>
|
||||
<img v-if="detail.confidentialityLevel" :src="$cdn + tag(detail.confidentialityLevel)" alt="">
|
||||
</div>
|
||||
<div class="card" style="margin-bottom: 0;padding-top: 0">
|
||||
<div class="label">备注</div>
|
||||
<span>{{ detail.remark }}</span>
|
||||
</div>
|
||||
<div class="card" style="padding-top: 0" v-if="detail.files && detail.files.length">
|
||||
<div class="label">相关附件</div>
|
||||
<div class="file" v-for="(item,index) in detail.files" :key="index" @click="preFile(item)">
|
||||
<u-row justify="between">
|
||||
<label class="left">
|
||||
<img :src="$cdn + 'common/appendix.png'" alt="">
|
||||
<span>{{ item.fileName }}.{{ item.postfix }}</span>
|
||||
</label>
|
||||
<span>{{ (item.size / 1024).toFixed(2) }}KB</span>
|
||||
</u-row>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="label">{{ detail.readType == 0 ? "流转信息" : "传阅情况" }}
|
||||
<em>({{ $dict.getLabel("documentStatus", detail.status) }})</em></div>
|
||||
<div class="progress">
|
||||
<div class="item" v-for="(item,index) in detail.flowUsers" :key="index">
|
||||
<div class="avatar">{{ item.flowUserName && item.flowUserName.substr(-2) }}</div>
|
||||
<div class="right">
|
||||
<u-row justify="between">
|
||||
<text class="status" :style="{color:item.readStatus==1?'#FF8822':'#1365DD'}">{{
|
||||
$dict.getLabel(detail.readType == 1 ? "readingStatus" :
|
||||
"documentFlowStatus", detail.readType == 0 ? item.flowStatus : item.readStatus)
|
||||
}}
|
||||
</text>
|
||||
<text class="date">{{ item.flowTime }}</text>
|
||||
</u-row>
|
||||
<u-row justify="between">
|
||||
<text class="name">{{ item.flowUserName }}</text>
|
||||
</u-row>
|
||||
<u-row justify="between">
|
||||
<text class="note">{{ item.description }}</text>
|
||||
</u-row>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer" v-if="detail.flowRight==1 && detail.readType==0">
|
||||
<div @click="handleClick(0)">批示</div>
|
||||
<div @click="handleClick(1)" style="background-color: #1365DD;color: #FFFFFF">流转</div>
|
||||
<div @click="end()" style="background-color: #f46;color: #FFFFFF">结束</div>
|
||||
</div>
|
||||
<div class="footer" v-if="detail.readType==1 && detail.flowRight==1" @click="read"
|
||||
style="background-color: #1365DD;color: #FFFFFF">我已阅完
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapActions} from "vuex";
|
||||
|
||||
export default {
|
||||
name: "detail",
|
||||
data() {
|
||||
return {
|
||||
id: null,
|
||||
detail: {},
|
||||
userSelect: false,
|
||||
}
|
||||
},
|
||||
|
||||
onLoad(opt) {
|
||||
this.id = opt.id
|
||||
this.$dict.load("officialDocumentName", "documentEmergencyLevel", "documentStatus", "readingStatus", "documentFlowStatus").then(() => {
|
||||
this.getDetail()
|
||||
// this.read()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
...mapActions(['previewFile', 'injectJWeixin']),
|
||||
read() {
|
||||
this.$http.post("/app/appofficialdocumentinfo/readById", null, {
|
||||
params: {
|
||||
id: this.id
|
||||
}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.$u.toast("已阅读")
|
||||
this.getDetail()
|
||||
}
|
||||
})
|
||||
},
|
||||
preFile(e) {
|
||||
if ([".jpg", ".png", ".gif"].includes(e.postfix.toLowerCase())) {
|
||||
uni.previewImage({
|
||||
current: e.url,
|
||||
urls: [e.url]
|
||||
})
|
||||
} else {
|
||||
this.previewFile({...e})
|
||||
}
|
||||
},
|
||||
change(e) {
|
||||
this.$http.post("/app/appofficialdocumentinfo/flowById", null, {
|
||||
params: {
|
||||
flowUserId: e[0].id,
|
||||
flowUserName: e[0].name,
|
||||
id: this.id,
|
||||
avatar: e[0].avatar,
|
||||
flag: 0
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast("流转成功")
|
||||
this.getDetail()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
tag(status) {
|
||||
return {
|
||||
"0": "common/mm.png",
|
||||
"1": "common/jm.png",
|
||||
"2": "common/tm.png"
|
||||
}[status]
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post("/app/appofficialdocumentinfo/queryDetailById", null, {
|
||||
params: {
|
||||
id: this.id,
|
||||
flag: 1
|
||||
}
|
||||
}).then(res => {
|
||||
if (res && res.data) {
|
||||
this.detail = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
handleClick(status) {
|
||||
if (status == 0) {
|
||||
uni.navigateTo({
|
||||
url: "./approval?id=" + this.id
|
||||
})
|
||||
} else {
|
||||
this.userSelect = true
|
||||
}
|
||||
},
|
||||
end() {
|
||||
this.$confirm('确定结束该公文流转?').then(() => {
|
||||
this.$http.post(`/app/appofficialdocumentinfo/finishById?id=${this.id}`).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$u.toast('操作成功')
|
||||
uni.$emit('updateList')
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
})
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = "公文详情"
|
||||
this.getDetail()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.detail {
|
||||
min-height: 100%;
|
||||
background-color: #F5F5F5;
|
||||
padding-bottom: 140px;
|
||||
position: relative;
|
||||
|
||||
.card {
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 8px;
|
||||
box-sizing: border-box;
|
||||
padding: 16px 32px;
|
||||
position: relative;
|
||||
|
||||
header {
|
||||
font-size: 40px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
line-height: 64px;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.u-row {
|
||||
& > div {
|
||||
background-color: #2266FF;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
font-size: 22px;
|
||||
font-weight: bold;
|
||||
color: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
& > span:first-child {
|
||||
font-size: 30px;
|
||||
color: #999999;;
|
||||
line-height: 48px;
|
||||
}
|
||||
|
||||
& > span:last-child {
|
||||
font-size: 30px;
|
||||
color: #343D65;
|
||||
margin-left: 16px;
|
||||
line-height: 48px;
|
||||
}
|
||||
}
|
||||
|
||||
& > img {
|
||||
width: 190px;
|
||||
height: 190px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 74px;
|
||||
}
|
||||
|
||||
& > span {
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
line-height: 48px;
|
||||
letter-spacing: 1px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.label {
|
||||
height: 80px;
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
|
||||
& > em {
|
||||
font-style: normal;
|
||||
font-size: 32px;
|
||||
color: #1365DD;
|
||||
}
|
||||
}
|
||||
|
||||
.file {
|
||||
height: 128px;
|
||||
background: #FFFFFF;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #CCCCCC;
|
||||
box-sizing: border-box;
|
||||
padding: 0 16px;
|
||||
margin-bottom: 32px;
|
||||
|
||||
& > .u-row {
|
||||
height: 100%;
|
||||
|
||||
.left {
|
||||
width: 500px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
& > img {
|
||||
flex-shrink: 0;
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
}
|
||||
|
||||
& > span {
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
display: inline-block;
|
||||
line-height: 44px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
}
|
||||
|
||||
& > span {
|
||||
font-size: 28px;
|
||||
color: #999999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.active {
|
||||
background-color: #F3F6F9;
|
||||
}
|
||||
|
||||
.progress {
|
||||
margin-top: 8px;
|
||||
|
||||
.item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
min-height: 136px;
|
||||
margin-bottom: 80px;
|
||||
|
||||
.avatar {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 50%;
|
||||
background-color: #2266FF;
|
||||
font-size: 28px;
|
||||
color: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.right {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
& > .u-row {
|
||||
margin-left: 40px;
|
||||
|
||||
.status {
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.date {
|
||||
font-size: 28px;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 28px;
|
||||
color: #666666;
|
||||
margin: 8px 0;
|
||||
}
|
||||
|
||||
.note {
|
||||
font-size: 28px;
|
||||
color: #343D65;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:after {
|
||||
content: "";
|
||||
width: 4px;
|
||||
height: 100%;
|
||||
background-color: #EEEEEE;
|
||||
position: absolute;
|
||||
left: 40px;
|
||||
top: 112px;
|
||||
}
|
||||
|
||||
&:last-child:after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.footer {
|
||||
height: 112px;
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
background-color: #FFFFFF;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 36px;
|
||||
|
||||
& > div {
|
||||
color: #333333;
|
||||
flex: 1;
|
||||
height: 112px;
|
||||
text-align: center;
|
||||
line-height: 112px;
|
||||
}
|
||||
|
||||
// & > div:first-child {
|
||||
// width: 50%;
|
||||
// height: 100%;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// }
|
||||
|
||||
// & > div:last-child {
|
||||
// width: 50%;
|
||||
// height: 100%;
|
||||
// color: #FFFFFF;
|
||||
// display: flex;
|
||||
// align-items: center;
|
||||
// justify-content: center;
|
||||
// background-color: #1365DD;
|
||||
// }
|
||||
|
||||
& > label {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: #1365DD;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,64 @@
|
||||
<template>
|
||||
<div class="AppVillagersCircle">
|
||||
<div class="banner" v-for="(item, index) in bannerList" :key="index" @click="linkTo(item.linkUrl)">
|
||||
<img :src="item.img" alt="">
|
||||
<p>{{item.title}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'AppVillagersCircle',
|
||||
appName: '村民圈审核',
|
||||
data() {
|
||||
return {
|
||||
bannerList: [
|
||||
{
|
||||
img: require('./img/blue.png'),
|
||||
title: '发布信息审核',
|
||||
linkUrl: './infoList'
|
||||
},
|
||||
{
|
||||
img: require('./img/green.png'),
|
||||
title: '评论审核',
|
||||
linkUrl: './commentList'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '村民圈审核'
|
||||
},
|
||||
methods: {
|
||||
linkTo(url) {
|
||||
uni.navigateTo({url})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppVillagersCircle{
|
||||
height: 100%;
|
||||
padding-top: 16px;
|
||||
.banner{
|
||||
padding: 32px 40px 0;
|
||||
position: relative;
|
||||
img{
|
||||
width: 100%;
|
||||
height: 228px;
|
||||
}
|
||||
p{
|
||||
position: absolute;
|
||||
top: 120px;
|
||||
left: 88px;
|
||||
font-size: 44px;
|
||||
font-family: PingFang-SC-Heavy, PingFang-SC;
|
||||
font-weight: 800;
|
||||
color: #FFF;
|
||||
line-height: 60px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
98
library/project/shandong10086/AppVillagersCircle/Reject.vue
Normal file
98
library/project/shandong10086/AppVillagersCircle/Reject.vue
Normal file
@@ -0,0 +1,98 @@
|
||||
<template>
|
||||
<div class="Reject">
|
||||
<div class="text-area">
|
||||
<div class="title"><span style="color:#FF4466;">*</span>不通过理由</div>
|
||||
<textarea placeholder="请输入" maxlength="200" v-model="value"></textarea>
|
||||
<div style="color:#999;text-align:right;">{{value.length}}/200</div>
|
||||
</div>
|
||||
<div class="footer" @click="submit">
|
||||
<div class="btn">保存</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "Reject",
|
||||
data() {
|
||||
return {
|
||||
value: '',
|
||||
id: '',
|
||||
pass: '', // 0 驳回发布信息 1 驳回发布评论
|
||||
flag: '', // 0 驳回信息 1 驳回评论
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
document.title = '评论审核'
|
||||
},
|
||||
onLoad(o) {
|
||||
this.id = o.id
|
||||
this.pass = o.pass
|
||||
this.flag = o.flag
|
||||
},
|
||||
methods: {
|
||||
submit() {
|
||||
if(!this.value) {
|
||||
return this.$u.toast('请输入不通过理由')
|
||||
}
|
||||
let url = ['/app/appvillagercircleinfo/examine','/app/appvillagercirclecomment/examine']
|
||||
this.$http.post(url[this.flag],null, {
|
||||
params: {
|
||||
id: this.id,
|
||||
pass: this.pass,
|
||||
opinion: this.value
|
||||
}
|
||||
}).then(() => {
|
||||
this.$u.toast('保存成功')
|
||||
uni.$emit('update')
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack({delta: 2})
|
||||
},600)
|
||||
})
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.Reject {
|
||||
.text-area{
|
||||
padding: 34px 32px;
|
||||
background-color: #fff;
|
||||
.title{
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #333;
|
||||
line-height: 44px;
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
textarea{
|
||||
width: 100%;
|
||||
height: 500px;
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
.footer {
|
||||
width: 100%;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
.btn {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #FFF;
|
||||
}
|
||||
.line-bg {
|
||||
width: 100%;
|
||||
height: 16px;
|
||||
background: #F5F5F5;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,281 @@
|
||||
<template>
|
||||
<div class="commentDetail">
|
||||
<div class="avatar-info">
|
||||
<div class="avatar-img">
|
||||
<img :src="data.villagerCircleInfo.avatarUrl" alt="" v-if="data.villagerCircleInfo && data.villagerCircleInfo.avatarUrl" >
|
||||
<img src="img/tx@2x.png" alt="" v-else>
|
||||
</div>
|
||||
<div class="avatar-title">
|
||||
<div class="name" v-if="data.villagerCircleInfo && data.villagerCircleInfo.createUserName">
|
||||
{{ data.villagerCircleInfo.createUserName }}
|
||||
</div>
|
||||
<div class="time">
|
||||
<span v-if="data.villagerCircleInfo && data.villagerCircleInfo.topic">{{ $dict.getLabel('villagerCircleTopic',data.villagerCircleInfo.topic) }}</span>
|
||||
<span>|</span>
|
||||
<span v-if="data.villagerCircleInfo && data.villagerCircleInfo.createTime">{{ data.villagerCircleInfo.createTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="textarea" v-if="data.villagerCircleInfo && data.villagerCircleInfo.content">{{ data.villagerCircleInfo.content }}</div>
|
||||
<div style="background: #FFFFFF; padding:0 30px; box-sizing: border-box;padding-bottom: 20px;" v-if="data.villagerCircleInfo && data.villagerCircleInfo.pictures">
|
||||
<img :src="item.url" alt="" v-for="(item, i) in data.villagerCircleInfo.pictures" :key="i" @click="previewImage(data.villagerCircleInfo.pictures, item.url)" class="upLoadPic" />
|
||||
</div>
|
||||
<div class="address" v-if="data.villagerCircleInfo && data.villagerCircleInfo.gpsDesc">
|
||||
<span class="addr-bg">
|
||||
<img src="img/address.png" alt="">
|
||||
<span v-if="data.villagerCircleInfo && data.villagerCircleInfo.gpsDesc">{{ data.villagerCircleInfo.gpsDesc }}</span>
|
||||
</span>
|
||||
</div>
|
||||
<div class="comment" v-if="data.content">
|
||||
<div class="comment-list">
|
||||
<div class="title">评论:</div>
|
||||
<div class="item">
|
||||
<span class="avatar">{{ data.replyUserName }}</span><span>:</span><span>{{ data.content }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 通过 -->
|
||||
<div class="readOnly" v-if="data.status ==1 ">
|
||||
<div class="item">
|
||||
<div>审核结果</div>
|
||||
<div>通过</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>审核人</div>
|
||||
<div>{{ data.auditUserName }}</div>
|
||||
</div>
|
||||
<div class="item last">
|
||||
<div>审核时间</div>
|
||||
<div>{{ data.auditTime }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 不通过 -->
|
||||
<div class="readOnly" v-if="data.status ==2">
|
||||
<div class="item">
|
||||
<div>审核结果</div>
|
||||
<div>不通过</div>
|
||||
</div>
|
||||
<div class="item nopass">
|
||||
<div>不通过理由</div>
|
||||
<div class="textarea">{{ data.auditOpinion }}</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>审核人</div>
|
||||
<div>{{ data.auditUserName }}</div>
|
||||
</div>
|
||||
<div class="item last">
|
||||
<div>审核时间</div>
|
||||
<div>{{ data.auditTime }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="height: 56px;"></div>
|
||||
|
||||
<div class="btn" v-if="data.status == 0">
|
||||
<div class="reject" @click="toReject">驳回发布</div>
|
||||
<div class="agree" @click="agree">同意发布</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'commentDetail',
|
||||
data() {
|
||||
return {
|
||||
files: [],
|
||||
status: 0,
|
||||
id: '',
|
||||
data: {},
|
||||
flag: 1
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
this.$dict.load('villagerCircleTopic').then(()=>{
|
||||
this.id = o.id
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
previewImage(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appvillagercirclecomment/queryDetailById?id=${this.id}`).then(res => {
|
||||
if(res?.data){
|
||||
this.data = res.data
|
||||
this.$forceUpdate()
|
||||
}
|
||||
})
|
||||
},
|
||||
toReject() {
|
||||
uni.navigateTo({url: `./Reject?id=${this.data.id}&pass=0&flag=1`})
|
||||
},
|
||||
agree() {
|
||||
this.$http.post('/app/appvillagercirclecomment/examine',null, {
|
||||
params: {
|
||||
id: this.id,
|
||||
pass: 1,
|
||||
}
|
||||
}).then(() => {
|
||||
// this.$u.toast('发布成功')
|
||||
uni.$emit('update')
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack()
|
||||
},600)
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = "评论审核"
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.commentDetail {
|
||||
.avatar-info {
|
||||
display: flex;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
background: #FFFFFF;
|
||||
.avatar-img {
|
||||
margin-right: 20px;
|
||||
img {
|
||||
margin-top: 30px;
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.avatar-title {
|
||||
padding: 30px 32px;
|
||||
box-sizing: border-box;
|
||||
.name {
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.time {
|
||||
font-size: 26px;
|
||||
color: #999999;
|
||||
span {
|
||||
padding: 0 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.textarea {
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
font-size: 32px;
|
||||
background: #FFFFFF;
|
||||
padding-bottom: 40px;
|
||||
color: #333333;
|
||||
}
|
||||
.address {
|
||||
background: #FFFFFF;
|
||||
padding: 20px 32px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.addr-bg {
|
||||
display: inline-block;
|
||||
border-radius: 28px;
|
||||
padding: 6px 20px;
|
||||
background: #EFF1F3;
|
||||
|
||||
img {
|
||||
padding-top: 5px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
span {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
}
|
||||
.comment {
|
||||
padding: 0 32px 30px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #FFFFFF;
|
||||
|
||||
.comment-list {
|
||||
padding: 20px 30px;
|
||||
background: #F7F8F9;
|
||||
border-radius: 16px;
|
||||
.title {
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
}
|
||||
.item {
|
||||
font-size: 28px;
|
||||
padding: 10px 0;
|
||||
.avatar {
|
||||
color: #576a91;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.readOnly {
|
||||
font-size: 32px;
|
||||
.item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: #FFFFFF;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
padding: 30px 30px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.textarea {
|
||||
width: 100%;
|
||||
padding: 30px 0 0 0 ;
|
||||
color: #333333;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.nopass {
|
||||
flex-direction: column;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
}
|
||||
.last {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
.upLoadPic {
|
||||
width: 204px;
|
||||
height:204px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.upLoadPic:nth-child(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.btn {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
.reject {
|
||||
width: 50%;
|
||||
color: #FF4466;
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
}
|
||||
.agree {
|
||||
width: 50%;
|
||||
color: #FFFFFF;
|
||||
background: #3975C6;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
266
library/project/shandong10086/AppVillagersCircle/commentList.vue
Normal file
266
library/project/shandong10086/AppVillagersCircle/commentList.vue
Normal file
@@ -0,0 +1,266 @@
|
||||
<template>
|
||||
<div class="commentList">
|
||||
<!-- tab栏 -->
|
||||
<div style="position: fixed; top: 0; left: 0;width: 100%;">
|
||||
<div class="area">
|
||||
<div>区域选择</div>
|
||||
<div>
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="changeArea" :name.sync="areaName">
|
||||
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else>请选择</span>
|
||||
<u-icon name="arrow-right" color="#666" size="28" style="margin-left: 4px" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<div class="integral-types" @click="showType = true">
|
||||
<span>{{ topicType? topicType:'话题类型' }}</span>
|
||||
<u-icon name="arrow-down"></u-icon></div>
|
||||
<u-search placeholder="请输入发布内容/评论人" v-model="content" :show-action="false" @search="getList()" @clear="getList()"></u-search>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 列表 -->
|
||||
<div class="card-list" v-if="data.length">
|
||||
<div class="card-item" v-for="(item,index) in data" :key="index" @click="toDetail(item)">
|
||||
<div class="card-title" v-if="item.villagerCircleInfo && item.villagerCircleInfo.content">{{ item.villagerCircleInfo.content }}</div>
|
||||
<div class="card-name">
|
||||
<div class="name" v-if="item.villagerCircleInfo && item.villagerCircleInfo.topic">{{$dict.getLabel('villagerCircleTopic',item.villagerCircleInfo.topic)}}</div>
|
||||
<div class="time" v-if="item.villagerCircleInfo && item.villagerCircleInfo.createTime">{{ item.villagerCircleInfo.createTime }}</div>
|
||||
</div>
|
||||
<div class="card-type">
|
||||
<div class="comment">
|
||||
<span>{{ item.replyUserName}}</span><span>:</span><span>{{ item.content }}</span>
|
||||
</div>
|
||||
<div class="type" :style="{color: item.status==0? '#4181FF':item.status==1? '#07c160' : '#dd5347'}">{{$dict.getLabel('auditStatus',item.status)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" v-else style="padding-top: 150px;"></AiEmpty>
|
||||
<u-select v-model="showType" :list="list" label-name="dictName" value-name="dictValue"
|
||||
@confirm="confirmTypeSelect"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: 'commentList',
|
||||
data () {
|
||||
return {
|
||||
tabs: ['全部', '待处理', '已处理'],
|
||||
tabIndex: '',
|
||||
showType: false,
|
||||
content: '',
|
||||
current: 1,
|
||||
topic: '',
|
||||
topicType: '',
|
||||
data: [],
|
||||
list:[],
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
|
||||
this.getList()
|
||||
uni.$on('update',()=>{
|
||||
this.current = 1
|
||||
this.getList()
|
||||
})
|
||||
})
|
||||
let all = [{ dictName: '全部', dictValue: '', dictColor: null }]
|
||||
this.list = [...all, ...this.$dict.getDict('villagerCircleTopic')]
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
methods: {
|
||||
tabClick(index) {
|
||||
this.tabIndex = index
|
||||
this.current = 1,
|
||||
this.topic = '',
|
||||
this.topicType = '',
|
||||
this.data = [],
|
||||
this.getList()
|
||||
},
|
||||
changeArea(e) {
|
||||
this.areaId = e,
|
||||
this.getList()
|
||||
},
|
||||
confirmTypeSelect(e) {
|
||||
this.topic = e[0].value,
|
||||
this.topicType = e[0].label
|
||||
this.current = 1,
|
||||
this.data = [],
|
||||
this.getList()
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.$http.post('/app/appvillagercirclecomment/list',null,{
|
||||
params: {
|
||||
current: this.current,
|
||||
topic:this.topic,
|
||||
content: this.content,
|
||||
auditType: this.tabIndex==0? '': this.tabIndex==1? 0 : 1,
|
||||
areaId: this.areaId,
|
||||
}
|
||||
}).then(res=>{
|
||||
if(res?.data) {
|
||||
this.data = this.current >1 ? [...this.data, ...res.data.records]:res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./commentDetail?id=${item.id}`})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '发布评论审核'
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current ++,
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.commentList {
|
||||
.area {
|
||||
display:flex;
|
||||
justify-content:space-between;
|
||||
padding: 0 30px;
|
||||
height: 80px;
|
||||
line-height: 80px;
|
||||
background: #FFFF;
|
||||
}
|
||||
.tab-select {
|
||||
width: 100%;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
background: #FFF;
|
||||
display: flex;
|
||||
|
||||
.item{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #333;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.active{
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
color: #3975C6;
|
||||
span{
|
||||
width: 48px;
|
||||
height: 4px;
|
||||
background: #3975C6;
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
left: 50%;
|
||||
margin-left: -24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search-box {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
background-color: #FFFFFF;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.integral-types {
|
||||
display: flex;
|
||||
width: 180px;
|
||||
white-space:nowrap;
|
||||
justify-content:flex-start;
|
||||
margin-right: 20px;
|
||||
span {
|
||||
display: block;
|
||||
width:160px;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
}
|
||||
u-icon {
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-list {
|
||||
width: 100%;
|
||||
padding: 280px 32px 20px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #f5f5f5;
|
||||
|
||||
.card-item {
|
||||
margin-top: 24px;
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0px 0px 16px 16px rgba(0, 0, 0, 0.04);
|
||||
border-radius: 16px;
|
||||
padding: 30px 32px 20px 32px;
|
||||
|
||||
.card-title {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
font-size: 36px;
|
||||
color: #333333;
|
||||
overflow:hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow:ellipsis;
|
||||
}
|
||||
|
||||
.card-name {
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
font-size: 28px;
|
||||
color: #999999;
|
||||
|
||||
.name {
|
||||
padding: 0 15px;
|
||||
background: #EEEEEE;
|
||||
border-radius: 24px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.card-type {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 30px;
|
||||
font-size: 28px;
|
||||
|
||||
.comment {
|
||||
width: 70%;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
}
|
||||
|
||||
.type {
|
||||
width: 20%;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
library/project/shandong10086/AppVillagersCircle/img/address.png
Normal file
BIN
library/project/shandong10086/AppVillagersCircle/img/address.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 915 B |
BIN
library/project/shandong10086/AppVillagersCircle/img/blue.png
Normal file
BIN
library/project/shandong10086/AppVillagersCircle/img/blue.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
BIN
library/project/shandong10086/AppVillagersCircle/img/green.png
Normal file
BIN
library/project/shandong10086/AppVillagersCircle/img/green.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
BIN
library/project/shandong10086/AppVillagersCircle/img/tx@2x.png
Normal file
BIN
library/project/shandong10086/AppVillagersCircle/img/tx@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.2 KiB |
274
library/project/shandong10086/AppVillagersCircle/infoDetail.vue
Normal file
274
library/project/shandong10086/AppVillagersCircle/infoDetail.vue
Normal file
@@ -0,0 +1,274 @@
|
||||
<template>
|
||||
<div class="infoDetail" v-if="showPage">
|
||||
<div class="avatar-info">
|
||||
<div class="avatar-img">
|
||||
<img :src="data.avatarUrl" alt="" v-if="data.avatarUrl">
|
||||
<img src="img/tx@2x.png" alt="" v-else>
|
||||
</div>
|
||||
<div class="avatar-title">
|
||||
<div class="name">
|
||||
{{ data.createUserName }}
|
||||
</div>
|
||||
<div class="time">
|
||||
<span>{{ $dict.getLabel('villagerCircleTopic',data.topic) }}</span>
|
||||
<span>|</span>
|
||||
<span>{{ data.createTime }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="textarea">{{ data.content }}</div>
|
||||
<div style="background: #FFFFFF; padding:0 15px; box-sizing: border-box;padding-bottom: 20px;">
|
||||
<img :src="item.url" alt="" v-for="(item, i) in data.pictures" :key="i" @click="previewImage(data.pictures, item.url)" class="upLoadPic"/>
|
||||
</div>
|
||||
<div class="address" v-if="data.gpsDesc">
|
||||
<span class="addr-bg">
|
||||
<img src="img/address.png" alt="">
|
||||
<span>{{ data.gpsDesc }}</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="readOnly" v-if="data.status ==1">
|
||||
<div class="item">
|
||||
<div>审核结果</div>
|
||||
<div>通过</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>审核人</div>
|
||||
<div>{{ data.auditUserName }}</div>
|
||||
</div>
|
||||
<div class="item last">
|
||||
<div>审核时间</div>
|
||||
<div>{{ data.auditTime }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="readOnly" v-if="data.status ==2">
|
||||
<div class="item">
|
||||
<div>审核结果</div>
|
||||
<div>不通过</div>
|
||||
</div>
|
||||
<div class="item nopass">
|
||||
<div>不通过理由</div>
|
||||
<div class="textarea">{{ data.auditOpinion }}</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div>审核人</div>
|
||||
<div>{{ data.auditUserName }}</div>
|
||||
</div>
|
||||
<div class="item last">
|
||||
<div>审核时间</div>
|
||||
<div>{{ data.auditTime }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="height: 100px;"></div>
|
||||
|
||||
<div class="btn" v-if="data.status == 0">
|
||||
<div class="reject" @click="toReject">驳回发布</div>
|
||||
<div class="agree" @click="agree">同意发布</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'infoDetail',
|
||||
data() {
|
||||
return {
|
||||
files: [],
|
||||
status: 0,
|
||||
id: '',
|
||||
data: {},
|
||||
flag: 0,
|
||||
showPage: false,
|
||||
}
|
||||
},
|
||||
onLoad(o) {
|
||||
this.$dict.load('villagerCircleTopic').then(()=>{
|
||||
this.id = o.id
|
||||
this.getDetail()
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
previewImage(images, img) {
|
||||
uni.previewImage({
|
||||
urls: images.map(v => v.url),
|
||||
current: img
|
||||
})
|
||||
},
|
||||
getDetail() {
|
||||
this.$http.post(`/app/appvillagercircleinfo/queryDetailById?id=${this.id}`).then(res => {
|
||||
if(res.code==0){
|
||||
this.data = res.data
|
||||
this.showPage = true
|
||||
}
|
||||
})
|
||||
},
|
||||
toReject() {
|
||||
uni.navigateTo({url: `./Reject?id=${this.data.id}&pass=0&flag=0`})
|
||||
},
|
||||
agree() {
|
||||
this.$http.post('/app/appvillagercircleinfo/examine',null, {
|
||||
params: {
|
||||
id: this.id,
|
||||
pass: 1,
|
||||
}
|
||||
}).then(() => {
|
||||
// this.$u.toast('发布成功')
|
||||
uni.$emit('update')
|
||||
setTimeout(()=>{
|
||||
uni.navigateBack()
|
||||
},600)
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = "发布信息审核"
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.infoDetail {
|
||||
.avatar-info {
|
||||
display: flex;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
background: #FFFFFF;
|
||||
.avatar-img {
|
||||
margin-right: 20px;
|
||||
img {
|
||||
margin-top: 30px;
|
||||
width: 88px;
|
||||
height: 88px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
.avatar-title {
|
||||
padding: 30px 32px;
|
||||
box-sizing: border-box;
|
||||
.name {
|
||||
font-size: 32px;
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.time {
|
||||
font-size: 26px;
|
||||
color: #999999;
|
||||
span {
|
||||
padding: 0 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.textarea {
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
font-size: 32px;
|
||||
background: #FFFFFF;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.address {
|
||||
background: #FFFFFF;
|
||||
padding: 20px 32px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.addr-bg {
|
||||
display: inline-block;
|
||||
border-radius: 28px;
|
||||
padding: 6px 20px;
|
||||
background: #EFF1F3;
|
||||
|
||||
img {
|
||||
padding-top: 5px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
span {
|
||||
vertical-align: top;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
.comment {
|
||||
padding: 0 32px 30px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #FFFFFF;
|
||||
|
||||
.comment-list {
|
||||
padding: 20px 30px;
|
||||
background: #F7F8F9;
|
||||
border-radius: 16px;
|
||||
.title {
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
}
|
||||
.item {
|
||||
font-size: 28px;
|
||||
.avatar {
|
||||
color: #576a91;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.readOnly {
|
||||
font-size: 32px;
|
||||
.item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: #FFFFFF;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
padding: 30px 30px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.textarea {
|
||||
width: 100%;
|
||||
padding: 30px 0 0 0 ;
|
||||
color: #999999;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
}
|
||||
.nopass {
|
||||
flex-direction: column;
|
||||
border-bottom: 1px solid #D8DDE6;
|
||||
}
|
||||
.last {
|
||||
border-bottom: none;
|
||||
}
|
||||
}
|
||||
.upLoadPic {
|
||||
width: 220px;
|
||||
height:220px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.upLoadPic:nth-child(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.btn {
|
||||
display: flex;
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
.reject {
|
||||
width: 50%;
|
||||
color: #FF4466;
|
||||
background: #FFFFFF;
|
||||
text-align: center;
|
||||
}
|
||||
.agree {
|
||||
width: 50%;
|
||||
color: #FFFFFF;
|
||||
background: #3975C6;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
272
library/project/shandong10086/AppVillagersCircle/infoList.vue
Normal file
272
library/project/shandong10086/AppVillagersCircle/infoList.vue
Normal file
@@ -0,0 +1,272 @@
|
||||
<template>
|
||||
<div class="infoList">
|
||||
<!-- tab栏 -->
|
||||
<div style="position: fixed; top: 0; left: 0;width: 100%;">
|
||||
<div class="area">
|
||||
<div>区域选择</div>
|
||||
<div>
|
||||
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="changeArea" :name.sync="areaName" selectRoot>
|
||||
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
|
||||
<span v-else>请选择</span>
|
||||
<u-icon name="arrow-right" color="#666" size="28" style="margin-left: 4px" />
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
|
||||
</div>
|
||||
<div class="search-box">
|
||||
<div class="integral-types" @click="showType = true">
|
||||
<span>{{ topicType? topicType:'话题类型' }}</span>
|
||||
<u-icon name="arrow-down"></u-icon></div>
|
||||
<u-search placeholder="请输入标题/发布人" v-model="content" :show-action="false" @search="getList()" @clear="getList()"></u-search>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 列表 -->
|
||||
<div class="card-list" v-if="villagerList.length">
|
||||
<div class="card-item" v-for="(item,index) in villagerList" :key="index" @click="toDetail(item)">
|
||||
<div class="card-title">{{ item.content }}</div>
|
||||
<div class="card-name">
|
||||
<div class="name">{{$dict.getLabel('villagerCircleTopic',item.topic)}}</div>
|
||||
<div class="time">{{ item.createTime }}</div>
|
||||
</div>
|
||||
<div class="card-type">
|
||||
<div>{{ item.createUserName }}</div>
|
||||
<div class="type" :style="{color: item.status==0? '#4181FF':item.status==1? '#07c160' : '#dd5347'}">{{$dict.getLabel('auditStatus',item.status)}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty description="暂无数据" class="emptyWrap" style="padding-top:150px" v-else></AiEmpty>
|
||||
<u-select v-model="showType" :list="list" label-name="dictName" value-name="dictValue"
|
||||
@confirm="confirmTypeSelect"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: 'infoList',
|
||||
data () {
|
||||
return {
|
||||
tabs: ['全部', '待处理', '已处理'],
|
||||
tabIndex: '',
|
||||
showType: false,
|
||||
content: '',
|
||||
typeList: [],
|
||||
villagerList: [],
|
||||
current: 1,
|
||||
topic: '',
|
||||
topicType: '',
|
||||
list: [],
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
onLoad() {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
this.getList()
|
||||
this.$dict.load('villagerCircleTopic','auditStatus').then(()=>{
|
||||
uni.$on('update',()=>{
|
||||
this.current = 1
|
||||
this.getList()
|
||||
})
|
||||
})
|
||||
let all = [{ dictName: '全部', dictValue: '', dictColor: null }]
|
||||
this.list = [...all, ...this.$dict.getDict('villagerCircleTopic')]
|
||||
},
|
||||
methods: {
|
||||
tabClick(index) {
|
||||
this.tabIndex = index
|
||||
this.current = 1,
|
||||
this.topic = '',
|
||||
this.topicType = '',
|
||||
this.villagerList = [],
|
||||
this.getList()
|
||||
},
|
||||
changeArea(e) {
|
||||
this.areaId = e
|
||||
this.getList()
|
||||
},
|
||||
getList() {
|
||||
this.$http.post('/app/appvillagercircleinfo/list',null,{
|
||||
params: {
|
||||
current: this.current,
|
||||
auditType: this.tabIndex == 0 ? '': this.tabIndex == 1 ? 0 : 1,
|
||||
topic: this.topic,
|
||||
content: this.content,
|
||||
areaId: this.areaId
|
||||
}
|
||||
}).then(res=>{
|
||||
if(res?.data) {
|
||||
this.villagerList = this.current >1 ? [...this.villagerList,...res.data.records]:res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
confirmTypeSelect(e) {
|
||||
this.topic = e[0].value,
|
||||
this.topicType = e[0].label
|
||||
this.current = 1,
|
||||
this.villagerList = []
|
||||
this.getList()
|
||||
},
|
||||
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./infoDetail?id=${item.id}`})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '发布信息审核'
|
||||
},
|
||||
onReachBottom() {
|
||||
this.current ++,
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.infoList {
|
||||
.area {
|
||||
display:flex;
|
||||
justify-content:space-between;
|
||||
padding: 0 30px;
|
||||
height: 100px;
|
||||
line-height: 100px;
|
||||
background: #FFFF;
|
||||
}
|
||||
.line {
|
||||
background: #f5f5f5;
|
||||
height: 16px;
|
||||
width: 100%;
|
||||
}
|
||||
.tab-select {
|
||||
width: 100%;
|
||||
height: 96px;
|
||||
line-height: 96px;
|
||||
background: #FFFFFF;
|
||||
display: flex;
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
||||
.item{
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.active{
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
color: #3975C6;
|
||||
span{
|
||||
width: 48px;
|
||||
height: 4px;
|
||||
background: #3975C6;
|
||||
position: absolute;
|
||||
bottom: 14px;
|
||||
left: 50%;
|
||||
margin-left: -24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.search-box {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
background-color: #FFFFFF;
|
||||
padding: 0 32px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.integral-types {
|
||||
display: flex;
|
||||
white-space:nowrap;
|
||||
justify-content:flex-start;
|
||||
margin-right: 20px;
|
||||
width: 180px;
|
||||
span {
|
||||
display: block;
|
||||
width:160px;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
}
|
||||
u-icon {
|
||||
width: 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.card-list {
|
||||
width: 100%;
|
||||
padding: 280px 32px 20px 32px;
|
||||
box-sizing: border-box;
|
||||
background: #f5f5f5;
|
||||
|
||||
.card-item {
|
||||
margin-top: 24px;
|
||||
background-color: #FFFFFF;
|
||||
box-shadow: 0 0 16px 16px rgba(0, 0, 0, 0.04);
|
||||
border-radius: 16px;
|
||||
padding: 30px 32px 20px 32px;
|
||||
|
||||
.card-title {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
font-size: 36px;
|
||||
color: #333333;
|
||||
overflow:hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
-o-text-overflow:ellipsis;
|
||||
}
|
||||
|
||||
.card-name {
|
||||
margin-top: 30px;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
line-height: 50px;
|
||||
font-size: 28px;
|
||||
color: #999999;
|
||||
|
||||
.name {
|
||||
padding: 0 15px;
|
||||
background: #EEEEEE;
|
||||
border-radius: 24px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.card-type {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-top: 30px;
|
||||
font-size: 28px;
|
||||
|
||||
.num {
|
||||
font-size: 34px;
|
||||
color: #E6736E;
|
||||
}
|
||||
|
||||
.status0 {
|
||||
color: #FF9B2B;
|
||||
}
|
||||
|
||||
.status1 {
|
||||
color: #4181FF;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user