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 671c1a94
authored
Nov 02, 2021
by
cwq0219
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工
1 parent
73114d49
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
17 deletions
src/views/employee/components/selectPage.vue
src/views/employee/editEmployee.vue
src/views/employee/index.vue
src/views/employee/components/selectPage.vue
View file @
671c1a9
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div>
<div>
<el-popover
popper-class=
"select-page"
ref=
"popover"
placement=
"bottom-start"
trigger=
"click"
v-model=
"popoverVisible"
:disabled=
"targetItem.isDisabled"
@
show=
"onShowPopover"
@
hide=
"onHidePopover"
>
<el-popover
popper-class=
"select-page"
ref=
"popover"
placement=
"bottom-start"
trigger=
"click"
v-model=
"popoverVisible"
:disabled=
"targetItem.isDisabled"
@
show=
"onShowPopover"
@
hide=
"onHidePopover"
>
<el-radio-group
class=
"select-tree"
v-model=
"form[targetItem.name]"
@
change=
"handleChangeRadio"
>
<el-radio-group
class=
"select-tree"
v-model=
"form[targetItem.name]"
@
change=
"handleChangeRadio"
>
<el-radio
class=
"page-radio"
:title=
"item.merchantName"
v-for=
"item in currList"
:key=
"item.id"
:label=
"item.id"
>
{{
item
.
merchantName
}}
</el-radio>
<el-radio
class=
"page-radio"
:
style=
"`width: $
{width - 32}px`" :
title="item.merchantName" v-for="item in currList" :key="item.id" :label="item.id">
{{
item
.
merchantName
}}
</el-radio>
</el-radio-group>
</el-radio-group>
<div
class=
"btns"
v-show=
"page.total > 20"
>
<div
class=
"btns"
v-show=
"page.total > 20"
>
<el-button
:size=
"size"
:disabled=
"page.pageNum == 1"
@
click=
"handlePage(false)"
>
上一页
</el-button>
<el-button
:size=
"size"
:disabled=
"page.pageNum == 1"
@
click=
"handlePage(false)"
>
上一页
</el-button>
...
@@ -127,7 +127,7 @@ export default {
...
@@ -127,7 +127,7 @@ export default {
}
}
.page-radio
{
.page-radio
{
display
:
block
;
display
:
block
;
width
:
320px
;
/* width: 320px; */
height
:
36px
;
height
:
36px
;
line-height
:
36px
;
line-height
:
36px
;
overflow
:
hidden
;
overflow
:
hidden
;
...
...
src/views/employee/editEmployee.vue
View file @
671c1a9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<p
class=
"edit-sub-title p-rl-20"
>
员工基本信息
</p>
<p
class=
"edit-sub-title p-rl-20"
>
员工基本信息
</p>
<glsx-combi-form
class=
"p-tr-20"
ref=
"editFormRef"
labelWidth=
"160px"
@
handleImgDelete=
"handleImgDelete"
:isBlock=
"isBlock"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"p-tr-20"
ref=
"editFormRef"
labelWidth=
"160px"
@
handleImgDelete=
"handleImgDelete"
:isBlock=
"isBlock"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"merchantId"
slot-scope=
"item"
>
<template
slot=
"merchantId"
slot-scope=
"item"
>
<select-page
:form=
"editForm"
width=
"3
00px
"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
<select-page
:form=
"editForm"
width=
"3
60
"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
</
template
>
</
template
>
<
template
slot=
"visibleInferiorMer"
slot-scope=
"item"
>
<
template
slot=
"visibleInferiorMer"
slot-scope=
"item"
>
<el-input
:style=
"
{ width: item.width || '360px' }" placeholder="可见商户" v-model="filterText">
</el-input>
<el-input
:style=
"
{ width: item.width || '360px' }" placeholder="可见商户" v-model="filterText">
</el-input>
...
...
src/views/employee/index.vue
View file @
671c1a9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<div>
<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=
"200
px
"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
<select-page
:form=
"searchForm"
width=
"200"
:targetItem=
"item.scope"
@
handleChange=
"handleChangeMerchant"
></select-page>
</
template
>
</
template
>
<span
slot=
"footer"
class=
"footer-btns"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
...
@@ -249,22 +249,12 @@ export default {
...
@@ -249,22 +249,12 @@ export default {
})
})
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
$router
.
push
({
this
.
$router
.
push
(
'/employee/detailEmployee/'
+
row
.
id
)
name
:
'Account2EmployeeDetailEmployee'
,
params
:
{
id
:
row
.
id
}
})
},
},
// 1-新增;2-编辑
// 1-新增;2-编辑
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
this
.
$router
.
push
({
var
id
=
row
?
row
.
id
:
'-1'
name
:
'Account2EmployeeEditEmployee'
,
this
.
$router
.
push
(
'/employee/editEmployee/'
+
addOrEdit
+
'/'
+
id
)
params
:
{
addOrEdit
:
addOrEdit
,
id
:
row
?
row
.
id
:
'-1'
}
})
},
},
handleDelete
(
row
)
{
handleDelete
(
row
)
{
...
...
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