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
eb7bb34e
authored
2023-02-02 10:42:13 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
逻辑幢信息 -- 业务表单
1 parent
6fc23e2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/kttFwLjz.js
src/components/business/kttFwLjz.vue
src/api/kttFwLjz.js
0 → 100644
View file @
eb7bb34
import
request
from
"@/utils/request"
;
import
SERVER
from
"./config"
;
class
kttFwLjz
{
// 逻辑幢信息 -- 业务表单
async
getKttFwLjzById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/KttFwLjz/detail"
,
method
:
"get"
,
params
:
{
bsmSjsb
:
bsmSjsb
,
},
});
}
// 逻辑幢信息 -- 业务修改
async
updateKttFwLjz
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/KttFwLjz/edit"
,
method
:
"post"
,
data
,
});
}
}
export
default
new
kttFwLjz
();
src/components/business/kttFwLjz.vue
View file @
eb7bb34
...
...
@@ -263,7 +263,7 @@
</
template
>
<
script
>
// 逻辑幢信息
import
business
from
'@/api/business
'
import
kttFwLjz
from
'@/api/kttFwLjz
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -309,7 +309,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKttFwLjzById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
kttFwLjz
.
getKttFwLjzById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -319,7 +319,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
try
{
let
res
=
await
business
.
updateKttFwLjz
(
this
.
ruleForm
)
let
res
=
await
kttFwLjz
.
updateKttFwLjz
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment