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
4e32d787
authored
2023-02-02 10:53:14 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
构筑物
1 parent
4c2cd994
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/kttGzw.js
src/components/business/kttGzw.vue
src/api/kttGzw.js
0 → 100644
View file @
4e32d78
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
kttGzw
{
//构筑物
async
getKttGzwById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttGzw/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
//修改构筑物
async
updateKttGzw
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KttGzw/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
kttGzw
()
\ No newline at end of file
src/components/business/kttGzw.vue
View file @
4e32d78
...
...
@@ -123,7 +123,7 @@
</
template
>
<
script
>
// 构筑物
import
business
from
'@/api/business
'
import
kttGzw
from
'@/api/kttGzw
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -157,7 +157,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKttGzwById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
kttGzw
.
getKttGzwById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -167,7 +167,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateKttGzw
(
this
.
ruleForm
)
let
res
=
await
kttGzw
.
updateKttGzw
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment