Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
8048b302
authored
2023-02-02 11:04:57 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
自然幢信息
1 parent
4e32d787
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/kttFwZrz.js
src/components/business/kttFwZrz.vue
src/api/kttFwZrz.js
0 → 100644
View file @
8048b30
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
kttFwZrz
{
// 自然幢信息
async
getKttFwZrzById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttFwZrz/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
// 自然幢信息-修改
async
updateKttFwZrz
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttFwZrz/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
kttFwZrz
()
src/components/business/kttFwZrz.vue
View file @
8048b30
...
...
@@ -320,7 +320,7 @@
</
template
>
<
script
>
// 自然幢
import
business
from
'@/api/business
'
import
kttFwZrz
from
'@/api/kttFwZrz
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -372,7 +372,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKttFwZrzById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
kttFwZrz
.
getKttFwZrzById
(
this
.
bsmSjsb
)
this
.
naturalForm
.
naturalList
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -382,7 +382,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateKttFwZrz
(
this
.
naturalForm
.
naturalList
)
let
res
=
await
kttFwZrz
.
updateKttFwZrz
(
this
.
naturalForm
.
naturalList
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment