明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
J
jt_front
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
jt_front
Commits
96eee885
Commit
96eee885
authored
Mar 31, 2026
by
zhanghan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面开发完成
parent
326cd196
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
136 additions
and
169 deletions
+136
-169
workForHousing.vue
src/views/elseManage/workForHousing.vue
+31
-74
workForHousingAdd.vue
src/views/elseManage/workForHousingAdd.vue
+105
-95
No files found.
src/views/elseManage/workForHousing.vue
View file @
96eee885
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
@
size-change=
"handleSizeChange"
@
size-change=
"handleSizeChange"
@
current-page-change=
"handleCurrentPageChange"
@
current-page-change=
"handleCurrentPageChange"
>
>
<template
#
operations=
"
{ row
, index
}">
<template
#
operations=
"
{ row }">
<el-button
<el-button
link
link
type=
"primary"
type=
"primary"
...
@@ -32,11 +32,7 @@
...
@@ -32,11 +32,7 @@
@
click=
"previewRecord(row)"
@
click=
"previewRecord(row)"
>
查看
</el-button
>
查看
</el-button
>
>
<el-button
<el-button
link
type=
"primary"
size=
"small"
@
click=
"editRecord(row)"
link
type=
"primary"
size=
"small"
@
click=
"editRecord(row)"
>
编辑
</el-button
>
编辑
</el-button
>
>
<el-button
<el-button
...
@@ -72,37 +68,32 @@ const { proxy } = getCurrentInstance();
...
@@ -72,37 +68,32 @@ const { proxy } = getCurrentInstance();
let
tableData
=
ref
([]);
let
tableData
=
ref
([]);
let
tableColumns
=
ref
([
let
tableColumns
=
ref
([
{
{
prop
:
"
djbh
"
,
prop
:
"
registrationNo
"
,
label
:
"登记编号"
,
label
:
"登记编号"
,
showOverflowTooltip
:
true
,
showOverflowTooltip
:
true
,
},
},
{
{
prop
:
"
xmmc
"
,
prop
:
"
projectName
"
,
label
:
"项目名称"
,
label
:
"项目名称"
,
showOverflowTooltip
:
true
,
showOverflowTooltip
:
true
,
},
},
{
{
prop
:
"
htbh
"
,
prop
:
"
contractNo
"
,
label
:
"合同编号"
,
label
:
"合同编号"
,
showOverflowTooltip
:
true
,
showOverflowTooltip
:
true
,
},
},
{
{
prop
:
"kklx"
,
prop
:
"contractAmount"
,
label
:
"抵扣类型"
,
width
:
100
,
},
{
prop
:
"htje"
,
label
:
"合同金额"
,
label
:
"合同金额"
,
width
:
120
,
width
:
120
,
},
},
{
{
prop
:
"
djrq
"
,
prop
:
"
registrationDate
"
,
label
:
"登记日期"
,
label
:
"登记日期"
,
width
:
120
,
width
:
120
,
},
},
{
{
prop
:
"
jbr
"
,
prop
:
"
handlerName
"
,
label
:
"经办人"
,
label
:
"经办人"
,
width
:
100
,
width
:
100
,
},
},
...
@@ -124,48 +115,19 @@ let pageSize = ref(10);
...
@@ -124,48 +115,19 @@ let pageSize = ref(10);
// 获取列表数据
// 获取列表数据
const
getProjectData
=
(
params
=
{})
=>
{
const
getProjectData
=
(
params
=
{})
=>
{
loading
.
value
=
true
;
loading
.
value
=
true
;
// TODO: 替换为实际的后端接口
proxy
.
$post
({
// proxy.$post({
url
:
"/api/project/getGdfList"
,
// url: "/api/workForHousing/getList",
data
:
{
// data: {
page
:
currentPage
.
value
,
// page: currentPage.value,
pagesize
:
pageSize
.
value
,
// pagesize: pageSize.value,
...
params
,
// ...params,
},
// },
callback
:
(
data
)
=>
{
// callback: (data) => {
tableData
.
value
=
data
.
rows
;
// tableData.value = data.rows;
total
.
value
=
data
.
count
;
// total.value = data.count;
loading
.
value
=
false
;
// loading.value = false;
},
// },
});
// });
// 临时模拟数据
setTimeout
(()
=>
{
tableData
.
value
=
[
{
id
:
1
,
djbh
:
"DJ202403001"
,
xmmc
:
"某某工程项目"
,
htbh
:
"HT202403001"
,
kklx
:
"工程款"
,
htje
:
"1000000"
,
djrq
:
"2024-03-15"
,
jbr
:
"张三"
,
},
{
id
:
2
,
djbh
:
"DJ202403002"
,
xmmc
:
"另一个工程项目"
,
htbh
:
"HT202403002"
,
kklx
:
"材料款"
,
htje
:
"500000"
,
djrq
:
"2024-03-16"
,
jbr
:
"李四"
,
},
];
total
.
value
=
2
;
loading
.
value
=
false
;
},
500
);
};
};
// 分页
// 分页
...
@@ -214,21 +176,16 @@ const deleteRecord = (item) => {
...
@@ -214,21 +176,16 @@ const deleteRecord = (item) => {
type
:
"warning"
,
type
:
"warning"
,
})
})
.
then
(()
=>
{
.
then
(()
=>
{
// TODO: 替换为实际的后端接口
proxy
.
$post
({
// proxy.$post({
url
:
"/api/project/deleteGdf"
,
// url: "/api/workForHousing/delete",
data
:
{
// data: {
id
:
item
.
id
,
// id: item.id,
},
// },
callback
:
()
=>
{
// callback: (data) => {
ElMessage
.
success
(
"删除成功"
);
// ElMessage.success("删除成功");
getProjectData
();
// getProjectData();
},
// },
});
// });
// 临时模拟删除
ElMessage
.
success
(
"删除成功"
);
getProjectData
();
})
})
.
catch
(()
=>
{});
.
catch
(()
=>
{});
};
};
...
...
src/views/elseManage/workForHousingAdd.vue
View file @
96eee885
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment