Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-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
4565bd2a
authored
2022-10-18 17:58:15 +0800
by
jiaozeping@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
lpb
1 parent
385f5d08
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
33 deletions
src/api/lpb.js
src/views/zhcx/lpcx/lpcx.vue
src/views/zhcx/lpcx/lpcxdata.js
src/api/lpb.js
View file @
4565bd2
...
...
@@ -3,7 +3,6 @@ import request from '@/utils/request'
楼盘查询
*/
// 根据条件进行列表查询
export
function
getLpZrz
(
data
)
{
return
request
({
...
...
@@ -13,7 +12,6 @@ export function getLpZrz(data) {
})
}
// 获取楼盘表
export
function
getLpb
(
params
)
{
return
request
({
...
...
@@ -22,5 +20,3 @@ export function getLpb(params) {
params
})
}
...
...
src/views/zhcx/lpcx/lpcx.vue
View file @
4565bd2
...
...
@@ -6,25 +6,45 @@
<el-row>
<el-col
:span=
"5"
>
<el-form-item
label=
"项目名称"
>
<el-input
placeholder=
"请输入项目名称"
v-model=
"queryForm.xmmc"
clearable
class=
"width200px"
>
<el-input
placeholder=
"请输入项目名称"
v-model=
"queryForm.xmmc"
clearable
class=
"width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"项目编号"
>
<el-input
placeholder=
"请输入项目编号"
v-model=
"queryForm.xmbh"
clearable
class=
"width200px"
>
<el-input
placeholder=
"请输入项目编号"
v-model=
"queryForm.xmbh"
clearable
class=
"width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"宗地代码"
>
<el-input
placeholder=
"请输入宗地代码"
v-model=
"queryForm.zddm"
clearable
class=
"width200px"
>
<el-input
placeholder=
"请输入宗地代码"
v-model=
"queryForm.zddm"
clearable
class=
"width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"5"
>
<el-form-item
label=
"自然幢号"
>
<el-input
placeholder=
"请输入自然幢号"
v-model=
"queryForm.zrzh"
clearable
class=
"width200px"
>
<el-input
placeholder=
"请输入自然幢号"
v-model=
"queryForm.zrzh"
clearable
class=
"width200px"
>
</el-input>
</el-form-item>
</el-col>
...
...
@@ -40,9 +60,17 @@
</div>
<!-- 表格 -->
<div
class=
"from-clues-content"
>
<lb-table
:page-size=
"pageData.size"
border
@
sort-change=
"handleSort"
:current-page
.
sync=
"pageData.current"
:total=
"pageData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
<lb-table
:page-size=
"pageData.size"
border
@
sort-change=
"handleSort"
:current-page
.
sync=
"pageData.current"
:total=
"pageData.total"
@
size-change=
"handleSizeChange"
@
p-current-change=
"handleCurrentChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
</div>
</div>
...
...
@@ -50,15 +78,15 @@
<
script
>
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./lpcxdata"
;
import
{
getLpZrz
,
getLpb
}
from
"@/api/lpb.js"
import
{
getLpZrz
,
getLpb
}
from
"@/api/lpb.js"
;
export
default
{
name
:
"lpcx"
,
components
:
{},
mixins
:
[
table
],
mounted
()
{
mounted
()
{
sendThis
(
this
);
},
data
()
{
data
()
{
return
{
queryForm
:
{
xmmc
:
""
,
...
...
@@ -73,41 +101,42 @@ export default {
},
tableData
:
{
columns
:
datas
.
columns
(),
data
:
[]
}
data
:
[]
,
}
,
};
},
methods
:
{
//查询
queryClick
(){
queryClick
()
{
this
.
fetchData
();
},
// 初始化数据
fetchData
()
{
getLpZrz
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
fetchData
()
{
getLpZrz
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
(
(
res
)
=>
{
if
(
res
.
code
===
200
)
{
this
.
pageData
.
total
=
res
.
result
.
total
;
this
.
tableData
.
data
=
res
.
result
.
records
this
.
tableData
.
data
=
res
.
result
.
records
;
}
})
})
;
},
handleSort
(
name
,
sort
)
{
handleSort
(
name
,
sort
)
{
console
.
log
(
name
,
sort
);
},
//打开楼盘表
openlpb
Dialog
(
scope
)
{
openlpb
Click
(
scope
)
{
debugger
;
var
zrzbsm
=
scope
.
row
.
bsm
;
var
zrzbsm
=
scope
.
row
.
bsm
;
getLpb
({
zrzbsm
:
zrzbsm
}).
then
(
res
=>
{
if
(
res
.
code
==
200
){
var
lpbdata
=
res
.
result
;
}
})
.
catch
((
error
)
=>
{
getLpb
({
zrzbsm
:
zrzbsm
})
.
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
var
lpbdata
=
res
.
result
;
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
...
...
src/views/zhcx/lpcx/lpcxdata.js
View file @
4565bd2
...
...
@@ -8,7 +8,7 @@ class data extends filter {
constructor
()
{
super
()
}
columns
()
{
columns
()
{
return
[
{
label
:
'序号'
,
...
...
@@ -57,7 +57,7 @@ class data extends filter {
align
:
'center'
,
fixed
:
'right'
,
render
:
(
h
,
scope
)
=>
{
return
<
el
-
button
type
=
"text"
icon
=
"el-icon-film"
onClick
=
{()
=>
{
vm
.
openlpb
Dialog
(
scope
)
}}
>
楼盘表
<
/el-button
>
return
<
el
-
button
type
=
"text"
icon
=
"el-icon-film"
onClick
=
{()
=>
{
vm
.
openlpb
Click
(
scope
)
}}
>
楼盘表
<
/el-button
>
}
}
]
...
...
Please
register
or
sign in
to post a comment