Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
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
Administrator
dsk-cr20g
Commits
8b133661
Commit
8b133661
authored
Jun 14, 2023
by
MyName
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目管理
parent
95e0a3eb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
9 deletions
+63
-9
project.scss
dsk-operate-ui/src/assets/styles/project.scss
+20
-4
xgqy.vue
...erate-ui/src/views/project/projectList/component/xgqy.vue
+5
-2
xmsl.vue
...erate-ui/src/views/project/projectList/component/xmsl.vue
+30
-2
index.vue
dsk-operate-ui/src/views/project/projectList/index.vue
+8
-1
No files found.
dsk-operate-ui/src/assets/styles/project.scss
View file @
8b133661
...
@@ -86,6 +86,14 @@
...
@@ -86,6 +86,14 @@
border-radius
:
2px
;
border-radius
:
2px
;
line-height
:
28px
;
line-height
:
28px
;
cursor
:
pointer
;
cursor
:
pointer
;
.rig
{
position
:
absolute
;
left
:
0
;
padding
:
0
;
white-space
:
nowrap
;
visibility
:
hidden
;
height
:
0
;
}
&
:hover
{
&
:hover
{
background
:
#F3F4F5
;
background
:
#F3F4F5
;
}
}
...
@@ -155,18 +163,26 @@
...
@@ -155,18 +163,26 @@
display
:
inline-block
;
display
:
inline-block
;
margin-top
:
1px
;
margin-top
:
1px
;
width
:
calc
(
100%
-
116px
);
width
:
calc
(
100%
-
116px
);
.spanText
{
position
:
absolute
;
left
:
0
;
padding
:
0
;
white-space
:
nowrap
;
visibility
:
hidden
;
height
:
0
;
}
.el-input
{
.el-input
{
float
:
left
;
float
:
left
;
margin-right
:
8px
;
margin-right
:
8px
;
width
:
70px
;
min-width
:
70px
;
width
:
auto
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
.el-input__inner
{
.el-input__inner
{
width
:
70px
;
min-width
:
70px
;
padding
:
0
14px
;
height
:
24px
;
height
:
24px
;
background
:
#F3F4F5
;
background
:
#F3F4F5
;
border-radius
:
2px
;
border-radius
:
2px
;
padding
:
0
;
text-indent
:
14px
;
border
:
0
;
border
:
0
;
}
}
}
}
...
...
dsk-operate-ui/src/views/project/projectList/component/xgqy.vue
View file @
8b133661
...
@@ -230,8 +230,10 @@
...
@@ -230,8 +230,10 @@
cancel
(
type
){
cancel
(
type
){
if
(
type
==
0
)
if
(
type
==
0
)
this
.
dialogVisible
=
false
this
.
dialogVisible
=
false
else
else
{
this
.
dialogVisible
=
true
this
.
hzhbVisible
=
false
this
.
hzhbVisible
=
false
}
},
},
totype
(
value
){
totype
(
value
){
this
.
types
=
value
this
.
types
=
value
...
@@ -243,7 +245,8 @@
...
@@ -243,7 +245,8 @@
this
.
typename
=
this
.
typelist
[
index
]
this
.
typename
=
this
.
typelist
[
index
]
}
}
})
})
this
.
hzhbVisible
=
true
this
.
hzhbVisible
=
true
this
.
dialogVisible
=
false
},
},
//打开新建窗口
//打开新建窗口
opennew
(){
opennew
(){
...
...
dsk-operate-ui/src/views/project/projectList/component/xmsl.vue
View file @
8b133661
...
@@ -37,7 +37,9 @@
...
@@ -37,7 +37,9 @@
<span
style=
"float: left;margin-top: 2px"
>
项目标签 :
</span>
<span
style=
"float: left;margin-top: 2px"
>
项目标签 :
</span>
<div
class=
"flex tipinput"
>
<div
class=
"flex tipinput"
>
<div
class=
"tips"
v-for=
"(item,index) in tipslit"
>
{{
item
}}
<img
@
click=
"deltip(item)"
src=
"@/assets/images/project/del.png"
></div>
<div
class=
"tips"
v-for=
"(item,index) in tipslit"
>
{{
item
}}
<img
@
click=
"deltip(item)"
src=
"@/assets/images/project/del.png"
></div>
<el-input
placeholder=
"待添加"
v-model=
"tipsvalue"
></el-input>
<div
style=
"position: relative"
>
<el-input
placeholder=
"待添加"
v-model=
"tipsvalue"
@
input=
"getValue"
:style=
"spanWidth"
></el-input><span
class=
"spanText"
>
{{
tipsvalue
}}
</span>
</div>
<div
class=
"addbtn"
@
click=
"addtips"
></div>
<div
class=
"addbtn"
@
click=
"addtips"
></div>
</div>
</div>
</div>
</div>
...
@@ -63,7 +65,7 @@
...
@@ -63,7 +65,7 @@
</div>
</div>
<div
class=
"con i"
>
<div
class=
"con i"
>
<span>
建设单位 :
</span>
<span>
建设单位 :
</span>
<div
class=
"inputxt"
id=
"inputxt3"
>
<div
class=
"inputxt"
id=
"inputxt3"
:style=
"
{width:rig1}"
>
<div
class=
"flex"
v-if=
"nowedit == 3"
>
<div
class=
"flex"
v-if=
"nowedit == 3"
>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.constructionUnit"
></el-input>
<el-input
placeholder=
"待添加"
v-model=
"xmsldata.constructionUnit"
></el-input>
<div
class=
"flex"
>
<div
class=
"flex"
>
...
@@ -72,6 +74,7 @@
...
@@ -72,6 +74,7 @@
</div>
</div>
</div>
</div>
<span
:class=
"
{txt:!xmsldata.constructionUnit}" v-else @click="nowedit = 3">
{{
xmsldata
.
constructionUnit
||
'待添加'
}}
</span>
<span
:class=
"
{txt:!xmsldata.constructionUnit}" v-else @click="nowedit = 3">
{{
xmsldata
.
constructionUnit
||
'待添加'
}}
</span>
<span
class=
"rig rig1"
>
{{
xmsldata
.
constructionUnit
}}
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -189,6 +192,8 @@
...
@@ -189,6 +192,8 @@
projectStage
:[],
//项目阶段
projectStage
:[],
//项目阶段
id
:
this
.
detailId
?
this
.
detailId
:
this
.
$route
.
query
.
id
,
id
:
this
.
detailId
?
this
.
detailId
:
this
.
$route
.
query
.
id
,
xmsldata
:
this
.
datas
,
xmsldata
:
this
.
datas
,
spanWidth
:
'width: 70px'
,
rig1
:
'184px'
,
}
}
},
},
created
(){
created
(){
...
@@ -215,6 +220,17 @@
...
@@ -215,6 +220,17 @@
})
})
},
},
methods
:{
methods
:{
getValue
(){
const
spanStyle
=
document
.
querySelector
(
".spanText"
);
this
.
$nextTick
(()
=>
{
// 如果不用$nextTick的话页面并不会更新,它是在下次dom更新后再渲染到页面上
let
wid
=
spanStyle
.
offsetWidth
<=
70
?
"70px"
:
spanStyle
.
offsetWidth
+
28
+
"px"
;
this
.
spanWidth
=
'width:'
+
wid
});
},
editXMSL
(
param
){
editXMSL
(
param
){
let
params
=
param
let
params
=
param
params
.
id
=
this
.
id
params
.
id
=
this
.
id
...
@@ -286,6 +302,15 @@
...
@@ -286,6 +302,15 @@
this
.
xmjd
=
result
.
data
.
projectStage
this
.
xmjd
=
result
.
data
.
projectStage
this
.
tipslit
=
result
.
data
.
labelList
this
.
tipslit
=
result
.
data
.
labelList
this
.
xmsldata
=
result
.
data
this
.
xmsldata
=
result
.
data
const
spanStyle
=
document
.
querySelector
(
".rig1"
);
this
.
$nextTick
(()
=>
{
// 如果不用$nextTick的话页面并不会更新,它是在下次dom更新后再渲染到页面上
this
.
rig1
=
spanStyle
.
offsetWidth
<=
184
?
"184px"
:
spanStyle
.
offsetWidth
+
"px"
;
});
})
})
},
},
}
}
...
@@ -296,4 +321,7 @@
...
@@ -296,4 +321,7 @@
.select-popper
{
.select-popper
{
top
:
3px
;
top
:
3px
;
}
}
.inputxt
.flex
{
background
:
#fff
;
}
</
style
>
</
style
>
dsk-operate-ui/src/views/project/projectList/index.vue
View file @
8b133661
...
@@ -114,7 +114,9 @@
...
@@ -114,7 +114,9 @@
<div
class=
"datalist"
>
<div
class=
"datalist"
>
<div
class=
"datali"
v-for=
"(item,index) in datalist"
>
<div
class=
"datali"
v-for=
"(item,index) in datalist"
>
<div
class=
"det-title"
@
click=
"toDetail(item.id,'xmsl')"
>
{{
item
.
projectName
}}
<span
v-if=
"activeName!='first' && item.followTime"
class=
"people"
><i>
{{
item
.
nickName1
}}
</i>
{{
item
.
nickName
}}
<font
color=
"#FA8A00"
>
正在跟进
</font></span></div>
<div
class=
"det-title"
@
click=
"toDetail(item.id,'xmsl')"
>
{{
item
.
projectName
}}
<span
v-if=
"activeName!='first' && item.followTime"
class=
"people"
><i>
{{
item
.
nickName1
}}
</i>
{{
item
.
nickName
}}
<font
color=
"#FA8A00"
>
正在跟进
</font></span></div>
<div
class=
"det-tips"
><span
class=
"tips tip1"
v-if=
"item.label"
>
{{
item
.
label
}}
</span><span
v-if=
"item.address"
class=
"tips tip2"
>
{{
item
.
address
}}
</span></div>
<div
class=
"det-tips"
>
<span
class=
"tips tip1"
v-for=
"label in item.labels"
>
{{
label
}}
</span>
<span
v-if=
"item.address"
class=
"tips tip2"
>
{{
item
.
address
}}
</span></div>
<div
class=
"det-contets"
>
<div
class=
"det-contets"
>
<div
class=
"det-con"
v-if=
"item.projectType"
>
<div
class=
"det-con"
v-if=
"item.projectType"
>
<span>
项目类型:
</span>
<span>
项目类型:
</span>
...
@@ -296,6 +298,11 @@ export default {
...
@@ -296,6 +298,11 @@ export default {
str
+=
'-'
+
item
.
districtName
str
+=
'-'
+
item
.
districtName
item
.
address
=
str
item
.
address
=
str
item
.
nickName1
=
item
.
nickName
?
item
.
nickName
.
slice
(
0
,
1
):
''
item
.
nickName1
=
item
.
nickName
?
item
.
nickName
.
slice
(
0
,
1
):
''
item
.
labels
=
[]
if
(
item
.
label
!=
null
&&
item
.
label
!=
""
){
item
.
labels
=
item
.
label
.
split
(
','
)
}
})
})
}
}
})
})
...
...
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