Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
a4e5892d
Commit
a4e5892d
authored
May 19, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加页面
parent
a688eda4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
364 additions
and
23 deletions
+364
-23
common.css
src/assets/css/common.css
+3
-0
EmployeesList.vue
src/components/StoreDesign/EmployeesList.vue
+33
-23
special.vue
src/components/StoreDesign/special.vue
+322
-0
index.js
src/router/index.js
+6
-0
No files found.
src/assets/css/common.css
View file @
a4e5892d
...
...
@@ -40,6 +40,9 @@
.w200
{
width
:
200px
!important
;
}
.w150
{
width
:
150px
!important
;
}
.el-icon-search
{
cursor
:
pointer
;
}
...
...
src/components/StoreDesign/EmployeesList.vue
View file @
a4e5892d
...
...
@@ -16,7 +16,7 @@
</el-alert>
<div
class=
"searchInput"
>
<el-input
style=
"display:inline-block;width:225px;height:30px"
placeholder=
"请输入用户昵称"
v-model=
"msg.
NavIcon
Name"
size=
"small"
clearable
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
>
v-model=
"msg.
Emp
Name"
size=
"small"
clearable
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getList()"
>
</el-input>
<span
class=
"el-icon-search"
style=
"color:#979dad;font-size:14px;position:relative;top:1px"
@
click=
"msg.pageIndex=1,getList()"
>
</span>
...
...
@@ -33,9 +33,15 @@
</el-table-column>
<el-table-column
label=
"操作"
width=
"260"
>
<template
slot-scope=
"scope"
>
<img
@
click=
"EditRole(scope.row)"
src=
"../../assets/img/userman/edit.png"
alt=
""
>
<img
@
click=
"upPwddialog=true"
style=
"margin:0 10px;"
src=
"../../assets/img/userman/change.png"
alt=
""
>
<img
@
click=
"RemmoveRole(scope.row)"
src=
"../../assets/img/userman/del.png"
alt=
""
>
<el-tooltip
slot=
"label"
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top"
>
<img
@
click=
"EditRole(scope.row)"
src=
"../../assets/img/userman/edit.png"
alt=
""
>
</el-tooltip>
<el-tooltip
slot=
"label"
class=
"item"
effect=
"dark"
content=
"修改密码"
placement=
"top"
>
<img
@
click=
"upPwddialog=true"
style=
"margin:0 10px;"
src=
"../../assets/img/userman/change.png"
alt=
""
>
</el-tooltip>
<el-tooltip
slot=
"label"
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top"
>
<img
@
click=
"RemmoveRole(scope.row)"
src=
"../../assets/img/userman/del.png"
alt=
""
>
</el-tooltip>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -55,17 +61,17 @@
<el-input
v-model=
"addMsg.EmpAccount"
class=
"w400"
size=
"small"
maxlength=
"20"
/>
</el-form-item>
<el-form-item
label=
"密码"
prop=
"EmpPwd"
>
<el-input
type=
"
text
"
v-model=
"addMsg.EmpPwd"
size=
"small"
class=
"w400"
/>
<el-input
type=
"
password
"
v-model=
"addMsg.EmpPwd"
size=
"small"
class=
"w400"
/>
</el-form-item>
<el-form-item
label=
"昵称"
prop=
"EmpName"
>
<el-input
type=
"text"
v-model=
"addMsg.EmpName"
size=
"small"
class=
"w400"
/>
</el-form-item>
<el-form-item
label=
"角色"
>
<el-checkbox
:indeterminate=
"isIndeterminate"
v-model=
"checkAll"
@
change=
"handleCheckAllChange"
>
全选
<el-checkbox
v-model=
"checkAll"
@
change=
"handleCheckAllChange"
>
全选
</el-checkbox>
<div
style=
"margin: 15px 0;"
></div>
<el-checkbox-group
v-model=
"check
edCities
"
@
change=
"handleCheckedCitiesChange"
>
<el-checkbox
v-for=
"item in RoleList"
:label=
"item.Role
Name"
:key=
"item.RoleId
"
>
{{
item
.
RoleName
}}
<el-checkbox-group
v-model=
"check
Arr
"
@
change=
"handleCheckedCitiesChange"
>
<el-checkbox
v-for=
"item in RoleList"
:label=
"item.Role
Id"
:key=
"item.RoleName
"
>
{{
item
.
RoleName
}}
</el-checkbox>
</el-checkbox-group>
</el-form-item>
...
...
@@ -78,7 +84,7 @@
<el-dialog
title=
"提示"
:visible
.
sync=
"upPwddialog"
width=
"400px"
>
<el-form
label-width=
"0"
>
<p
style=
"padding:10px 0"
>
请输入新密码
</p>
<el-input
type=
"
text
"
v-model=
"pwdMsg.password"
></el-input>
<el-input
type=
"
password
"
v-model=
"pwdMsg.password"
></el-input>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"upPwddialog = false"
>
取 消
</el-button>
...
...
@@ -94,13 +100,14 @@
loading
:
false
,
//修改密码弹窗
upPwddialog
:
false
,
checkAll
:
false
,
isIndeterminate
:
tru
e
,
checkedCities
:
[],
//全选
checkAll
:
fals
e
,
checkArr
:
[],
//选中数组
dataList
:
[],
msg
:
{
pageIndex
:
1
,
pageSize
:
15
,
EmpName
:
''
},
pwdMsg
:
{
password
:
''
...
...
@@ -146,7 +153,6 @@
this
.
apipost
(
"/api/Employee/GetEmployeePageList"
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
.
pageData
;
console
.
log
(
"this.datalist"
,
this
.
dataList
);
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
...
...
@@ -165,8 +171,7 @@
},
//保存
saveMsg
()
{
// var ckedKeys = this.$refs.tree.getCheckedKeys();
// this.addMsg.RoleAuth = ckedKeys.join(',');
this
.
addMsg
.
RoleAuth
=
this
.
checkArr
.
join
(
','
);
this
.
apipost
(
"/api/Employee/SetEmployee"
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getList
();
...
...
@@ -191,12 +196,15 @@
EmpId
:
item
.
EmpId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
checkArr
=
[];
this
.
addMsg
=
res
.
data
.
data
;
this
.
empIsShowAdd
=
false
;
let
newArr
=
this
.
addMsg
.
RoleAuth
.
split
(
','
);
setTimeout
(()
=>
{
this
.
$refs
.
tree
.
setCheckedKeys
(
newArr
);
},
10
)
if
(
this
.
addMsg
.
RoleAuth
!=
''
){
this
.
checkArr
=
newArr
.
map
(
function
(
data
){
return
+
data
;
})
}
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
...
...
@@ -217,17 +225,19 @@
})
})
},
//全选
handleCheckAllChange
(
val
)
{
this
.
checkedCities
=
val
?
this
.
RoleList
:
[];
this
.
isIndeterminate
=
false
;
this
.
checkArr
=
[];
if
(
val
)
{
this
.
RoleList
.
forEach
(
x
=>
{
this
.
checkArr
.
push
(
x
.
RoleId
);
});
}
},
handleCheckedCitiesChange
(
value
)
{
let
checkedCount
=
value
.
length
;
this
.
checkAll
=
checkedCount
===
this
.
RoleList
.
length
;
this
.
isIndeterminate
=
checkedCount
>
0
&&
checkedCount
<
this
.
RoleList
.
length
;
},
//点击复制
copyCode
()
{
var
copycode
=
document
.
getElementById
(
"my_Link"
).
innerHTML
;
var
input
=
document
.
createElement
(
"input"
);
// 直接构建input
...
...
src/components/StoreDesign/special.vue
0 → 100644
View file @
a4e5892d
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
a4e5892d
...
...
@@ -328,6 +328,12 @@ export default new Router({
name
:
'ProjectClassific'
,
component
:
resolve
=>
require
([
'@/components/StoreDesign/ProjectClassific'
],
resolve
),
},
//店铺管理 内容管理 专题
{
path
:
'/special'
,
name
:
'special'
,
component
:
resolve
=>
require
([
'@/components/StoreDesign/special'
],
resolve
),
},
//店铺管理 内容管理 视频管理
{
path
:
'/videoManage'
,
...
...
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