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
132357e8
authored
2023-02-01 15:43:00 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
线状定着物
1 parent
c1f72ca4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
src/api/ktfQtXzdzw.js
src/components/business/ktfQtXzdzw.vue
src/api/ktfQtXzdzw.js
0 → 100644
View file @
132357e
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
ktfQtXzdzw
{
// 线状定着物
async
getKtfQtXzdzwById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfQtXzdzw/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
// 线状定着物-修改
async
updateKtfQtXzdzw
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfQtXzdzw/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
ktfQtXzdzw
()
\ No newline at end of file
src/components/business/ktfQtXzdzw.vue
View file @
132357e
...
...
@@ -134,7 +134,7 @@
</
template
>
<
script
>
// 线状定着物
import
business
from
'@/api/business
'
import
ktfQtXzdzw
from
'@/api/ktfQtXzdzw
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -167,7 +167,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKtfQtXzdzwById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
ktfQtXzdzw
.
getKtfQtXzdzwById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -177,7 +177,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
try
{
let
res
=
await
business
.
updateKtfQtXzdzw
(
this
.
ruleForm
)
let
res
=
await
ktfQtXzdzw
.
updateKtfQtXzdzw
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
Please
register
or
sign in
to post a comment