This commit is contained in:
yanran200730
2021-12-23 15:05:58 +08:00
parent bba21ea9f4
commit d8a9b2df48
3 changed files with 8 additions and 3 deletions

View File

@@ -89,6 +89,9 @@
confirm () {
this.$refs.form.validate((valid) => {
if (valid) {
if (this.form.areaId.endsWith('000')) {
return this.$message.error('地区必须选择到村级')
}
this.instance.post(`/app/appvillagepicturealbum/addPictures`, {
...this.form,
id: this.params.id,

View File

@@ -1,7 +1,7 @@
<template>
<ai-list class="list">
<template slot="title">
<ai-title title="乡村相册" isShowBottomBorder :instance="instance" isShowArea v-model="search.areaId" @change="changeArea"></ai-title>
<ai-title title="乡村相册" isShowBottomBorder :instance="instance" :disabledLevel="disabledLevel" isShowArea v-model="search.areaId" @change="changeArea"></ai-title>
</template>
<template slot="content">
<ai-search-bar>
@@ -94,7 +94,8 @@
list: [],
total: 0,
loading: false,
id: ''
id: '',
disabledLevel: 0
}
},
@@ -108,6 +109,7 @@
created () {
this.loading = true
this.disabledLevel = this.user.info.areaList.length - 1
this.search.areaId = this.user.info.areaId
this.dict.load(['villagePictureAlbumType']).then(() => {
this.getList()