ry-vue-map 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.MD +2 -186
- package/lib/ryui.common.js +7 -7
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.umd.js +7 -7
- package/lib/ryui.umd.js.gz +0 -0
- package/package.json +3 -5
- package/src/main.js +5 -9
- package/src/router/index.js +1 -37
- package/src/store/index.js +1 -6
- package/src/styles/index.scss +1 -2
- package/vue.config.js +1 -1
- package/src/config/setting.js +0 -40
- package/src/layout/components/footer.vue +0 -35
- package/src/layout/components/header-right.vue +0 -135
- package/src/layout/components/notice.vue +0 -418
- package/src/layout/components/password.vue +0 -133
- package/src/layout/index.vue +0 -252
- package/src/store/getters.js +0 -7
- package/src/store/modules/theme.js +0 -544
- package/src/store/modules/user.js +0 -74
- package/src/utils/index.js +0 -4
- package/src/utils/page-tab-util.js +0 -106
- package/src/utils/permission.js +0 -118
- package/src/utils/request.js +0 -68
- package/src/utils/token-util.js +0 -40
- package/src/views/exception/403.vue +0 -31
- package/src/views/exception/404.vue +0 -31
- package/src/views/exception/500.vue +0 -31
package/README.MD
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# ryvuemap
|
|
2
|
-

