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