乡村相册需求变更
This commit is contained in:
@@ -2,7 +2,11 @@
|
|||||||
<div class="photo" v-if="pageShow">
|
<div class="photo" v-if="pageShow">
|
||||||
<div class="photo-header">
|
<div class="photo-header">
|
||||||
<h2>{{ info.albumName }}</h2>
|
<h2>{{ info.albumName }}</h2>
|
||||||
<div class="right" @click="linkTo('./AddAlbum?id=' + id)" hover-class="text-hover" v-if="id !== '1' && isAdmin">
|
<div
|
||||||
|
class="right"
|
||||||
|
@click="linkTo('./AddAlbum?id=' + id)"
|
||||||
|
hover-class="text-hover"
|
||||||
|
v-if="info.albumName !== '系统相册' && info.createUserId === user.wxUserId">
|
||||||
<image src="./images/setting.png" />
|
<image src="./images/setting.png" />
|
||||||
<span>相册设置</span>
|
<span>相册设置</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -95,7 +99,6 @@
|
|||||||
|
|
||||||
onLoad (query) {
|
onLoad (query) {
|
||||||
this.id = query.id
|
this.id = query.id
|
||||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getTotalInfo(query.id)
|
this.getTotalInfo(query.id)
|
||||||
|
|||||||
@@ -57,7 +57,6 @@
|
|||||||
isShow: false,
|
isShow: false,
|
||||||
list: [],
|
list: [],
|
||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
isAdmin: false,
|
|
||||||
albumList: [],
|
albumList: [],
|
||||||
pageShow: false
|
pageShow: false
|
||||||
}
|
}
|
||||||
@@ -75,7 +74,6 @@
|
|||||||
|
|
||||||
onLoad (query) {
|
onLoad (query) {
|
||||||
this.$loading()
|
this.$loading()
|
||||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
|
||||||
this.id = query.id
|
this.id = query.id
|
||||||
this.getAlbumList()
|
this.getAlbumList()
|
||||||
|
|
||||||
@@ -90,7 +88,7 @@
|
|||||||
params: {
|
params: {
|
||||||
albumId: this.id,
|
albumId: this.id,
|
||||||
pageSize: 100000,
|
pageSize: 100000,
|
||||||
userId: this.isAdmin ? '' : this.$store.state.user.openId
|
userId: this.$store.state.user.openId
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
|||||||
@@ -62,7 +62,6 @@
|
|||||||
<h2>工作相册</h2>
|
<h2>工作相册</h2>
|
||||||
<div class="album-list__wrapper">
|
<div class="album-list__wrapper">
|
||||||
<div class="item" v-for="(item, index) in list" :key="index" @click="linkTo('./AlbumDetail?id=' + item.id)">
|
<div class="item" v-for="(item, index) in list" :key="index" @click="linkTo('./AlbumDetail?id=' + item.id)">
|
||||||
<span v-if="item.photoHasRead === 'NO'">未查看</span>
|
|
||||||
<image src="./../images/icon.png" :loading-img="$cdn + 'watermark/loading.png'" v-if="!item.lastPhotoUrl" />
|
<image src="./../images/icon.png" :loading-img="$cdn + 'watermark/loading.png'" v-if="!item.lastPhotoUrl" />
|
||||||
<u-lazy-load class="item-img" img-mode="aspectFill" :height="328" :image="item.lastPhotoUrl" v-else></u-lazy-load>
|
<u-lazy-load class="item-img" img-mode="aspectFill" :height="328" :image="item.lastPhotoUrl" v-else></u-lazy-load>
|
||||||
<div class="item-bottom">
|
<div class="item-bottom">
|
||||||
@@ -80,7 +79,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item item-add" @click="linkTo('./AddAlbum')" v-if="user && user.adminAuthType === '1'">
|
<div class="item item-add" @click="linkTo('./AddAlbum')">
|
||||||
<div class="item-add__btn"></div>
|
<div class="item-add__btn"></div>
|
||||||
<p>添加相册</p>
|
<p>添加相册</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -116,7 +115,6 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
console.log(this.user.adminAuthType)
|
|
||||||
this.getCountPhotoNo()
|
this.getCountPhotoNo()
|
||||||
this.getAlbumList()
|
this.getAlbumList()
|
||||||
this.getMsgList()
|
this.getMsgList()
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-item info-work">
|
<div class="info-item info-work" v-if="false">
|
||||||
<div class="info-item__title">
|
<div class="info-item__title">
|
||||||
<h2>考勤统计</h2>
|
<h2>考勤统计</h2>
|
||||||
<image src="../images/right.png" @click="linkTo('./Attendance?date=' + date.replace(/年|月/g, '-'))" />
|
<image src="../images/right.png" @click="linkTo('./Attendance?date=' + date.replace(/年|月/g, '-'))" />
|
||||||
|
|||||||
Reference in New Issue
Block a user