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