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
39d36fc8
authored
2023-02-01 15:41:24 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
构(建)筑物所有权
1 parent
161972d7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
5 deletions
src/api/qltQlGjzwsyq.js
src/components/business/qltQlGjzwsyq.vue
src/views/business-info/gzwsyq/index.vue
src/api/qltQlGjzwsyq.js
0 → 100644
View file @
39d36fc
import
request
from
"@/utils/request"
;
import
SERVER
from
"./config"
;
class
qltQlGjzwsyq
{
// 构(建)筑物所有权
async
getQltQlGjzwsyqList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/QltQlGjzwsyq/getDataPage"
,
method
:
"post"
,
data
,
});
}
// 构(建)筑物所有权
async
getQltQlGjzwsyqById
(
bsmSjsb
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/QltQlGjzwsyq/detail"
,
method
:
"get"
,
params
:
{
bsmSjsb
:
bsmSjsb
,
},
});
}
//构(建)筑物所有权 - 修改
async
updateQltQlGjzwsyq
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
"/rest/reg/QltQlGjzwsyq/edit"
,
method
:
"post"
,
data
,
});
}
}
export
default
new
qltQlGjzwsyq
();
src/components/business/qltQlGjzwsyq.vue
View file @
39d36fc
...
...
@@ -278,7 +278,7 @@
</
template
>
<
script
>
// 构(建)筑物所有权信息
import
business
from
'@/api/business
'
import
qltQlGjzwsyq
from
'@/api/qltQlGjzwsyq
'
import
ruleMixin
from
'@/mixins/ruleMixin.js'
export
default
{
mixins
:
[
ruleMixin
],
...
...
@@ -344,7 +344,7 @@ export default {
methods
:
{
async
featchData
()
{
try
{
let
{
result
:
res
}
=
await
business
.
getQltQlGjzwsyqById
(
this
.
bsmSjsb
)
let
{
result
:
res
}
=
await
qltQlGjzwsyq
.
getQltQlGjzwsyqById
(
this
.
bsmSjsb
)
this
.
ruleForm
=
res
//this.featchRule()
}
catch
(
error
)
{
...
...
@@ -354,7 +354,7 @@ export default {
handleUpdateForm
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
let
res
=
await
business
.
updateQltQlGjzwsyq
(
this
.
ruleForm
)
let
res
=
await
qltQlGjzwsyq
.
updateQltQlGjzwsyq
(
this
.
ruleForm
)
// this.$refs['formList'].resetFields();
resolve
(
res
.
code
)
}
catch
(
error
)
{
...
...
src/views/business-info/gzwsyq/index.vue
View file @
39d36fc
...
...
@@ -67,7 +67,7 @@
<
script
>
// 构(建)筑物所有权
import
data
from
"./data"
import
business
from
'@/api/business
'
import
qltQlGjzwsyq
from
'@/api/qltQlGjzwsyq
'
import
tableMixin
from
'@/mixins/tableMixin.js'
import
treeSelect
from
'@/components/treeSelect/index.vue'
export
default
{
...
...
@@ -134,7 +134,7 @@ export default {
try
{
this
.
form
=
Object
.
assign
(
this
.
form
,
this
.
formData
)
let
{
result
:
{
list
,
total
,
pages
:
pageSize
,
pageNum
:
current
}
}
=
await
business
.
getQltQlGjzwsyqList
(
this
.
form
)
}
=
await
qltQlGjzwsyq
.
getQltQlGjzwsyqList
(
this
.
form
)
this
.
tableData
.
data
=
list
this
.
pageData
=
{
pageSize
,
...
...
Please
register
or
sign in
to post a comment