0f988045 by 任超

feat:文件夹整理

1 parent 5a8cbf52
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,36 +7,36 @@ ...@@ -7,36 +7,36 @@
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,
18 } 18 }
19 },
20 props: {
21 url: {
22 type: String,
23 required: true,
24 // default: require('@/assets/vehicle_img/blank_vehicle.jpg')
19 }, 25 },
20 props: { 26 bigWidth: {
21 url: { 27 type: Number,
22 type: String, 28 required: true,
23 required: true, 29 default: 168
24 // default: require('@/assets/vehicle_img/blank_vehicle.jpg')
25 },
26 bigWidth: {
27 type: Number,
28 required: true,
29 default: 168
30 },
31 scale: {
32 type: Number,
33 required: true,
34 default: 2
35 },
36 overlayStyle: {
37 type: String,
38 default: 'width:100%;height:100%'
39 }
40 }, 30 },
41 } 31 scale: {
32 type: Number,
33 required: true,
34 default: 2
35 },
36 overlayStyle: {
37 type: String,
38 default: 'width:100%;height:100%'
39 }
40 },
41 }
42 </script> 42 </script>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -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 },
......