Merge branch 'build' of http://git.sinoecare.com/sinoecare/digital_village_v2/dvcp_v2_webapp into build
This commit is contained in:
@@ -66,12 +66,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import AMapLoader from '@amap/amap-jsapi-loader'
|
import AMapLoader from '@amap/amap-jsapi-loader'
|
||||||
|
import { mapState } from 'vuex'
|
||||||
export default {
|
export default {
|
||||||
name: 'addResource',
|
name: 'addResource',
|
||||||
props: {
|
props: {
|
||||||
instance: Function,
|
instance: Function,
|
||||||
dict: Object,
|
dict: Object,
|
||||||
areaId: String,
|
|
||||||
permissions: Function,
|
permissions: Function,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@@ -114,9 +114,15 @@ export default {
|
|||||||
address: [{ required: true, message: '请输入地址', trigger: 'change' }],
|
address: [{ required: true, message: '请输入地址', trigger: 'change' }],
|
||||||
location: [{ required: true, validator: validLocation, trigger: 'change' }],
|
location: [{ required: true, validator: validLocation, trigger: 'change' }],
|
||||||
},
|
},
|
||||||
|
areaId: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
...mapState(['user'])
|
||||||
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.areaId = this.user.info.areaId
|
||||||
this.getCategoryList()
|
this.getCategoryList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -160,7 +166,7 @@ export default {
|
|||||||
},
|
},
|
||||||
initMap({ lng, lat }) {
|
initMap({ lng, lat }) {
|
||||||
AMapLoader.load({
|
AMapLoader.load({
|
||||||
key: 'b553334ba34f7ac3cd09df9bc8b539dc',
|
key: '54a02a43d9828a8f9cd4f26fe281e74e',
|
||||||
version: '2.0',
|
version: '2.0',
|
||||||
plugins: ['AMap.PlaceSearch', 'AMap.AutoComplete', 'AMap.Geocoder'],
|
plugins: ['AMap.PlaceSearch', 'AMap.AutoComplete', 'AMap.Geocoder'],
|
||||||
}).then((AMap) => {
|
}).then((AMap) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user