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
6c1046b1
Commit
6c1046b1
authored
Mar 25, 2022
by
袁成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 增加基础数据列选的配置
parent
2204c266
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
12 deletions
+33
-12
index.vue
...ms-plugin-billexpand/src/control/baseDataSelect/index.vue
+33
-12
No files found.
develop/@gms/gms-plugin-billexpand/src/control/baseDataSelect/index.vue
View file @
6c1046b1
...
...
@@ -113,16 +113,18 @@ export default {
width
:
60
,
align
:
'center'
,
},
{
title
:
'代码'
,
key
:
'code'
,
ellipsis
:
true
,
},
{
title
:
'名称'
,
key
:
'name'
,
ellipsis
:
true
,
},
// {
// title: '代码',
// key: 'code',
// width: 150,
// ellipsis: true,
// },
// {
// title: '名称',
// key: 'name',
// width: 150,
// ellipsis: true,
// },
],
treeDataMap
:
{},
originBaseDataList
:
[],
...
...
@@ -160,6 +162,25 @@ export default {
this
.
dataListShow
=
false
})
}
},
'groupTableName.define.showFields'
:
{
handler
(
nv
)
{
console
.
log
({
nv
})
let
column
=
nv
.
filter
(
item
=>
item
.
isQueryColumn
)
let
width
=
0
if
(
column
.
length
>
3
)
{
width
=
150
}
else
{
width
=
undefined
}
column
=
column
.
map
(
item
=>
{
item
.
key
=
item
.
name
item
.
ellipsis
=
true
item
.
width
=
width
return
item
})
this
.
tableColumns
=
this
.
tableColumns
.
concat
(
column
)
}
}
},
mounted
()
{
...
...
@@ -171,9 +192,9 @@ export default {
},
methods
:
{
getLable
(
val
)
{
if
(
this
.
showtype
===
'CODE'
)
{
if
(
this
.
showtype
===
'CODE'
||
this
.
showtype
===
'0'
)
{
return
val
.
code
}
else
if
(
this
.
showtype
===
'NAME'
)
{
}
else
if
(
this
.
showtype
===
'NAME'
||
this
.
showtype
===
'1'
)
{
return
val
.
name
}
else
{
return
val
.
code
+
''
+
val
.
name
...
...
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