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
b71f7628
Commit
b71f7628
authored
May 09, 2022
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
科目组件迁移到运行期
parent
d346edda
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
161 additions
and
3 deletions
+161
-3
news-detail.vue
...-plugin-billexpand/src/components-control/news-detail.vue
+1
-1
IntroduceInputControl.vue
...s-plugin-billexpand/src/control/IntroduceInputControl.vue
+0
-1
dynamic-from-common.less
...ugin-billexpand/src/control/util/dynamic-from-common.less
+26
-0
SubjectControl.vue
...-billexpand/src/control/vxeTableExpand/SubjectControl.vue
+97
-0
VxeSubjectControl.js
...illexpand/src/control/vxeTableExpand/VxeSubjectControl.js
+29
-0
mcon.js
develop/@gms/gms-plugin-billexpand/src/mcon.js
+3
-1
plugin.js
develop/@gms/gms-plugin-billexpand/src/plugin.js
+5
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/components-control/news-detail.vue
View file @
b71f7628
...
...
@@ -2,7 +2,7 @@
<div
class=
"news-container"
>
<div
class=
"news-detail"
>
<div
class=
"detail-title"
>
{{
title
}}
</div>
<div
class=
"detail-description"
>
摘要:
{{
description
}}
&
nbsp
&
nbsp
&
nbsp
&
nbsp
时间:
{{
time
}}
</div>
<div
class=
"detail-description"
>
摘要:
{{
description
}}
 
