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
3689df08
Commit
3689df08
authored
Jan 16, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表格行点击事件暴露参数更改
parent
6b801bf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
74 deletions
+39
-74
initDbConfigDataJson.js
src/packages/common/initDbConfigDataJson.js
+37
-72
child.vue
src/packages/hs-table/src/child.vue
+2
-2
No files found.
src/packages/common/initDbConfigDataJson.js
View file @
3689df08
...
...
@@ -1212,16 +1212,6 @@ const hsPageConfigSingle = {
showQueryComponent
:
false
}
},
'entityInfo'
:
{
'indexSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
},
'mainSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
// 实体节点
'index'
:
{
'isInitNewDefault'
:
false
,
// 初始化新增默认值
...
...
@@ -1246,6 +1236,7 @@ const hsPageConfigSingle = {
'initNewDefaultOnce'
:
true
,
// 是否只调用一次
'check'
:
{},
// 修改时数据校验
'enableBillFlow'
:
true
,
// 是否开启审核流程
'queryDefault'
:
{},
// 查询默认值
'isHideQueryZone'
:
false
,
// 是否隐藏搜索区域
'group'
:
''
,
// 分组
'table_name'
:
''
,
// 表名
...
...
@@ -1384,12 +1375,6 @@ const hsPageConfigSingleForm = {
isTabsForm
:
false
}
},
'entityInfo'
:
{
'mainSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
'main'
:
{
'isInitNewDefault'
:
false
,
// 初始化新增默认值
...
...
@@ -1431,16 +1416,6 @@ const hsPageConfigHdrDtl = {
tableHeightAdaption
:
false
}
},
'entityInfo'
:
{
'mainSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
},
'dtlSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
'childs'
:
[
],
...
...
@@ -1500,16 +1475,6 @@ const hsPageConfigBill = {
showQueryComponent
:
false
}
},
'entityInfo'
:
{
'indexSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
},
'mainSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
'index'
:
{
'isInitNewDefault'
:
false
,
// 初始化新增默认值
...
...
@@ -1530,6 +1495,7 @@ const hsPageConfigBill = {
'main'
:
{
'isInitNewDefault'
:
false
,
// 初始化新增默认值
'initNewDefaultOnce'
:
true
,
// 是否只调用一次
'queryDefault'
:
{},
'isHideQueryZone'
:
false
,
'group'
:
''
,
'table_name'
:
''
,
...
...
@@ -1567,14 +1533,9 @@ const hsPageConfigImport = {
tableHeightAdaption
:
false
}
},
'entityInfo'
:
{
'mainSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
'main'
:
{
'queryDefault'
:
{},
// 默认查询参数
'isHideQueryZone'
:
false
,
// 是否隐藏查询区域
'group'
:
''
,
// 分组
'table_name'
:
''
,
// 表名
...
...
@@ -1599,16 +1560,6 @@ const hsPageConfigHdrDtlImport = {
}
},
'entityInfo'
:
{
'mainSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
},
'dtlSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
'main'
:
{
'isHideQueryZone'
:
false
,
...
...
@@ -2300,6 +2251,15 @@ const hsTabs = {
},
sourceData
:
[]
}
const
hsTabsTable
=
{
config
:
{
tabsList
:
[{
label
:
'明细'
,
controlName
:
'table1'
}]
},
sourceData
:
[]
}
const
hsImg
=
{
config
:
{
width
:
200
,
...
...
@@ -2464,16 +2424,6 @@ const hsPageConfigDragList = {
showQueryComponent
:
false
}
},
'entityInfo'
:
{
'rightSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
},
'LeftSearchParamEntityInfo'
:
{
'defaultValue'
:
{
}
}
},
'entity'
:
{
'right'
:
{
'isInitNewDefault'
:
false
,
// 初始化新增默认值
...
...
@@ -2517,17 +2467,31 @@ const hsPageConfigDragList = {
},
sourceData
:
[]
}
const
hs
Qrcode
=
{
const
hs
InputSelect
=
{
config
:
{
flag
:
'hsQrcode'
,
text
:
'暂无信息'
,
size
:
100
,
logoSrc
:
''
,
colorLight
:
''
,
colorDark
:
''
,
backgroundColor
:
''
autoAddEmpty
:
false
,
ref
:
{
table_name
:
''
,
columns
:
''
,
remote_condition
:
''
},
sourceData
:
[]
dyncQueryParms
:
{},
disabled
:
false
,
size
:
'mini'
,
clearable
:
true
,
title
:
''
,
placeholder
:
''
,
label
:
''
},
sourceData
:
[
{
value
:
'选项1'
,
label
:
'黄金糕'
},
{
value
:
'选项2'
,
label
:
'双皮奶'
}
]
}
const
mockData
=
{
hsLineBar
:
initLineBar
,
...
...
@@ -2590,6 +2554,7 @@ const mockData = {
hsPageConfigSingleForm
,
hsDragList
,
hsPageConfigDragList
,
hsQrcode
hsInputSelect
,
hsTabsTable
}
export
default
mockData
src/packages/hs-table/src/child.vue
View file @
3689df08
...
...
@@ -733,9 +733,9 @@ export default {
if
(
type
===
'string'
&&
click
.
startsWith
(
'$'
))
{
const
item_
=
Object
.
assign
({},
item
)
// 拷贝一份item
item_
.
click
=
item_
.
click
.
substr
(
1
)
this
.
$emit
(
'handleClick'
,
item_
,
row
,
index
,
bindEntity
)
this
.
$emit
(
'handleClick'
,
row
,
item
,
bindEntity
)
}
else
if
(
type
===
'function'
)
{
click
(
row
,
i
ndex
,
i
tem
,
bindEntity
)
click
(
row
,
item
,
bindEntity
)
}
},
tableColumnSet
()
{
...
...
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