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
fb163f74
Commit
fb163f74
authored
Aug 08, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
f55ed098
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
9 deletions
+38
-9
index.vue
dsk-operate-ui/src/views/custom/customList/index.vue
+37
-9
addProject.vue
...ui/src/views/project/projectList/component/addProject.vue
+1
-0
No files found.
dsk-operate-ui/src/views/custom/customList/index.vue
View file @
fb163f74
...
...
@@ -206,6 +206,7 @@
class=
"popups"
:visible
.
sync=
"dialogVisible"
width=
"534px"
:close-on-click-modal=
"false"
@
close=
"resetForm('ruleForm')"
>
<div
class=
"poptitle"
>
...
...
@@ -215,8 +216,8 @@
<el-form
class=
"popform j"
:model=
"queryParam"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"130px"
>
<el-form-item
label=
"企业名称:"
class=
"row"
prop=
"companyName"
>
<el-input
type=
"text"
placeholder=
"请输入"
v-model=
"queryParam.companyName"
@
input=
"getCompany"
></el-input>
<div
class=
"resultlist
"
v-if=
"showlist"
id=
"box
"
>
<div
v-for=
"(item,index) in companData"
@
click=
"selCompany(item)"
><span
v-html=
"item.nam
e"
></span></div>
<div
class=
"resultlist
infinite-list"
v-if=
"showlist"
id=
"box"
v-infinite-scroll=
"load"
style=
"overflow:auto
"
>
<div
class=
"infinite-list-item"
v-for=
"(item,index) in companData"
@
click=
"selCompany(item)"
><span
v-html=
"item.name"
:key=
"companypag
e"
></span></div>
</div>
</el-form-item>
<el-form-item
label=
"客户等级:"
class=
"row"
>
...
...
@@ -310,6 +311,8 @@
showlist
:
false
,
keys
:
1
,
isSkeleton
:
true
,
companypage
:
1
,
isscroll
:
false
,
}
},
created
()
{
...
...
@@ -428,22 +431,47 @@
//获取建设库客户
getCompany
(
value
){
this
.
queryParam
.
companyId
=
null
if
(
value
.
length
>=
2
){
if
(
value
){
this
.
companData
=
[]
}
if
(
this
.
queryParam
.
companyName
.
length
>=
2
){
let
param
=
{
keyword
:
valu
e
,
keyword
:
this
.
queryParam
.
companyNam
e
,
page
:{
limit
:
20
,
page
:
1
page
:
this
.
companypage
}
}
getEnterprise
(
JSON
.
stringify
(
param
)).
then
(
result
=>
{
if
(
result
.
code
!=
200
)
return
this
.
showlist
=
true
this
.
companData
=
result
.
data
.
list
if
(
result
.
code
!=
200
){
return
false
}
if
(
result
.
data
.
list
!=
null
&&
result
.
data
.
list
.
length
>
0
){
this
.
isscroll
=
true
if
(
this
.
companData
.
length
===
0
)
{
this
.
companData
=
result
.
data
.
list
}
else
{
let
arr2
=
result
.
data
.
list
arr2
.
unshift
(
2
,
0
);
Array
.
prototype
.
splice
.
apply
(
this
.
companData
,
arr2
);
}
if
(
this
.
companData
.
length
===
0
)
{
this
.
showlist
=
false
}
else
{
this
.
showlist
=
true
}
this
.
companypage
+=
1
}
else
{
this
.
isscroll
=
false
}
})
}
},
load
(){
if
(
this
.
isscroll
){
this
.
getCompany
()
}
},
selCompany
(
item
){
this
.
queryParam
.
companyId
=
item
.
jskEid
this
.
queryParam
.
companyName
=
item
.
name
.
replace
(
/<
[^
>
]
+>/g
,
''
)
...
...
dsk-operate-ui/src/views/project/projectList/component/addProject.vue
View file @
fb163f74
...
...
@@ -3,6 +3,7 @@
class=
"popups"
width=
"534px"
:visible
.
sync=
"isshow"
:close-on-click-modal=
"false"
@
close=
"resetForm('ruleForm')"
>
<div
@
click =
'handleALL'
>
...
...
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