diff --git a/package.json b/package.json index 25f358c16..11951032c 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "vant": "2.2.0", "vee-validate": "^2.2.14", "vue": "^2.6.10", + "vue-hash-calendar": "^1.2.12", "vue-pdf": "^4.0.7", "vue-router": "^3.0.3", "vuex": "^3.0.1", diff --git a/src/main.js b/src/main.js index 519a95440..29cbd7acb 100644 --- a/src/main.js +++ b/src/main.js @@ -9,20 +9,44 @@ import Jump from '@/assets/js/utils/jump' import utils from '@/assets/js/business-common' import config from '@/config' import noMoreClick from '@/directive/noMoreClick' +import vueHashCalendar from 'vue-hash-calendar' +import 'vue-hash-calendar/lib/vue-hash-calendar.css' -//全局注册vant常用组件 import { + Cell, CellGroup, + DatetimePicker , + Popup , + Picker, + Col, + Row, + Tab, + Tabs, + NavBar, Toast, Button, Dialog, - Icon + Icon, + Lazyload } from 'vant' - +Vue.use(Cell); +Vue.use(CellGroup) +Vue.use(DatetimePicker); +Vue.use(Popup) +Vue.use(Picker) +Vue.use(Col) +Vue.use(Row); +Vue.use(Tab) +Vue.use(Tabs); Vue.use(Icon) - +Vue.use(vueHashCalendar) +Vue.use(NavBar); Vue.use(Toast) Vue.use(Button) Vue.use(Dialog) +Vue.use(Lazyload, { + lazyComponent: true, +}); + Vue.prototype.$assetsUrl = config.assetsUrl Vue.prototype.$mainUrl = config.mainUrl Vue.prototype.$zssqUrl = config.zssqUrl diff --git a/src/router/ebiz/index.js b/src/router/ebiz/index.js index 1ee3f9ffc..2c14dd5fd 100644 --- a/src/router/ebiz/index.js +++ b/src/router/ebiz/index.js @@ -16,6 +16,8 @@ import manpower from './manpower' import cardList from './cardList' import claims from './claims' import productStore from './product-store' +// 机构业绩 +import institutionalPerform from './institutionalPerform' export default [ ...proposal, ...sale, @@ -32,6 +34,7 @@ export default [ ...survey, ...nbs, ...manpower, + ...institutionalPerform, ...claims, ...productStore -] //根据需要进行删减 +] //根据需要进行删减 \ No newline at end of file diff --git a/src/router/ebiz/institutionalPerform.js b/src/router/ebiz/institutionalPerform.js new file mode 100644 index 000000000..4ba415b18 --- /dev/null +++ b/src/router/ebiz/institutionalPerform.js @@ -0,0 +1,91 @@ +//客户管理 定义相关组件 +const BranchOffice = () => import('@/views/ebiz/institutionalPerform/BranchOffice') +const UnderOffice = () => import('@/views/ebiz/institutionalPerform/UnderOffice') +const DistrictOffice = () => import('@/views/ebiz/institutionalPerform/DistrictOffice') +const DepartmentOffice = () => import('@/views/ebiz/institutionalPerform/DepartmentOffice') +const GroupOffice = () => import('@/views/ebiz/institutionalPerform/GroupOffice') +const PersonalOffice = () => import('@/views/ebiz/institutionalPerform/PersonalOffice') +const ServiceDepartOffice = () => import('@/views/ebiz/institutionalPerform/ServiceDepartOffice') +const RegionalOffice = () => import('@/views/ebiz/institutionalPerform/RegionalOffice') +export default [ + // 分公司 + { + path: '/institutionalPerform/BranchOffice', + name: 'BranchOffice', + component: BranchOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 支公司 02 + { + path: '/institutionalPerform/underOffice', + name: 'underOffice', + component: UnderOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 营销服务部 03 + { + path: '/institutionalPerform/serviceDepartOffice', + name: 'serviceDepartOffice', + component: ServiceDepartOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 区公司 04 + { + path: '/institutionalPerform/districtOffice', + name: 'districtOffice', + component: DistrictOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 直辖区 05 + { + path: '/institutionalPerform/regionalOffice', + name: 'regionalOffice', + component: RegionalOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 营业部公司 06 + { + path: '/institutionalPerform/departmentOffice', + name: 'departmentOffice', + component: DepartmentOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 组 07 + { + path: '/institutionalPerform/groupOffice', + name: 'groupOffice', + component: GroupOffice, + meta: { + title: '机构业绩', + index: 1 + } + }, + // 个人 08 + { + path: '/institutionalPerform/personalOffice', + name: 'personalOffice', + component: PersonalOffice, + meta: { + title: '机构业绩', + index: 1 + } + } +]