Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
b2c3d99f
Commit
b2c3d99f
authored
Nov 25, 2022
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善usr页面
parent
1d1ac1db
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
44 deletions
+49
-44
usr.js
src/service/test/usr.js
+13
-12
UbrInfo.vue
src/views/Statics/Dbiusr/UbrInfo.vue
+4
-1
UbrList.vue
src/views/Statics/Dbiusr/UbrList.vue
+10
-9
UclInfo.vue
src/views/Statics/Dbiusr/UclInfo.vue
+5
-2
UclList.vue
src/views/Statics/Dbiusr/UclList.vue
+8
-11
UsrInfo.vue
src/views/Statics/Dbiusr/UsrInfo.vue
+9
-9
No files found.
src/service/test/usr.js
View file @
b2c3d99f
...
...
@@ -20,25 +20,25 @@ export function deleteById(inr) {
return
Api
.
post
(
`/test/usr/deleteById?inr=
${
inr
}
`
)
}
export
function
addUbrData
(
inr
,
data
)
{
return
Api
.
post
(
`/test/usr/addUbrData
?inr=
${
inr
}
`
,
data
)
export
function
addUbrData
(
data
)
{
return
Api
.
post
(
`/test/usr/addUbrData`
,
data
)
}
export
function
updateUbrData
(
inr
,
data
)
{
return
Api
.
post
(
`/test/usr/updateUbrData
?inr=
${
inr
}
`
,
data
)
export
function
updateUbrData
(
data
)
{
return
Api
.
post
(
`/test/usr/updateUbrData`
,
data
)
}
export
function
deleteUbrData
(
data
)
{
return
Api
.
post
(
`/test/usr/deleteUbrData
`
,
data
)
export
function
deleteUbrData
(
inr
)
{
return
Api
.
post
(
`/test/usr/deleteUbrData
?inr=
${
inr
}
`
,
inr
)
}
export
function
addUclData
(
inr
,
data
)
{
return
Api
.
post
(
`/test/usr/addUclData
?inr=
${
inr
}
`
,
data
)
export
function
addUclData
(
data
)
{
return
Api
.
post
(
`/test/usr/addUclData`
,
data
)
}
export
function
updateUclData
(
inr
,
data
)
{
return
Api
.
post
(
`/test/usr/updateUclData
?inr=
${
inr
}
`
,
data
)
export
function
updateUclData
(
data
)
{
return
Api
.
post
(
`/test/usr/updateUclData`
,
data
)
}
export
function
deleteUclData
(
data
)
{
return
Api
.
post
(
`/test/usr/deleteUclData
`
,
data
)
export
function
deleteUclData
(
usr
,
branchinr
)
{
return
Api
.
post
(
`/test/usr/deleteUclData
?usr=
${
usr
}
&&branchinr=
${
branchinr
}
`
,
usr
,
branchinr
)
}
\ No newline at end of file
src/views/Statics/Dbiusr/UbrInfo.vue
View file @
b2c3d99f
...
...
@@ -104,7 +104,7 @@
</el-form-item>
</c-col>
<c-col
:span=
"24"
>
<el-form-item
label=
"
autamt
"
prop=
"autamt"
>
<el-form-item
label=
"
一次性释放授权
"
prop=
"autamt"
>
<c-input
v-model=
"ubr.autamt"
placeholder=
"请输入一次性释放授权"
...
...
@@ -130,3 +130,6 @@ export default {
},
};
</
script
>
<
style
>
</
style
>
src/views/Statics/Dbiusr/UbrList.vue
View file @
b2c3d99f
<
template
>
<div
class=
"eibs-tab"
>
<div
style=
"text-align: right"
>
<c-button
size=
"small"
type=
"primary"
@
click=
"ubrAdd()"
>
新增
</c-button>
<c-button
size=
"small"
type=
"primary"
@
click=
"ubrAdd()"
:disabled=
"false"
>
新增
</c-button>
</div>
<el-form-item
label=
""
label-width=
"0"
prop=
"ubrList"
>
<c-table
:columnsConfig=
"columns"
:list=
"model.ubrList"
>
...
...
@@ -149,7 +149,7 @@ export default {
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
deleteUbrData
(
row
).
then
((
res
)
=>
{
deleteUbrData
(
row
.
inr
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
model
.
ubrList
.
splice
(
index
,
1
);
this
.
$message
.
success
(
"删除成功!"
);
...
...
@@ -165,11 +165,11 @@ export default {
editUbr
()
{
this
.
$refs
.
ubr
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
updateUbrData
(
this
.
model
.
inr
,
this
.
ubr
)
updateUbrData
(
this
.
ubr
)
.
then
((
res
)
=>
{
if
(
res
.
ubr
)
{
if
(
res
)
{
this
.
$message
.
success
(
"修改柜员权限信息成功!"
);
this
.
model
.
ubrList
=
res
.
ubrList
;
//
this.model.ubrList = res.ubrList;
this
.
handleClose
();
}
})
...
...
@@ -195,16 +195,17 @@ export default {
}
else
{
this
.
$refs
.
ubr
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
addUbrData
(
this
.
model
.
inr
,
this
.
ubr
)
// this.ubr.inr = this.model.inr
addUbrData
(
this
.
ubr
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
inr
)
{
this
.
$message
.
success
(
"保存
地址
信息成功!"
);
if
(
res
)
{
this
.
$message
.
success
(
"保存
柜员权限
信息成功!"
);
this
.
model
.
ubrList
=
res
.
ubrList
;
this
.
handleClose
();
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
"保存
地址
信息失败!"
);
this
.
$message
.
error
(
"保存
柜员权限
信息失败!"
);
});
}
});
...
...
src/views/Statics/Dbiusr/UclInfo.vue
View file @
b2c3d99f
...
...
@@ -85,4 +85,7 @@ export default {
};
}
}
</
script
>
\ No newline at end of file
</
script
>
<
style
>
</
style
>
\ No newline at end of file
src/views/Statics/Dbiusr/UclList.vue
View file @
b2c3d99f
...
...
@@ -83,7 +83,6 @@ import {
updateUclData
,
deleteUclData
,
}
from
"@/service/test/usr"
;
import
{
addAdrData
,
deleteAdrData
,
updateAdrData
}
from
"@/service/test/pty"
;
export
default
{
name
:
"UclList"
,
...
...
@@ -124,7 +123,6 @@ export default {
uclAdd
()
{
this
.
ucl
=
new
Ucl
().
data
;
this
.
operate
=
"add"
;
this
.
operateIdx
=
index
;
this
.
uclDialog
=
true
;
},
/**
...
...
@@ -145,7 +143,8 @@ export default {
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}).
then
((
res
)
=>
{
deleteUclData
(
row
).
then
((
res
)
=>
{
console
.
log
(
row
.
branchinr
)
deleteUclData
(
row
.
usr
,
row
.
branchinr
).
then
((
res
)
=>
{
if
(
res
)
{
this
.
model
.
uclList
.
splice
(
index
,
1
);
this
.
$message
.
success
(
"删除成功!"
);
...
...
@@ -161,11 +160,10 @@ export default {
editUcl
()
{
this
.
$refs
.
ucl
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
update
AdrData
(
this
.
model
.
inr
,
this
.
ucl
)
update
UclData
(
this
.
ucl
)
.
then
((
res
)
=>
{
if
(
res
.
in
r
)
{
if
(
res
.
us
r
)
{
this
.
$message
.
success
(
"修改柜员组信息成功!"
);
this
.
model
.
uclList
=
res
.
uclList
;
this
.
handleClose
();
}
})
...
...
@@ -191,16 +189,15 @@ export default {
}
else
{
this
.
$refs
.
ucl
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
addUclData
(
this
.
model
.
inr
,
this
.
ucl
)
addUclData
(
this
.
ucl
)
.
then
((
res
)
=>
{
if
(
res
&&
res
.
inr
)
{
this
.
$message
.
success
(
"保存地址信息成功!"
);
this
.
model
.
uclList
=
res
.
uclList
;
if
(
res
)
{
this
.
$message
.
success
(
"保存柜员组信息成功!"
);
this
.
handleClose
();
}
})
.
catch
((
error
)
=>
{
this
.
$message
.
error
(
"保存
地址
信息失败!"
);
this
.
$message
.
error
(
"保存
柜员组
信息失败!"
);
});
}
});
...
...
src/views/Statics/Dbiusr/UsrInfo.vue
View file @
b2c3d99f
...
...
@@ -55,15 +55,15 @@
</c-input>
</el-form-item>
</c-col>
<!--
<c-col
:span=
"24"
>
--
>
<!--
<el-form-item
label=
"ver"
prop=
"ver"
>
--
>
<!--
<c-input-->
<!-- v-model="model.ver"-->
<!-- placeholder="请输入ver"-->
<!-- >--
>
<!--
</c-input>
--
>
<!--
</el-form-item>
--
>
<!--
</c-col>
--
>
<c-col
:span=
"24"
>
<el-form-item
label=
"ver"
prop=
"ver"
>
<c-input
v-model=
"model.ver"
placeholder=
"请输入ver"
>
</c-input
>
</el-form-item
>
</c-col
>
<c-col
:span=
"24"
>
<el-form-item
label=
"实体标志"
prop=
"pri"
>
<c-input
...
...
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