Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-insurance
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cfa2a1a5
authored
Nov 27, 2020
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改样式
1 parent
03ca1884
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
148 additions
and
66 deletions
package-lock.json
src/views/biz/collision/index.vue
src/views/biz/fmrsdevice/index.vue
src/views/biz/lost/index.vue
src/views/biz/maintenance/index.vue
src/views/biz/merchant/index.vue
src/views/biz/shop/index.vue
src/views/biz/tspdevice/index.vue
package-lock.json
View file @
cfa2a1a
...
@@ -5414,8 +5414,7 @@
...
@@ -5414,8 +5414,7 @@
"ansi-regex"
:
{
"ansi-regex"
:
{
"version"
:
"2.1.1"
,
"version"
:
"2.1.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"aproba"
:
{
"aproba"
:
{
"version"
:
"1.2.0"
,
"version"
:
"1.2.0"
,
...
@@ -5436,14 +5435,12 @@
...
@@ -5436,14 +5435,12 @@
"balanced-match"
:
{
"balanced-match"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"brace-expansion"
:
{
"brace-expansion"
:
{
"version"
:
"1.1.11"
,
"version"
:
"1.1.11"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"balanced-match"
:
"^1.0.0"
,
"balanced-match"
:
"^1.0.0"
,
"concat-map"
:
"0.0.1"
"concat-map"
:
"0.0.1"
...
@@ -5458,20 +5455,17 @@
...
@@ -5458,20 +5455,17 @@
"code-point-at"
:
{
"code-point-at"
:
{
"version"
:
"1.1.0"
,
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"concat-map"
:
{
"concat-map"
:
{
"version"
:
"0.0.1"
,
"version"
:
"0.0.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"console-control-strings"
:
{
"console-control-strings"
:
{
"version"
:
"1.1.0"
,
"version"
:
"1.1.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"core-util-is"
:
{
"core-util-is"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
...
@@ -5588,8 +5582,7 @@
...
@@ -5588,8 +5582,7 @@
"inherits"
:
{
"inherits"
:
{
"version"
:
"2.0.4"
,
"version"
:
"2.0.4"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"ini"
:
{
"ini"
:
{
"version"
:
"1.3.5"
,
"version"
:
"1.3.5"
,
...
@@ -5601,7 +5594,6 @@
...
@@ -5601,7 +5594,6 @@
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"number-is-nan"
:
"^1.0.0"
"number-is-nan"
:
"^1.0.0"
}
}
...
@@ -5616,7 +5608,6 @@
...
@@ -5616,7 +5608,6 @@
"version"
:
"3.0.4"
,
"version"
:
"3.0.4"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"brace-expansion"
:
"^1.1.7"
"brace-expansion"
:
"^1.1.7"
}
}
...
@@ -5624,14 +5615,12 @@
...
@@ -5624,14 +5615,12 @@
"minimist"
:
{
"minimist"
:
{
"version"
:
"1.2.5"
,
"version"
:
"1.2.5"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"minipass"
:
{
"minipass"
:
{
"version"
:
"2.9.0"
,
"version"
:
"2.9.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"safe-buffer"
:
"^5.1.2"
,
"safe-buffer"
:
"^5.1.2"
,
"yallist"
:
"^3.0.0"
"yallist"
:
"^3.0.0"
...
@@ -5650,7 +5639,6 @@
...
@@ -5650,7 +5639,6 @@
"version"
:
"0.5.3"
,
"version"
:
"0.5.3"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"minimist"
:
"^1.2.5"
"minimist"
:
"^1.2.5"
}
}
...
@@ -5719,8 +5707,7 @@
...
@@ -5719,8 +5707,7 @@
"npm-normalize-package-bin"
:
{
"npm-normalize-package-bin"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"npm-packlist"
:
{
"npm-packlist"
:
{
"version"
:
"1.4.8"
,
"version"
:
"1.4.8"
,
...
@@ -5748,8 +5735,7 @@
...
@@ -5748,8 +5735,7 @@
"number-is-nan"
:
{
"number-is-nan"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"object-assign"
:
{
"object-assign"
:
{
"version"
:
"4.1.1"
,
"version"
:
"4.1.1"
,
...
@@ -5761,7 +5747,6 @@
...
@@ -5761,7 +5747,6 @@
"version"
:
"1.4.0"
,
"version"
:
"1.4.0"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"wrappy"
:
"1"
"wrappy"
:
"1"
}
}
...
@@ -5839,8 +5824,7 @@
...
@@ -5839,8 +5824,7 @@
"safe-buffer"
:
{
"safe-buffer"
:
{
"version"
:
"5.1.2"
,
"version"
:
"5.1.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"safer-buffer"
:
{
"safer-buffer"
:
{
"version"
:
"2.1.2"
,
"version"
:
"2.1.2"
,
...
@@ -5876,7 +5860,6 @@
...
@@ -5876,7 +5860,6 @@
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"code-point-at"
:
"^1.0.0"
,
"code-point-at"
:
"^1.0.0"
,
"is-fullwidth-code-point"
:
"^1.0.0"
,
"is-fullwidth-code-point"
:
"^1.0.0"
,
...
@@ -5896,7 +5879,6 @@
...
@@ -5896,7 +5879,6 @@
"version"
:
"3.0.1"
,
"version"
:
"3.0.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
,
"optional"
:
true
,
"requires"
:
{
"requires"
:
{
"ansi-regex"
:
"^2.0.0"
"ansi-regex"
:
"^2.0.0"
}
}
...
@@ -5940,14 +5922,12 @@
...
@@ -5940,14 +5922,12 @@
"wrappy"
:
{
"wrappy"
:
{
"version"
:
"1.0.2"
,
"version"
:
"1.0.2"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
},
},
"yallist"
:
{
"yallist"
:
{
"version"
:
"3.1.1"
,
"version"
:
"3.1.1"
,
"bundled"
:
true
,
"bundled"
:
true
,
"dev"
:
true
,
"dev"
:
true
"optional"
:
true
}
}
}
}
},
},
...
@@ -8258,7 +8238,7 @@
...
@@ -8258,7 +8238,7 @@
},
},
"moment"
:
{
"moment"
:
{
"version"
:
"2.29.1"
,
"version"
:
"2.29.1"
,
"resolved"
:
"https://r
.cnpmjs.org/moment/download/
moment-2.29.1.tgz"
,
"resolved"
:
"https://r
egistry.npm.taobao.org/moment/download/moment-2.29.1.tgz?cache=0&sync_timestamp=1601983320283&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmoment%2Fdownload%2F
moment-2.29.1.tgz"
,
"integrity"
:
"sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M="
"integrity"
:
"sha1-sr52n6MZQL6e7qZGnAdeNQBvo9M="
},
},
"move-concurrently"
:
{
"move-concurrently"
:
{
...
...
src/views/biz/collision/index.vue
View file @
cfa2a1a
<
template
>
<
template
>
<div>
<div
class=
"collision"
>
<gl-form
<gl-form
:inline=
"true"
:inline=
"true"
:model=
"searcher"
:model=
"searcher"
...
@@ -94,11 +94,46 @@
...
@@ -94,11 +94,46 @@
</el-popover>
</el-popover>
</gl-form-item>
</gl-form-item>
</gl-form>
</gl-form>
<
g
l-table
<
e
l-table
class=
"m-b10"
class=
"m-b10"
:table=
"collisionTable"
border
stripe
align=
'center'
:data=
"collisionTable.data"
v-loading=
"loading"
v-loading=
"loading"
></gl-table>
>
<el-table-column
v-if=
"collisionTable.number"
:label=
"collisionTable.number.label"
type=
"index"
:index=
"collisionTable.number.index"
:width=
"collisionTable.number.width"
:min-width=
"collisionTable.number.minWidth"
:fixed=
"collisionTable.number.fixed"
:align=
"collisionTable.number.align || collisionTable.align"
:header-align=
"collisionTable.number.headerAlign || collisionTable.headerAlign"
></el-table-column>
<el-table-column
align=
"center"
v-for=
"(i, index) in collisionTable.column"
:key=
"index"
:label=
'i.label'
:prop=
'i.prop'
:width=
'i.width'
>
<template
slot-scope=
"scope"
>
<template
v-if=
'i.prop === "address"'
>
<a
@
click=
"openMap(scope.row)"
class=
"el-button el-button--text"
>
{{
collisionTable
.
data
[
scope
.
$index
][
i
.
prop
]
}}
</a>
</
template
>
<
template
v-else
>
{{
collisionTable
.
data
[
scope
.
$index
][
i
.
prop
]
}}
</
template
>
</template>
</el-table-column>
</el-table>
<gl-pagination
<gl-pagination
background
background
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
...
@@ -109,12 +144,26 @@
...
@@ -109,12 +144,26 @@
layout=
"total, sizes, ->, prev, pager, next, jumper"
layout=
"total, sizes, ->, prev, pager, next, jumper"
:total=
"pager.total"
:total=
"pager.total"
></gl-pagination>
></gl-pagination>
<el-dialog
title=
"碰撞位置"
:visible
.
sync=
"dialogVisible"
width=
"50%"
:before-close=
"function() {dialogVisible = false}"
>
<div
class=
"amap-wrapper"
>
<div
id=
"container"
style=
"width:100%;height:500px;"
></div>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
collisionMethods
,
request
}
from
'@/api'
import
{
collisionMethods
,
request
}
from
'@/api'
import
{
businessList
,
pickerOptions
}
from
'@/common/constants'
import
{
businessList
,
pickerOptions
}
from
'@/common/constants'
import
loadMap
from
'@/common/loadmap'
export
default
{
export
default
{
name
:
'collision'
,
name
:
'collision'
,
data
()
{
data
()
{
...
@@ -172,6 +221,9 @@ export default {
...
@@ -172,6 +221,9 @@ export default {
{
{
label
:
'碰撞地址'
,
label
:
'碰撞地址'
,
prop
:
'address'
prop
:
'address'
// formatter: cellValue => {
// return `<el-button type="text">${cellValue.address}</el-button>`
// }
},
},
{
{
label
:
'推送门店'
,
label
:
'推送门店'
,
...
@@ -182,13 +234,33 @@ export default {
...
@@ -182,13 +234,33 @@ export default {
prop
:
'collision_time'
prop
:
'collision_time'
}
}
]
]
}
},
// 弹窗
dialogVisible
:
false
,
map
:
null
}
}
},
},
mounted
()
{
mounted
()
{
this
.
findAll
()
this
.
findAll
()
},
},
methods
:
{
methods
:
{
openMap
(
row
)
{
this
.
dialogVisible
=
true
loadMap
().
then
(
AMap
=>
{
var
map
=
new
AMap
.
Map
(
'container'
)
console
.
log
(
'-------'
,
map
)
// 创建一个 Marker 实例:
var
marker
=
new
AMap
.
Marker
({
position
:
new
AMap
.
LngLat
(
row
.
longitude
,
row
.
latitude
),
// 经纬度对象,也可以是经纬度构成的一维数组[116.39, 39.9]
title
:
'北京'
})
var
center
=
[
row
.
longitude
,
row
.
latitude
]
// 将创建的点标记添加到已有的地图实例:
map
.
add
(
marker
)
map
.
setCenter
(
center
)
map
.
setZoom
(
13
)
})
},
findAll
(
searcher
)
{
findAll
(
searcher
)
{
this
.
loading
=
true
this
.
loading
=
true
const
{
pager
}
=
this
const
{
pager
}
=
this
...
@@ -250,3 +322,8 @@ export default {
...
@@ -250,3 +322,8 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
>
.collision
.el-dialog__body
{
padding
:
10px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/biz/fmrsdevice/index.vue
View file @
cfa2a1a
...
@@ -224,7 +224,7 @@ export default {
...
@@ -224,7 +224,7 @@ export default {
},
},
{
{
label
:
'服务期限'
,
label
:
'服务期限'
,
prop
:
'
serveiceTerm
'
prop
:
'
period
'
},
},
{
{
label
:
'服务开始时间'
,
label
:
'服务开始时间'
,
...
@@ -325,3 +325,11 @@ export default {
...
@@ -325,3 +325,11 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.devices
.el-date-editor.el-input
,
.devices
.el-input
,
.devices
.el-select
>
.el-input
{
width
:
350px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/biz/lost/index.vue
View file @
cfa2a1a
...
@@ -231,7 +231,7 @@ export default {
...
@@ -231,7 +231,7 @@ export default {
prop
:
'keepTime'
prop
:
'keepTime'
},
},
{
{
label
:
'
门
店名称'
,
label
:
'
到
店名称'
,
prop
:
'merchant_name'
prop
:
'merchant_name'
},
},
{
{
...
...
src/views/biz/maintenance/index.vue
View file @
cfa2a1a
...
@@ -236,47 +236,57 @@ export default {
...
@@ -236,47 +236,57 @@ export default {
}
}
},
},
{
{
label
:
'
保养
提醒规则'
,
label
:
'提醒规则'
,
prop
:
'remind_rule'
,
prop
:
'remind_rule'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
this
.
params
.
remind_rule
[
cellValue
.
remind_rule
]
return
this
.
params
.
remind_rule
[
cellValue
.
remind_rule
]
}
},
width
:
'110'
},
},
{
{
label
:
'保养提醒时间'
,
label
:
'提醒时间'
,
prop
:
'svrtime'
prop
:
'svrtime'
,
width
:
'160'
},
},
{
{
label
:
'上次到店时间'
,
label
:
'上次到店时间'
,
prop
:
'in_time'
prop
:
'in_time'
,
width
:
'160'
},
},
{
{
label
:
'距上次到店间隔里程(KM)'
,
label
:
'距上次到店间隔里程'
,
prop
:
'diff_mileage'
prop
:
'diff_mileage'
,
width
:
'160'
},
},
{
{
label
:
'距上次到店间隔时间(天)'
,
label
:
'距上次到店间隔天数'
,
prop
:
'diff_time'
prop
:
'diff_time'
,
width
:
'160'
},
},
{
{
label
:
'常驻地到店距离(KM)'
,
label
:
'常驻地到店距离'
,
prop
:
'distance'
prop
:
'distance'
,
width
:
'130'
},
},
{
{
label
:
'上次到店时里程(KM)'
,
label
:
'上次到店时里程'
,
prop
:
'prev_mileage'
prop
:
'prev_mileage'
,
width
:
'130'
},
},
{
{
label
:
'当前里程(KM)'
,
label
:
'当前里程'
,
prop
:
'total_mileage'
prop
:
'total_mileage'
,
width
:
'90'
},
},
{
{
label
:
'推送门店'
,
label
:
'推送门店'
,
prop
:
'merchant_name'
prop
:
'merchant_name'
,
width
:
'180'
},
},
{
{
label
:
'推送时间'
,
label
:
'推送时间'
,
prop
:
'created_date'
prop
:
'created_date'
,
width
:
'160'
}
}
]
]
}
}
...
...
src/views/biz/merchant/index.vue
View file @
cfa2a1a
...
@@ -4,11 +4,11 @@
...
@@ -4,11 +4,11 @@
<gl-form
<gl-form
:inline=
"true"
:inline=
"true"
:model=
"searcher"
:model=
"searcher"
label-width=
"1
8
0px"
label-width=
"1
1
0px"
>
>
<gl-form-item
label=
"搜索关键字:"
>
<gl-form-item
label=
"搜索关键字:"
>
<gl-input
<gl-input
style=
"width:
2
50px"
style=
"width:
3
50px"
:size=
"size"
:size=
"size"
placeholder=
"请输入商户号/登录帐号/商户名称"
placeholder=
"请输入商户号/登录帐号/商户名称"
v-model=
"searcher.searchKey"
v-model=
"searcher.searchKey"
...
@@ -158,10 +158,10 @@ export default {
...
@@ -158,10 +158,10 @@ export default {
label
:
'商户电话'
,
label
:
'商户电话'
,
prop
:
'phone'
prop
:
'phone'
},
},
{
//
{
label
:
'关联服务商'
,
//
label: '关联服务商',
prop
:
'svr_merchant_name'
//
prop: 'svr_merchant_name'
},
//
},
{
{
label
:
'结算客户'
,
label
:
'结算客户'
,
prop
:
'settle_merchant_name'
prop
:
'settle_merchant_name'
...
...
src/views/biz/shop/index.vue
View file @
cfa2a1a
...
@@ -213,7 +213,7 @@ export default {
...
@@ -213,7 +213,7 @@ export default {
prop
:
'number_of_shops'
prop
:
'number_of_shops'
},
},
{
{
label
:
'
店面
名称'
,
label
:
'
到店
名称'
,
prop
:
'merchant_name'
prop
:
'merchant_name'
},
},
{
{
...
...
src/views/biz/tspdevice/index.vue
View file @
cfa2a1a
...
@@ -223,8 +223,8 @@ export default {
...
@@ -223,8 +223,8 @@ export default {
prop
:
'active_time'
prop
:
'active_time'
},
},
{
{
label
:
'服务期限
(年)
'
,
label
:
'服务期限'
,
prop
:
'
serveiceTerm
'
prop
:
'
period
'
},
},
{
{
label
:
'服务开始时间'
,
label
:
'服务开始时间'
,
...
@@ -325,3 +325,10 @@ export default {
...
@@ -325,3 +325,10 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.devices
.el-date-editor.el-input
,
.devices
.el-input
,
.devices
.el-select
>
.el-input
{
width
:
350px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment