bug
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="right" @click="linkTo('./PersonnelSetting?id=' + id)">
|
||||
<span>{{ albumUserList.length ? '已选择' : '不限' }}</span>
|
||||
<image src="./images/right.png" v-if="!id || isAdmin" />
|
||||
<image src="./images/right.png" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group__item" @click="linkTo('./SourceSetting?value=' + photoSource)">
|
||||
@@ -27,12 +27,12 @@
|
||||
</div>
|
||||
<div class="right">
|
||||
<span>{{ photoSource == 1 ? '仅限工作相册拍摄' : '不限' }}</span>
|
||||
<image src="./images/right.png" v-if="!id || isAdmin" />
|
||||
<image src="./images/right.png" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button v-if="id && isAdmin && id !== '1'" @click="remove" class="form-btn form-btn__remove" hover-class="text-hover">删除相册</button>
|
||||
<button v-if="!id || isAdmin" :loading="isLoading" @click="save" class="form-btn" hover-class="text-hover">保存</button>
|
||||
<button v-if="id && id !== '1'" @click="remove" class="form-btn form-btn__remove" hover-class="text-hover">删除相册</button>
|
||||
<button v-if="!id" :loading="isLoading" @click="save" class="form-btn" hover-class="text-hover">保存</button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -52,7 +52,6 @@
|
||||
isLoading: false,
|
||||
id: '',
|
||||
info: {},
|
||||
isAdmin: false,
|
||||
albumUserList: []
|
||||
}
|
||||
},
|
||||
@@ -62,7 +61,6 @@
|
||||
},
|
||||
|
||||
onLoad (query) {
|
||||
this.isAdmin = !!this.$store.state.user.adminAuthType
|
||||
this.id = query.id || ''
|
||||
|
||||
if (query.id) {
|
||||
@@ -82,10 +80,6 @@
|
||||
|
||||
methods: {
|
||||
linkTo (url) {
|
||||
if (this.id && !this.isAdmin) {
|
||||
return false
|
||||
}
|
||||
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user