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
a1495fc5
authored
2023-02-02 11:14:07 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
宗海基本信息
1 parent
8048b302
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
9 deletions
src/api/kttZhjbxx.js
src/api/zdK103.js
src/components/business/kttZhjbxx.vue
src/components/business/zdK103.vue
src/api/kttZhjbxx.js
0 → 100644
View file @
a1495fc
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
kttZhjbxx
{
//宗海基本信息
async
getKttZhjbxxById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttZhjbxx/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
//修改宗海基本信息
async
updateKttZhjbxx
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttZhjbxx/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
kttZhjbxx
()
\ No newline at end of file
src/api/zdK103.js
0 → 100644
View file @
a1495fc
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
zdK103
{
//宗地空间属性
async
getZdK103ById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/ZdK103/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
//修改宗地空间属性
async
updateZdK103
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/ZdK103/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
zdK103
()
\ No newline at end of file
src/components/business/kttZhjbxx.vue
View file @
a1495fc
...
...
@@ -378,7 +378,7 @@
</
template
>
<
script
>
// 宗海基本信息
import
business
from
'@/api/business
'
import
kttZhjbxx
from
'@/api/kttZhjbxx
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -434,7 +434,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKttZhjbxxById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
kttZhjbxx
.
getKttZhjbxxById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -444,7 +444,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateKttZhjbxx
(
this
.
ruleForm
)
let
res
=
await
kttZhjbxx
.
updateKttZhjbxx
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
src/components/business/zdK103.vue
View file @
a1495fc
...
...
@@ -88,7 +88,7 @@
</
template
>
<
script
>
// 宗地空间属性
import
business
from
"@/api/business
"
;
import
zdK103
from
"@/api/zdK103
"
;
import
ruleMixin
from
"@/mixins/ruleMixin.js"
;
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -102,7 +102,7 @@ export default {
default
:
""
,
},
},
data
()
{
data
()
{
return
{
ruleForm
:
{
BDCDYH
:
""
,
...
...
@@ -114,19 +114,19 @@ export default {
};
},
methods
:
{
async
featchData
()
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getZdK103ById
(
this
.
bsmSjsb
);
let
{
result
:
res
}
=
await
zdK103
.
getZdK103ById
(
this
.
bsmSjsb
);
this
.
ruleForm
=
res
;
//this.featchRule()
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
();
}
},
handleUpdateForm
()
{
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateZdK103
(
this
.
ruleForm
);
let
res
=
await
zdK103
.
updateZdK103
(
this
.
ruleForm
);
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
);
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment