Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
6aa6b3a2
Commit
6aa6b3a2
authored
Jan 08, 2024
by
tyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表头设置逻辑bug更正
parent
dfad958d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
17 deletions
+51
-17
common.css
dsk-operate-ui/src/assets/styles/common.css
+10
-0
index.vue
...nts/DskTableHeaderSetting/components/SettingBar/index.vue
+13
-6
consultingAgency.vue
...ent/components/EnterpriseList/detail/consultingAgency.vue
+25
-9
projectDetail.vue
...gement/components/EnterpriseList/detail/projectDetail.vue
+3
-2
No files found.
dsk-operate-ui/src/assets/styles/common.css
View file @
6aa6b3a2
...
...
@@ -26,6 +26,16 @@
opacity
:
0
;
}
.edit-fade-enter-active
,
.edit-fade-leave-active
{
transition
:
opacity
0.3s
ease-in-out
;
}
.edit-fade-leave-to
,
.edit-fade-leave-to
/* .fade-leave-active below version 2.1.8 */
{
opacity
:
0
;
}
.list-enter-active
,
.list-leave-active
{
transition
:
all
0.5s
ease
;
...
...
dsk-operate-ui/src/components/DskTableHeaderSetting/components/SettingBar/index.vue
View file @
6aa6b3a2
...
...
@@ -18,7 +18,7 @@
<transition-group
name=
"fade"
tag=
"div"
>
<div
class=
"use-header-item"
v-for=
"(item,index) of useColumn"
:key=
"item.uid"
>
<el-checkbox
v-model=
"item.use"
class=
"use-header-item-label"
@
change=
"flag => checkedChange(index,flag,item)"
>
{{
item
.
label
}}
</el-checkbox>
@
change=
"flag => checkedChange(index,flag,item
,false
)"
>
{{
item
.
label
}}
</el-checkbox>
<img
src=
"@/assets/images/consultingAgencyManagement/use-header-btn.png"
alt=
""
class=
"use-header-item-drag-icon"
>
</div>
</transition-group>
...
...
@@ -30,7 +30,7 @@
<div
class=
"not-use-header-title"
>
未选字段
</div>
<div
class=
"not-use-header-item"
v-for=
"(item,index) of notUseColumn"
:key=
"item.uid"
>
<el-checkbox
v-model=
"item.use"
class=
"not-use-header-item-label"
@
change=
"flag => checkedChange(index,flag,item)"
>
{{
item
.
label
}}
</el-checkbox>
@
change=
"flag => checkedChange(index,flag,item
,true
)"
>
{{
item
.
label
}}
</el-checkbox>
</div>
</div>
...
...
@@ -129,10 +129,10 @@ export default {
// console.log(this.notUseColumn);
}
},
checkedChange
(
index
,
flag
,
item
)
{
checkedChange
(
index
,
flag
,
item
,
isUse
)
{
// 至少保证一个自适应列存在
const
hasOnly
=
this
.
checkeOnlySelfAdaptation
();
if
(
!
hasOnly
)
{
const
{
status
,
onlyColumn
}
=
this
.
checkeOnlySelfAdaptation
();
if
(
status
&&
onlyColumn
.
uid
==
item
.
uid
&&
!
isUse
)
{
elementMessageSingleton
(
"warning"
,
"列表至少保证一个自适应列存在"
);
this
.
useColumn
.
splice
(
index
,
1
,
{
...
item
,
...
...
@@ -158,7 +158,14 @@ export default {
const
len
=
_array
.
length
;
// len等于1时仅剩一个自适应列
return
len
==
1
?
false
:
true
;
let
status
=
false
;
// 仅剩1个自适应列是用于判断当前取消的列是否是自适应列
let
onlyColumn
=
null
;
if
(
len
==
1
)
{
onlyColumn
=
_array
[
0
];
status
=
true
;
}
return
{
status
,
onlyColumn
};
},
cancel
()
{
this
.
$emit
(
"settingClose"
);
...
...
dsk-operate-ui/src/views/consultingOrgManagement/components/EnterpriseList/detail/consultingAgency.vue
View file @
6aa6b3a2
...
...
@@ -14,11 +14,14 @@
<tr>
<td
class=
"table-key"
>
咨询机构名称
</td>
<td>
<span
v-if=
"!comIsModify"
>
{{
comProjectDetailInfo
.
advisoryBody
&&
comProjectDetailInfo
.
advisoryBody
.
advisoryBodyName
?
comProjectDetailInfo
.
advisoryBody
.
advisoryBodyName
:
"-"
}}
</span>
<!--
<transition
mode=
"out-in"
name=
"edit-fade"
>
-->
<div
class=
"normal-value"
v-if=
"!comIsModify"
>
{{
comProjectDetailInfo
.
advisoryBody
&&
comProjectDetailInfo
.
advisoryBody
.
advisoryBodyName
?
comProjectDetailInfo
.
advisoryBody
.
advisoryBodyName
:
"-"
}}
</div>
<el-form-item
label=
""
v-if=
"comIsModify"
>
<el-input
v-model=
"comProjectDetailInfo.advisoryBody.advisoryBodyName"
clearable
></el-input>
<el-input
v-model=
"comProjectDetailInfo.advisoryBody.advisoryBodyName"
clearable
v-focus
></el-input>
</el-form-item>
<!--
</transition>
-->
</td>
<td
class=
"table-key"
>
法人代表
</td>
<td>
...
...
@@ -106,10 +109,18 @@ export default {
default
:
false
}
},
directives
:
{
focus
:
{
inserted
(
el
)
{
el
.
querySelector
(
".el-input__inner"
).
focus
();
}
}
},
watch
:
{
projectDetailInfo
:
{
handler
(
newValue
)
{
handler
(
newValue
,
oldValue
)
{
this
.
comProjectDetailInfo
=
JSON
.
parse
(
JSON
.
stringify
(
newValue
));
this
.
oldComProjectDetailInfo
=
JSON
.
parse
(
JSON
.
stringify
(
oldValue
));
},
deep
:
true
},
...
...
@@ -123,6 +134,7 @@ export default {
return
{
comIsModify
:
this
.
isModify
,
comProjectDetailInfo
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
projectDetailInfo
)),
oldComProjectDetailInfo
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
projectDetailInfo
)),
rules
:
{
},
...
...
@@ -162,6 +174,9 @@ export default {
}
catch
(
error
)
{
}
},
cancelModify
()
{
this
.
comProjectDetailInfo
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
oldComProjectDetailInfo
));
}
},
}
...
...
@@ -222,8 +237,8 @@ export default {
font-size
:
12px
;
position
:
relative
;
&
>
span
{
display
:
inline-block
;
.normal-value
{
vertical-align
:
middle
;
line-height
:
22px
;
}
...
...
@@ -239,7 +254,7 @@ export default {
.el-form-item__content
{
height
:
100%
;
font-size
:
12px
;
line-height
:
1
;
line-height
:
unset
;
.el-input
{
height
:
100%
;
...
...
@@ -247,8 +262,8 @@ export default {
}
.el-input__inner
{
height
:
100%
;
line-height
:
22
px
;
height
:
40px
;
line-height
:
40
px
;
border-radius
:
unset
;
border-color
:
transparent
;
color
:
#232323
;
...
...
@@ -256,6 +271,7 @@ export default {
font-weight
:
400
;
padding-left
:
12px
;
outline
:
unset
;
box-sizing
:
border-box
;
&
:focus
{
border
:
1px
solid
#0081ff
;
...
...
dsk-operate-ui/src/views/consultingOrgManagement/components/EnterpriseList/detail/projectDetail.vue
View file @
6aa6b3a2
...
...
@@ -36,8 +36,8 @@
<!-- 工程基本信息 -->
<basic-engineering-information
v-if=
"currentList === 'project'"
:projectDetailInfo=
"projectDetailInfo"
></basic-engineering-information>
<!-- 咨询机构结算信息 -->
<consulting-agency
v-if=
"currentList === 'consultingAgency'"
:projectDetailInfo=
"projectDetailInfo"
:isModify=
"isModif
y"
></consulting-agency>
<consulting-agency
v-if=
"currentList === 'consultingAgency'"
:projectDetailInfo=
"projectDetailInfo"
:isModify=
"isModify"
ref=
"consultingAgenc
y"
></consulting-agency>
</div>
</div>
...
...
@@ -115,6 +115,7 @@ export default {
},
cancelSave
()
{
this
.
isModify
=
false
;
this
.
$refs
[
"consultingAgency"
].
cancelModify
();
},
},
}
...
...
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