Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
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
王衍超
rbc-demo
Commits
2041ff3b
Commit
2041ff3b
authored
Feb 10, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: vxeTable 中获取定义时机问题
parent
0ba08ff0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
baseDataMixin.js
...in-billexpand/src/control/baseDataSelect/baseDataMixin.js
+4
-0
index.vue
...ms-plugin-billexpand/src/control/baseDataSelect/index.vue
+11
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/baseDataMixin.js
View file @
2041ff3b
...
@@ -136,6 +136,10 @@ export default {
...
@@ -136,6 +136,10 @@ export default {
hideSelected
:
{
hideSelected
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
isVxe
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
data
()
{
data
()
{
...
...
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/index.vue
View file @
2041ff3b
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<!--
</div>
-->
<!--
</div>
-->
</el-popover>
</el-popover>
<!-- 弹框 -->
<!-- 弹框 -->
<EditModal
v-model=
"showModal"
:title=
"title"
:selection=
"selection"
:table-name=
"tableName"
:multiple=
"multiple"
:tableKey=
"tableKey"
:treeKey=
"treeKey"
:tableColumns=
"tableColumns"
:searchPlaceholder=
"searchPlaceholder"
:authType=
"authType"
:versionDate=
"versionDate"
:modalWidth=
"modalWidth"
:isLeaf=
"isLeaf"
:hideSelected=
"hideSelected"
:structtype=
"structtype"
:groupTableName=
"groupTableName"
:treeTableName=
"treeTableName"
:filterFormular=
"filterFormular"
:filterFormularSP=
"filterFormularSP"
:billdefineName=
"billdefineName"
:billId=
"billId"
:bill=
"bill"
:isFilter=
"isFilter"
:rowIndex=
"rowIndex"
@
on-ok=
"onSelectOk"
/>
<EditModal
v-
if=
"showModal"
v-
model=
"showModal"
:title=
"title"
:selection=
"selection"
:table-name=
"tableName"
:multiple=
"multiple"
:tableKey=
"tableKey"
:treeKey=
"treeKey"
:tableColumns=
"tableColumns"
:searchPlaceholder=
"searchPlaceholder"
:authType=
"authType"
:versionDate=
"versionDate"
:modalWidth=
"modalWidth"
:isLeaf=
"isLeaf"
:hideSelected=
"hideSelected"
:structtype=
"structtype"
:groupTableName=
"groupTableName"
:treeTableName=
"treeTableName"
:filterFormular=
"filterFormular"
:filterFormularSP=
"filterFormularSP"
:billdefineName=
"billdefineName"
:billId=
"billId"
:bill=
"bill"
:isFilter=
"isFilter"
:rowIndex=
"rowIndex"
@
on-ok=
"onSelectOk"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -95,6 +95,13 @@ export default {
...
@@ -95,6 +95,13 @@ export default {
this
.
getBaseDataList
()
this
.
getBaseDataList
()
},
},
},
},
structtype
:
{
handler
()
{
if
(
this
.
isVxe
)
{
this
.
getBaseDataList
()
}
}
}
},
},
mounted
()
{
mounted
()
{
addResizeListener
(
this
.
$el
,
this
.
handleResize
)
addResizeListener
(
this
.
$el
,
this
.
handleResize
)
...
@@ -180,6 +187,7 @@ export default {
...
@@ -180,6 +187,7 @@ export default {
},
},
// 获取下拉列表数据
// 获取下拉列表数据
async
getBaseDataList
()
{
async
getBaseDataList
()
{
if
(
this
.
structtype
===
-
1
)
return
const
getTreeDataMap
=
(
nodes
)
=>
{
const
getTreeDataMap
=
(
nodes
)
=>
{
nodes
.
forEach
((
node
)
=>
{
nodes
.
forEach
((
node
)
=>
{
if
(
!
node
.
hasChildren
)
{
if
(
!
node
.
hasChildren
)
{
...
@@ -203,8 +211,8 @@ export default {
...
@@ -203,8 +211,8 @@ export default {
}
}
let
groupname
=
''
let
groupname
=
''
let
treeData
=
{}
let
treeData
=
{}
if
(
Object
.
keys
(
this
.
treeDataMap
).
length
===
0
)
{
if
(
Object
.
keys
(
this
.
treeDataMap
).
length
===
0
||
this
.
structtype
===
1
)
{
let
treePostData
=
JSON
.
parse
(
JSON
.
stringify
(
postData
)
||
this
.
structtype
===
1
)
let
treePostData
=
JSON
.
parse
(
JSON
.
stringify
(
postData
))
if
(
this
.
structtype
===
1
)
{
if
(
this
.
structtype
===
1
)
{
// 获取分组树表名
// 获取分组树表名
if
(
this
.
groupTableName
.
define
.
showFields
)
{
if
(
this
.
groupTableName
.
define
.
showFields
)
{
...
...
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