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
13dacf08
authored
2023-02-02 09:58:14 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
api:界址线信息
1 parent
46ef4eca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/kttGyJzx.js
src/components/business/kttGyJzx.vue
src/api/kttGyJzx.js
0 → 100644
View file @
13dacf0
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
kttGyJzx
{
//界址线信息
async
getKttGyJzxById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttGyJzx/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
//修改界址线信息
async
updateKttGyJzx
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttGyJzx/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
kttGyJzx
()
src/components/business/kttGyJzx.vue
View file @
13dacf0
...
...
@@ -151,7 +151,7 @@
</div>
</
template
>
<
script
>
import
business
from
'@/api/business
'
import
kttGyJzx
from
'@/api/kttGyJzx
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
// 界址线信息
export
default
{
...
...
@@ -190,7 +190,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKttGyJzxById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
kttGyJzx
.
getKttGyJzxById
(
this
.
bsmSjsb
)
this
.
boundaryLine
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -200,7 +200,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateKttGyJzx
(
this
.
boundaryLine
.
ruleForm
)
let
res
=
await
kttGyJzx
.
updateKttGyJzx
(
this
.
boundaryLine
.
ruleForm
)
resolve
(
res
.
code
)
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
()
...
...
Please
register
or
sign in
to post a comment