AppServicePublic
This commit is contained in:
202
src/apps/AppServicePublic/Add.vue
Normal file
202
src/apps/AppServicePublic/Add.vue
Normal file
@@ -0,0 +1,202 @@
|
|||||||
|
<template>
|
||||||
|
<div class="add">
|
||||||
|
<div class="header-description">
|
||||||
|
<u-form :model="forms" ref="uForm" label-width="auto">
|
||||||
|
<u-form-item label="标题" prop="title" required label-position="top">
|
||||||
|
<u-input v-model="forms.title" placeholder="请输入标题(30字以内)" type="textarea" auto-height height="60" maxlength="30" />
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item label="公开类型" prop="status" required style="position: relative">
|
||||||
|
<u-input v-model="forms.status" disabled placeholder="请选择公开类型" @click="showStstus = true" />
|
||||||
|
|
||||||
|
<u-select v-model="showStstus" :list="$dict.getDict('realityStatus')" value-name="dictValue" label-name="dictName" @confirm="realityStstus"></u-select>
|
||||||
|
|
||||||
|
<u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item label="发布地区" prop="areaId" required style="position: relative">
|
||||||
|
<AiAreaPicker v-model="areaId" :areaId="areaIdProps" @select="areaSelect"></AiAreaPicker>
|
||||||
|
|
||||||
|
<u-icon name="arrow-right" color="#CCCCCC" style="position: absolute; top: 25px; right: 30px"></u-icon>
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item label="正文" prop="content" required label-position="top">
|
||||||
|
<u-input v-model="forms.content" placeholder="请输入活动详情(30字以内)" type="textarea" auto-height height="60" maxlength="500" />
|
||||||
|
</u-form-item>
|
||||||
|
|
||||||
|
<u-form-item label="图片(最多9张)" prop="fileIds" class="avatars" label-position="top">
|
||||||
|
<AiUploader :def.sync="forms.fileIds" multiple placeholder="上传图片" :limit="9"></AiUploader>
|
||||||
|
</u-form-item>
|
||||||
|
</u-form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn" @click="submit">保存</div>
|
||||||
|
|
||||||
|
<AiBack></AiBack>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'Add',
|
||||||
|
components: {},
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
show: false,
|
||||||
|
forms: {
|
||||||
|
title: '',
|
||||||
|
status: '',
|
||||||
|
content: '',
|
||||||
|
fileIds: [],
|
||||||
|
areaId: '',
|
||||||
|
},
|
||||||
|
showStstus: false,
|
||||||
|
flag: false,
|
||||||
|
areaIdProps: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: { ...mapState(['user']) },
|
||||||
|
created() {
|
||||||
|
this.areaIdProps = this.user.areaId
|
||||||
|
this.$dict.load('realityStatus').then(() => {
|
||||||
|
this.getDetail()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
methods: {
|
||||||
|
getDetail() {
|
||||||
|
this.$http.post(`/app/appvisitvondolence/queryDetailById?id=${this.params.id}`).then((res) => {
|
||||||
|
if (res?.data) {
|
||||||
|
this.forms = res.data
|
||||||
|
this.forms.realityValue = res.data.reality
|
||||||
|
this.forms.reality = this.$dict.getLabel('realityStatus', res.data.reality)
|
||||||
|
if (res.data.images) {
|
||||||
|
this.forms.images = JSON.parse(res.data.images || '[]')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
submit() {
|
||||||
|
if (this.flag) return
|
||||||
|
|
||||||
|
this.$refs.uForm.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
if (!this.forms.create_user_name) {
|
||||||
|
return this.$u.toast('请选择走访慰问对象')
|
||||||
|
}
|
||||||
|
if (!this.forms.title) {
|
||||||
|
return this.$u.toast('请输入入户走访事项')
|
||||||
|
}
|
||||||
|
|
||||||
|
const imgs = []
|
||||||
|
if (this.forms.images) {
|
||||||
|
this.forms.images.map((e) => {
|
||||||
|
console.log(e)
|
||||||
|
imgs.push({ url: e.url, id: e.id })
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
this.flag = true
|
||||||
|
this.$http
|
||||||
|
.post(`/app/appvisitvondolence/addOrUpdate`, {
|
||||||
|
areaId: this.forms.areaId,
|
||||||
|
applicationId: this.forms.applicationId,
|
||||||
|
name: this.forms.create_user_name,
|
||||||
|
optionId: this.forms.applicationId,
|
||||||
|
reality: this.forms.realityValue ? this.forms.realityValue : this.forms.reality,
|
||||||
|
title: this.forms.title,
|
||||||
|
description: this.forms.description,
|
||||||
|
createUserId: this.user.id,
|
||||||
|
createUserName: this.user.name,
|
||||||
|
images: JSON.stringify(imgs) || [],
|
||||||
|
id: this.id,
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
console.log(4)
|
||||||
|
if (res.code == 0) {
|
||||||
|
console.log(5)
|
||||||
|
this.$u.toast('发布成功')
|
||||||
|
this.flag = false
|
||||||
|
uni.navigateTo({ url: `./AppWalkask` })
|
||||||
|
console.log(6)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$u.toast('失败')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
areaSelect(e) {
|
||||||
|
if (e.type == 5) {
|
||||||
|
this.forms.areaId = e.id
|
||||||
|
} else {
|
||||||
|
return this.$u.toast('请选择到村')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
backlist(e) {
|
||||||
|
console.log(e.item)
|
||||||
|
this.forms.create_user_name = e.item.create_user_name
|
||||||
|
this.forms.applicationId = e.appId
|
||||||
|
this.forms.optionId = e.item.id
|
||||||
|
// this.addList = true
|
||||||
|
},
|
||||||
|
|
||||||
|
realityStstus(e) {
|
||||||
|
this.forms.reality = e[0].label
|
||||||
|
this.forms.realityValue = e[0].value
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.add {
|
||||||
|
height: 100%;
|
||||||
|
padding-bottom: 112px;
|
||||||
|
|
||||||
|
.header-description {
|
||||||
|
::v-deep .u-form {
|
||||||
|
.u-form-item {
|
||||||
|
.u-form-item__body {
|
||||||
|
.u-form-item--right__content__slot {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-form-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-bottom: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.avatars {
|
||||||
|
.u-form-item__body {
|
||||||
|
.default {
|
||||||
|
width: 160px;
|
||||||
|
height: 160px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 112px;
|
||||||
|
line-height: 112px;
|
||||||
|
background: #1365dd;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
197
src/apps/AppServicePublic/AppServicePublic.vue
Normal file
197
src/apps/AppServicePublic/AppServicePublic.vue
Normal file
@@ -0,0 +1,197 @@
|
|||||||
|
<template>
|
||||||
|
<div class="AppServicePublic">
|
||||||
|
<div class="header-top">
|
||||||
|
<div>区域选择</div>
|
||||||
|
<AiAreaPicker v-model="areaId" :areaId="areaId" @select="areaSelect"></AiAreaPicker>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<u-search class="serach_content" placeholder="请输入公开标题" :show-action="false" v-model="keyword" @clear="clearSearch" @search="search"></u-search>
|
||||||
|
|
||||||
|
<template v-if="datas.length > 0">
|
||||||
|
<u-card v-for="(item, index) in datas" :key="index" :foot-border-top="false" :head-border-bottom="false" :show-head="false" :border-radius="32" @click="goDetail(item, 1)">
|
||||||
|
<view class="body" slot="body">
|
||||||
|
<view class="u-body-item">
|
||||||
|
<div class="title">{{ item.createUserName }}</div>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="u-body-item">
|
||||||
|
<div class="flex">
|
||||||
|
<span class="left">
|
||||||
|
<span class="garydiv">财务公开</span>
|
||||||
|
<span class="times">2021-12-16</span>
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<span class="right">
|
||||||
|
<span class="font">1111</span>
|
||||||
|
<span>人看过</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</u-card>
|
||||||
|
|
||||||
|
<u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<AiEmpty description="暂无数据" v-else></AiEmpty>
|
||||||
|
|
||||||
|
<AiFixedBtn>
|
||||||
|
<div class="addBtn iconfont iconfont-iconfangda" @tap.stop="toAdd()" />
|
||||||
|
</AiFixedBtn>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapState } from 'vuex'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'AppServicePublic',
|
||||||
|
appName: '三务公开',
|
||||||
|
components: {},
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
datas: [],
|
||||||
|
keyword: '',
|
||||||
|
areaId: '',
|
||||||
|
current: 1,
|
||||||
|
size: 10,
|
||||||
|
pages: 0,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
|
||||||
|
loadmore() {
|
||||||
|
return this.pages <= this.current ? 'loading ' : 'nomore'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
watch: {},
|
||||||
|
onLoad() {
|
||||||
|
this.areaId = this.user.areaId
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
mounted() {},
|
||||||
|
methods: {
|
||||||
|
getList() {
|
||||||
|
this.$http
|
||||||
|
.post('/app/appvisitvondolence/list', null, {
|
||||||
|
params: {
|
||||||
|
size: 6,
|
||||||
|
current: this.current,
|
||||||
|
areaId: this.areaId,
|
||||||
|
title: this.keyword,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
|
this.pages = res.data.pages
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
areaSelect(e) {
|
||||||
|
if (e.type == 5) {
|
||||||
|
this.areaId = e.id
|
||||||
|
} else {
|
||||||
|
return this.$u.toast('请选择到村')
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
|
||||||
|
goDetail(item) {
|
||||||
|
uni.navigateTo({ url: `./Detail?id=${item.id}` })
|
||||||
|
},
|
||||||
|
|
||||||
|
toAdd() {
|
||||||
|
uni.navigateTo({ url: `./Add` })
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
uni-page-body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.AppServicePublic {
|
||||||
|
height: 100%;
|
||||||
|
.header-top {
|
||||||
|
display: flex;
|
||||||
|
background: #fff;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px 30px;
|
||||||
|
border-bottom: 1px solid #d8dde6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-search {
|
||||||
|
background: #fff;
|
||||||
|
padding: 20px 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-card {
|
||||||
|
::v-deep .u-card__body {
|
||||||
|
.body {
|
||||||
|
position: relative;
|
||||||
|
.u-body-item {
|
||||||
|
.title {
|
||||||
|
font-size: 36px;
|
||||||
|
font-weight: 500;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.flex {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.left {
|
||||||
|
.garydiv {
|
||||||
|
font-size: 28px;
|
||||||
|
color: #999999;
|
||||||
|
background: #eeeeee;
|
||||||
|
border-radius: 24px;
|
||||||
|
padding: 4px 16px;
|
||||||
|
}
|
||||||
|
.times {
|
||||||
|
margin-left: 16px;
|
||||||
|
font-size: 28px;
|
||||||
|
color: #999999;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
font-size: 28px;
|
||||||
|
color: #999;
|
||||||
|
.font {
|
||||||
|
color: #4181ff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.AiFixedBtn {
|
||||||
|
.movableArea {
|
||||||
|
.addBtn {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 96px;
|
||||||
|
height: 96px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
background: $uni-color-primary;
|
||||||
|
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
||||||
|
font-size: 48px;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
77
src/apps/AppServicePublic/Detail.vue
Normal file
77
src/apps/AppServicePublic/Detail.vue
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
<template>
|
||||||
|
<div class="Detail">
|
||||||
|
<div class="header-top">
|
||||||
|
<div class="titles">刘家村村规民约</div>
|
||||||
|
|
||||||
|
<div class="titles-bottom">
|
||||||
|
<span>类型:</span>
|
||||||
|
<span>财务公开</span>
|
||||||
|
<span class="to-left">浏览量:</span>
|
||||||
|
<span>26</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="header-middle">
|
||||||
|
<span class="contsnts">为了推进我村民主法治建设,维护社会稳定,促进经济发展,规范村民清洁乡村卫生行为,改善村容村貌,推进“生态乡村”建设,树立良好的民风、村风,创造安居乐业的社会环境,经全体村民代表讨论通过,制定本村规民约。</span>
|
||||||
|
|
||||||
|
<img src="" alt="" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: 'Detail',
|
||||||
|
components: {},
|
||||||
|
props: {},
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
computed: {},
|
||||||
|
watch: {},
|
||||||
|
created() {},
|
||||||
|
mounted() {},
|
||||||
|
methods: {},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
uni-page-body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.Detail {
|
||||||
|
height: 100%;
|
||||||
|
padding: 0 32px;
|
||||||
|
background: #fff;
|
||||||
|
.header-top {
|
||||||
|
padding: 40px 0 32px 0;
|
||||||
|
.titles {
|
||||||
|
font-size: 48px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.titles-bottom {
|
||||||
|
margin-top: 16px;
|
||||||
|
font-size: 30px;
|
||||||
|
color: #999999;
|
||||||
|
.to-left {
|
||||||
|
margin-left: 32px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-middle {
|
||||||
|
padding: 32px 0;
|
||||||
|
.contsnts {
|
||||||
|
font-size: 36px;
|
||||||
|
line-height: 1.5;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
margin-top: 30px;
|
||||||
|
width: 686px;
|
||||||
|
height: 486px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<div class="left">
|
<div class="left">
|
||||||
<img src="./components/images/icon2.png" alt="" />
|
<img src="./components/images/icon2.png" alt="" />
|
||||||
|
|
||||||
<AiAreaPicker v-model="areaId" ref="areaIds" :areaId="areaId" @select="areaSelect" style="color: #fff"></AiAreaPicker>
|
<AiAreaPicker v-model="areaId" ref="areaIds" all :areaId="areaId" @select="areaSelect" style="color: #fff"></AiAreaPicker>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<u-search v-model="keyword" :clearabled="true" placeholder="请输入标题" :show-action="false" bg-color="#1F5CAF" search-icon-color="#E2E8F1" color="#E2E8F1" height="58" @search="handerSearch" @clear="handerClear"></u-search>
|
<u-search v-model="keyword" :clearabled="true" placeholder="请输入标题" :show-action="false" bg-color="#1F5CAF" search-icon-color="#E2E8F1" color="#E2E8F1" height="58" @search="handerSearch" @clear="handerClear"></u-search>
|
||||||
@@ -48,7 +48,11 @@
|
|||||||
<div v-else>
|
<div v-else>
|
||||||
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"></AiEmpty>
|
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"></AiEmpty>
|
||||||
|
|
||||||
<div class="addBtn">点击<span class="toAdds" @click="goDetail">新增按钮</span>试试试吧~</div>
|
<div class="addBtns">
|
||||||
|
<span> 点击</span>
|
||||||
|
<span class="toAdds" @click="goDetail">新增按钮</span>
|
||||||
|
<span> 试试试吧~</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -72,7 +76,7 @@
|
|||||||
<span class="tags">居家看护</span>
|
<span class="tags">居家看护</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="cards-hint">{{ item.description }}</div>
|
<div class="cards-hint">{{ item.createUserName }}</div>
|
||||||
|
|
||||||
<div class="imgs">
|
<div class="imgs">
|
||||||
<img :src="items.url" alt="" v-for="(items, i) in item.images" :key="i" @click.stop="previewImage(item.images, items.url)" />
|
<img :src="items.url" alt="" v-for="(items, i) in item.images" :key="i" @click.stop="previewImage(item.images, items.url)" />
|
||||||
@@ -89,12 +93,18 @@
|
|||||||
<div class="menu" @tap.stop="toDetele(item)">删除</div>
|
<div class="menu" @tap.stop="toDetele(item)">删除</div>
|
||||||
</template>
|
</template>
|
||||||
</AiCard>
|
</AiCard>
|
||||||
|
|
||||||
|
<u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"></AiEmpty>
|
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"></AiEmpty>
|
||||||
|
|
||||||
<div class="addBtn">点击<span class="toAdds" @click="goDetail">新增按钮</span>试试试吧~</div>
|
<div class="addBtns">
|
||||||
|
<span> 点击</span>
|
||||||
|
<span class="toAdds" @click="goDetail">新增按钮</span>
|
||||||
|
<span> 试试试吧~</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -144,11 +154,19 @@ export default {
|
|||||||
params: null,
|
params: null,
|
||||||
current: 1,
|
current: 1,
|
||||||
areaId: '',
|
areaId: '',
|
||||||
|
size: 10,
|
||||||
deletId: '',
|
deletId: '',
|
||||||
|
pages: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: {
|
||||||
created() {
|
...mapState(['user']),
|
||||||
|
|
||||||
|
loadmore() {
|
||||||
|
return this.pages <= this.current ? 'loading ' : 'nomore'
|
||||||
|
},
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
this.areaId = this.user.areaId
|
this.areaId = this.user.areaId
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
@@ -158,7 +176,7 @@ export default {
|
|||||||
this.$http
|
this.$http
|
||||||
.post('/app/appvisitvondolence/list', null, {
|
.post('/app/appvisitvondolence/list', null, {
|
||||||
params: {
|
params: {
|
||||||
size: 6,
|
size: this.size,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
areaId: this.areaId,
|
areaId: this.areaId,
|
||||||
createUserId: this.currentTabs == 1 ? this.user.id : '',
|
createUserId: this.currentTabs == 1 ? this.user.id : '',
|
||||||
@@ -168,6 +186,7 @@ export default {
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records
|
||||||
|
this.pages = res.data.pages
|
||||||
|
|
||||||
if (this.data) {
|
if (this.data) {
|
||||||
this.data.map((item) => {
|
this.data.map((item) => {
|
||||||
@@ -187,6 +206,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
return this.$u.toast('请选择到村')
|
return this.$u.toast('请选择到村')
|
||||||
}
|
}
|
||||||
|
this.getList()
|
||||||
},
|
},
|
||||||
|
|
||||||
change(index) {
|
change(index) {
|
||||||
@@ -242,10 +262,18 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
uni-page-body {
|
||||||
|
height: 100%;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
.AppWalkask {
|
.AppWalkask {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
@@ -253,7 +281,6 @@ export default {
|
|||||||
.currentLeft,
|
.currentLeft,
|
||||||
.currentRight {
|
.currentRight {
|
||||||
padding-bottom: 56px;
|
padding-bottom: 56px;
|
||||||
background: #fff;
|
|
||||||
|
|
||||||
.currentLeft-top {
|
.currentLeft-top {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -347,10 +374,10 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.addBtn {
|
.addBtns {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #b7b7b7;
|
color: #b7b7b7;
|
||||||
margin-top: 5px;
|
margin-top: 10px;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
|
|
||||||
.toAdds {
|
.toAdds {
|
||||||
@@ -373,13 +400,5 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixedImg {
|
|
||||||
position: fixed;
|
|
||||||
right: 0;
|
|
||||||
top: 1004px;
|
|
||||||
width: 128px;
|
|
||||||
height: 128px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</u-card>
|
</u-card>
|
||||||
|
|
||||||
<u-loadmore status="nomore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
|
<u-loadmore :status="loadmore" color="#999" font-size="24" margin-top="32" margin-bottom="80" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<AiEmpty description="没有数据" v-else> </AiEmpty>
|
<AiEmpty description="没有数据" v-else> </AiEmpty>
|
||||||
@@ -85,11 +85,16 @@ export default {
|
|||||||
datas: {},
|
datas: {},
|
||||||
listType: 0,
|
listType: 0,
|
||||||
current: 1,
|
current: 1,
|
||||||
|
pages: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {
|
||||||
|
loadmore() {
|
||||||
|
return this.pages <= this.current ? 'loading ' : 'nomore'
|
||||||
|
},
|
||||||
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
created() {
|
onLoad() {
|
||||||
this.$dict.load('listApprovalStatusHb').then(() => {
|
this.$dict.load('listApprovalStatusHb').then(() => {
|
||||||
this.getList()
|
this.getList()
|
||||||
})
|
})
|
||||||
@@ -100,6 +105,7 @@ export default {
|
|||||||
this.$http.post(`/app/approv-alapply-info/list?listType=${this.listType}¤t=${this.current}¶m=${this.keyword}`).then((res) => {
|
this.$http.post(`/app/approv-alapply-info/list?listType=${this.listType}¤t=${this.current}¶m=${this.keyword}`).then((res) => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
|
||||||
|
this.pages = res.data.pages
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -129,6 +135,10 @@ export default {
|
|||||||
this.getListInit()
|
this.getListInit()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onReachBottom() {
|
||||||
|
this.current = this.current + 1
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,14 @@
|
|||||||
<u-button type="primary" :custom-style="{ width: '100%', borderRadius: '4px', marginTop: '48px' }" @click="goBack">
|
<u-button type="primary" :custom-style="{ width: '100%', borderRadius: '4px', marginTop: '48px' }" @click="goBack">
|
||||||
{{ btnText }}
|
{{ btnText }}
|
||||||
</u-button>
|
</u-button>
|
||||||
<back></back>
|
<AiBack></AiBack>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import back from '../../components/AiBack'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Msg',
|
name: 'Msg',
|
||||||
components: { back },
|
components: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
flag: true,
|
flag: true,
|
||||||
|
|||||||
@@ -82,15 +82,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from '../../components/AiBack'
|
|
||||||
import AiUploader from '../../components/AiUploader.vue'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Opinion',
|
name: 'Opinion',
|
||||||
components: {
|
components: {},
|
||||||
AiBack,
|
|
||||||
AiUploader,
|
|
||||||
},
|
|
||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<p>审批通过:</p>
|
<p>审批通过:</p>
|
||||||
<div class="save">
|
<div class="save">
|
||||||
<div style="display: inline">[{{ this.list.tableInfo.tableName }}]已签署完成,</div>
|
<div style="display: inline">[{{ this.list.tableInfo.tableName }}]已签署完成,</div>
|
||||||
<ai-image preview :file="list.pdfFile" style="display: inline-block; margin-left: 4px"><span class="clicksave">点击查看和保存</span> </ai-image>
|
<AiImage preview :file="list.pdfFile" style="display: inline-block; margin-left: 4px"><span class="clicksave">点击查看和保存</span> </AiImage>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@
|
|||||||
<div class="item_info">
|
<div class="item_info">
|
||||||
<span class="annexs">附件资料:</span>
|
<span class="annexs">附件资料:</span>
|
||||||
<div class="img_text" v-for="(item, indexs) in list.annexs" :key="indexs">
|
<div class="img_text" v-for="(item, indexs) in list.annexs" :key="indexs">
|
||||||
<ai-image :src="item.annexFile.url" preview />
|
<AiImage :src="item.annexFile.url" preview />
|
||||||
<span class="text">{{ item.annexName }}</span>
|
<span class="text">{{ item.annexName }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -177,17 +177,17 @@
|
|||||||
<div class="examine" v-if="item.stepType == 2">
|
<div class="examine" v-if="item.stepType == 2">
|
||||||
<div class="examine_docx1">
|
<div class="examine_docx1">
|
||||||
<div class="examine_img" v-if="item.pictureFiles && item.pictureFiles.length > 0" style="">
|
<div class="examine_img" v-if="item.pictureFiles && item.pictureFiles.length > 0" style="">
|
||||||
<ai-image preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id" style="width: 65px; height: 75px; float: left; margin-left: 6px; margin-bottom: 4px; overflow: hidden" />
|
<AiImage preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id" style="width: 65px; height: 75px; float: left; margin-left: 6px; margin-bottom: 4px; overflow: hidden" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="item.annexFiles && item.annexFiles.length > 0">
|
<div v-if="item.annexFiles && item.annexFiles.length > 0">
|
||||||
<div v-for="annex in item.annexFiles" :key="annex.id" class="docx">
|
<div v-for="annex in item.annexFiles" :key="annex.id" class="docx">
|
||||||
<ai-image :file="annex" preview>
|
<AiImage :file="annex" preview>
|
||||||
<u-row justify="space-between">
|
<u-row justify="space-between">
|
||||||
<span class="docx-name">{{ annex.name }}</span>
|
<span class="docx-name">{{ annex.name }}</span>
|
||||||
<span>{{ annex.fileSizeStr }}</span>
|
<span>{{ annex.fileSizeStr }}</span>
|
||||||
</u-row>
|
</u-row>
|
||||||
</ai-image>
|
</AiImage>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -196,17 +196,17 @@
|
|||||||
<div class="examine" v-if="item.stepType == 1 || item.stepType == 0 || item.stepType == 3">
|
<div class="examine" v-if="item.stepType == 1 || item.stepType == 0 || item.stepType == 3">
|
||||||
<div class="examine_docx1">
|
<div class="examine_docx1">
|
||||||
<div class="examine_img" v-if="item.pictureFiles && item.pictureFiles.length > 0" style="">
|
<div class="examine_img" v-if="item.pictureFiles && item.pictureFiles.length > 0" style="">
|
||||||
<ai-image preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id" style="width: 69px; height: 75px; float: left; margin-left: 4px; margin-bottom: 4px; overflow: hidden" />
|
<AiImage preview :src="pic.url" v-for="pic in item.pictureFiles" :key="pic.id" style="width: 69px; height: 75px; float: left; margin-left: 4px; margin-bottom: 4px; overflow: hidden" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="item.annexFiles && item.annexFiles.length > 0">
|
<div v-if="item.annexFiles && item.annexFiles.length > 0">
|
||||||
<div v-for="annex in item.annexFiles" :key="annex.id" class="docx">
|
<div v-for="annex in item.annexFiles" :key="annex.id" class="docx">
|
||||||
<ai-image :file="annex" preview>
|
<AiImage :file="annex" preview>
|
||||||
<u-row justify="space-between">
|
<u-row justify="space-between">
|
||||||
<span class="docx-name">{{ annex.name }}</span>
|
<span class="docx-name">{{ annex.name }}</span>
|
||||||
<span>{{ annex.fileSizeStr }}</span>
|
<span>{{ annex.fileSizeStr }}</span>
|
||||||
</u-row>
|
</u-row>
|
||||||
</ai-image>
|
</AiImage>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -228,12 +228,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AiBack from '../../components/AiBack.vue'
|
|
||||||
import AiImage from '../../components/AiImage'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Detail',
|
name: 'Detail',
|
||||||
components: { AiImage, AiBack },
|
components: {},
|
||||||
computed: {
|
computed: {
|
||||||
canApproval() {
|
canApproval() {
|
||||||
return this.listType == 0
|
return this.listType == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user