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
d164eca5
authored
2024-01-17 09:06:57 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:企业银行
1 parent
96ea988b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
19 deletions
src/views/xxba/qyxxba/index.vue
src/views/xxba/yhjgba/components/addDialog.vue
src/views/xxba/yhjgba/index.vue
src/views/xxba/qyxxba/index.vue
View file @
d164eca
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-17 09:0
2:49
* @LastEditTime: 2024-01-17 09:0
4:11
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -106,7 +106,7 @@
* @author: renchao
*/
handleAdd
()
{
this
.
$popupDialog
(
"添加企业"
,
"xxba/components/addDialog"
,
{
isAdd
:
1
,
QyYh
:
1
},
"75%"
)
this
.
$popupDialog
(
"添加企业"
,
"xxba/
qyxxba/
components/addDialog"
,
{
isAdd
:
1
,
QyYh
:
1
},
"75%"
)
},
/**
* @description: handleDelete
...
...
src/views/xxba/yhjgba/components/addDialog.vue
View file @
d164eca
...
...
@@ -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
:
{
...
...
@@ -149,7 +149,7 @@
],
rules
:
{
qymc
:
[
{
required
:
true
,
message
:
'
企业
名称不能为空'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'
银行
名称不能为空'
,
trigger
:
'blur'
}
],
dh
:
[
{
required
:
true
,
validator
:
checkPhone
,
trigger
:
[
"blur"
]
},
...
...
@@ -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/yhjgba/index.vue
View file @
d164eca
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-17 09:0
2:55
* @LastEditTime: 2024-01-17 09:0
3:56
-->
<
template
>
<div
class=
"from-clues"
>
...
...
@@ -106,7 +106,7 @@
* @author: renchao
*/
handleAdd
()
{
this
.
$popupDialog
(
"添加银行"
,
"xxba/components/addDialog"
,
{
isAdd
:
1
,
QyYh
:
2
},
"75%"
)
this
.
$popupDialog
(
"添加银行"
,
"xxba/
yhjgba/
components/addDialog"
,
{
isAdd
:
1
,
QyYh
:
2
},
"75%"
)
},
/**
* @description: handleDelete
...
...
Please
register
or
sign in
to post a comment