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
db5ea3c5
authored
2023-02-01 14:55:08 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:点状定着物
1 parent
a1aee7bf
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
5 deletions
src/api/business.js
src/api/ktfQtDzdzw.js
src/components/business/ktfQtDzdzw.vue
src/api/business.js
View file @
db5ea3c
This diff is collapsed.
Click to expand it.
src/api/ktfQtDzdzw.js
0 → 100644
View file @
db5ea3c
import
request
from
'@/utils/request'
import
SERVER
from
'./config'
class
ktfQtDzdzw
{
// 点状定着物信息
async
getKtfQtDzdzwById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfQtDzdzw/detail'
,
method
:
'get'
,
params
:
{
bsmSjsb
:
bsmSjsb
}
})
}
// 点状定着物信息-修改
async
updateKtfQtDzdzw
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/reg/KtfQtDzdzw/edit'
,
method
:
'post'
,
data
})
}
}
export
default
new
ktfQtDzdzw
()
\ No newline at end of file
src/components/business/ktfQtDzdzw.vue
View file @
db5ea3c
...
...
@@ -134,7 +134,7 @@
</
template
>
<
script
>
// 点状定着物信息
import
business
from
'@/api/business
'
import
ktfQtDzdzw
from
'@/api/ktfQtDzdzw
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -166,9 +166,8 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getKtfQtDzdzwById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
ktfQtDzdzw
.
getKtfQtDzdzwById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
()
}
...
...
@@ -176,8 +175,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateKtfQtDzdzw
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
let
res
=
await
ktfQtDzdzw
.
updateKtfQtDzdzw
(
this
.
ruleForm
)
resolve
(
res
.
code
)
}
catch
(
error
)
{
this
.
$refs
.
msg
.
messageShow
()
...
...
Please
register
or
sign in
to post a comment