Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
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
6c87480f
authored
2020-11-04 11:27:19 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新建幢单元页面换成table样式表单
1 parent
e19e379f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
src/api/lpb.js
src/views/systemZRZ/lpb/zdy/index.vue
src/api/lpb.js
View file @
6c87480
...
...
@@ -11,3 +11,14 @@ export function getLpbMenuTree (data) {
},
})
}
/**
* 新增幢单元接口信息
*/
export
function
insertZdyInfo
(
data
)
{
return
request
({
url
:
'system/qjZdy/insertQjZdy'
,
method
:
'post'
,
data
:
data
})
}
\ No newline at end of file
...
...
src/views/systemZRZ/lpb/zdy/index.vue
View file @
6c87480
...
...
@@ -52,6 +52,8 @@
</
template
>
<
script
>
import
{
insertZdyInfo
}
from
"../../../../api/lpb"
export
default
{
name
:
"index"
,
components
:
{},
...
...
@@ -89,10 +91,19 @@
}
},
methods
:{
submitForm
(
formName
)
{
submitForm
(
formName
,
bsm
)
{
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
if
(
valid
)
{
alert
(
'submit!'
);
insertZdyInfo
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
"保存成功!"
)
//更新树结构数据
this
.
$parent
.
$parent
.
getLpbMenuTree
(
bsm
);
//关闭弹框
this
.
$parent
.
$parent
.
closeDaialog
()
}
return
true
;
})
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
...
...
Please
register
or
sign in
to post a comment