Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ac1b414f
authored
2024-01-16 09:05:23 +0800
by
赵千
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
企业银行
1 parent
1a51a8be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
16 deletions
src/views/xxba/components/addDialog.vue
src/views/xxba/qyxxba/index.vue
src/views/xxba/yhjgba/index.vue
src/views/xxba/components/addDialog.vue
View file @
ac1b414
...
...
@@ -99,7 +99,7 @@
}
};
import
store
from
'@/store/index.js'
import
{
addQy
,
update
}
from
"@/api/xxba.js"
import
{
addQy
,
update
,
addYh
}
from
"@/api/xxba.js"
import
clxx
from
'./clxx/index.vue'
export
default
{
props
:
{
...
...
@@ -215,19 +215,36 @@
that
.
$refs
[
'ruleForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
store
.
dispatch
(
"user/refreshPage"
,
false
);
addQy
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
that
.
$message
.
success
(
'保存成功'
)
that
.
$emit
(
"input"
,
false
);
that
.
$refs
[
'ruleForm'
].
resetFields
();
that
.
resetTableFields
();
that
.
closeDialog
();
//刷新列表
store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
})
if
(
this
.
formData
.
QyYh
==
1
)
{
addQy
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
that
.
$message
.
success
(
'保存成功'
)
that
.
$emit
(
"input"
,
false
);
that
.
$refs
[
'ruleForm'
].
resetFields
();
that
.
resetTableFields
();
that
.
closeDialog
();
//刷新列表
store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
})
}
else
{
addYh
(
this
.
ruleForm
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
that
.
$message
.
success
(
'保存成功'
)
that
.
$emit
(
"input"
,
false
);
that
.
$refs
[
'ruleForm'
].
resetFields
();
that
.
resetTableFields
();
that
.
closeDialog
();
//刷新列表
store
.
dispatch
(
"user/refreshPage"
,
true
);
}
else
{
that
.
$message
.
error
(
res
.
message
);
}
})
}
}
else
{
this
.
$message
.
error
(
'请完善表单'
);
return
false
;
...
...
src/views/xxba/qyxxba/index.vue
View file @
ac1b414
...
...
@@ -106,7 +106,7 @@
* @author: renchao
*/
handleAdd
()
{
this
.
$popupDialog
(
"添加企业"
,
"xxba/components/addDialog"
,
{
isAdd
:
1
},
"75%"
)
this
.
$popupDialog
(
"添加企业"
,
"xxba/components/addDialog"
,
{
isAdd
:
1
,
QyYh
:
1
},
"75%"
)
},
/**
* @description: handleDelete
...
...
src/views/xxba/yhjgba/index.vue
View file @
ac1b414
...
...
@@ -105,7 +105,7 @@
* @author: renchao
*/
handleAdd
()
{
this
.
$popupDialog
(
"添加银行"
,
"xxba/components/addDialog"
,
{
isAdd
:
1
},
"75%"
)
this
.
$popupDialog
(
"添加银行"
,
"xxba/components/addDialog"
,
{
isAdd
:
1
,
QyYh
:
2
},
"75%"
)
},
/**
* @description: handleDelete
...
...
Please
register
or
sign in
to post a comment