Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
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
何虹
hs-sky-ui
Commits
d5e4110a
Commit
d5e4110a
authored
Jan 20, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化组件
parent
7ac9c537
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
12 deletions
+20
-12
index.vue
src/packages/hs-dialog-iframepage/src/index.vue
+5
-0
child.vue
src/packages/hs-lookup/src/child.vue
+15
-12
No files found.
src/packages/hs-dialog-iframepage/src/index.vue
View file @
d5e4110a
...
@@ -145,13 +145,18 @@ export default {
...
@@ -145,13 +145,18 @@ export default {
}
}
}
}
},
},
initIframeConfig
(
config
)
{
initIframeConfig
(
config
)
{
this
.
hsDialogConfig
=
{
title
:
''
}
if
(
typeof
config
===
'object'
&&
config
)
{
if
(
typeof
config
===
'object'
&&
config
)
{
Object
.
assign
(
this
.
hsDialogConfig
,
config
)
Object
.
assign
(
this
.
hsDialogConfig
,
config
)
}
else
if
(
typeof
config
===
'string'
)
{
}
else
if
(
typeof
config
===
'string'
)
{
// 单个的字符串 默认这是title
// 单个的字符串 默认这是title
this
.
hsDialogConfig
.
title
=
config
this
.
hsDialogConfig
.
title
=
config
}
}
debugger
},
},
showFileIframe
(
parms
,
message
,
config
,
confirm
,
cancel
)
{
showFileIframe
(
parms
,
message
,
config
,
confirm
,
cancel
)
{
let
parms_
=
{}
let
parms_
=
{}
...
...
src/packages/hs-lookup/src/child.vue
View file @
d5e4110a
...
@@ -110,7 +110,8 @@ export default {
...
@@ -110,7 +110,8 @@ export default {
const
data
=
this
.
tableData
const
data
=
this
.
tableData
const
{
value
}
=
this
.
configData
const
{
value
}
=
this
.
configData
const
list
=
this
.
value
?
this
.
value
.
split
(
','
)
:
[]
const
list
=
this
.
value
?
this
.
value
.
split
(
','
)
:
[]
list
.
forEach
(
x
=>
{
// 设置默认勾选
list
.
forEach
(
x
=>
{
// 设置默认勾选
const
target
=
data
.
find
(
item
=>
item
[
value
]
===
x
)
const
target
=
data
.
find
(
item
=>
item
[
value
]
===
x
)
target
&&
(
target
.
isSelected
=
true
)
target
&&
(
target
.
isSelected
=
true
)
})
})
...
@@ -194,8 +195,7 @@ export default {
...
@@ -194,8 +195,7 @@ export default {
const
orderby
=
mainSearchParam
.
orderby
const
orderby
=
mainSearchParam
.
orderby
if
(
orderby
)
{
if
(
orderby
)
{
const
orderby_list
=
orderby
.
split
(
','
)
const
orderby_list
=
orderby
.
split
(
','
)
const
parms
=
{
const
parms
=
{}
}
orderby_list
.
forEach
(
item
=>
{
orderby_list
.
forEach
(
item
=>
{
const
[
prop
,
value
]
=
item
.
split
(
':'
)
const
[
prop
,
value
]
=
item
.
split
(
':'
)
parms
[
prop
]
=
value
parms
[
prop
]
=
value
...
@@ -241,7 +241,8 @@ export default {
...
@@ -241,7 +241,8 @@ export default {
this
.
queryTable
()
this
.
queryTable
()
}
}
this
.
dialogTableVisible
=
true
this
.
dialogTableVisible
=
true
this
.
$refs
.
plTable
&&
this
.
$refs
.
plTable
.
$children
[
0
].
$children
[
0
].
tableDoLayout
()
this
.
$refs
.
plTable
&&
this
.
$refs
.
plTable
.
$children
[
0
].
$children
[
0
].
tableDoLayout
()
},
},
/**
/**
* 焦点失去事件
* 焦点失去事件
...
@@ -363,11 +364,13 @@ export default {
...
@@ -363,11 +364,13 @@ export default {
*/
*/
setDefaultQueryParms
()
{
setDefaultQueryParms
()
{
if
(
this
.
dialogTableVisible
)
return
if
(
this
.
dialogTableVisible
)
return
const
config
=
this
.
hsDyncFormConfig
.
config
const
config
=
this
.
hsDyncFormConfig
||
{}
if
(
config
.
formColumn
&&
config
.
formColumn
.
length
)
{
const
formColumn
=
config
.
formColumn
const
formColumn
=
config
.
formColumn
const
targetItem
=
formColumn
[
0
]
const
targetItem
=
formColumn
[
0
]
const
prop
=
targetItem
.
prop
const
prop
=
targetItem
.
prop
this
.
$set
(
this
.
searchForm
,
prop
,
this
.
label_value
)
this
.
$set
(
this
.
searchForm
,
prop
,
this
.
label_value
)
}
},
},
/**
/**
* 多选时必须点击确定按钮
* 多选时必须点击确定按钮
...
...
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