Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
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
紫光云
web-project
Commits
636fba53
Commit
636fba53
authored
Jun 21, 2024
by
jiaxu.yan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 项目详情
parent
48d2a013
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
490 additions
and
154 deletions
+490
-154
ContractTree.vue
src/components/ContractModel/ContractTree.vue
+22
-22
biddingPlan.data.ts
src/views/biddingPlan/biddingPlan.data.ts
+3
-0
data.tsx
src/views/performance/data.tsx
+21
-21
data.ts
src/views/project/tabs/data.ts
+427
-111
monthlyPlan.vue
src/views/project/tabs/monthlyPlan.vue
+17
-0
No files found.
src/components/ContractModel/ContractTree.vue
View file @
636fba53
...
...
@@ -11,28 +11,28 @@
</div>
</template>
<
script
lang=
"ts"
setup
>
import
{
BasicTable
,
useTable
}
from
'@/components/Table'
;
import
{
getBasicColumns
,
getTreeTableData
}
from
'./tableData'
;
import
{
BasicTable
,
useTable
}
from
'@/components/Table'
;
import
{
getBasicColumns
,
getTreeTableData
}
from
'./tableData'
;
const
[
register
,
{
expandAll
,
collapseAll
,
expandRows
,
collapseRows
}]
=
useTable
({
title
:
'树形表格'
,
isTreeTable
:
true
,
accordion
:
true
,
// 手风琴效果
rowSelection
:
{
type
:
'checkbox'
,
getCheckboxProps
(
record
:
Recordable
)
{
// Demo: 第一行(id为0)的选择框禁用
if
(
record
.
id
===
'0'
)
{
return
{
disabled
:
true
};
}
else
{
return
{
disabled
:
false
};
}
const
[
register
,
{
expandAll
,
collapseAll
,
expandRows
,
collapseRows
}]
=
useTable
({
title
:
'树形表格'
,
isTreeTable
:
true
,
accordion
:
true
,
// 手风琴效果
rowSelection
:
{
type
:
'checkbox'
,
getCheckboxProps
(
record
:
Recordable
)
{
// Demo: 第一行(id为0)的选择框禁用
if
(
record
.
id
===
'0'
)
{
return
{
disabled
:
true
};
}
else
{
return
{
disabled
:
false
};
}
},
},
},
titleHelpMessage
:
'树形组件不能和序列号列同时存在'
,
columns
:
getBasicColumns
(),
dataSource
:
getTreeTableData
(),
rowKey
:
'id'
,
showSelectionBar
:
true
,
// 显示多选状态栏
});
titleHelpMessage
:
'树形组件不能和序列号列同时存在'
,
columns
:
getBasicColumns
(),
dataSource
:
getTreeTableData
(),
rowKey
:
'id'
,
showSelectionBar
:
true
,
// 显示多选状态栏
});
</
script
>
src/views/biddingPlan/biddingPlan.data.ts
View file @
636fba53
...
...
@@ -185,6 +185,9 @@ export const formSchema: FormSchema[] = [
label
:
'预计控制价'
,
required
:
true
,
component
:
'Input'
,
componentProps
:
{
addonAfter
:
'万元'
,
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
{
...
...
src/views/performance/data.tsx
View file @
636fba53
...
...
@@ -635,27 +635,27 @@ export const formSchema2: FormSchema[] = [
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
{
field
:
'planNum'
,
label
:
'2024年计划产值'
,
required
:
true
,
component
:
'Input'
,
componentProps
:
{
readonly
:
true
,
style
:
{
border
:
'none'
},
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
{
field
:
'actualOutputValue'
,
label
:
' 2024年实际产值'
,
required
:
true
,
component
:
'Input'
,
componentProps
:
{
addonAfter
:
'万元'
,
},
colProps
:
{
span
:
7
,
offset
:
1
},
},
//
{
//
field: 'planNum',
//
label: '2024年计划产值',
//
required: true,
//
component: 'Input',
//
componentProps: {
//
readonly: true,
//
style: { border: 'none' },
//
},
//
colProps: { span: 7, offset: 1 },
//
},
//
{
//
field: 'actualOutputValue',
//
label: ' 2024年实际产值',
//
required: true,
//
component: 'Input',
//
componentProps: {
//
addonAfter: '万元',
//
},
//
colProps: { span: 7, offset: 1 },
//
},
{
field
:
'planFunds'
,
label
:
' 2024年计划资金'
,
...
...
src/views/project/tabs/data.ts
View file @
636fba53
This diff is collapsed.
Click to expand it.
src/views/project/tabs/monthlyPlan.vue
View file @
636fba53
...
...
@@ -31,8 +31,25 @@
const
[
registerTable
,
{
reload
}]
=
useTable
({
api
:
getAnnualPlanList
,
columns
:
monthlyPlanColumns
,
isTreeTable
:
true
,
accordion
:
true
,
// 手风琴效果
// rowSelection: {
// type: 'checkbox',
// getCheckboxProps(record: Recordable) {
// // Demo: 第一行(id为0)的选择框禁用
// if (record.id === '0') {
// return { disabled: true };
// } else {
// return { disabled: false };
// }
// },
// },
rowKey
:
'id'
,
showSelectionBar
:
true
,
// 显示多选状态栏
titleHelpMessage
:
'树形组件不能和序列号列同时存在'
,
formConfig
:
{
labelWidth
:
120
,
schemas
:
searchFormSchema
,
},
searchInfo
:
{
...
...
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