限制地区
This commit is contained in:
@@ -66,12 +66,12 @@
|
||||
|
||||
<script>
|
||||
import AMapLoader from '@amap/amap-jsapi-loader'
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: 'addResource',
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
areaId: String,
|
||||
permissions: Function,
|
||||
},
|
||||
data() {
|
||||
@@ -114,9 +114,15 @@ export default {
|
||||
address: [{ required: true, message: '请输入地址', trigger: 'change' }],
|
||||
location: [{ required: true, validator: validLocation, trigger: 'change' }],
|
||||
},
|
||||
areaId: '',
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
created() {
|
||||
this.areaId = this.user.info.areaId
|
||||
this.getCategoryList()
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user