feat:文件夹整理
Showing
15 changed files
with
12 additions
and
27 deletions
1 | import dialogBox from '@/components/DialogBox/dialogBox.vue' | 1 | import dialogBox from '@/components/DialogBox/dialogBox.vue' |
2 | import lbTable from '@/components/lb-table/lb-table.vue' | 2 | import lbTable from '@/components/lbTable/lb-table.vue' |
3 | import Theme from '@/components/Theme/theme.vue' | 3 | import Theme from '@/components/Theme/theme.vue' |
4 | import Popup from '@/components/Popup/index' | ||
4 | export default { | 5 | export default { |
5 | install: (Vue) => { | 6 | install: (Vue) => { |
6 | Vue.component('dialogBox', dialogBox); | 7 | Vue.component('dialogBox', dialogBox); |
7 | Vue.component('lbTable', lbTable); | 8 | Vue.component('lbTable', lbTable); |
8 | Vue.component('Theme', Theme); | 9 | Vue.component('Theme', Theme); |
10 | Vue.prototype.$popup = Popup.install | ||
9 | } | 11 | } |
10 | } | 12 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -7,11 +7,11 @@ | ... | @@ -7,11 +7,11 @@ |
7 | </template> | 7 | </template> |
8 | 8 | ||
9 | <script> | 9 | <script> |
10 | import vuePhotoZoomPro from '@/components/photo-zoom/vue-photo-zoom-pro' | 10 | import vuePhotoZoomPro from '@/components/PhotoZoom/vue-photo-zoom-pro' |
11 | export default { | 11 | export default { |
12 | name: 'PicZoom', | 12 | name: 'PicZoom', |
13 | components: { vuePhotoZoomPro }, | 13 | components: { vuePhotoZoomPro }, |
14 | data() { | 14 | data () { |
15 | return { | 15 | return { |
16 | type: "square", | 16 | type: "square", |
17 | showType: false, | 17 | showType: false, |
... | @@ -38,5 +38,5 @@ | ... | @@ -38,5 +38,5 @@ |
38 | default: 'width:100%;height:100%' | 38 | default: 'width:100%;height:100%' |
39 | } | 39 | } |
40 | }, | 40 | }, |
41 | } | 41 | } |
42 | </script> | 42 | </script> |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
File moved
... | @@ -4,9 +4,9 @@ import Vue from 'vue' | ... | @@ -4,9 +4,9 @@ import Vue from 'vue' |
4 | import App from './App' | 4 | import App from './App' |
5 | import 'normalize.css/normalize.css' // a modern alternative to CSS resets | 5 | import 'normalize.css/normalize.css' // a modern alternative to CSS resets |
6 | import Element from 'element-ui' | 6 | import Element from 'element-ui' |
7 | import './styles/element-variables.scss' | 7 | import '@/styles/element-variables.scss' |
8 | import '@/styles/index.scss' | 8 | import '@/styles/index.scss' |
9 | import Base from './components/Base/base' // 全局组件引入 | 9 | import Base from '@/components/Base/base' // 全局组件引入 |
10 | import mixin from '@/utils/mixin/theme.js' | 10 | import mixin from '@/utils/mixin/theme.js' |
11 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' | 11 | import { startLoadingAddCount, endLoadingSubCount } from './utils/requestLoading' |
12 | Vue.mixin(mixin); | 12 | Vue.mixin(mixin); |
... | @@ -17,19 +17,13 @@ Vue.prototype.$rules = rules | ... | @@ -17,19 +17,13 @@ Vue.prototype.$rules = rules |
17 | // 全局加载 | 17 | // 全局加载 |
18 | Vue.prototype.$startLoading = startLoadingAddCount | 18 | Vue.prototype.$startLoading = startLoadingAddCount |
19 | Vue.prototype.$endLoading = endLoadingSubCount | 19 | Vue.prototype.$endLoading = endLoadingSubCount |
20 | |||
21 | import Popup from './components/tanchuang/index' | ||
22 | Vue.prototype.$popup = Popup.install | ||
23 | |||
24 | import { theme } from "@/directive/theme.js" | 20 | import { theme } from "@/directive/theme.js" |
25 | Vue.directive("theme", theme) | 21 | Vue.directive("theme", theme) |
26 | |||
27 | Vue.directive('fo', { | 22 | Vue.directive('fo', { |
28 | inserted (el, binding, vnode) { | 23 | inserted (el, binding, vnode) { |
29 | el.querySelector('input').focus() | 24 | el.querySelector('input').focus() |
30 | } | 25 | } |
31 | }) | 26 | }) |
32 | |||
33 | import './image/icons' // icon | 27 | import './image/icons' // icon |
34 | import store from './store' | 28 | import store from './store' |
35 | import router from './router' | 29 | import router from './router' | ... | ... |
... | @@ -10,17 +10,6 @@ import Layout from '@/layout' | ... | @@ -10,17 +10,6 @@ import Layout from '@/layout' |
10 | 10 | ||
11 | export const constantRoutes = [ | 11 | export const constantRoutes = [ |
12 | { | 12 | { |
13 | path: '/redirect', | ||
14 | component: Layout, | ||
15 | hidden: true, | ||
16 | children: [ | ||
17 | { | ||
18 | path: '/redirect/:path(.*)', | ||
19 | component: () => import('@/views/redirect/index') | ||
20 | } | ||
21 | ] | ||
22 | }, | ||
23 | { | ||
24 | path: '/404', | 13 | path: '/404', |
25 | component: Layout, | 14 | component: Layout, |
26 | hidden: true, | 15 | hidden: true, | ... | ... |
... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
24 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete">删除</el-button> | 24 | <el-button type="primary" icon="el-icon-delete-solid" @click="handleDelete">删除</el-button> |
25 | </div> | 25 | </div> |
26 | <ul> | 26 | <ul> |
27 | <li v-for="(img, index) in thumbnailImages" :key="index" :class="{ active:previewImg.index === index}" | 27 | <li v-for="(img, index) in thumbnailImages" :key="index" :class="{ active: previewImg.index === index }" |
28 | @click="showCurrent(index)"> | 28 | @click="showCurrent(index)"> |
29 | <img :src="img.fjurl"> | 29 | <img :src="img.fjurl"> |
30 | </li> | 30 | </li> |
... | @@ -36,7 +36,7 @@ | ... | @@ -36,7 +36,7 @@ |
36 | </div> | 36 | </div> |
37 | </template> | 37 | </template> |
38 | <script> | 38 | <script> |
39 | import PhotoZoom from '@/components/photo-zoom' | 39 | import PhotoZoom from '@/components/PhotoZoom' |
40 | import { sjClmxUpload, sjClmxDelete } from '@/api/jsydsyqFlow' | 40 | import { sjClmxUpload, sjClmxDelete } from '@/api/jsydsyqFlow' |
41 | import publicPicture from '@/components/publicPicture/index.vue' | 41 | import publicPicture from '@/components/publicPicture/index.vue' |
42 | export default { | 42 | export default { | ... | ... |
... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
67 | </template> | 67 | </template> |
68 | <script> | 68 | <script> |
69 | import * as G2 from '@antv/g2' | 69 | import * as G2 from '@antv/g2' |
70 | import calendar from '@/components/calendar/index' | 70 | import calendar from '@/components/Calendar/index' |
71 | export default { | 71 | export default { |
72 | name: 'home', | 72 | name: 'home', |
73 | components: { calendar }, | 73 | components: { calendar }, | ... | ... |
-
Please register or sign in to post a comment