Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web
Project
Project
Details
Activity
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
INET-TWO
web
Commits
04473b62
Commit
04473b62
authored
Sep 14, 2024
by
ztf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改项目要素相关组件
parent
5c208e7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
10 deletions
+128
-10
index.vue
...rc/privateComponents/components/leftProjectTree/index.vue
+3
-10
index.vue
...c/privateComponents/components/projectComponent/index.vue
+125
-0
No files found.
applications/dee-project/src/privateComponents/components/leftProjectTree/index.vue
View file @
04473b62
<
template
>
<div
class=
"PlanTreeMenu"
>
<!-- 两种方式的自动超长省略 -->
<!--
<el-tooltip
effect=
"dark"
:content=
"projectTitle"
placement=
"bottom"
:disabled=
"!isShowTooltip"
>
<div
ref=
"name"
class=
"title ellipsis"
@
mouseover=
"onMouseOver"
>
{{
projectTitle
}}
</div>
</el-tooltip>
-->
<!--
<div
class=
"sub-title"
>
项目要素
</div>
-->
<div
ref=
"name"
class=
"title ellipsis"
:title=
"isShowTooltip?projectTitle:''"
@
mouseover=
"onMouseOver"
@
click=
"handleClickTitle"
>
{{
projectTitle
}}
</div>
<el-tree
ref=
"tree"
...
...
@@ -61,12 +54,12 @@ export default {
basicData
:
null
,
isShowTooltip
:
false
,
planDetail
:
{
subTypeName
:
this
.
$route
.
query
.
type
,
name
:
this
.
projectTitle
,
disabled
:
false
,
id
:
this
.
$route
.
query
.
id
,
componentType
:
'formConfig'
,
formConfigType
:
'page'
,
// componentType: 'formConfig',
// formConfigType: 'page',
detail
:
'projectDetail'
,
pageKey
:
this
.
$route
.
query
.
type
===
'DxContext'
?
'79edd06e-3a7d-440e-bb4f-4b7691f7a641'
:
'e32bab11-07c1-42b9-9ce7-d00d12c3b680'
}
}
...
...
applications/dee-project/src/privateComponents/components/projectComponent/index.vue
0 → 100644
View file @
04473b62
<
template
>
<div
id=
"project-dynamicComponent-com"
>
<dee-as-page
v-if=
"basicData && basicData.componentType === 'formConfig' && basicData.formConfigType === 'page'"
:id=
"basicData.componentName"
:key=
"basicData.pageKey"
:page-key=
"basicData.pageKey"
/>
<dee-as-page
v-if=
"basicData && basicData.detail === 'projectDetail'"
:id=
"basicData.componentName"
:key=
"basicData.pageKey"
:page-key=
"basicData.pageKey"
:basic-data=
"basicData"
/>
</div>
</
template
>
<
script
>
export
default
{
name
:
'DynamicComponent'
,
componentName
:
'项目要素动态组件'
,
props
:
{},
data
()
{
// 这里存放数据
return
{
emitMethods
:
[
{
methods
:
'loadComponent'
,
methodsName
:
'加载动态组件'
}
],
comName
:
''
,
parentType
:
''
,
basicData
:
null
,
planObj
:
null
}
},
// 监听属性 类似于data概念
computed
:
{},
// 监控data中的数据变化
watch
:
{},
// 生命周期 - 创建完成(可以访问当前this实例)
created
()
{
},
// 生命周期 - 挂载完成(可以访问DOM元素)
mounted
()
{
},
activated
()
{
},
// 方法集合
methods
:
{
loadComponent
(
val
)
{
this
.
planObj
=
val
this
.
basicData
=
val
this
.
comName
=
val
.
componentName
}
}
}
</
script
>
<
style
lang=
'scss'
>
#project-dynamicComponent-com
{
padding
:
0
;
position
:
absolute
;
left
:
4px
;
right
:
4px
;
top
:
4px
;
bottom
:
4px
;
background-color
:
#E8EDEF
;
.page-content-box
{
padding-bottom
:
8px
}
.page-content-box
>
.dee-as-table-com
{
background-color
:
#fff
;
padding
:
2px
8px
0px
8px
;
}
.show-page-com
{
.page-content-item
{
padding-left
:
0px
;
padding-right
:
0px
;
}
}
// 详情页整体上边距
.dee-as-com
{
padding-top
:
16px
;
}
// 详情页内部行距
.PaneContent-com
{
.sub-title
{
padding-bottom
:
0px
!
important
;
}
// 详情页页签内title-按钮-表格之间的间距调整
.dee-up-table
{
margin-top
:
8px
;
}
.dee-as-table-com
,
.predecessor_table
{
.dee-up-table
{
margin-top
:
0px
;
}
}
// 详情页info
.dee-form2
.el-form-item
{
margin-bottom
:
0px
;
}
}
// 交付物菜单
#DxDeliver
{
.dee-table
>
.sub-title
{
color
:
#424141
;
font-size
:
16px
;
padding
:
2px
0
2px
2px
;
margin-top
:
10px
;
}
}
}
</
style
>
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