Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
d222ddb5
Commit
d222ddb5
authored
Nov 11, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ldx' into dev
parents
4fc90ea0
a02b10e0
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
570 additions
and
554 deletions
+570
-554
src/components/general/block-radius.vue
src/components/general/block-radius.vue
+5
-2
src/components/service-list/commodity-card.vue
src/components/service-list/commodity-card.vue
+165
-126
src/components/service-list/commodity-cell.vue
src/components/service-list/commodity-cell.vue
+131
-116
src/components/service-list/commodity-list.vue
src/components/service-list/commodity-list.vue
+26
-38
src/components/service-list/service_list.vue
src/components/service-list/service_list.vue
+157
-68
src/components/service-list/service_shop_menu.vue
src/components/service-list/service_shop_menu.vue
+30
-25
src/components/service-list/service_shop_menu_copy.vue
src/components/service-list/service_shop_menu_copy.vue
+0
-152
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+4
-6
src/pages/service_shop/shop_list.vue
src/pages/service_shop/shop_list.vue
+6
-4
src/pages/workbench/component-center/process-management/designer/index.vue
...ch/component-center/process-management/designer/index.vue
+3
-3
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+40
-14
src/router/index.js
src/router/index.js
+3
-0
No files found.
src/components/general/block-radius.vue
View file @
d222ddb5
<
template
>
<
template
>
<div
class=
"block_radius"
>
<div
class=
"block_radius"
:style=
"'border-radius:' + borRadius + 'px'"
>
<div
v-if=
"show_header"
class=
"block_header"
>
<div
v-if=
"show_header"
class=
"block_header"
>
<div
class=
"block_header_title"
>
{{
title
}}
</div>
<div
class=
"block_header_title"
>
{{
title
}}
</div>
<div
class=
"block_header_button_group"
>
<div
class=
"block_header_button_group"
>
...
@@ -32,6 +32,10 @@ export default {
...
@@ -32,6 +32,10 @@ export default {
title
:
{
title
:
{
type
:
String
,
type
:
String
,
default
:
""
default
:
""
},
borRadius
:
{
type
:
Number
,
default
:
10
,
}
}
},
},
components
:
{},
components
:
{},
...
@@ -56,7 +60,6 @@ export default {
...
@@ -56,7 +60,6 @@ export default {
.block_radius
{
.block_radius
{
background-color
:
#fff
;
background-color
:
#fff
;
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.05
);
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.05
);
border-radius
:
10px
;
padding
:
20px
;
padding
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
...
...
src/components/service-list/commodity-card.vue
View file @
d222ddb5
<
template
>
<
template
>
<div
class=
"com_card"
>
<div
class=
"com_cell"
>
<div
class=
"com_card_top"
>
<div
class=
"com_cell_up"
>
<img
:src=
"cellData.logo"
class=
"com_card_img"
/>
<div
class=
"com_cell_up_img_init"
>
<div
class=
"com_card_name_v"
>
<img
:src=
"cellData.logo"
class=
"com_cell_up_img"
/>
<div
class=
"com_card_msg_name"
>
{{
cellData
.
app_name
}}
</div>
<div
class=
"com_card_msg_version"
>
V
{{
cellData
.
version
}}
</div>
</div>
</div>
</div>
<div
class=
"com_cell_up_right"
>
<div
class=
"com_card_msg"
>
<div
class=
"up_title"
>
<div
class=
"com_card_msg_tit"
>
<div
class=
"up_tit_name_in"
>
<img
:src=
"require('@/assets/imgs/icon_shijian.png')"
/>
上线时间
<span
class=
"up_tit_name"
:title=
"cellData.app_name + ' ( V' + cellData.version + ' )'"
@
click=
"goUrl(cellData.app_id)"
>
{{
cellData
.
app_name
}}
( V
{{
cellData
.
version
}}
)
</span>
</div>
</div>
<div
class=
"up_rate"
>
<el-rate
v-model=
"cellData.score"
disabled
show-score
text-color=
"#ea7d19"
score-template=
"
{value}"
>
</el-rate>
<p
class=
"get_num"
>
本月获取:
<span
class=
"com_cell_right_time"
>
{{
cellData
.
deploy_times
}}
</span>
<span
class=
"ci"
>
次
</span>
</p>
</div>
</div>
</div>
<div
class=
"com_card_msg_num"
>
{{
helper
.
dateStringTransform
(
cellData
.
create_date
)
}}
</div>
<div
class=
"get_detail"
@
click=
"goUrl(cellData.app_id)"
>
</div>
<img
src=
"@/assets/imgs/shop_ic_enter.png"
/>
<div
class=
"com_card_msg"
>
<div
class=
"com_card_msg_tit"
>
<img
:src=
"require('@/assets/imgs/icon_huoqu1.png')"
/>
部署次数
</div>
</div>
<div
class=
"com_card_msg_num1"
>
{{
cellData
.
deploy_times
}}
</div>
</div>
</div>
<div
class=
"com_card_btn"
>
<div
class=
"com_cell_down"
>
<el-button
size=
"medium"
class=
"btn_1"
@
click=
"addShop(cellData.app_id)"
>
加入购物车
</el-button>
<p
class=
"com_detail"
>
<el-button
size=
"medium"
class=
"btn_2"
@
click=
"goUrl(cellData.app_id)"
>
查看详情
</el-button>
{{
cellData
.
yyjj
}}
</p>
<el-row
:gutter=
"16"
>
<el-col
:span=
"14"
class=
"com_other"
>
<span
class=
"name_title"
>
应用类型:
</span>
{{
cellData
.
type_name
}}
{{
cellData
.
data_service_type2_name
}}
{{
cellData
.
data_service_type3_name
}}
</el-col>
<el-col
:span=
"10"
class=
"com_other"
>
<span
class=
"name_title"
>
业务领域:
</span>
{{
cellData
.
ywly_name
}}
</el-col>
<el-col
:span=
"14"
class=
"com_other"
>
<span
class=
"name_title"
>
上线时间:
</span>
{{
helper
.
dateStringTransform
(
cellData
.
create_date
)
}}
</el-col>
</el-row>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
helper
from
"
@/services/helper.js
"
;
import
helper
from
"
@/services/helper.js
"
;
// if you meet date which like 2020-06-05T00:00:00+08:00, use helper.dateStringTransform()
export
default
{
export
default
{
components
:
{},
components
:
{},
props
:
{
props
:
{
url
:
{
type
:
String
,
default
:
""
},
url
:
{
type
:
String
,
default
:
""
},
cellData
:
{
type
:
Object
,
default
:
{}
},
cellData
:
{
type
:
Object
,
default
:
{}
},
},
},
data
:
()
=>
({
data
:
()
=>
({
helper
:
helper
}),
helper
:
helper
,
}),
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{},
methods
:
{
methods
:
{
...
@@ -45,129 +76,137 @@ export default {
...
@@ -45,129 +76,137 @@ export default {
this
.
$router
.
push
(
this
.
url
+
"
/
"
+
parame
);
this
.
$router
.
push
(
this
.
url
+
"
/
"
+
parame
);
}
}
},
},
addShop
(
id
)
{
let
query
=
{
service_id
:
0
,
// 0表示不是服务
app_id
:
parseFloat
(
id
),
spec_id
:
1
,
duration
:
1
,
duration_method
:
1
,
is_subscribe
:
0
,
// 是否订阅
};
this
.
$api
.
serviceShop
.
addShoppingCart
(
query
)
.
then
(({
data
})
=>
{
if
(
data
.
success
==
1
)
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
success
"
,
});
this
.
$store
.
commit
(
"
setMenuCartState
"
);
}
else
{
this
.
$message
({
message
:
data
.
errMsg
,
type
:
"
warning
"
,
});
}
})
.
catch
((
error
)
=>
{
this
.
$message
({
message
:
`添加购物车失败`
,
type
:
"
warning
"
,
});
});
},
},
},
mounted
()
{},
mounted
()
{},
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.com_c
ard
{
.com_c
ell
{
width
:
290
px
;
width
:
496
px
;
height
:
2
66
px
;
height
:
2
08
px
;
padding
:
20px
;
background-color
:
#ffffff
;
bo
rder-radius
:
16px
;
bo
x-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.04
)
;
b
ackground-color
:
#fff
;
b
order-radius
:
12px
12px
8px
8px
;
border
:
solid
2px
transparent
;
border
:
solid
1px
#e3e4ef
;
-webkit-box-shadow
:
0px
3px
10px
0px
rgba
(
3
,
10
,
37
,
0.15
)
;
margin-bottom
:
16px
;
box-shadow
:
0px
3px
10px
0px
rgba
(
3
,
10
,
37
,
0.15
);
}
}
.com_cell_up
{
.com_card
:hover
{
height
:
88px
;
b
order
:
solid
2px
#b4c0f5
;
b
ackground-color
:
#f9fafc
;
}
border-radius
:
12px
12px
0px
0px
;
.com_card_top
{
padding
:
16px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
position
:
relative
;
margin-bottom
:
28px
;
}
}
.com_card_name_v
{
.com_cell_up_img_init
{
width
:
calc
(
100%
-
80px
);
width
:
56px
;
height
:
56px
;
margin-right
:
16px
;
flex
:
0
0
auto
;
}
}
.com_card_img
{
.com_cell_up_img
{
width
:
60px
;
width
:
100%
;
height
:
60px
;
height
:
100%
;
border-radius
:
8px
;
border-radius
:
4px
;
border
:
3px
solid
#f6f7fb
;
}
}
.com_card_msg
{
.com_cell_up_right
{
margin-top
:
20px
;
flex
:
1
1
auto
;
display
:
flex
;
justify-content
:
space-between
;
}
}
.com_card_msg_name
{
.up_title
{
font-size
:
18px
;
font-size
:
16px
;
font-weight
:
700
;
margin-top
:
4px
;
margin-top
:
4px
;
margin-bottom
:
12px
;
display
:
flex
;
align-items
:
center
;
}
.up_tit_name_in
{
max-width
:
calc
(
100%
-
150px
);
display
:
inline-block
;
}
.up_tit_name
{
width
:
100%
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
1
;
overflow
:
hidden
;
overflow
:
hidden
;
white-space
:
nowrap
;
cursor
:
pointer
;
text-overflow
:
ellipsis
;
}
}
.com_card_msg_version
{
.up_tit_name
:hover
{
font-size
:
14px
;
text-decoration
:
underline
;
color
:
#8890a7
;
}
}
.
com_card_msg_tit
{
.
up_rate
{
color
:
#8890a7
;
margin-top
:
12px
;
font-size
:
16p
x
;
display
:
fle
x
;
}
}
.
com_card_msg
_num
{
.
get
_num
{
color
:
#8890a7
;
margin-left
:
40px
;
font-size
:
14px
;
font-size
:
14px
;
position
:
relative
;
color
:
#58617a
;
top
:
2px
;
}
}
.com_card_msg_num1
{
.com_cell_right_time
{
color
:
#ea7d19
;
}
.ci
{
color
:
#242c43
;
color
:
#242c43
;
font-size
:
16px
;
font-weight
:
bold
;
}
}
.com_card_btn
{
.get_detail
{
margin-top
:
35px
;
position
:
absolute
;
display
:
flex
;
top
:
26px
;
justify-content
:
space-between
;
right
:
16px
;
}
cursor
:
pointer
;
.btn_1
{
}
width
:
110px
;
.tags
{
padding
:
10px
;
display
:
inline-block
;
background-color
:
#d0d5e7
;
margin-left
:
8px
;
border
:
solid
2px
#a5afd6
;
padding
:
2px
8px
3px
;
color
:
#0f2683
;
font-size
:
12px
;
}
font-weight
:
500
;
.btn_1
:hover
{
line-height
:
12px
;
background-color
:
#d5daec
;
border-radius
:
4px
;
border
:
solid
2px
#a5afd6
;
position
:
relative
;
color
:
#0f2683
;
top
:
1px
;
}
}
.btn_2
{
.map_service
{
width
:
110px
;
background-color
:
#626de9
;
padding
:
10px
;
border
:
solid
1px
#626de9
;
background-color
:
#0f2683
;
color
:
#fff
;
color
:
#f8f9fd
;
}
}
.shared
{
.btn_2
:hover
{
background-color
:
#e7fdfc
;
background-color
:
#1d3694
;
border
:
solid
1px
#8bd6d0
;
color
:
#f8f9fd
;
color
:
#25bdb1
;
}
.restricted
{
background-color
:
#fffee8
;
border
:
solid
1px
#e4c884
;
color
:
#ef9433
;
}
.sensitive
{
background-color
:
#ffefef
;
border
:
solid
1px
#d7a4a9
;
color
:
#e15260
;
}
.com_cell_down
{
padding
:
12px
16px
16px
;
}
.com_detail
{
color
:
#8890a7
;
font-size
:
14px
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
height
:
50px
;
}
.com_other
{
color
:
#58617a
;
margin-bottom
:
6px
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
1
;
overflow
:
hidden
;
}
.name_title
{
color
:
#8890a7
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/service-list/commodity-cell.vue
View file @
d222ddb5
<
template
>
<
template
>
<div
class=
"com_cell"
>
<div
class=
"com_cell"
>
<div
class=
"com_cell_img_box"
>
<div
class=
"com_cell_up"
>
<img
:src=
"cellData.cover"
class=
"com_cell_img"
/>
<div
class=
"com_cell_up_img_init"
>
</div>
<img
:src=
"cellData.cover"
class=
"com_cell_up_img"
/>
<div
class=
"com_cell_message"
>
<div
class=
"com_cell_msg_title"
>
{{
cellData
.
name
}}
<span
v-if=
"cellData.data_service_type1 == 6"
class=
"tags map_service"
>
mapService
</span>
<span
v-if=
"cellData.openness == 1"
class=
"tags shared"
>
共享
</span>
<span
v-else-if=
"cellData.openness == 2"
class=
"tags restricted"
>
受限
</span>
<span
v-else
class=
"tags sensitive"
>
敏感
</span>
</div>
</div>
<div
class=
"message_block"
>
<div
class=
"com_cell_up_right"
>
<div
class=
"com_cell_item"
>
<div
class=
"up_title"
>
<div
class=
"com_cell_data_detail"
>
<div
class=
"up_tit_name_in"
>
<span
class=
"detail_span"
>
{{
cellData
.
descript
}}
</span>
<span
class=
"up_tit_name"
:title=
"cellData.name"
@
click=
"goUrl(cellData.id)"
>
{{
cellData
.
name
}}
</span>
</div>
</div>
</div>
<div
class=
"com_cell_item"
>
<span
class=
"com_cell_item_title"
>
服务类型:
</span>
<span
<span
class=
"com_cell_data"
v-if=
"cellData.data_service_type1 == 6"
>
{{
cellData
.
data_service_type1_name
}}
{{
cellData
.
data_service_type2_name
}}
{{
cellData
.
data_service_type3_name
}}
</span>
class=
"tags map_service"
<span
class=
"com_cell_item_title left_blank"
>
数据领域:
</span>
>
<span
class=
"com_cell_data"
>
{{
cellData
.
sectors_name
}}
</span>
mapService
</span>
<span
v-if=
"cellData.openness == 1"
class=
"tags shared"
>
共享
</span>
<span
v-else-if=
"cellData.openness == 2"
class=
"tags restricted"
>
受限
</span>
<span
v-else
class=
"tags sensitive"
>
敏感
</span>
</div>
</div>
<div
class=
"com_cell_item"
>
<div
class=
"up_rate"
>
<span
class=
"com_cell_item_title"
>
更新时间:
</span>
<el-rate
<span
class=
"com_cell_data"
>
{{
helper
.
dateStringTransform
(
cellData
.
update_date
)
}}
</span>
v-model=
"cellData.score"
disabled
show-score
text-color=
"#ea7d19"
score-template=
"
{value}"
>
</el-rate>
<p
class=
"get_num"
>
本月获取:
<span
class=
"com_cell_right_time"
>
{{
cellData
.
apply_num
}}
</span>
<span
class=
"ci"
>
次
</span>
</p>
</div>
</div>
</div>
</div>
</div>
<div
class=
"get_detail"
@
click=
"goUrl(cellData.id)"
>
<div
class=
"com_cell_right"
>
<img
src=
"@/assets/imgs/shop_ic_enter.png"
/>
<el-rate
v-model=
"cellData.score"
disabled
show-score
text-color=
"#58617a"
score-template=
"
{value}"
>
</el-rate>
<div
class=
"com_cell_right_text"
>
<span
class=
"com_cell_right_time_tit"
>
本月获取次数:
</span>
<span
class=
"com_cell_right_time"
>
{{
cellData
.
apply_num
}}
次
</span>
</div>
</div>
<el-button
class=
"com_cell_right_btn"
@
click=
"goUrl(cellData.id)"
>
查看详情
</el-button>
</div>
<div
class=
"com_cell_down"
>
<p
class=
"com_detail"
>
{{
cellData
.
descript
}}
</p>
<el-row
:gutter=
"16"
>
<el-col
:span=
"14"
class=
"com_other"
>
<span
class=
"name_title"
>
服务类型:
</span>
{{
cellData
.
data_service_type1_name
}}
{{
cellData
.
data_service_type2_name
}}
{{
cellData
.
data_service_type3_name
}}
</el-col>
<el-col
:span=
"10"
class=
"com_other"
>
<span
class=
"name_title"
>
服务领域:
</span>
{{
cellData
.
sectors_name
}}
</el-col>
<el-col
:span=
"14"
class=
"com_other"
>
<span
class=
"name_title"
>
更新时间:
</span>
{{
helper
.
dateStringTransform
(
cellData
.
update_date
)
}}
</el-col>
</el-row>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -76,94 +94,88 @@ export default {
...
@@ -76,94 +94,88 @@ export default {
<
style
scoped
>
<
style
scoped
>
.com_cell
{
.com_cell
{
width
:
496px
;
height
:
208px
;
background-color
:
#ffffff
;
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.04
);
border-radius
:
12px
12px
8px
8px
;
border
:
solid
1px
#e3e4ef
;
margin-bottom
:
16px
;
}
.com_cell_up
{
height
:
88px
;
background-color
:
#f9fafc
;
border-radius
:
12px
12px
0px
0px
;
padding
:
16px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
position
:
relative
;
padding
:
20px
10px
;
}
border-bottom
:
2px
#f4f7fc
solid
;
.com_cell_up_img_init
{
}
width
:
56px
;
.com_cell_img_box
{
height
:
56px
;
width
:
200px
;
margin-right
:
16px
;
height
:
200px
;
flex
:
0
0
auto
;
border-radius
:
12px
;
overflow
:
hidden
;
border
:
4px
#f4f7fc
solid
;
}
}
.com_cell_img
{
.com_cell_
up_
img
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
border-radius
:
4px
;
}
}
.com_cell_message
{
.com_cell_up_right
{
padding-left
:
20px
;
flex
:
1
1
auto
;
width
:
calc
(
100%
-
500px
);
}
.com_cell_msg_title
{
color
:
#0d1847
;
font-size
:
18px
;
line-height
:
30px
;
font-weight
:
700
;
margin-bottom
:
10px
;
}
}
.com_cell_item
{
.up_title
{
font-size
:
14px
;
font-size
:
16px
;
line-height
:
28px
;
margin-top
:
4px
;
margin-top
:
1px
;
color
:
#8890a7
;
display
:
flex
;
display
:
flex
;
align-
self
:
start
;
align-
items
:
center
;
}
}
.com_cell_item_title
{
.up_tit_name_in
{
/* width: 80px; */
max-width
:
calc
(
100%
-
150px
);
}
.com_cell_data
{
display
:
inline-block
;
display
:
inline-block
;
color
:
#242c43
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.com_cell_data_detail
{
color
:
#242c43
;
height
:
78px
;
font-size
:
16px
;
}
}
.detail_span
{
.up_tit_name
{
width
:
100%
;
display
:
-webkit-box
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
-webkit-line-clamp
:
1
;
overflow
:
hidden
;
overflow
:
hidden
;
cursor
:
pointer
;
}
}
.com_cell_right
{
.up_tit_name
:hover
{
width
:
300px
;
text-decoration
:
underline
;
padding
:
25px
0
0
50px
;
}
}
.
com_cell_right_text
{
.
up_rate
{
font-size
:
16
px
;
margin-top
:
12
px
;
margin-top
:
25p
x
;
display
:
fle
x
;
}
}
.com_cell_right_time_tit
{
.get_num
{
color
:
#8890a7
;
margin-left
:
40px
;
font-size
:
14px
;
color
:
#58617a
;
}
}
.com_cell_right_time
{
.com_cell_right_time
{
color
:
#ea7d19
;
}
.ci
{
color
:
#242c43
;
color
:
#242c43
;
}
}
.com_cell_right_btn
{
.get_detail
{
background-color
:
#0f2683
;
position
:
absolute
;
color
:
#f8f9fd
;
top
:
26px
;
width
:
220px
;
right
:
16px
;
height
:
40px
;
cursor
:
pointer
;
border-radius
:
20px
;
margin-top
:
25px
;
}
}
.tags
{
.tags
{
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
10
px
;
margin-left
:
8
px
;
padding
:
2px
10
px
3px
;
padding
:
2px
8
px
3px
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
500
;
font-weight
:
500
;
line-height
:
12px
;
line-height
:
12px
;
border-radius
:
4px
;
border-radius
:
4px
;
position
:
relative
;
position
:
relative
;
top
:
-
1px
;
top
:
1px
;
}
}
.map_service
{
.map_service
{
background-color
:
#626de9
;
background-color
:
#626de9
;
...
@@ -185,24 +197,27 @@ export default {
...
@@ -185,24 +197,27 @@ export default {
border
:
solid
1px
#d7a4a9
;
border
:
solid
1px
#d7a4a9
;
color
:
#e15260
;
color
:
#e15260
;
}
}
.message_block
{
.com_cell_down
{
width
:
80%
;
padding
:
12px
16px
16px
;
padding
:
10px
20px
;
background-color
:
#f8f9fd
;
border-radius
:
10px
;
}
}
.left_blank
{
.com_detail
{
margin-left
:
20px
;
color
:
#8890a7
;
font-size
:
14px
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
overflow
:
hidden
;
height
:
50px
;
}
}
</
style
>
.com_other
{
<
style
>
color
:
#58617a
;
.com_cell_right
.el-rate__text
{
margin-bottom
:
6px
;
display
:
inline-block
;
display
:
-webkit-box
;
margin-left
:
10px
;
-webkit-box-orient
:
vertical
;
font-size
:
32px
;
-webkit-line-clamp
:
1
;
font-weight
:
700
;
overflow
:
hidden
;
}
}
.
com_cell_right
.el-rate__icon
{
.
name_title
{
font-size
:
28px
;
color
:
#8890a7
;
}
}
</
style
>
</
style
>
\ No newline at end of file
src/components/service-list/commodity-list.vue
View file @
d222ddb5
<
template
>
<
template
>
<div>
<div>
<div
v-if=
"urlFilter=='app'"
ref=
"commodityList"
class=
"commodity_card"
>
<div
v-if=
"urlFilter == 'app'"
ref=
"commodityList"
class=
"commodity_card"
>
<div
ref=
"commodityCardIn"
class=
"commodity_card_list"
>
<commodity-card
<div
v-for=
"item in datas"
v-for=
"item in datas"
:key=
"item.id"
:cellData=
"item"
:cellData=
"item"
:url=
"url"
:url=
"url"
:key=
"item.id"
></commodity-card>
class=
"commodity_card_item"
>
<commodity-card
class=
"commodity_card_item_in"
:cellData=
"item"
:url=
"url"
></commodity-card>
</div>
</div>
</div>
</div>
<div
v-else
class=
"commodity_cell"
>
<div
v-else
class=
"commodity_cell"
>
<commodity-cell
v-for=
"item in datas"
:cellData=
"item"
:url=
"url"
:key=
"item.id"
></commodity-cell>
<commodity-cell
v-for=
"item in datas"
:cellData=
"item"
:url=
"url"
:key=
"item.id"
></commodity-cell>
</div>
</div>
<!-- 分页 -->
<!-- 分页 -->
<section
class=
"com-pagination"
v-if=
"paginationShow"
>
<section
class=
"com-pagination"
v-if=
"paginationShow"
>
...
@@ -46,18 +46,17 @@
...
@@ -46,18 +46,17 @@
@
click=
"handleCurrentChange(-1)"
@
click=
"handleCurrentChange(-1)"
:disabled=
"pagination.page == 1"
:disabled=
"pagination.page == 1"
></el-button>
></el-button>
第
{{
pagination
.
page
}}
页 / 共
{{
第
{{
pagination
.
page
}}
页 / 共
Math
.
ceil
((
total
==
0
?
1
:
total
)
/
pagination
.
rowsPerPage
)
{{
Math
.
ceil
((
total
==
0
?
1
:
total
)
/
pagination
.
rowsPerPage
)
}}
页
}}
页
<el-button
<el-button
icon=
"el-icon-arrow-right"
icon=
"el-icon-arrow-right"
circle
circle
size=
"mini"
size=
"mini"
@
click=
"handleCurrentChange(1)"
@
click=
"handleCurrentChange(1)"
:disabled=
"
:disabled=
"
pagination.page >=
pagination.page >=
Math.ceil((total == 0 ? 1 : total) / pagination.rowsPerPage)
Math.ceil((total == 0 ? 1 : total) / pagination.rowsPerPage)
"
"
></el-button>
></el-button>
</div>
</div>
</div>
</div>
...
@@ -128,30 +127,11 @@ export default {
...
@@ -128,30 +127,11 @@ export default {
refreshData
()
{
refreshData
()
{
this
.
$emit
(
"
refresh
"
,
this
.
pagination
);
this
.
$emit
(
"
refresh
"
,
this
.
pagination
);
},
},
pageResize
()
{
let
listWidth
=
this
.
$refs
.
commodityCardIn
.
clientWidth
;
let
rowCardNum
=
Math
.
floor
(
listWidth
/
310
);
let
cardArr
=
this
.
$refs
.
commodityCardIn
.
children
;
// console.log(rowCardNum, listWidth / rowCardNum);
for
(
let
i
=
0
;
i
<
cardArr
.
length
;
i
++
)
{
cardArr
[
i
].
style
.
width
=
listWidth
/
rowCardNum
-
1
+
"
px
"
;
}
// console.log(this.$refs.commodityCardIn);
},
},
},
mounted
()
{},
mounted
()
{},
watch
:
{
watch
:
{
datas
:
{
datas
:
{
handler
(
val
)
{
handler
(
val
)
{},
if
(
this
.
urlFilter
==
"
app
"
)
{
setTimeout
(()
=>
{
this
.
pageResize
();
window
.
onresize
=
()
=>
{
this
.
pageResize
();
};
},
0
);
}
},
},
},
url
:
{
url
:
{
handler
()
{
handler
()
{
...
@@ -194,6 +174,9 @@ export default {
...
@@ -194,6 +174,9 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
.commodity_card
{
.commodity_card
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
}
}
.commodity_card_list
{
.commodity_card_list
{
width
:
100%
;
width
:
100%
;
...
@@ -206,6 +189,11 @@ export default {
...
@@ -206,6 +189,11 @@ export default {
.commodity_card_item_in
{
.commodity_card_item_in
{
margin
:
0
auto
;
margin
:
0
auto
;
}
}
.commodity_cell
{
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
}
</
style
>
</
style
>
<
style
>
<
style
>
.com_page_control
.el-button
{
.com_page_control
.el-button
{
...
...
src/components/service-list/service_list.vue
View file @
d222ddb5
...
@@ -10,9 +10,7 @@
...
@@ -10,9 +10,7 @@
<div
class=
"head_flex"
>
<div
class=
"head_flex"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1 bread_left"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1 bread_left"
>
<el-breadcrumb-item
:to=
"
{ path: '/shop' }">
<el-breadcrumb-item
:to=
"
{ path: '/shop' }">
{{
{{
$t
(
"
lang.service_shop
"
)
}}
$t
(
"
lang.service_shop
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
name
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
name
}}
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
...
@@ -25,22 +23,27 @@
...
@@ -25,22 +23,27 @@
></el-input>
></el-input>
</div>
</div>
</div>
</div>
<block-radius>
<block-radius
:borRadius=
"12"
>
<!-- filter -->
<!-- filter -->
<div
v-if=
"urlFilter"
class=
"classification"
>
<div
v-if=
"urlFilter"
class=
"classification"
>
<div
v-for=
"(item, index) in filterLists"
:key=
"'cd' + index"
class=
"classification_line"
>
<div
v-for=
"(item, index) in filterLists"
:key=
"'cd' + index"
class=
"classification_line"
>
<div
<div
class=
"classification_line_if"
class=
"classification_line_if"
v-if=
"item.childDomains && item.childDomains.length != 0"
v-if=
"item.childDomains && item.childDomains.length != 0"
>
>
<div
class=
"classification_line_title"
>
{{
item
.
name
}}
:
</div>
<div
class=
"classification_line_title"
>
{{
item
.
name
}}
:
</div>
<div
<
!--
<
div
:class=
"
:class=
"
index == filterLists.length - 1
index == filterLists.length - 1
? 'classification_line_items'
? 'classification_line_items'
: 'classification_line_items classification_line_items_border'
: 'classification_line_items classification_line_items_border'
"
"
>
>
-->
<div
class=
"classification_line_items"
>
<div
<div
:class=
"
:class=
"
openList[index] == 'up'
openList[index] == 'up'
...
@@ -58,7 +61,8 @@
...
@@ -58,7 +61,8 @@
? 'classification_act'
? 'classification_act'
: ''
: ''
"
"
>
全部
</span>
>
全部
</span
>
</div>
</div>
</li>
</li>
<li
<li
...
@@ -80,13 +84,14 @@
...
@@ -80,13 +84,14 @@
? 'classification_act'
? 'classification_act'
: ''
: ''
"
"
>
{{
items
.
name
}}
</span>
>
{{
items
.
name
}}
</span
>
<!-- if item have children, we will use an arrow to prompt -->
<!-- if item have children, we will use an arrow to prompt -->
<i
<i
v-if=
"
v-if=
"
items.childDomains &&
items.childDomains &&
openChildren[index].state == true &&
openChildren[index].state == true &&
openChildren[index].index == items.id
openChildren[index].index == items.id
"
"
@
click=
"clickItemChild(index, indexs, items)"
@
click=
"clickItemChild(index, indexs, items)"
class=
"el-icon-caret-top"
class=
"el-icon-caret-top"
...
@@ -94,8 +99,8 @@
...
@@ -94,8 +99,8 @@
<i
<i
v-else-if=
"
v-else-if=
"
items.childDomains &&
items.childDomains &&
openChildren[index].state == false &&
openChildren[index].state == false &&
openChildren[index].index == items.id
openChildren[index].index == items.id
"
"
@
click=
"clickItemChild(index, indexs, items)"
@
click=
"clickItemChild(index, indexs, items)"
class=
"el-icon-caret-bottom"
class=
"el-icon-caret-bottom"
...
@@ -116,8 +121,14 @@
...
@@ -116,8 +121,14 @@
>
>
<span
v-if=
"openList[index] == 'down'"
>
收起
</span>
<span
v-if=
"openList[index] == 'down'"
>
收起
</span>
<span
v-if=
"openList[index] == 'up'"
>
展开
</span>
<span
v-if=
"openList[index] == 'up'"
>
展开
</span>
<i
v-if=
"openList[index] == 'down'"
class=
"el-icon-caret-top"
></i>
<i
<i
v-if=
"openList[index] == 'up'"
class=
"el-icon-caret-bottom"
></i>
v-if=
"openList[index] == 'down'"
class=
"el-icon-caret-top"
></i>
<i
v-if=
"openList[index] == 'up'"
class=
"el-icon-caret-bottom"
></i>
</div>
</div>
</div>
</div>
<!-- filter children -->
<!-- filter children -->
...
@@ -145,7 +156,8 @@
...
@@ -145,7 +156,8 @@
? 'classification_act'
? 'classification_act'
: ''
: ''
"
"
>
{{
itemChildren
.
name
}}
</span>
>
{{
itemChildren
.
name
}}
</span
>
</div>
</div>
</li>
</li>
</ul>
</ul>
...
@@ -154,38 +166,46 @@
...
@@ -154,38 +166,46 @@
</div>
</div>
</div>
</div>
</div>
</div>
</block-radius>
<!-- filter button -->
<div
class=
"btn_group"
>
<div
<div
v-for=
"(item, index) in buttonFilter"
:key=
"item.name"
size=
"small"
:class=
"
index == activeBtn
? 'button_filter button_filter_act'
: 'button_filter'
"
@
click=
"clickButtonFilter(index)"
>
{{
item
.
name
}}
</div>
<!--
<div
v-if=
"urlFilter == 'app'"
class=
"btn_right_check"
>
<el-checkbox
v-model=
"couldTwice"
@
change=
"changeTwice"
>
支持二次开发
</el-checkbox>
</div>
-->
</div>
<!--
<div
class=
"gray_line"
class=
"gray_line"
v-if=
"
v-if=
"
filterLists[0].childDomains.length != 0 ||
filterLists[0].childDomains.length != 0 ||
filterLists[1].childDomains.length != 0 ||
filterLists[1].childDomains.length != 0 ||
filterLists[2].childDomains.length != 0
filterLists[2].childDomains.length != 0
"
"
></div>
></div>
-->
<!-- filter button -->
<!-- the list -->
<div
class=
"btn_group"
>
<commodity-list
<el-button
:datas=
"lists && lists.length != 0 ? lists : []"
v-for=
"(item, index) in buttonFilter"
:total=
"total"
:key=
"item.name"
:url=
"url"
size=
"small"
:urlFilter=
"urlFilter"
:class=
"index == activeBtn ? 'button_filter_act' : 'button_filter'"
:paginationShow=
"false"
@
click=
"clickButtonFilter(index)"
:pageSizeShow=
"true"
>
{{
item
.
name
}}
</el-button>
@
refresh=
"getNewList"
<div
v-if=
"urlFilter == 'app'"
class=
"btn_right_check"
>
></commodity-list>
<el-checkbox
v-model=
"couldTwice"
@
change=
"changeTwice"
>
支持二次开发
</el-checkbox>
</div>
</div>
<!-- the list -->
<commodity-list
:datas=
"lists && lists.length != 0 ? lists : []"
:total=
"total"
:url=
"url"
:urlFilter=
"urlFilter"
:paginationShow=
"true"
:pageSizeShow=
"true"
@
refresh=
"getNewList"
></commodity-list>
</block-radius>
</div>
</div>
</
template
>
</
template
>
...
@@ -266,19 +286,22 @@ export default {
...
@@ -266,19 +286,22 @@ export default {
},
},
],
],
page
:
1
,
page
:
1
,
limit
:
1
0
,
limit
:
2
0
,
couldTwice
:
false
,
couldTwice
:
false
,
refresh_app_1
:
false
,
refresh_app_1
:
false
,
refresh_app_2
:
false
,
refresh_app_2
:
false
,
refresh_app_3
:
false
,
refresh_app_3
:
false
,
time_app
:
null
,
time_app
:
null
,
times
:
null
,
times
:
null
,
isKaiGuan
:
true
,
}),
}),
mounted
()
{
mounted
()
{
window
.
addEventListener
(
"
resize
"
,
this
.
judgeHeight
);
window
.
addEventListener
(
"
resize
"
,
this
.
judgeHeight
);
window
.
addEventListener
(
"
scroll
"
,
this
.
menu
,
true
);
},
},
destroyed
()
{
destroyed
()
{
window
.
removeEventListener
(
"
resize
"
,
this
.
judgeHeight
);
window
.
removeEventListener
(
"
resize
"
,
this
.
judgeHeight
);
window
.
removeEventListener
(
"
scroll
"
,
this
.
menu
,
true
);
},
},
watch
:
{
watch
:
{
urlFilter
:
{
urlFilter
:
{
...
@@ -333,7 +356,41 @@ export default {
...
@@ -333,7 +356,41 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
menu
()
{
if
(
this
.
isKaiGuan
)
{
let
scroll
=
this
.
getScrollTop
()
+
this
.
getWindowHeight
()
-
this
.
getScrollHeight
();
if
(
scroll
>
-
10
)
{
if
(
(
this
.
total
!=
0
&&
this
.
page
*
this
.
limit
<
this
.
total
)
||
this
.
total
==
0
)
{
this
.
page
++
;
this
.
getShopList
();
}
}
}
},
//滚动条在Y轴上的滚动距离
getScrollTop
()
{
var
documentScrollTop
=
0
;
documentScrollTop
=
document
.
documentElement
.
scrollTop
;
return
documentScrollTop
;
},
//文档的总高度
getScrollHeight
()
{
var
documentScrollHeight
=
0
;
documentScrollHeight
=
document
.
documentElement
.
scrollHeight
;
return
documentScrollHeight
;
},
//浏览器视口的高度
getWindowHeight
()
{
var
windowHeight
=
0
;
windowHeight
=
document
.
documentElement
.
clientHeight
;
return
windowHeight
;
},
getShopList
()
{
getShopList
()
{
this
.
isKaiGuan
=
false
;
if
(
this
.
urlFilter
==
"
app
"
)
{
if
(
this
.
urlFilter
==
"
app
"
)
{
let
query
=
{
let
query
=
{
online_state
:
this
.
activeOptions
[
0
].
join
(
"
,
"
),
online_state
:
this
.
activeOptions
[
0
].
join
(
"
,
"
),
...
@@ -355,8 +412,12 @@ export default {
...
@@ -355,8 +412,12 @@ export default {
};
};
this
.
$api
.
serviceShop
.
getAppList
(
query
).
then
((
response
)
=>
{
this
.
$api
.
serviceShop
.
getAppList
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
"
1
"
)
{
if
(
response
.
data
.
success
==
"
1
"
)
{
this
.
lists
=
response
.
data
.
data
;
this
.
lists
=
this
.
page
==
1
?
response
.
data
.
data
:
this
.
lists
.
concat
(
response
.
data
.
data
);
this
.
total
=
response
.
data
.
total
;
this
.
total
=
response
.
data
.
total
;
this
.
isKaiGuan
=
true
;
}
else
{
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
console
.
log
(
response
.
data
.
errMsg
);
}
}
...
@@ -375,8 +436,12 @@ export default {
...
@@ -375,8 +436,12 @@ export default {
};
};
this
.
$api
.
serviceShop
.
getServiceShopList
(
query
).
then
((
response
)
=>
{
this
.
$api
.
serviceShop
.
getServiceShopList
(
query
).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
"
1
"
)
{
if
(
response
.
data
.
success
==
"
1
"
)
{
this
.
lists
=
response
.
data
.
data
;
this
.
lists
=
this
.
page
==
1
?
response
.
data
.
data
:
this
.
lists
.
concat
(
response
.
data
.
data
);
this
.
total
=
response
.
data
.
total
;
this
.
total
=
response
.
data
.
total
;
this
.
isKaiGuan
=
true
;
}
else
{
}
else
{
console
.
log
(
response
.
data
.
errMsg
);
console
.
log
(
response
.
data
.
errMsg
);
}
}
...
@@ -492,6 +557,7 @@ export default {
...
@@ -492,6 +557,7 @@ export default {
},
},
clickButtonFilter
(
index
)
{
clickButtonFilter
(
index
)
{
this
.
activeBtn
=
index
;
this
.
activeBtn
=
index
;
this
.
page
=
1
;
this
.
getShopList
();
this
.
getShopList
();
},
},
clickChildren
(
id
,
index
,
fatherId
)
{
clickChildren
(
id
,
index
,
fatherId
)
{
...
@@ -508,23 +574,27 @@ export default {
...
@@ -508,23 +574,27 @@ export default {
this
.
getFilterValue
();
this
.
getFilterValue
();
},
},
getFilterValue
()
{
getFilterValue
()
{
this
.
page
=
1
;
this
.
getShopList
();
this
.
getShopList
();
},
},
// search debonce 500ms
// search debonce 500ms
searchVal
()
{
searchVal
()
{
if
(
this
.
times
!==
null
)
clearTimeout
(
this
.
times
);
if
(
this
.
times
!==
null
)
clearTimeout
(
this
.
times
);
this
.
times
=
setTimeout
(()
=>
{
this
.
times
=
setTimeout
(()
=>
{
this
.
page
=
1
;
this
.
getShopList
();
this
.
getShopList
();
},
500
);
},
500
);
},
},
getNewList
(
val
)
{
getNewList
(
val
)
{
this
.
page
=
val
.
page
;
console
.
log
(
val
);
this
.
limit
=
val
.
rowsPerPage
;
this
.
page
=
1
;
this
.
limit
=
20
;
this
.
getShopList
();
this
.
getShopList
();
},
},
clickAll
(
item
)
{
clickAll
(
item
)
{
this
.
$set
(
this
.
activeOptions
,
item
,
[]);
this
.
$set
(
this
.
activeOptions
,
item
,
[]);
this
.
$set
(
this
.
activeChildOptions
,
item
,
[]);
this
.
$set
(
this
.
activeChildOptions
,
item
,
[]);
this
.
page
=
1
;
this
.
getShopList
();
this
.
getShopList
();
},
},
changeTwice
()
{
changeTwice
()
{
...
@@ -567,12 +637,18 @@ export default {
...
@@ -567,12 +637,18 @@ export default {
.head_flex
{
.head_flex
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
position
:
relative
;
height
:
40px
;
top
:
-14px
;
}
}
.bread_left
{
.bread_left
{
width
:
300px
;
width
:
300px
;
}
}
.input_right
{
.input_right
{
width
:
360px
;
width
:
360px
;
position
:
relative
;
height
:
36px
;
top
:
6px
;
}
}
.gray_line
{
.gray_line
{
width
:
100%
;
width
:
100%
;
...
@@ -634,8 +710,20 @@ export default {
...
@@ -634,8 +710,20 @@ export default {
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.classification_act
{
.classification_act
{
font-weight
:
700
;
color
:
#fff
;
color
:
#515fe7
;
position
:
relative
;
z-index
:
1
;
}
.classification_act
::after
{
content
:
""
;
position
:
absolute
;
width
:
calc
(
100%
+
16px
);
height
:
calc
(
100%
+
8px
);
background-color
:
#3f4f9c
;
border-radius
:
3px
;
top
:
-4px
;
left
:
-8px
;
z-index
:
-1
;
}
}
.classification_line_items_open
{
.classification_line_items_open
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -655,31 +743,31 @@ export default {
...
@@ -655,31 +743,31 @@ export default {
color
:
#58617a
;
color
:
#58617a
;
}
}
.button_filter
{
.button_filter
{
background-color
:
#e6eefe
;
color
:
#8890a7
;
color
:
#626de9
;
border
:
1px
solid
#e6eefe
;
font-size
:
12px
;
font-size
:
12px
;
display
:
inline-block
;
margin-right
:
31px
;
position
:
relative
;
}
}
.button_filter
:hover
{
.button_filter
::after
{
border
:
1px
solid
rgb
(
198
,
226
,
255
);
content
:
""
;
width
:
1px
;
height
:
16px
;
background-color
:
#e3e5ef
;
position
:
absolute
;
right
:
-15px
;
}
}
.button_filter
:focus
{
.button_filter
:nth-child
(
4
)
:after
{
border
:
1px
solid
rgb
(
58
,
142
,
230
);
content
:
""
;
width
:
0
;
}
}
.button_filter_act
{
.button_filter_act
{
background-color
:
#515fe7
;
color
:
#515fe7
;
border
:
1px
solid
#515fe7
;
color
:
#f8f9fd
;
font-size
:
12px
;
}
.button_filter_act
:hover
{
border
:
1px
solid
#414fd7
;
}
.button_filter_act
:focus
{
border
:
1px
solid
#313fc7
;
}
}
.btn_group
{
.btn_group
{
margin-top
:
15px
;
margin-bottom
:
15px
;
margin-bottom
:
15px
;
margin-left
:
15px
;
position
:
relative
;
position
:
relative
;
}
}
.btn_right_check
{
.btn_right_check
{
...
@@ -690,7 +778,8 @@ export default {
...
@@ -690,7 +778,8 @@ export default {
</
style
>
</
style
>
<
style
>
<
style
>
.head_flex
.input_right
.el-input__inner
{
.head_flex
.input_right
.el-input__inner
{
border-radius
:
20px
;
border-radius
:
6px
;
border
:
solid
1px
#e7eaf6
;
}
}
.head_flex
.input_right
.el-input--prefix
.el-input__inner
{
.head_flex
.input_right
.el-input--prefix
.el-input__inner
{
padding-left
:
40px
;
padding-left
:
40px
;
...
...
src/components/service-list/service_shop_menu.vue
View file @
d222ddb5
...
@@ -65,32 +65,32 @@ export default {
...
@@ -65,32 +65,32 @@ export default {
}
}
switch
(
uri
)
{
switch
(
uri
)
{
case
"
data_service_list
"
:
case
"
data_service_list
"
:
item
.
active
=
"
tool_ic_shuju
fw_sel
"
;
item
.
active
=
"
shop_tool_ic_sj
fw_sel
"
;
item
.
default
=
"
tool_ic_shuju
fw
"
;
item
.
default
=
"
shop_tool_ic_sj
fw
"
;
break
;
break
;
case
"
space_time_service_list
"
:
case
"
space_time_service_list
"
:
item
.
active
=
"
tool_ic_shikong
fw_sel
"
;
item
.
active
=
"
shop_tool_ic_sk
fw_sel
"
;
item
.
default
=
"
tool_ic_shikong
fw
"
;
item
.
default
=
"
shop_tool_ic_sk
fw
"
;
break
;
break
;
case
"
video_service_list
"
:
case
"
video_service_list
"
:
item
.
active
=
"
tool_ic_shipin
fw_sel
"
;
item
.
active
=
"
shop_tool_ic_sp
fw_sel
"
;
item
.
default
=
"
tool_ic_shipin
fw
"
;
item
.
default
=
"
shop_tool_ic_sp
fw
"
;
break
;
break
;
case
"
perception_service_list
"
:
case
"
perception_service_list
"
:
item
.
active
=
"
tool_ic_ganzhifw_sel
"
;
item
.
active
=
"
shop_
tool_ic_ganzhifw_sel
"
;
item
.
default
=
"
tool_ic_ganzhifw
"
;
item
.
default
=
"
shop_
tool_ic_ganzhifw
"
;
break
;
break
;
case
"
comprehensive_app_list
"
:
case
"
comprehensive_app_list
"
:
item
.
active
=
"
tool_ic_zonghe
yyfw_sel
"
;
item
.
active
=
"
shop_tool_ic_zh
yyfw_sel
"
;
item
.
default
=
"
tool_ic_zonghe
yyfw
"
;
item
.
default
=
"
shop_tool_ic_zh
yyfw
"
;
break
;
break
;
case
"
cloud
"
:
case
"
cloud
"
:
item
.
active
=
"
tool_ic_yunziyuan
fw_sel
"
;
item
.
active
=
"
shop_tool_ic_yzy
fw_sel
"
;
item
.
default
=
"
tool_ic_yunziyuan
fw
"
;
item
.
default
=
"
shop_tool_ic_yzy
fw
"
;
break
;
break
;
case
"
app_store_list
"
:
case
"
app_store_list
"
:
item
.
active
=
"
tool_ic_yingyong
sd_sel
"
;
item
.
active
=
"
shop_ic_yy
sd_sel
"
;
item
.
default
=
"
tool_ic_yingyong
sd
"
;
item
.
default
=
"
shop_ic_yy
sd
"
;
break
;
break
;
default
:
default
:
item
.
active
=
"
1
"
;
item
.
active
=
"
1
"
;
...
@@ -111,24 +111,25 @@ export default {
...
@@ -111,24 +111,25 @@ export default {
.service_shop_menu
{
.service_shop_menu
{
background-color
:
#0d1847
;
background-color
:
#0d1847
;
position
:
fixed
;
position
:
fixed
;
top
:
58px
;
top
:
76px
;
left
:
0
;
left
:
calc
(
50%
-
600px
);
width
:
180px
;
width
:
176px
;
height
:
100%
;
padding
:
8px
;
padding-top
:
30px
;
background-color
:
#ffffff
;
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.04
);
border-radius
:
8px
;
}
}
.service_shop_menu_list
>
li
{
.service_shop_menu_list
>
li
{
padding
:
16px
10px
8px
22px
;
padding
:
16px
10px
8px
22px
;
border-left
:
5px
solid
#0d1847
;
font-size
:
15px
;
font-size
:
15px
;
line-height
:
24px
;
line-height
:
24px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.service_shop_menu_list
>
li
:hover
,
.service_shop_menu_list
>
li
:hover
,
.service_shop_menu_list
>
li
.current
{
.service_shop_menu_list
>
li
.current
{
border-left
:
5px
solid
#e56600
;
background-color
:
rgba
(
242
,
246
,
253
,
0.4
);
background-color
:
#182665
;
color
:
#515fe7
;
color
:
#e6ebfe
;
}
}
.menu_img
{
.menu_img
{
width
:
25px
;
width
:
25px
;
...
@@ -136,12 +137,16 @@ export default {
...
@@ -136,12 +137,16 @@ export default {
}
}
.menu_item
{
.menu_item
{
position
:
relative
;
position
:
relative
;
color
:
#6573ae
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#96a0c5
;
top
:
-6px
;
top
:
-6px
;
}
}
.menu_item_active
{
.menu_item_active
{
position
:
relative
;
position
:
relative
;
color
:
#e6ebfe
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#515fe7
;
top
:
-6px
;
top
:
-6px
;
}
}
</
style
>
</
style
>
src/components/service-list/service_shop_menu_copy.vue
deleted
100644 → 0
View file @
4fc90ea0
<
template
>
<div
class=
"service_shop_menu"
>
<ul
class=
"service_shop_menu_list"
>
<li
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"active(item.visit_url)"
>
<img
v-if=
"item.visit_url == actives"
:src=
"item.active != '' ? require('@/assets/imgs/' + item.active + '.png') : ''"
class=
"menu_img"
/>
<img
v-else
:src=
"require('@/assets/imgs/' + item.default + '.png')"
class=
"menu_img"
/>
<span
:class=
"item.visit_url == actives ? 'menu_item_active':'menu_item'"
>
{{
item
.
menu_name
}}
</span>
</li>
</ul>
</div>
</
template
>
<
script
>
export
default
{
props
:
{},
data
()
{
return
{
actives
:
""
,
menuList
:
[],
};
},
computed
:
{
getActive
()
{
return
this
.
$store
.
state
.
serviceShopMenu
;
},
},
watch
:
{
getActive
(
newVal
)
{
this
.
getActiveMenu
(
newVal
);
},
},
mounted
()
{
this
.
getShopMenu
();
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
this
.
$route
.
path
);
this
.
actives
=
this
.
$store
.
state
.
serviceShopMenu
;
},
methods
:
{
active
(
val
)
{
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
val
);
this
.
$router
.
push
(
val
);
},
getActiveMenu
(
val
)
{
this
.
actives
=
val
;
},
getShopMenu
()
{
this
.
$api
.
general
.
getNowMenu
({
teamName
:
"
APAAS3
"
}).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
let
arr
=
response
.
data
.
data
[
0
].
Child
;
let
shopArr
=
[];
let
asd
=
arr
.
find
(
item
=>
{
return
item
.
visit_url
==
"
/services_shop
"
})
shopArr
=
asd
.
Child
;
if
(
shopArr
&&
shopArr
.
length
!=
0
)
{
Array
.
from
(
shopArr
).
forEach
((
item
)
=>
{
let
uri
=
item
.
visit_url
.
substring
(
6
);
if
(
uri
.
indexOf
(
"
/
"
)
!=
-
1
)
{
uri
=
uri
.
substring
(
0
,
uri
.
indexOf
(
"
/
"
));
}
switch
(
uri
)
{
case
"
data_service_list
"
:
item
.
active
=
"
shop_tool_ic_sjfw_sel
"
;
item
.
default
=
"
shop_tool_ic_sjfw
"
;
break
;
case
"
space_time_service_list
"
:
item
.
active
=
"
shop_tool_ic_skfw_sel
"
;
item
.
default
=
"
shop_tool_ic_skfw
"
;
break
;
case
"
video_service_list
"
:
item
.
active
=
"
shop_tool_ic_spfw_sel
"
;
item
.
default
=
"
shop_tool_ic_spfw
"
;
break
;
case
"
perception_service_list
"
:
item
.
active
=
"
shop_tool_ic_ganzhifw_sel
"
;
item
.
default
=
"
shop_tool_ic_ganzhifw
"
;
break
;
case
"
comprehensive_app_list
"
:
item
.
active
=
"
shop_tool_ic_zhyyfw_sel
"
;
item
.
default
=
"
shop_tool_ic_zhyyfw
"
;
break
;
case
"
cloud
"
:
item
.
active
=
"
shop_tool_ic_yzyfw_sel
"
;
item
.
default
=
"
shop_tool_ic_yzyfw
"
;
break
;
case
"
app_store_list
"
:
item
.
active
=
"
shop_ic_yysd_sel
"
;
item
.
default
=
"
shop_ic_yysd
"
;
break
;
default
:
item
.
active
=
"
1
"
;
item
.
default
=
"
1
"
;
break
;
}
});
}
this
.
menuList
=
shopArr
;
}
});
},
},
};
</
script
>
<
style
scoped
>
.service_shop_menu
{
background-color
:
#0d1847
;
position
:
fixed
;
top
:
76px
;
left
:
calc
(
50%
-
600px
);
width
:
180px
;
padding
:
8px
;
background-color
:
#ffffff
;
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.04
);
border-radius
:
8px
;
}
.service_shop_menu_list
>
li
{
padding
:
16px
10px
8px
22px
;
font-size
:
15px
;
line-height
:
24px
;
cursor
:
pointer
;
}
.service_shop_menu_list
>
li
:hover
,
.service_shop_menu_list
>
li
.current
{
background-color
:
rgba
(
242
,
246
,
253
,
0.4
);
color
:
#515fe7
;
}
.menu_img
{
width
:
25px
;
margin-right
:
6px
;
}
.menu_item
{
position
:
relative
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#96a0c5
;
top
:
-6px
;
}
.menu_item_active
{
position
:
relative
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#515fe7
;
top
:
-6px
;
}
</
style
>
src/components/shop-cloud/shop-cloud.vue
View file @
d222ddb5
...
@@ -918,7 +918,9 @@
...
@@ -918,7 +918,9 @@
<
div
class
=
"
dia_block_item_in
"
>
<
div
class
=
"
dia_block_item_in
"
>
<
span
class
=
"
dia_block_item_title
"
>
内存:
<
/span
>
<
span
class
=
"
dia_block_item_title
"
>
内存:
<
/span
>
<
p
class
=
"
dia_block_item_val
"
>
<
p
class
=
"
dia_block_item_val
"
>
<
span
class
=
"
val_has_2
"
>
om
=
[]
<
/span
>
<
span
class
=
"
val_has_2
"
>
最高
&
nbsp
;{{
diaForm
.
perRAMs
}}
GB
<
/span
>
<
span
class
=
"
val_has_2
"
>
<
span
class
=
"
val_has_2
"
>
默认
&
nbsp
;{{
diaForm
.
perRAM
}}
GB
默认
&
nbsp
;{{
diaForm
.
perRAM
}}
GB
<
/span
>
<
/span
>
...
@@ -1322,11 +1324,7 @@ export default {
...
@@ -1322,11 +1324,7 @@ export default {
{
value
:
"
8
"
,
label
:
"
8
"
}
,
{
value
:
"
8
"
,
label
:
"
8
"
}
,
{
value
:
"
16
"
,
label
:
"
16
"
}
,
{
value
:
"
16
"
,
label
:
"
16
"
}
,
],
],
optionsRAM
:
[
optionsRAM
:
[],
{
value
:
"
8
"
,
label
:
"
8
"
}
,
{
value
:
"
16
"
,
label
:
"
16
"
}
,
{
value
:
"
32
"
,
label
:
"
32
"
}
,
],
options_store_type
:
[
options_store_type
:
[
{
value
:
"
nfs-client
"
,
label
:
"
nfs-client
"
}
,
{
value
:
"
nfs-client
"
,
label
:
"
nfs-client
"
}
,
{
value
:
"
rook-ceph-block
"
,
label
:
"
rook-ceph-block
"
}
,
{
value
:
"
rook-ceph-block
"
,
label
:
"
rook-ceph-block
"
}
,
...
...
src/pages/service_shop/shop_list.vue
View file @
d222ddb5
<
template
>
<
template
>
<!--
<div
class=
"shop_list_cont"
>
-->
<div
class=
"shop_list_cont"
>
<div>
<el-container>
<el-container>
<el-aside
width=
"1
80
px"
>
<el-aside
width=
"1
76
px"
>
<service-shop-menu></service-shop-menu>
<service-shop-menu></service-shop-menu>
</el-aside>
</el-aside>
<el-main>
<el-main
class=
"main_init"
>
<service-list
<service-list
:filterNames=
"filterNames"
:filterNames=
"filterNames"
:name=
"name"
:name=
"name"
...
@@ -129,4 +128,7 @@ export default {
...
@@ -129,4 +128,7 @@ export default {
margin
:
0
auto
;
margin
:
0
auto
;
position
:
relative
;
position
:
relative
;
}
}
.main_init
{
padding
:
16px
0
16px
16px
;
}
</
style
>
</
style
>
\ No newline at end of file
src/pages/workbench/component-center/process-management/designer/index.vue
View file @
d222ddb5
...
@@ -176,7 +176,7 @@ export default {
...
@@ -176,7 +176,7 @@ export default {
{
{
label
:
"
流程编号
"
,
label
:
"
流程编号
"
,
prop
:
"
workflows_code
"
,
prop
:
"
workflows_code
"
,
width
:
1
8
0
,
width
:
1
3
0
,
},
},
{
{
label
:
"
流程名称
"
,
label
:
"
流程名称
"
,
...
@@ -188,7 +188,7 @@ export default {
...
@@ -188,7 +188,7 @@ export default {
label
:
"
服务领域
"
,
label
:
"
服务领域
"
,
prop
:
"
sector_name
"
,
prop
:
"
sector_name
"
,
align
:
"
center
"
,
align
:
"
center
"
,
width
:
2
4
0
,
width
:
2
0
0
,
},
},
{
{
label
:
"
创建时间
"
,
label
:
"
创建时间
"
,
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
return
[
"
未部署
"
,
"
已部署
"
,
"
已发布
"
][
item
.
state
||
0
];
return
[
"
未部署
"
,
"
已部署
"
,
"
已发布
"
][
item
.
state
||
0
];
},
},
align
:
"
center
"
,
align
:
"
center
"
,
width
:
1
80
,
width
:
80
,
},
},
{
{
label
:
"
工作区域
"
,
label
:
"
工作区域
"
,
...
...
src/pages/workbench/fwzc_fwcs.vue
View file @
d222ddb5
...
@@ -1058,6 +1058,7 @@ export default {
...
@@ -1058,6 +1058,7 @@ export default {
this
.
jkwds
=
[];
this
.
jkwds
=
[];
},
},
getUrl
(
enUrl
)
{
getUrl
(
enUrl
)
{
enUrl
=
enUrl
.
replace
(
/
\s
*/g
,
""
);
let
url
=
decodeURI
(
enUrl
);
let
url
=
decodeURI
(
enUrl
);
let
arr
=
[];
let
arr
=
[];
if
(
url
.
indexOf
(
"
?
"
)
!=
-
1
)
{
if
(
url
.
indexOf
(
"
?
"
)
!=
-
1
)
{
...
@@ -1343,13 +1344,22 @@ export default {
...
@@ -1343,13 +1344,22 @@ export default {
data_service_type1
:
6
,
data_service_type1
:
6
,
data_service_type2
:
this
.
skfwQqt
,
data_service_type2
:
this
.
skfwQqt
,
encode_method
:
this
.
form
.
code
,
encode_method
:
this
.
form
.
code
,
method
:
"
GET
"
,
url
:
this
.
serviceUrl
,
request_fields
:
[],
request_query_fields
:
[],
response_fields
:
[],
content_type
:
"
json
"
,
portal_id
:
this
.
portal_id
,
portal_id
:
this
.
portal_id
,
doc_file
:
""
,
urls
:
[
{
name
:
""
,
response_type
:
"
JSON
"
,
req_auth_mthod
:
0
,
req_auth_token
:
""
,
method
:
"
GET
"
,
url
:
this
.
serviceUrl
,
request_fields
:
[],
request_query_fields
:
[],
response_fields
:
[],
content_type
:
"
JSON
"
,
},
],
};
};
}
else
if
(
this
.
is_map
==
4
)
{
}
else
if
(
this
.
is_map
==
4
)
{
query
=
{
query
=
{
...
@@ -1362,13 +1372,21 @@ export default {
...
@@ -1362,13 +1372,21 @@ export default {
data_service_type1
:
21
,
data_service_type1
:
21
,
data_service_type2
:
34
,
data_service_type2
:
34
,
encode_method
:
this
.
form
.
code
,
encode_method
:
this
.
form
.
code
,
method
:
"
GET
"
,
url
:
this
.
serviceUrl
,
request_fields
:
[],
request_query_fields
:
[],
response_fields
:
[],
content_type
:
"
json
"
,
portal_id
:
this
.
portal_id
,
portal_id
:
this
.
portal_id
,
urls
:
[
{
name
:
""
,
response_type
:
"
JSON
"
,
req_auth_mthod
:
0
,
req_auth_token
:
""
,
method
:
"
GET
"
,
url
:
this
.
serviceUrl
,
request_fields
:
[],
request_query_fields
:
[],
response_fields
:
[],
content_type
:
"
JSON
"
,
},
],
};
};
}
}
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
this
.
$api
.
workbench
.
serviceAdd
(
query
).
then
((
response
)
=>
{
...
@@ -1429,7 +1447,10 @@ export default {
...
@@ -1429,7 +1447,10 @@ export default {
registePt
()
{
registePt
()
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
((
this
.
activeBtn
==
2
&&
this
.
jkwds
.
length
==
0
)
||
(
this
.
activeBtn
==
3
&&
this
.
jkwds
.
length
==
0
))
{
if
(
(
this
.
activeBtn
==
2
&&
this
.
jkwds
.
length
==
0
)
||
(
this
.
activeBtn
==
3
&&
this
.
jkwds
.
length
==
0
)
)
{
this
.
$message
.
error
(
"
请上传接口文档
"
);
this
.
$message
.
error
(
"
请上传接口文档
"
);
}
else
{
}
else
{
if
(
this
.
cover
.
length
!=
0
)
{
if
(
this
.
cover
.
length
!=
0
)
{
...
@@ -1437,7 +1458,11 @@ export default {
...
@@ -1437,7 +1458,11 @@ export default {
if
(
this
.
activeBtn
==
1
&&
!
this
.
is_portal
)
{
if
(
this
.
activeBtn
==
1
&&
!
this
.
is_portal
)
{
this
.
addPortalItem
();
this
.
addPortalItem
();
}
else
{
}
else
{
if
(
this
.
activeBtn
==
0
||
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
if
(
this
.
activeBtn
==
0
||
this
.
activeBtn
==
2
||
this
.
activeBtn
==
3
)
{
contentType
=
this
.
sjfwQqt
;
contentType
=
this
.
sjfwQqt
;
}
else
if
(
this
.
activeBtn
==
4
)
{
}
else
if
(
this
.
activeBtn
==
4
)
{
if
(
this
.
activeZh
==
"
1
"
)
{
if
(
this
.
activeZh
==
"
1
"
)
{
...
@@ -1840,6 +1865,7 @@ export default {
...
@@ -1840,6 +1865,7 @@ export default {
});
});
},
},
getUrlOne(enUrl, indexOne) {
getUrlOne(enUrl, indexOne) {
enUrl = enUrl.replace(/\s*/g,"");
let url = decodeURI(enUrl);
let url = decodeURI(enUrl);
let arr = [];
let arr = [];
if (url.indexOf("?") != -1) {
if (url.indexOf("?") != -1) {
...
...
src/router/index.js
View file @
d222ddb5
...
@@ -11,6 +11,9 @@ Router.prototype.push = function push(location, onResolve, onReject) {
...
@@ -11,6 +11,9 @@ Router.prototype.push = function push(location, onResolve, onReject) {
};
};
export
default
new
Router
({
export
default
new
Router
({
scrollBehavior
(
to
,
from
,
savedPosition
)
{
return
{
x
:
0
,
y
:
0
}
},
routes
:
[
routes
:
[
{
{
path
:
"
/
"
,
path
:
"
/
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment