25803
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user