bug
This commit is contained in:
@@ -7,17 +7,7 @@
|
|||||||
<span>相册名称</span>
|
<span>相册名称</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<input placeholder="请输入相册名称" v-model="albumName" placeholder-style="color: #999" />
|
<input placeholder="请输入相册名称" :disabled="!id || isAdmin" v-model="albumName" placeholder-style="color: #999" />
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group__item">
|
|
||||||
<div class="left">
|
|
||||||
<label>*</label>
|
|
||||||
<span>水印</span>
|
|
||||||
</div>
|
|
||||||
<div class="right" @click="linkTo('./WatermarkSetting?value=' + watermarkId)">
|
|
||||||
<span>{{ watermarkId ? '已选择' : '不限' }}</span>
|
|
||||||
<image src="./images/right.png" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group__item">
|
<div class="form-group__item">
|
||||||
@@ -27,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right" @click="linkTo('./PersonnelSetting?id=' + id)">
|
<div class="right" @click="linkTo('./PersonnelSetting?id=' + id)">
|
||||||
<span>{{ albumUserList.length ? '已选择' : '不限' }}</span>
|
<span>{{ albumUserList.length ? '已选择' : '不限' }}</span>
|
||||||
<image src="./images/right.png" />
|
<image src="./images/right.png" v-if="!id || isAdmin" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group__item" @click="linkTo('./SourceSetting?value=' + photoSource)">
|
<div class="form-group__item" @click="linkTo('./SourceSetting?value=' + photoSource)">
|
||||||
@@ -37,12 +27,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<span>{{ photoSource == 1 ? '仅限乡村相册拍摄' : '不限' }}</span>
|
<span>{{ photoSource == 1 ? '仅限乡村相册拍摄' : '不限' }}</span>
|
||||||
<image src="./images/right.png" />
|
<image src="./images/right.png" v-if="!id || isAdmin" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button v-if="user.openId === info.createUserId" @click="remove" class="form-btn form-btn__remove" hover-class="text-hover">删除相册</button>
|
<button v-if="id || isAdmin" @click="remove" class="form-btn form-btn__remove" hover-class="text-hover">删除相册</button>
|
||||||
<button :loading="isLoading" @click="save" class="form-btn" hover-class="text-hover">保存</button>
|
<button v-if="!id || isAdmin" :loading="isLoading" @click="save" class="form-btn" hover-class="text-hover">保存</button>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -62,6 +52,7 @@
|
|||||||
isLoading: false,
|
isLoading: false,
|
||||||
id: '',
|
id: '',
|
||||||
info: {},
|
info: {},
|
||||||
|
isAdmin: false,
|
||||||
albumUserList: []
|
albumUserList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -71,6 +62,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad (query) {
|
onLoad (query) {
|
||||||
|
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||||
this.id = query.id || ''
|
this.id = query.id || ''
|
||||||
|
|
||||||
if (query.id) {
|
if (query.id) {
|
||||||
@@ -94,6 +86,10 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
linkTo (url) {
|
linkTo (url) {
|
||||||
|
if (this.id && !this.isAdmin) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url
|
url
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -55,6 +55,7 @@
|
|||||||
isShow: false,
|
isShow: false,
|
||||||
list: [],
|
list: [],
|
||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
|
isAdmin: false,
|
||||||
albumList: []
|
albumList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -70,6 +71,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
onLoad (query) {
|
onLoad (query) {
|
||||||
|
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||||
this.id = query.id
|
this.id = query.id
|
||||||
this.getAlbumList()
|
this.getAlbumList()
|
||||||
|
|
||||||
@@ -80,7 +82,13 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
getList () {
|
getList () {
|
||||||
this.$http.post(`/api/appalbumphoto/DetailByAlbumID?albumId=${this.id}&pageSize=100000`).then(res => {
|
this.$http.post(`/api/appalbumphoto/DetailByAlbumID`, null, {
|
||||||
|
params: {
|
||||||
|
albumId: this.id,
|
||||||
|
pageSize: 100000,
|
||||||
|
userId: this.isAdmin ? '' : this.$store.state.user.openId
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
this.list = res.data.records.map(v => {
|
this.list = res.data.records.map(v => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user