Skip to content

Commit

Permalink
[fix]{ComponentName}: 调整组件大小写命名
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Mar 24, 2019
1 parent 7888086 commit 6ddc1ed
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Vue.use(Vuetify, {
},
})
Vue.use(ElementUI)
Vue.component('crud-table', CrudTable) // 注册全局增删改查table组件
Vue.component('CrudTable', CrudTable) // 注册全局增删改查table组件
Vue.config.productionTip = false
Vue.prototype.axios = fetch // 全局基于拦截器配置后的ajax 拦截器在 utils/fetch
Vue.prototype.Guid = newGuid // 全局调用this.Guid()方法即可
Expand Down
26 changes: 13 additions & 13 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,38 +102,38 @@ export const asyncRouterMap = [
{
path: '/Archive',
component: Layout,
redirect: '/Archive/person_edit',
redirect: '/Archive/PersonEdit',
name: 'Archive',
title: '廉政档案',
icon: 'yonghuming',
children: [{
path: 'person_edit',
name: 'person_edit',
component: () => import('@/views/Archive/person_edit'),
path: 'PersonEdit',
name: 'PersonEdit',
component: () => import('@/views/Archive/PersonEdit'),
meta: {
title: '廉政档案编辑',
},
},
{
path: 'person_detail',
name: 'person_detail',
component: () => import('@/views/Archive/person_detail'),
path: 'PersonDetail',
name: 'PersonDetail',
component: () => import('@/views/Archive/PersonDetail'),
meta: {
title: '廉政档案查看',
},
},
{
path: 'person_count',
name: 'person_count',
component: () => import('@/views/Archive/person_count'),
path: 'PersonCount',
name: 'PersonCount',
component: () => import('@/views/Archive/PersonCount'),
meta: {
title: '廉政档案统计',
},
},
{
path: 'person_count2',
name: 'person_count2',
component: () => import('@/views/Archive/person_count2'),
path: 'PersonCount2',
name: 'PersonCount2',
component: () => import('@/views/Archive/PersonCount2'),
meta: {
title: '统计分析',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import keyboard from '@/components/Charts/keyboard'
export default {
name: 'person_count',
name: 'PersonCount',
components: {
keyboard,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ import lineChart from '@/components/Charts/lineChart';
import mapChart from '@/components/Charts/mapChart';
export default {
name: 'person_count2',
name: 'PersonCount2',
data() {
const lineChartData = [chartData.ClueData, chartData.FilingData];
Expand Down
11 changes: 11 additions & 0 deletions src/views/Archive/PersonDetail.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<template>
<div>
<CrudTable tableName="person" toolbarButton="clear,search" handleButton="detail" disabled></CrudTable>
</div>
</template>
<script>
export default {
name: 'PersonDetail',
}
</script>
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<div>
<crud-table
<CrudTable
:IsMultiple="true"
tableName="person"
:entity.sync="entity"
toolbarButton="add,clear,search"
handleButton="edit,delete"
@selection-change="getChange"
></crud-table>
></CrudTable>
</div>
</template>
<script>
export default {
name: 'person_edit',
name: 'PersonEdit',
data() {
return {
entity: {}, // 当前表单内实体对象
Expand Down
11 changes: 0 additions & 11 deletions src/views/Archive/person_detail.vue

This file was deleted.

0 comments on commit 6ddc1ed

Please sign in to comment.