Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bms-vue-obear
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
daywrite
bms-vue-obear
Commits
e72febe0
Commit
e72febe0
authored
May 12, 2019
by
daywrite
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务目录联调
parent
5b5a059d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
141 additions
and
5 deletions
+141
-5
service-app.scss
src/assets/css/service-app.scss
+18
-1
serviceForm.vue
src/components/service/serviceForm.vue
+23
-1
serviceList.vue
src/components/service/serviceList.vue
+42
-0
serviceModal.vue
src/components/service/serviceModal.vue
+2
-2
serviceView.vue
src/components/service/serviceView.vue
+46
-0
serviceItem.vue
src/components/service_list/serviceItem.vue
+5
-1
service.js
src/routes/service.js
+5
-0
No files found.
src/assets/css/service-app.scss
View file @
e72febe0
.service-app
{}
.services-app
{
.el-dialog__title
{
color
:white
;
}
.ec-page-wrapper
.el-form-item__label
{
color
:
white
;
}
.el-button--cancel
{
color
:white
;
background-color
:
#EB7567
;
border-color
:
#e86150
;
}
.el-button--confirm
{
color
:white
;
background-color
:
#649FD7
;
border-color
:
#5092d2
;
}
}
src/components/service/serviceForm.vue
View file @
e72febe0
...
...
@@ -35,7 +35,21 @@
<el-input
class=
"ec-input-normal"
size=
"mini"
v-model
.
trim=
"model.description"
>
v-model
.
trim=
"model['description'][0]"
>
<i
class=
"el-icon-circle-plus el-input__icon"
slot=
"suffix"
@
click=
"addDesEvent"
>
</i>
</el-input>
<el-input
v-for=
"(item, index) in model.description.slice(1)"
class=
"ec-input-normal"
size=
"mini"
v-model
.
trim=
"model['description'][index + 1]"
>
<i
class=
"el-icon-remove el-input__icon"
slot=
"suffix"
@
click=
"removeDesEvent"
>
</i>
</el-input>
</el-form-item>
<el-form-item
label=
"工分(工作日工作时间):"
prop=
"points"
class=
"ec-clear-left is-required"
>
...
...
@@ -94,6 +108,14 @@ export default {
},
methods
:
{
addDesEvent
()
{
this
.
model
.
description
.
push
(
''
)
},
removeDesEvent
()
{
this
.
model
.
description
.
pop
()
},
getNew
()
{
this
.
initSetting
([
'getServiceNew'
])
},
...
...
src/components/service/serviceList.vue
0 → 100644
View file @
e72febe0
<
template
>
<section>
<table
class=
"table table-stripede table-bordered"
>
<thead>
<tr><th>
名称
</th><th>
内容
</th></tr>
</thead>
<tbody>
<tr><td>
服务名称
</td><td>
{{
model
.
title
}}
</td></tr>
<tr><td>
服务编号
</td><td>
{{
model
.
serial_no
}}
</td></tr>
<tr><td>
服务品牌
</td><td>
{{
model
.
brand
.
name
}}
</td></tr>
<tr><td>
服务类型
</td><td>
{{
model
.
type
.
name
}}
</td></tr>
<tr><td>
服务描述
</td><td>
<ol>
<li
v-for=
"item in model.description"
>
{{
item
}}
</li>
</ol>
</td></tr>
<tr><td>
工分(工作日工作时间)
</td><td>
{{
model
.
points
}}
</td></tr>
<tr><td>
工分(工作日工作外时间)
</td><td>
{{
model
.
points_off_time
}}
</td></tr>
<tr><td>
工分(节假日)
</td><td>
{{
model
.
points_holiday
}}
</td></tr>
<tr><td>
录入人
</td><td>
{{
model
.
createdBy
.
name
}}
</td></tr>
<tr><td>
创建时间
</td><td>
{{
model
.
created_at
}}
</td></tr>
<tr><td>
更新时间
</td><td>
{{
model
.
updated_at
}}
</td></tr>
</tbody>
</table>
</section>
</
template
>
<
script
>
export
default
{
name
:
'serviceList'
,
props
:
[
'model'
]
}
</
script
>
<
style
scoped
>
table
thead
{
background
:
white
;
}
table
tr
:nth-child
(
odd
)
{
background
:
#6c757d
;
background-color
:
rgba
(
0
,
0
,
0
,
.05
);
}
</
style
>
src/components/service/serviceModal.vue
View file @
e72febe0
...
...
@@ -34,7 +34,7 @@ export default {
serial_no
:
''
,
brand_id
:
''
,
type_id
:
''
,
description
:
''
,
description
:
[]
,
points
:
''
,
points_off_time
:
''
,
points_holiday
:
''
...
...
@@ -74,7 +74,7 @@ export default {
.
then
((
res
)
=>
{
this
.
$refs
.
sidePopup
.
close
()
this
.
$message
.
success
(
'操作成功'
)
this
.
$parent
.
reload
()
this
.
$parent
.
_
reload
()
})
// save
})
// validate
}
...
...
src/components/service/serviceView.vue
0 → 100644
View file @
e72febe0
<
template
>
<section>
<el-row
:gutter=
"10"
class=
"header-title"
>
<el-col
:span=
"6"
>
<h2>
查看服务目录
</h2>
</el-col>
</el-row>
<div
class=
"page-body-content"
>
<list
:model=
"model"
></list>
</div>
</section>
</
template
>
<
script
>
import
list
from
'./serviceList'
import
{
requestAPI
,
api
}
from
'@/lib/commonMixin'
export
default
{
data
()
{
return
{
model
:
{}
}
},
components
:
{
list
},
created
()
{
let
id
=
this
.
$route
.
params
.
id
this
.
getList
(
id
)
},
methods
:
{
getList
(
id
)
{
requestAPI
(
api
.
getserviceEdit
,
{
id
}).
then
((
res
)
=>
{
this
.
model
=
res
.
model
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
src/components/service_list/serviceItem.vue
View file @
e72febe0
...
...
@@ -13,7 +13,11 @@
</el-table-column>
<el-table-column
label=
"服务编号"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
serial_no
}}
</span>
<span>
<router-link
:to=
"
{ path: '/view/' + scope.row.id }">
{{
scope
.
row
.
serial_no
}}
</router-link>
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"服务名称"
width=
"180"
>
...
...
src/routes/service.js
View file @
e72febe0
import
ServiceHome
from
'../components/service_list/serviceHome'
import
ServiceView
from
'../components/service/serviceView'
const
routes
=
[{
path
:
'/service'
,
name
:
'serviceHome'
,
component
:
ServiceHome
},
{
path
:
'/view/:id'
,
name
:
'serviceView'
,
component
:
ServiceView
}]
export
default
routes
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