Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center-ui
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center-ui
Commits
e8c34b2a
Commit
e8c34b2a
authored
Feb 25, 2021
by
陈浩建
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
6ce0c43a
e56ee466
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
8 deletions
+33
-8
src/api/system.js
+5
-0
src/views/school-center/productManagement/product.vue
+14
-4
src/views/system/systemUser.vue
+14
-4
No files found.
src/api/system.js
View file @
e8c34b2a
...
...
@@ -20,6 +20,10 @@ let roleTreeList2 = (params) => postAction(prefix+"/role/roleTreeListByUserId/"+
let
userFreeze
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/freeze"
,
params
);
let
userUnFreeze
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/unfreeze"
,
params
);
let
changeOtherPwd
=
(
params
)
=>
postAction
(
prefix
+
"/mgr/changeOtherPwd"
,
params
);
//修改密码
// 用户解锁
let
unlock
=
(
params
)
=>
postAction
(
"app/ciop/codesManager/unlock"
,
params
);
//修改密码
//部门管理
const
departmentList
=
(
params
)
=>
getAction
(
prefix
+
"/dept/departmentList"
,
params
);
let
deptAdd
=
(
params
)
=>
postAction
(
prefix
+
"/dept/add"
,
params
);
...
...
@@ -76,6 +80,7 @@ export {
userFreeze
,
userUnFreeze
,
changeOtherPwd
,
unlock
,
// 角色管理
userManage
,
userRoleTreeList
,
...
...
src/views/school-center/productManagement/product.vue
View file @
e8c34b2a
...
...
@@ -327,6 +327,13 @@
this
.
regular
=
item
}
},
HTMLEncode
(
text
)
{
let
temp
=
document
.
createElement
(
"div"
);
temp
.
innerHTML
=
text
;
let
output
=
temp
.
innerText
||
temp
.
textContent
;
temp
=
null
;
return
output
;
},
search
()
{
this
.
$refs
.
table
.
refresh
({
search
:
true
})
},
...
...
@@ -339,6 +346,7 @@
})
},
modifyfunction
(
data
)
{
console
.
log
(
data
);
universitySchool
().
then
(
res
=>
{
this
.
universitySchool
=
res
.
data
;
if
(
data
!=
undefined
)
{
...
...
@@ -348,12 +356,11 @@
}
})
}
//console.log(this.universitySchool)
})
if
(
data
!=
undefined
)
{
this
.
productIntroduction
=
data
.
productIntroduction
this
.
productSetMealIntroduction
=
data
.
productSetMealIntroduction
this
.
productRf2
=
data
.
productRf2
this
.
productIntroduction
=
data
.
productIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productSetMealIntroduction
=
data
.
productSetMealIntroduction
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
productRf2
=
data
.
productRf2
.
replace
(
/</g
,
'<'
).
replace
(
/>/g
,
'>'
)
this
.
modelData
.
productMealPrice
=
data
.
productMealPrice
this
.
modelData
.
productUniversity
=
data
.
productUniversity
this
.
modelData
.
productRhPrice
=
data
.
productRhPrice
...
...
@@ -382,6 +389,9 @@
this
.
universityName
=
'请选择'
this
.
regularName
=
"请选择"
;
}
this
.
productIntroduction
=
this
.
HTMLEncode
(
this
.
productIntroduction
)
this
.
productSetMealIntroduction
=
this
.
HTMLEncode
(
this
.
productSetMealIntroduction
);
this
.
productRf2
=
this
.
HTMLEncode
(
this
.
productRf2
)
this
.
modifyvisible
=
true
;
},
createfunctionOk
()
{
...
...
src/views/system/systemUser.vue
View file @
e8c34b2a
...
...
@@ -73,6 +73,8 @@
</template>
<
template
slot=
"operation"
slot-scope=
"text, record"
v-if=
"record.status != 3"
>
<span>
<a
@
click=
"unlock(record.id)"
>
解锁
</a>
<a-divider
type=
"vertical"
/>
<a
@
click=
"toggle(record.id)"
>
修改
</a>
<a-divider
type=
"vertical"
/>
<a-popconfirm
title=
"是否要删除此行?"
@
confirm=
"remove(record.id)"
>
...
...
@@ -250,7 +252,8 @@ import {
getEditUser
,
userFreeze
,
userUnFreeze
,
changeOtherPwd
changeOtherPwd
,
unlock
}
from
'@/api/system'
export
default
{
...
...
@@ -303,7 +306,7 @@ export default {
dataIndex
:
'center'
,
toolbar
:
'#tableBar'
,
title
:
'操作'
,
width
:
2
0
0
,
width
:
2
2
0
,
fixed
:
'right'
,
scopedSlots
:
{
customRender
:
'operation'
}
}
...
...
@@ -618,8 +621,15 @@ export default {
that
.
$refs
.
tree4
.
setValue2
(
user
.
roleid
);
})
},
unlock
(
userId
)
{
unlock
({
userId
}).
then
(
res
=>
{
if
(
res
.
state
==
"success"
)
{
this
.
$notification
.
success
({
message
:
"解除锁定成功!"
,
description
:
""
,
duration
:
4
})
}
else
{
this
.
$notification
.
error
({
message
:
"解锁失败!"
,
description
:
""
,
duration
:
4
});
}
})
},
handleUpdata
()
{
this
.
visible
=
false
...
...
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