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
eccff4f8
authored
2023-02-01 15:03:50 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/bdc/bdcjg-web
2 parents
e273f6bb
aef89b62
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
5 deletions
src/api/ktfQtDzdzw.js
src/components/business/ktfQtDzdzw.vue
src/api/ktfQtDzdzw.js
0 → 100644
View file @
eccff4f
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 @
eccff4f
...
...
@@ -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