Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
b76bf4ba
提交
b76bf4ba
编写于
11月 19, 2020
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加地图定位组件
上级
ed804eb6
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
155 行增加
和
0 行删除
+155
-0
app-register.ts
src/app-register.ts
+2
-0
app-map-position.less
src/components/app-map-position/app-map-position.less
+13
-0
app-map-position.vue
src/components/app-map-position/app-map-position.vue
+140
-0
未找到文件。
src/app-register.ts
浏览文件 @
b76bf4ba
...
@@ -100,6 +100,7 @@ import AppRawItem from './components/app-rawitem/app-rawitem.vue'
...
@@ -100,6 +100,7 @@ import AppRawItem from './components/app-rawitem/app-rawitem.vue'
import
AppImageRomate
from
'./components/app-image-romate/app-image-romate.vue'
import
AppImageRomate
from
'./components/app-image-romate/app-image-romate.vue'
import
{
MenuIcon
}
from
'./components/menu-icon/menu-icon'
import
{
MenuIcon
}
from
'./components/menu-icon/menu-icon'
import
AppVuePivottable
from
'./components/app-vue-pivottable/app-vue-pivottable.vue'
;
import
AppVuePivottable
from
'./components/app-vue-pivottable/app-vue-pivottable.vue'
;
import
AppMapPosition
from
'./components/app-map-position/app-map-position.vue'
;
// 全局挂载UI实体服务注册中心
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
@@ -215,5 +216,6 @@ export const AppComponents = {
...
@@ -215,5 +216,6 @@ export const AppComponents = {
v
.
component
(
'app-image-romate'
,
AppImageRomate
);
v
.
component
(
'app-image-romate'
,
AppImageRomate
);
v
.
component
(
'menu-icon'
,
MenuIcon
);
v
.
component
(
'menu-icon'
,
MenuIcon
);
v
.
component
(
'app-vue-pivottable'
,
AppVuePivottable
);
v
.
component
(
'app-vue-pivottable'
,
AppVuePivottable
);
v
.
component
(
'app-map-position'
,
AppMapPosition
);
},
},
};
};
\ No newline at end of file
src/components/app-map-position/app-map-position.less
0 → 100644
浏览文件 @
b76bf4ba
.el-input__inner{
height: 32px;
}
.el-icon-check{
display: none;
}
.el-button--primary{
height: 34px;
padding: 0 12px;
>span{
margin-left: 0 !important;
}
}
src/components/app-map-position/app-map-position.vue
0 → 100644
浏览文件 @
b76bf4ba
<
template
>
<div
class=
"app-map-position"
>
<el-row>
<el-col>
<avue-input-map
:params=
"params"
placeholder=
"请选择地图"
v-model=
"form"
></avue-input-map>
</el-col>
</el-row>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
@
Component
({
components
:
{
}
})
export
default
class
AppMapPosition
extends
Vue
{
/**
* 应用上下文
*
* @type {any}
* @memberof AppInputIp
*/
@
Prop
()
context
:
any
;
/**
* 视图参数
*
* @type {any}
* @memberof AppInputIp
*/
@
Prop
()
viewparam
:
any
;
/**
* 表单状态对象
*
* @type {Subject<any>}
* @memberof AppInputIp
*/
@
Prop
()
public
formState
!
:
Subject
<
any
>
;
/**
* 表单绑定地址数据
*
* @type {any}
* @memberof AppMapPosition
*/
@
Model
(
'change'
)
public
addrdata
:
any
;
/**
* 经度
*
* @type {any}
* @memberof AppMapPosition
*/
@
Prop
()
longitude
:
any
;
/**
* 纬度
*
* @type {any}
* @memberof AppMapPosition
*/
@
Prop
()
latitude
:
any
;
/**
* 高德初始化参数
*
* @memberof AppMapPosition
*/
public
params
:
any
=
{
zoom
:
10
,
zoomEnable
:
true
,
dragEnable
:
true
}
/**
* 显示数据
*
* @type {Array}
* @memberof AppMapPosition
*/
public
form
:
any
[]
=
[];
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof AppMapPosition
*/
public
created
(){
if
(
this
.
formState
){
this
.
formState
.
subscribe
(({
type
,
data
})
=>
{
if
(
Object
.
is
(
'load'
,
type
)){
this
.
loadData
();
}
})
}
else
{
this
.
loadData
();
}
}
/**
* 加载数据
*
* @memberof AppMapPosition
*/
public
loadData
(){
if
(
this
.
latitude
&&
this
.
longitude
&&
this
.
addrdata
){
this
.
form
.
push
(
this
.
longitude
,
this
.
latitude
,
this
.
addrdata
);
}
else
{
this
.
form
=
[
113.10235504165291
,
41.03624227495205
,
"内蒙古自治区乌兰察布市集宁区新体路街道顺达源广告传媒"
];
}
}
/**
* 选中数据变化
*
* @memberof AppMapPosition
*/
@
Watch
(
'form'
)
public
formChange
(
newVal
:
any
,
oldVal
:
any
){
if
(
newVal
){
this
.
$emit
(
'longitudeChange'
,
newVal
[
0
]);
this
.
$emit
(
'latitudeChange'
,
newVal
[
1
]);
this
.
$emit
(
'change'
,
newVal
[
2
]);
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './app-map-position.less';
</
style
>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录