Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
杨明
/
scrm-micro-config
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 f197a729
authored
Nov 01, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工
1 parent
5c248f3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
7 deletions
src/views/employee/detailEmployee.vue
src/views/employee/editEmployee.vue
src/views/employee/index.vue
src/views/employee/detailEmployee.vue
View file @
f197a72
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<record
:id=
"id"
></record>
<record
:id=
"id"
></record>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"footer"
>
<div
class=
"footer"
:style=
"
{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
@
click=
"handleClose"
>
关闭
</el-button>
<el-button
type=
"primary"
@
click=
"handleClose"
>
关闭
</el-button>
</div>
</div>
</div>
</div>
...
@@ -27,7 +27,9 @@ export default {
...
@@ -27,7 +27,9 @@ export default {
data
()
{
data
()
{
return
{
return
{
id
:
''
,
id
:
''
,
activeName
:
'info'
activeName
:
'info'
,
footerLeft
:
'0'
,
footerWidth
:
'0'
}
}
},
},
...
@@ -40,6 +42,8 @@ export default {
...
@@ -40,6 +42,8 @@ export default {
computed
:
{},
computed
:
{},
created
()
{
created
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
id
=
this
.
$route
.
params
.
id
this
.
id
=
this
.
$route
.
params
.
id
console
.
log
(
this
.
id
)
console
.
log
(
this
.
id
)
},
},
...
...
src/views/employee/editEmployee.vue
View file @
f197a72
<!-- 编辑员工 -->
<!-- 编辑员工 -->
<
template
>
<
template
>
<div
class=
"config-employee"
>
<div
class=
"config-employee"
>
<div
class=
"container"
>
<div
class=
"container"
style=
"margin-top: 0;"
>
<p
class=
"edit-title"
>
{{
title
}}
</p>
<p
class=
"edit-title"
>
{{
title
}}
</p>
</div>
</div>
<div
class=
"container"
>
<div
class=
"container"
>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</
template
>
</
template
>
</glsx-combi-form>
</glsx-combi-form>
</div>
</div>
<div
class=
"footer"
>
<div
class=
"footer"
:style=
"{ left: footerLeft + 'px', width: footerWidth + 'px' }"
>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"handleConfirm"
>
确定
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
<el-button
type=
"default"
@
click=
"handleCancel"
>
取消
</el-button>
</div>
</div>
...
@@ -37,6 +37,8 @@ export default {
...
@@ -37,6 +37,8 @@ export default {
1
:
'新增员工'
,
1
:
'新增员工'
,
2
:
'编辑员工'
2
:
'编辑员工'
},
},
footerLeft
:
'0'
,
footerWidth
:
'0'
,
editChildRef
:
'editChildRef'
,
editChildRef
:
'editChildRef'
,
routeInfo
:
{
routeInfo
:
{
// 1-新增;2-编辑
// 1-新增;2-编辑
...
@@ -170,6 +172,8 @@ export default {
...
@@ -170,6 +172,8 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
routeInfo
=
this
.
$route
.
params
this
.
routeInfo
=
this
.
$route
.
params
this
.
getAllMerchantList
()
this
.
getAllMerchantList
()
},
},
...
@@ -257,7 +261,7 @@ export default {
...
@@ -257,7 +261,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
>
.config-employee
{
.config-employee
{
margin-bottom
:
64px
;
margin-bottom
:
64px
;
}
}
...
@@ -283,6 +287,7 @@ export default {
...
@@ -283,6 +287,7 @@ export default {
bottom
:
0
;
bottom
:
0
;
width
:
100%
;
width
:
100%
;
height
:
64px
;
height
:
64px
;
/* left: 220px; */
text-align
:
center
;
text-align
:
center
;
line-height
:
64px
;
line-height
:
64px
;
background
:
#ffffff
;
background
:
#ffffff
;
...
...
src/views/employee/index.vue
View file @
f197a72
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
</div>
</div>
<!--
</div>
-->
<!--
</div>
-->
<div
class=
"container"
>
<div
class=
"container"
>
<div
style=
"margin-bottom: 10px;"
>
<div>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
<glsx-combi-form
ref=
"showSearch"
labelWidth=
"90px"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
>
<template
slot=
"merchantId"
slot-scope=
"item"
>
<template
slot=
"merchantId"
slot-scope=
"item"
>
<select-page
:form=
"searchForm"
width=
"200px"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
<select-page
:form=
"searchForm"
width=
"200px"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
...
@@ -280,7 +280,7 @@ export default {
...
@@ -280,7 +280,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.config-employee
.container
{
.config-employee
.container
{
margin-top
:
20px
;
margin-top
:
20px
;
background
:
#ffffff
;
background
:
#ffffff
;
...
...
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