|
|
3
3
|
> ry公共组件库
|
|
4
4
|
|
|
5
5
|
|
|
@@ -23,190 +23,6 @@ Vue.use(RyUI)
|
|
|
23
23
|
```
|
|
24
24
|
## 组件
|
|
25
25
|
|
|
26
|
-
#### 表格
|
|
27
|
-
- `index.vue`
|
|
28
|
-
|
|
29
|
-
```html
|
|
30
|
-
<template>
|
|
31
|
-
<div class="ele-body">
|
|
32
|
-
<el-card>
|
|
33
|
-
<ry-query
|
|
34
|
-
:queryArgs="queryArgs"
|
|
35
|
-
@load="load"
|
|
36
|
-
@submit="query"
|
|
37
|
-
@reset="
|
|
38
|
-
() => {
|
|
39
|
-
where = {};
|
|
40
|
-
}
|
|
41
|
-
"
|
|
42
|
-
>
|
|
43
|
-
</ry-query>
|
|
44
|
-
</el-card>
|
|
45
|
-
<el-card>
|
|
46
|
-
<ry-table :url="url" :columns="columns" :where="where" @loadingSuccessCallback="loadingSuccessCallback($event)" >
|
|
47
|
-
<template #status="{ row }">
|
|
48
|
-
{{ row.status ? '在线' : '离线' }}
|
|
49
|
-
</template>
|
|
50
|
-
</ry-table>
|
|
51
|
-
</el-card>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
|
|
55
|
-
<script>
|
|
56
|
-
import { columnFactory } from 'ry-form-create';
|
|
57
|
-
import { QueryArgs, Column } from './model';
|
|
58
|
-
export default {
|
|
59
|
-
name: 'Table',
|
|
60
|
-
data() {
|
|
61
|
-
return {
|
|
62
|
-
queryArgs: new QueryArgs(),
|
|
63
|
-
where: {},
|
|
64
|
-
columns: columnFactory(new Column()),
|
|
65
|
-
url: [
|
|
66
|
-
{ no: 1, name: '1', status: true },
|
|
67
|
-
{ no: 2, name: '2', status: true }
|
|
68
|
-
]
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
methods: {
|
|
72
|
-
load(ruleMap) {
|
|
73
|
-
ruleMap.get('projectTaskId').setOptinos = tasks;
|
|
74
|
-
ruleMap.get('areaCode').setOptinos = districts;
|
|
75
|
-
},
|
|
76
|
-
query(form) {
|
|
77
|
-
this.where = { ...form };
|
|
78
|
-
},
|
|
79
|
-
// 数据加载成功后回调
|
|
80
|
-
loadingSuccessCallback(datas){
|
|
81
|
-
console.log(datas);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
</script>
|
|
86
|
-
```
|
|
87
|
-
- `model.js`
|
|
88
|
-
|
|
89
|
-
```js
|
|
90
|
-
import { formType, column } from 'ry-form-create';
|
|
91
|
-
|
|
92
|
-
const col = {
|
|
93
|
-
xs: 12,
|
|
94
|
-
sm: 12,
|
|
95
|
-
md: 8,
|
|
96
|
-
lg: 8,
|
|
97
|
-
xl: 8
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const wrap = {
|
|
101
|
-
labelWidth: '80px'
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const style = {
|
|
105
|
-
width: '100%'
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
const options = [
|
|
109
|
-
{
|
|
110
|
-
value: 1,
|
|
111
|
-
label: '小鸟有限公司'
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
value: 2,
|
|
115
|
-
label: '大地有限公司'
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
value: 3,
|
|
119
|
-
label: '东方有限公司'
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
|
|
123
|
-
export class QueryArgs {
|
|
124
|
-
@formType({ title: '关键字', prefix: '前缀', suffix: '后缀', col, wrap, style: { width: '70%', margin: '0 5px' } })
|
|
125
|
-
keywords = '';
|
|
126
|
-
@formType({ type: 'daterange', title: '创建日期', col, wrap, style })
|
|
127
|
-
date = '';
|
|
128
|
-
@formType({ type: 'select', title: '主体', options, col, wrap, style })
|
|
129
|
-
name = '';
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export class Column {
|
|
134
|
-
@column({ label: '编号' })
|
|
135
|
-
no;
|
|
136
|
-
@column({ label: '名称' })
|
|
137
|
-
name;
|
|
138
|
-
@column({ label: '在线状态', minWidth: 160, slot: 'status' })
|
|
139
|
-
status;
|
|
140
|
-
@column({ label: '操作', minWidth: 200, slot: 'action', fixed: 'right' })
|
|
141
|
-
action;
|
|
142
|
-
}
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
#### 图片上传
|
|
146
|
-
|
|
147
|
-
- `upload/index.vue`
|
|
148
|
-
```html
|
|
149
|
-
<template>
|
|
150
|
-
<div class="ele-body">
|
|
151
|
-
<ry-upload
|
|
152
|
-
multiple
|
|
153
|
-
:file-list="[
|
|
154
|
-
{
|
|
155
|
-
id:1,
|
|
156
|
-
url:'https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg'
|
|
157
|
-
}
|
|
158
|
-
]"
|
|
159
|
-
@handlerSuccess="handlerSuccess"
|
|
160
|
-
@afterRemove="afterRemove"
|
|
161
|
-
:limit="3"
|
|
162
|
-
themeColor="pink"
|
|
163
|
-
gap="20px"
|
|
164
|
-
text="上传图片">
|
|
165
|
-
</ry-upload>
|
|
166
|
-
</div>
|
|
167
|
-
</template>
|
|
168
|
-
|
|
169
|
-
<script>
|
|
170
|
-
import RyUpload from '@/components/upload';
|
|
171
|
-
export default {
|
|
172
|
-
name: 'upload',
|
|
173
|
-
components: {
|
|
174
|
-
RyUpload
|
|
175
|
-
},
|
|
176
|
-
methods: {
|
|
177
|
-
handlerSuccess(file) {
|
|
178
|
-
console.log(file)
|
|
179
|
-
},
|
|
180
|
-
afterRemove({afterList, current}) {
|
|
181
|
-
console.log(afterList, current)
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
</script>
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
- 属性列表
|
|
189
|
-
|
|
190
|
-
| 属性 | 说明 | 类型 | 默认值 |
|
|
191
|
-
| ---- | ---- | ---- | ---- |
|
|
192
|
-
| fileList | 图片列表,数组格式 [{id:string,url:string}] | Array | [ ] |
|
|
193
|
-
| gap | 上传图片列表之间的间距 | String | '10px' |
|
|
194
|
-
| multiple | 是否支持多选文件, 同 el-upload 的属性 |Boolean|false|
|
|
195
|
-
|fileSize|单个上传文件大小限制|Number|5|
|
|
196
|
-
|limit|限制传入个数|Number|9|
|
|
197
|
-
|fileType|上传类型|Array|['jpg', 'png', 'gif', 'jpeg']|
|
|
198
|
-
|url|上传路径|[Boolean, String]|false|
|
|
199
|
-
|isCustomText|是否自定义文本|Boolean|false|
|
|
200
|
-
|unit|上传单位(支持KB,MB,GB),大小写不敏感|String|MB|
|
|
201
|
-
|isTip|是否显示提示|Boolean|false|
|
|
202
|
-
|width|宽度|Number|200|
|
|
203
|
-
|height|高度|Number|200|
|
|
204
|
-
|themeColor|主题颜色|String|rgba(102, 151, 77,.8)|
|
|
205
|
-
|text|显示的上传文字|String|' '|
|
|
206
|
-
|type|上传格式可选file|String|image|
|
|
207
|
-
|@handlerSuccess|验证成功钩子函数,(file)=>{}|Function||
|
|
208
|
-
|@afterRemove|删除后的回调({afterList, current})=>{afterList是删除后的列表,current是当前删除数据}|Function|
|
|
209
|
-
|
|
210
26
|
#### RyMap
|
|
211
27
|
`map/index.vue`
|
|
212
28
|
```html
|
|
@@ -431,7 +247,7 @@ export class Column {
|
|
|
431
247
|
|
|
432
248
|
```js
|
|
433
249
|
import Vue from 'vue'
|
|
434
|
-
import * as directives from '
|
|
250
|
+
import * as directives from 'ryui-vue/src/directives';
|
|
435
251
|
|
|
436
252
|
Object.keys(directives).forEach((key) => {
|
|
437
253
|
Vue.use(directives[key]);
|
package/lib/ryui.common.js
CHANGED
|
@@ -51672,7 +51672,7 @@ if (typeof window !== 'undefined') {
|
|
|
51672
51672
|
// Indicate to webpack that this file can be concatenated
|
|
51673
51673
|
/* harmony default export */ var setPublicPath = (null);
|
|
51674
51674
|
|
|
51675
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
51675
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMap/src/index.vue?vue&type=template&id=6eab1164&scoped=true&
|
|
51676
51676
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"map-box"},[_c('div',{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),(_vm.lMap.map && _vm.isRyMapTool)?_c('RyMapTool',{staticClass:"ry-map-tool",class:{
|
|
51677
51677
|
'left':!_vm.isRight,
|
|
51678
51678
|
'right':_vm.isRight
|
|
@@ -52753,14 +52753,14 @@ class mapTool_MapToolDto {
|
|
|
52753
52753
|
}
|
|
52754
52754
|
|
|
52755
52755
|
}
|
|
52756
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
52756
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=00ba6f29&scoped=true&
|
|
52757
52757
|
var srcvue_type_template_id_00ba6f29_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"draw-tool-box"},[(!_vm.isRight)?[(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e(),(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e()]:[(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e(),(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e()],(_vm.lMap && _vm.isCrossHair)?_c('ry-cross-hair',{attrs:{"map":_vm.lMap.map},on:{"click":function($event){return _vm.onClick($event)}}}):_vm._e()],2)}
|
|
52758
52758
|
var srcvue_type_template_id_00ba6f29_scoped_true_staticRenderFns = []
|
|
52759
52759
|
|
|
52760
52760
|
|
|
52761
52761
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=00ba6f29&scoped=true&
|
|
52762
52762
|
|
|
52763
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
52763
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryCrossHair/src/index.vue?vue&type=template&id=7f8ce019&
|
|
52764
52764
|
var srcvue_type_template_id_7f8ce019_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
52765
52765
|
var srcvue_type_template_id_7f8ce019_staticRenderFns = []
|
|
52766
52766
|
|
|
@@ -53264,7 +53264,7 @@ var src_component = normalizeComponent(
|
|
|
53264
53264
|
)
|
|
53265
53265
|
|
|
53266
53266
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
53267
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
53267
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=1ebd1f67&scoped=true&
|
|
53268
53268
|
var newIndexvue_type_template_id_1ebd1f67_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.mapTypeAndLayer && _vm.mapTypeAndLayer.length > 0)?_c('div',{staticClass:"switch-map"},[_c('div',{staticClass:"top",style:({height:_vm.height + 'px'})},[_c('p',{class:_vm.bottomRight?(_vm.isExpand?'el-icon-arrow-left':'el-icon-arrow-right'):(!_vm.isExpand?'el-icon-arrow-left':'el-icon-arrow-right'),on:{"click":_vm.changeExpand}}),_c('ul',_vm._l((_vm.mapTypeCopy),function(obj,index){return _c('li',{key:index,class:{ color: !_vm.isExpand?_vm.mapTypeActive === obj.id:true },on:{"click":function($event){return _vm.mapTypeClick(obj)}}},[_c('i',{class:_vm.isExpand?obj.activeIcon:(_vm.mapTypeActive === obj.id?obj.activeIcon:obj.icon)}),_vm._v(" "+_vm._s(obj.name)+" ")])}),0)]),_c('ul',{class:{bottom:true,marginLeft:_vm.bottomRight}},_vm._l((_vm.mapStyleCopy),function(row,index){return _c('li',{key:index,class:{color:!_vm.isTop?_vm.mapStyleActive === row.id:true},style:({height:_vm.height + 'px',lineHeight:_vm.height + 'px'})},[_c('span',{on:{"click":function($event){return _vm.mapStyleClick(row)}}},[_vm._v(" "+_vm._s(row.name)+" ")]),_c('i',{directives:[{name:"show",rawName:"v-show",value:(index===0),expression:"index===0"}],class:_vm.isTop?'el-icon-arrow-down':'el-icon-arrow-up',on:{"click":_vm.changeDirectionArrow}})])}),0)]):_vm._e()}
|
|
53269
53269
|
var newIndexvue_type_template_id_1ebd1f67_scoped_true_staticRenderFns = []
|
|
53270
53270
|
|
|
@@ -53935,7 +53935,7 @@ ryMapTool_src.install = Vue => {
|
|
|
53935
53935
|
};
|
|
53936
53936
|
|
|
53937
53937
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
53938
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
53938
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygon/src/index.vue?vue&type=template&id=03547f60&
|
|
53939
53939
|
var srcvue_type_template_id_03547f60_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
53940
53940
|
var srcvue_type_template_id_03547f60_staticRenderFns = []
|
|
53941
53941
|
|
|
@@ -54309,7 +54309,7 @@ ryPolygon_src.install = Vue => {
|
|
|
54309
54309
|
};
|
|
54310
54310
|
|
|
54311
54311
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
54312
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
54312
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygons/src/index.vue?vue&type=template&id=669909a7&
|
|
54313
54313
|
var srcvue_type_template_id_669909a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
54314
54314
|
var srcvue_type_template_id_669909a7_staticRenderFns = []
|
|
54315
54315
|
|
|
@@ -55048,7 +55048,7 @@ ryPolygons_src.install = Vue => {
|
|
|
55048
55048
|
};
|
|
55049
55049
|
|
|
55050
55050
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
55051
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
55051
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryClusters/src/index.vue?vue&type=template&id=40183d93&scoped=true&
|
|
55052
55052
|
var srcvue_type_template_id_40183d93_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
55053
55053
|
var srcvue_type_template_id_40183d93_scoped_true_staticRenderFns = []
|
|
55054
55054
|
|
package/lib/ryui.common.js.gz
CHANGED
|
Binary file
|
package/lib/ryui.umd.js
CHANGED
|
@@ -51681,7 +51681,7 @@ if (typeof window !== 'undefined') {
|
|
|
51681
51681
|
// Indicate to webpack that this file can be concatenated
|
|
51682
51682
|
/* harmony default export */ var setPublicPath = (null);
|
|
51683
51683
|
|
|
51684
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
51684
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMap/src/index.vue?vue&type=template&id=6eab1164&scoped=true&
|
|
51685
51685
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"map-box"},[_c('div',{directives:[{name:"lmap",rawName:"v-lmap:loadMap",arg:"loadMap"}],staticClass:"map-style"}),(_vm.lMap.map && _vm.isRyMapTool)?_c('RyMapTool',{staticClass:"ry-map-tool",class:{
|
|
51686
51686
|
'left':!_vm.isRight,
|
|
51687
51687
|
'right':_vm.isRight
|
|
@@ -52762,14 +52762,14 @@ class mapTool_MapToolDto {
|
|
|
52762
52762
|
}
|
|
52763
52763
|
|
|
52764
52764
|
}
|
|
52765
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
52765
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=00ba6f29&scoped=true&
|
|
52766
52766
|
var srcvue_type_template_id_00ba6f29_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"draw-tool-box"},[(!_vm.isRight)?[(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e(),(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-left":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e()]:[(_vm.isShowRangingTool)?_c('aside',{staticClass:"map-control",staticStyle:{"margin-right":"60px"}},[(!_vm.hideLine)?_c('el-button',{staticClass:"ele-text-primary el-icon--changdu",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateLine()}}}):_vm._e(),(!_vm.hideArea)?_c('el-button',{staticClass:"ele-text-primary el-icon--mianji",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCreateArea()}}}):_vm._e()],1):_vm._e(),(_vm.isShowDrawTool)?_c('aside',{staticClass:"map-button-box"},[(!_vm.hideAdd)?_c('el-button',{staticClass:"ele-text-primary el-icon--add",on:{"click":function($event){$event.stopPropagation();return _vm.onCreatePolygon()}}}):_vm._e(),(!_vm.hidePoint)?_c('el-button',{staticClass:"ele-text-primary el-icon--dadian",on:{"click":function($event){$event.stopPropagation();return _vm.onPointEvent()}}}):_vm._e(),(!_vm.hideCancel)?_c('el-button',{staticClass:"ele-text-primary el-icon--back",on:{"click":function($event){$event.stopPropagation();return _vm.lMap.onCancel()}}}):_vm._e(),(!_vm.hideDelete)?_c('el-button',{staticClass:"ele-text-primary el-icon--ashbin",on:{"click":function($event){$event.stopPropagation();return _vm.onDelete()}}}):_vm._e(),(!_vm.hideSave)?_c('el-button',{staticClass:"ele-text-primary el-icon--duihao",on:{"click":function($event){$event.stopPropagation();return _vm.onSave()}}}):_vm._e(),_vm._t("default")],2):_vm._e()],(_vm.lMap && _vm.isCrossHair)?_c('ry-cross-hair',{attrs:{"map":_vm.lMap.map},on:{"click":function($event){return _vm.onClick($event)}}}):_vm._e()],2)}
|
|
52767
52767
|
var srcvue_type_template_id_00ba6f29_scoped_true_staticRenderFns = []
|
|
52768
52768
|
|
|
52769
52769
|
|
|
52770
52770
|
// CONCATENATED MODULE: ./src/components/maps/ryMapTool/src/index.vue?vue&type=template&id=00ba6f29&scoped=true&
|
|
52771
52771
|
|
|
52772
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
52772
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryCrossHair/src/index.vue?vue&type=template&id=7f8ce019&
|
|
52773
52773
|
var srcvue_type_template_id_7f8ce019_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
52774
52774
|
var srcvue_type_template_id_7f8ce019_staticRenderFns = []
|
|
52775
52775
|
|
|
@@ -53273,7 +53273,7 @@ var src_component = normalizeComponent(
|
|
|
53273
53273
|
)
|
|
53274
53274
|
|
|
53275
53275
|
/* harmony default export */ var ryMapTool_src = (src_component.exports);
|
|
53276
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
53276
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/switchMap/src/newIndex.vue?vue&type=template&id=1ebd1f67&scoped=true&
|
|
53277
53277
|
var newIndexvue_type_template_id_1ebd1f67_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.mapTypeAndLayer && _vm.mapTypeAndLayer.length > 0)?_c('div',{staticClass:"switch-map"},[_c('div',{staticClass:"top",style:({height:_vm.height + 'px'})},[_c('p',{class:_vm.bottomRight?(_vm.isExpand?'el-icon-arrow-left':'el-icon-arrow-right'):(!_vm.isExpand?'el-icon-arrow-left':'el-icon-arrow-right'),on:{"click":_vm.changeExpand}}),_c('ul',_vm._l((_vm.mapTypeCopy),function(obj,index){return _c('li',{key:index,class:{ color: !_vm.isExpand?_vm.mapTypeActive === obj.id:true },on:{"click":function($event){return _vm.mapTypeClick(obj)}}},[_c('i',{class:_vm.isExpand?obj.activeIcon:(_vm.mapTypeActive === obj.id?obj.activeIcon:obj.icon)}),_vm._v(" "+_vm._s(obj.name)+" ")])}),0)]),_c('ul',{class:{bottom:true,marginLeft:_vm.bottomRight}},_vm._l((_vm.mapStyleCopy),function(row,index){return _c('li',{key:index,class:{color:!_vm.isTop?_vm.mapStyleActive === row.id:true},style:({height:_vm.height + 'px',lineHeight:_vm.height + 'px'})},[_c('span',{on:{"click":function($event){return _vm.mapStyleClick(row)}}},[_vm._v(" "+_vm._s(row.name)+" ")]),_c('i',{directives:[{name:"show",rawName:"v-show",value:(index===0),expression:"index===0"}],class:_vm.isTop?'el-icon-arrow-down':'el-icon-arrow-up',on:{"click":_vm.changeDirectionArrow}})])}),0)]):_vm._e()}
|
|
53278
53278
|
var newIndexvue_type_template_id_1ebd1f67_scoped_true_staticRenderFns = []
|
|
53279
53279
|
|
|
@@ -53944,7 +53944,7 @@ ryMapTool_src.install = Vue => {
|
|
|
53944
53944
|
};
|
|
53945
53945
|
|
|
53946
53946
|
/* harmony default export */ var ryMapTool = (ryMapTool_src);
|
|
53947
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
53947
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygon/src/index.vue?vue&type=template&id=03547f60&
|
|
53948
53948
|
var srcvue_type_template_id_03547f60_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
53949
53949
|
var srcvue_type_template_id_03547f60_staticRenderFns = []
|
|
53950
53950
|
|
|
@@ -54318,7 +54318,7 @@ ryPolygon_src.install = Vue => {
|
|
|
54318
54318
|
};
|
|
54319
54319
|
|
|
54320
54320
|
/* harmony default export */ var ryPolygon = (ryPolygon_src);
|
|
54321
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
54321
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryPolygons/src/index.vue?vue&type=template&id=669909a7&
|
|
54322
54322
|
var srcvue_type_template_id_669909a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c("div")}
|
|
54323
54323
|
var srcvue_type_template_id_669909a7_staticRenderFns = []
|
|
54324
54324
|
|
|
@@ -55057,7 +55057,7 @@ ryPolygons_src.install = Vue => {
|
|
|
55057
55057
|
};
|
|
55058
55058
|
|
|
55059
55059
|
/* harmony default export */ var ryPolygons = (ryPolygons_src);
|
|
55060
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
55060
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"12aa95f6-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/maps/ryClusters/src/index.vue?vue&type=template&id=40183d93&scoped=true&
|
|
55061
55061
|
var srcvue_type_template_id_40183d93_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div')}
|
|
55062
55062
|
var srcvue_type_template_id_40183d93_scoped_true_staticRenderFns = []
|
|
55063
55063
|
|
package/lib/ryui.umd.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ry-vue-map",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "lib/ryui.umd.min.js",
|
|
6
6
|
"description": "ry公共组件库",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"author": "
|
|
8
|
+
"author": "lzh",
|
|
9
9
|
"keywords": [
|
|
10
10
|
"ry",
|
|
11
11
|
"vue",
|
|
12
|
-
"element-ui"
|
|
13
|
-
"ele-admin"
|
|
12
|
+
"element-ui"
|
|
14
13
|
],
|
|
15
14
|
"files": [
|
|
16
15
|
"lib/*",
|
|
@@ -36,7 +35,6 @@
|
|
|
36
35
|
"axios": "~0.21.1",
|
|
37
36
|
"core-js": "~3.15.2",
|
|
38
37
|
"countup.js": "~2.0.7",
|
|
39
|
-
"ele-admin": "~1.7.3",
|
|
40
38
|
"element-ui": "~2.15.6",
|
|
41
39
|
"nprogress": "~0.2.0",
|
|
42
40
|
"ol": "^6.14.1",
|
package/src/main.js
CHANGED
|
@@ -3,24 +3,20 @@ import Vue from 'vue';
|
|
|
3
3
|
import App from './App.vue';
|
|
4
4
|
import store from './store';
|
|
5
5
|
import router from './router';
|
|
6
|
-
import permission from './utils/permission';
|
|
7
6
|
import * as directives from '@/directives';
|
|
8
7
|
import './styles/index.scss';
|
|
9
|
-
import EleAdmin from 'ele-admin';
|
|
10
8
|
import RyUI from '../lib/ryui.umd.min';
|
|
11
9
|
import { TMapOptions } from 'ry-map';
|
|
12
10
|
import './assets/fonts/index.scss';
|
|
13
|
-
|
|
11
|
+
import ElementUI from 'element-ui';
|
|
12
|
+
import 'element-ui/lib/theme-chalk/index.css';
|
|
14
13
|
// 设置地图key
|
|
15
14
|
TMapOptions.setKey = '918abe375dde75d1aed8085e1e652088';
|
|
16
15
|
Vue.config.productionTip = false;
|
|
17
16
|
|
|
18
|
-
Vue.use(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
Vue.use(permission);
|
|
17
|
+
Vue.use(ElementUI);
|
|
18
|
+
|
|
19
|
+
|
|
24
20
|
|
|
25
21
|
Vue.use(RyUI);
|
|
26
22
|
|
package/src/router/index.js
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import Vue from 'vue';
|
|
5
5
|
import VueRouter from 'vue-router';
|
|
6
|
-
import store from '@/store';
|
|
7
|
-
import EleLayout from '@/layout';
|
|
8
|
-
import { menuToRoutes } from 'ele-admin';
|
|
9
|
-
import { WHITE_LIST, HOME_PATH } from '@/config/setting';
|
|
10
|
-
import { getToken } from '@/utils/token-util';
|
|
11
6
|
import NProgress from 'nprogress';
|
|
12
7
|
|
|
13
8
|
Vue.use(VueRouter);
|
|
@@ -21,7 +16,7 @@ const routes = [
|
|
|
21
16
|
},
|
|
22
17
|
{
|
|
23
18
|
path: '*',
|
|
24
|
-
|
|
19
|
+
component: () => import('@/views/map'),
|
|
25
20
|
}
|
|
26
21
|
];
|
|
27
22
|
|
|
@@ -50,37 +45,6 @@ router.beforeEach((to, from, next) => {
|
|
|
50
45
|
NProgress.start();
|
|
51
46
|
updateTitle(to);
|
|
52
47
|
next();
|
|
53
|
-
// 判断是否登录
|
|
54
|
-
// if (getToken()) {
|
|
55
|
-
// // 还未注册动态路由则先获取
|
|
56
|
-
// if (!store.state.user.menus) {
|
|
57
|
-
// store
|
|
58
|
-
// .dispatch('user/fetchUserInfo')
|
|
59
|
-
// .then(({ menus, homePath }) => {
|
|
60
|
-
// router.addRoute({
|
|
61
|
-
// path: '/',
|
|
62
|
-
// component: EleLayout,
|
|
63
|
-
// redirect: HOME_PATH ?? homePath,
|
|
64
|
-
// children: menuToRoutes(menus, (component) =>
|
|
65
|
-
// import('@/views' + component)
|
|
66
|
-
// )
|
|
67
|
-
// });
|
|
68
|
-
// next({ ...to, replace: true });
|
|
69
|
-
// })
|
|
70
|
-
// .catch(() => {
|
|
71
|
-
// next();
|
|
72
|
-
// });
|
|
73
|
-
// } else {
|
|
74
|
-
// next();
|
|
75
|
-
// }
|
|
76
|
-
// } else if (WHITE_LIST.includes(to.path)) {
|
|
77
|
-
// next();
|
|
78
|
-
// } else {
|
|
79
|
-
// next({
|
|
80
|
-
// path: '/login',
|
|
81
|
-
// query: to.path === '/' ? {} : { from: to.path }
|
|
82
|
-
// });
|
|
83
|
-
// }
|
|
84
48
|
});
|
|
85
49
|
|
|
86
50
|
router.afterEach(() => {
|
package/src/store/index.js
CHANGED
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import Vue from 'vue';
|
|
5
5
|
import Vuex from 'vuex';
|
|
6
|
-
import getters from './getters';
|
|
7
|
-
import user from './modules/user';
|
|
8
|
-
import theme from './modules/theme';
|
|
9
6
|
|
|
10
7
|
Vue.use(Vuex);
|
|
11
8
|
|
|
@@ -14,8 +11,6 @@ export default new Vuex.Store({
|
|
|
14
11
|
mutations: {},
|
|
15
12
|
actions: {},
|
|
16
13
|
modules: {
|
|
17
|
-
|
|
18
|
-
theme
|
|
14
|
+
|
|
19
15
|
},
|
|
20
|
-
getters
|
|
21
16
|
});
|
package/src/styles/index.scss
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** 全局样式 */
|
|
2
2
|
// 如果需要覆盖更多样式变量请查看文档
|
|
3
|
-
$--ele-font-path: '~ele-admin/packages/style/fonts';
|
|
4
3
|
// 如果不需要切换主题使用这个
|
|
5
4
|
//@import '~ele-admin/packages/style/themes/default.scss';
|
|
6
5
|
// 如果不需要切换主题固定为夜间主题使用这个
|
|
7
6
|
//@import '~ele-admin/packages/style/themes/dark.scss';
|
|
8
7
|
// 需要在线切换主题使用这个
|
|
9
|
-
@import '~ele-admin/packages/style/themes/dynamic.scss';
|
|
8
|
+
// @import '~ele-admin/packages/style/themes/dynamic.scss';
|
package/vue.config.js
CHANGED
|
@@ -2,7 +2,7 @@ const CompressionWebpackPlugin = require('compression-webpack-plugin');
|
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
productionSourceMap: false,
|
|
5
|
-
transpileDependencies: ['element-ui'
|
|
5
|
+
transpileDependencies: ['element-ui'],
|
|
6
6
|
chainWebpack(config) {
|
|
7
7
|
config.plugins.delete('prefetch');
|
|
8
8
|
if (process.env.NODE_ENV !== 'development') {
|
package/src/config/setting.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// 不显示侧栏的路由
|
|
2
|
-
export const HIDE_SIDEBARS = [];
|
|
3
|
-
|
|
4
|
-
// 不显示页脚的路由
|
|
5
|
-
export const HIDE_FOOTERS = [
|
|
6
|
-
'/system/dictionary',
|
|
7
|
-
'/system/organization',
|
|
8
|
-
'/form/advanced',
|
|
9
|
-
'/example/choose'
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
// 页签同路由不同参数可重复打开的路由
|
|
13
|
-
export const REPEATABLE_TABS = ['/system/user-info'];
|
|
14
|
-
|
|
15
|
-
// 不需要登录的路由
|
|
16
|
-
export const WHITE_LIST = ['/login', '/forget'];
|
|
17
|
-
|
|
18
|
-
// 直接指定菜单数据
|
|
19
|
-
export const USER_MENUS = null;
|
|
20
|
-
|
|
21
|
-
// token传递的header名称
|
|
22
|
-
export const TOKEN_HEADER_NAME = 'Authorization';
|
|
23
|
-
|
|
24
|
-
// token存储的名称
|
|
25
|
-
export const TOKEN_STORE_NAME = 'access_token';
|
|
26
|
-
|
|
27
|
-
// 主题配置存储的名称
|
|
28
|
-
export const THEME_STORE_NAME = 'theme';
|
|
29
|
-
|
|
30
|
-
// 首页名称, 为空则取第一个菜单的名称
|
|
31
|
-
export const HOME_TITLE = '主页';
|
|
32
|
-
|
|
33
|
-
// 首页路径, 为空则取第一个菜单的地址
|
|
34
|
-
export const HOME_PATH = null;
|
|
35
|
-
|
|
36
|
-
// 顶栏是否显示主题设置按钮
|
|
37
|
-
export const ENABLE_SETTING = true;
|
|
38
|
-
|
|
39
|
-
// 开启多页签后是否缓存组件
|
|
40
|
-
export const TAB_KEEP_ALIVE = process.env.NODE_ENV !== 'development';
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<!-- 页脚 -->
|
|
2
|
-
<template>
|
|
3
|
-
<div class="ele-text-center" style="padding: 16px 0">
|
|
4
|
-
<div>
|
|
5
|
-
<a target="_blank" class="ele-text-secondary" href="https://eleadmin.com">
|
|
6
|
-
{{ $t('layout.footer.website') }}
|
|
7
|
-
</a>
|
|
8
|
-
<em />
|
|
9
|
-
<a
|
|
10
|
-
target="_blank"
|
|
11
|
-
class="ele-text-secondary"
|
|
12
|
-
href="https://eleadmin.com/doc/eleadmin/"
|
|
13
|
-
>
|
|
14
|
-
{{ $t('layout.footer.document') }}
|
|
15
|
-
</a>
|
|
16
|
-
<em />
|
|
17
|
-
<a
|
|
18
|
-
target="_blank"
|
|
19
|
-
class="ele-text-secondary"
|
|
20
|
-
href="https://eleadmin.com/goods/8"
|
|
21
|
-
>
|
|
22
|
-
{{ $t('layout.footer.authorization') }}
|
|
23
|
-
</a>
|
|
24
|
-
</div>
|
|
25
|
-
<div class="ele-text-secondary" style="margin-top: 8px">
|
|
26
|
-
{{ $t('layout.footer.copyright') }}
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</template>
|
|
30
|
-
|
|
31
|
-
<script>
|
|
32
|
-
export default {
|
|
33
|
-
name: 'EleFooter'
|
|
34
|
-
};
|
|
35
|
-
</script>
|