;
时间:
{{
time
}}
</div>
<div
class=
"detail-content"
v-html=
"content"
></div>
</div>
</div>
...
...
develop/@gms/gms-plugin-billexpand/src/control/IntroduceInputControl.vue
View file @
b71f7628
...
...
@@ -159,7 +159,6 @@ export default {
});
window
.
open
(
routeData
.
href
,
"_blank"
);
});
},
executeAction
()
{
this
.
context
.
bill
.
executeAction
(
this
.
button
.
config
.
action
);
...
...
develop/@gms/gms-plugin-billexpand/src/control/util/dynamic-from-common.less
0 → 100644
View file @
b71f7628
.input-height{
/deep/.ivu-input-default{
height: 100%;
}
}
.input-center{
/deep/.ivu-input-default{
text-align: center;
}
}
.input-left{
/deep/.ivu-input-default{
text-align: left;
}
}
.input-right{
/deep/.ivu-input-default{
text-align: right;
}
}
.input-control-wrapper{
display: inline-block;
width: 100%;
position: relative;
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/control/vxeTableExpand/SubjectControl.vue
0 → 100644
View file @
b71f7628
<
template
>
<div
class=
"input-control-wrapper"
>
<!--
<SubjectModalTree
v-if=
"!isContent && controlDisplay"
:systemFlag=
"systemFlag"
:nodeKey=
"nodeKey"
:multiple=
"define.config.multiple"
:placeholder=
"define.config.placeholder"
:entryTitle=
"define.config.title"
:modalName=
"define.config.title"
:onlyChooseLeaf=
"define.config.isLeaf"
:defaultExpandAll=
"defaultExpandAll"
:lazy=
"lazy"
:customListFunc=
"customListFunc"
:customTreeFunc=
"customTreeFunc"
:value=
"value"
@
on-subject-selected=
"subjectSelectedHandler"
/>
<div
v-if=
"isContent"
>
{{
getValue
()
}}
</div>
-->
</div>
</
template
>
<
script
>
import
input
from
"../util/bc_input.js"
;
/* import { SubjectModalTree } from "@yhs/components"; */
export
default
{
mixins
:
[
input
],
/* components: {
SubjectModalTree,
}, */
props
:
{
rowIndex
:
{
type
:
Number
,
default
:
-
1
,
},
isVxe
:
{},
},
data
()
{
return
{
systemFlag
:
"finance"
,
nodeKey
:
"code"
,
multiple
:
false
,
defaultExpandAll
:
false
,
lazy
:
false
,
value
:
""
,
};
},
methods
:
{
stopPropagation
(
event
)
{
event
.
stopPropagation
()
},
subjectSelectedHandler
(
selectedObj
)
{
console
.
log
(
selectedObj
)
const
code
=
selectedObj
.
code
;
const
name
=
selectedObj
.
name
||
selectedObj
.
title
let
nv
=
code
+
" "
+
name
;
this
.
value
=
code
;
this
.
setDataObjectValue
(
nv
);
},
customListFunc
(
callback
)
{
GMS
.
$http
.
post
(
"/rbc/acct-sys/subject/list"
,
{
pagination
:
false
})
.
then
((
res
)
=>
{
console
.
log
(
res
);
let
data
=
res
.
data
.
data
.
rows
;
callback
(
data
);
});
},
customTreeFunc
(
callback
)
{
GMS
.
$http
.
post
(
"/rbc/acct-sys/subject/tree"
,
{
pagination
:
false
})
.
then
((
res
)
=>
{
console
.
log
(
res
);
let
data
=
res
.
data
.
data
;
callback
(
data
);
});
},
getSubjectDataList
()
{},
getSubjectDataTree
()
{},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
@import
"../util/dynamic-from-common.less"
;
.input-control-wrapper
{
/deep/
.ivu-input-suffix
{
z-index
:
999
;
}
/
deep
/
.ivu-input-suffix
i
{
position
:
relative
;
top
:
50%
;
transform
:
translate
(
0
,
-50%
);
}
}
</
style
>
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/control/vxeTableExpand/VxeSubjectControl.js
0 → 100644
View file @
b71f7628
import
SubjectControl
from
'./SubjectControl.vue'
export
default
{
renderEdit
:(
h
,
renderOpts
,
params
,
hide
)
=>
{
const
{
row
,
column
,
rowIndex
}
=
params
;
let
props
=
column
.
editRender
.
props
;
let
define
=
props
.
define
;
let
context
=
props
.
context
;
return
[
h
(
SubjectControl
,
{
class
:
"InputControl"
,
attrs
:{
id
:
props
.
id
},
props
:
{
define
:
define
,
context
:
context
,
rowIndex
:
rowIndex
,
isVxe
:{
width
:
props
.
colItem
.
width
,
height
:
props
.
colItem
.
height
}
},
on
:
{},
})
]
}
}
develop/@gms/gms-plugin-billexpand/src/mcon.js
View file @
b71f7628
...
...
@@ -78,6 +78,7 @@ import userSelectControl from './control/userSelect.vue'
import
integerControl
from
'./control/integerControl.vue'
import
IntroduceInputControl
from
'./control/IntroduceInputControl.vue'
import
InputModalControl
from
'./control/InputModalControl.vue'
import
VxeSubjectControl
from
'./control/vxeTableExpand/VxeSubjectControl.js'
//formula
import
GeneralImportFile
from
'./formula/GeneralImportFile.js'
;
...
...
@@ -248,7 +249,8 @@ export default {
userSelectControl
,
integerControl
,
IntroduceInputControl
,
InputModalControl
InputModalControl
,
VxeSubjectControl
},
formula
:
{
SubTableSetBaseData
,
...
...
develop/@gms/gms-plugin-billexpand/src/plugin.js
View file @
b71f7628
...
...
@@ -4,6 +4,11 @@ import '@rbc/icon/iconfont'
import
'@rbc/icon/iconfont.css'
import
'@rbc/icon/icon.css'
import
'./styles/common/normalize.less'
import
'@yhs/icon/iconfont.css'
import
'@yhs/icon/iconfont.js'
import
'@yhs/icon/icon.css'
export
default
{
install
:
function
(){
GMS
.
getContext
().
getCollector
().
addElements
(
mcon
);
// 收集所有配置文件
...
...
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