Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
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
office
haoban-3
Commits
8aae90ff
Commit
8aae90ff
authored
May 26, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 分组查询调整
parent
ddd10a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gic-select-group.vue
src/components/common/gic-select-group.vue
+4
-1
No files found.
src/components/common/gic-select-group.vue
View file @
8aae90ff
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
-->
-->
<
template
>
<
template
>
<el-popover
placement=
"bottom"
style=
"min-width: 357px"
v-model=
"departmentVisible"
>
<el-popover
v-if=
"showSelector"
placement=
"bottom"
style=
"min-width: 357px"
v-model=
"departmentVisible"
>
<div
class=
"select-search"
>
<div
class=
"select-search"
>
<el-input
placeholder=
"请输入内容"
maxlength=
"50"
v-model=
"searchSelect"
style=
"width: 100%;"
@
keyup
.
native=
"value => toInput(value, searchSelect)"
@
clear=
"clearSearch"
>
<i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
<el-input
placeholder=
"请输入内容"
maxlength=
"50"
v-model=
"searchSelect"
style=
"width: 100%;"
@
keyup
.
native=
"value => toInput(value, searchSelect)"
@
clear=
"clearSearch"
>
<i
slot=
"prefix"
class=
"el-input__icon el-icon-search"
></i>
</el-input>
</div>
</div>
...
@@ -80,6 +80,7 @@ export default {
...
@@ -80,6 +80,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
showSelector
:
false
,
projectName
:
''
,
// 当前项目名
projectName
:
''
,
// 当前项目名
enterpriseId
:
this
.
brandId
,
enterpriseId
:
this
.
brandId
,
searchSelect
:
''
,
// 搜索字段
searchSelect
:
''
,
// 搜索字段
...
@@ -219,6 +220,8 @@ export default {
...
@@ -219,6 +220,8 @@ export default {
getRequest
(
'/haoban-manage3-web/gic-department-list'
,
para
)
getRequest
(
'/haoban-manage3-web/gic-department-list'
,
para
)
.
then
(
async
res
=>
{
.
then
(
async
res
=>
{
let
resData
=
res
.
data
;
let
resData
=
res
.
data
;
// code为10031时,表示当前不支持分组查询,所以隐藏本组件
this
.
showSelector
=
resData
.
errorCode
!=
10031
;
if
(
resData
.
errorCode
==
1
)
{
if
(
resData
.
errorCode
==
1
)
{
if
(
!!
resData
.
result
&&
!!
resData
.
result
.
length
)
{
if
(
!!
resData
.
result
&&
!!
resData
.
result
.
length
)
{
resData
.
result
.
forEach
(
ele
=>
{
resData
.
result
.
forEach
(
ele
=>
{
...
...
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