通讯录
This commit is contained in:
parent
73ca8c141d
commit
3cc4193b39
|
@ -0,0 +1,15 @@
|
|||
// /convenience/v2/region/list
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 获取行政区域列表
|
||||
* @param {*} type
|
||||
* @returns
|
||||
*/
|
||||
export function getRegionList(type) {
|
||||
return request({
|
||||
url: '/api/convenience/v2/region/list',
|
||||
method: 'get',
|
||||
params:type
|
||||
})
|
||||
}
|
|
@ -710,6 +710,7 @@ import {
|
|||
import { parseTime } from "@/utils";
|
||||
import { staffList } from "@/api/staff";
|
||||
import AliOss from "@/components/AliOSS/index.vue";
|
||||
import { getRegionList } from '@/api/region';
|
||||
|
||||
export default {
|
||||
filters: {
|
||||
|
@ -841,6 +842,7 @@ export default {
|
|||
this.getStaffList();
|
||||
this.getCommunicationList();
|
||||
this.getTypeList();
|
||||
this.getRegions();
|
||||
},
|
||||
methods: {
|
||||
getInfo() {
|
||||
|
@ -1238,14 +1240,6 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
// handlePreviewAttachment(url) {
|
||||
// const fileType = url.substr(url.lastIndexOf(".") + 1);
|
||||
// if(this.isAssetTypeAnImage(fileType)){
|
||||
|
||||
// }else{
|
||||
|
||||
// }
|
||||
// },
|
||||
isAssetTypeAnImage(ext) {
|
||||
return (
|
||||
["png", "jpg", "jpeg", "bmp", "gif"].indexOf(ext.toLowerCase()) !== -1
|
||||
|
@ -1280,6 +1274,13 @@ export default {
|
|||
// tempRef.$el.style.display = "inline-block";
|
||||
// this.$refs.eventTypeRef.focusFirstNode();
|
||||
}, 100);
|
||||
},
|
||||
|
||||
// -----------------------
|
||||
getRegions(){
|
||||
getRegionList('CONVENIENCE').then(res=>{
|
||||
console.log(res);
|
||||
})
|
||||
}
|
||||
},
|
||||
beforeRouteLeave(to, from, next) {
|
||||
|
|
Loading…
Reference in New Issue