Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
8adcf6ba
提交
8adcf6ba
编写于
4年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
6d68cda5
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
136 行增加
和
46 行删除
+136
-46
tree-table-treegridex-base.vue
...book/tree-table-treegridex/tree-table-treegridex-base.vue
+5
-5
usr-gantt-base.vue
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-base.vue
+23
-20
usr-gantt-model.ts
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-model.ts
+1
-1
usr-gantt-service.ts
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-service.ts
+107
-20
未找到文件。
app_Web/src/widgets/ibizbook/tree-table-treegridex/tree-table-treegridex-base.vue
浏览文件 @
8adcf6ba
...
...
@@ -15,6 +15,11 @@
<template
slot=
"empty"
>
{{
$t
(
'entities.ibizbook.treetable_treegridex.nodata'
)
}}
</
template
>
<el-table-column
show-overflow-tooltip
prop=
"author"
label=
""
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'author'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"subtext"
label=
""
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'subtext'
)
}}
</span>
...
...
@@ -25,11 +30,6 @@
<span>
{{
getColumnValue
(
row
,
'ibizbookname'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"author"
label=
""
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'author'
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
</template>
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-base.vue
浏览文件 @
8adcf6ba
...
...
@@ -237,13 +237,29 @@ export default class UsrBase extends Vue implements ControlInterface {
},
labelField
:
'text'
,
columns
:
[
{
label
:
'图书名称'
,
value
:
'ibizbookname'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'ibizbookname'
)
},
width
:
200
,
},
{
label
:
'出版社'
,
value
:
'press'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'press'
)
},
width
:
200
,
},
{
label
:
'作者'
,
value
:
'author'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'author'
)
},
width
:
5
0
,
width
:
20
0
,
},
{
label
:
'借出日期'
,
...
...
@@ -251,7 +267,7 @@ export default class UsrBase extends Vue implements ControlInterface {
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'lendouttime'
)
},
width
:
5
0
,
width
:
20
0
,
},
{
label
:
'归还日期'
,
...
...
@@ -259,23 +275,7 @@ export default class UsrBase extends Vue implements ControlInterface {
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'returntime'
)
},
width
:
50
,
},
{
label
:
'图书名称'
,
value
:
'ibizbookname'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'ibizbookname'
)
},
width
:
50
,
},
{
label
:
'出版社'
,
value
:
'press'
,
render
:
(
task
:
any
)
=>
{
return
this
.
getColumnValue
(
task
,
'press'
)
},
width
:
50
,
width
:
200
,
},
]
}
...
...
@@ -329,7 +329,10 @@ export default class UsrBase extends Vue implements ControlInterface {
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'ROOT'
))
{
return
task
[
field
];
}
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'IBIZBOOKMANAGE'
))
{
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'item1'
))
{
return
task
[
field
];
}
if
(
Object
.
is
(
task
.
id
.
split
(
';'
)[
0
],
'item'
))
{
return
task
[
field
];
}
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-model.ts
浏览文件 @
8adcf6ba
...
...
@@ -46,7 +46,7 @@ export default class UsrModel {
},
];
switch
(
this
.
itemType
){
case
"
IBIZBOOKMANAGE
"
:
case
"
item1
"
:
dataItems
=
[...
dataItems
,
{
name
:
'id'
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/usr-gantt/usr-gantt-service.ts
浏览文件 @
8adcf6ba
...
...
@@ -71,6 +71,15 @@ export default class UsrService extends ControlService {
*/
public
TREENODE_ROOT
:
string
=
'ROOT'
;
/**
* 图书管理日志节点分隔符号
*
* @public
* @type {string}
* @memberof UsrService
*/
public
TREENODE_ITEM1
:
string
=
'item1'
;
/**
* 埃毕致图书管理节点分隔符号
*
...
...
@@ -78,7 +87,7 @@ export default class UsrService extends ControlService {
* @type {string}
* @memberof UsrService
*/
public
TREENODE_I
BIZBOOKMANAGE
:
string
=
'IBIZBOOKMANAGE
'
;
public
TREENODE_I
TEM
:
string
=
'item
'
;
/**
* 商品类别节点分隔符号
...
...
@@ -90,7 +99,9 @@ export default class UsrService extends ControlService {
public
dataModel
:
any
=
{
ROOT
:
{
},
IBIZBOOKMANAGE
:
{
item1
:
{
},
item
:
{
},
}
...
...
@@ -176,8 +187,12 @@ export default class UsrService extends ControlService {
await
this
.
fillRootNodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_IBIZBOOKMANAGE
))
{
await
this
.
fillIbizbookmanageNodeChilds
(
context
,
filter
,
list
);
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_ITEM1
))
{
await
this
.
fillItem1NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_ITEM
))
{
await
this
.
fillItemNodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
return
Promise
.
resolve
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
`树节点
${
strTreeNodeId
}
标识无效`
}
});
...
...
@@ -241,21 +256,21 @@ export default class UsrService extends ControlService {
public
async
fillRootNodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
// 填充埃毕致图书管理
let
I
bizbookmanage
RsNavContext
:
any
=
{};
let
I
bizbookmanage
RsNavParams
:
any
=
{};
let
I
bizbookmanage
RsParams
:
any
=
{};
await
this
.
fillI
bizbookmanageNodes
(
context
,
filter
,
list
,
IbizbookmanageRsNavContext
,
IbizbookmanageRsNavParams
,
Ibizbookmanage
RsParams
);
let
I
tem
RsNavContext
:
any
=
{};
let
I
tem
RsNavParams
:
any
=
{};
let
I
tem
RsParams
:
any
=
{};
await
this
.
fillI
temNodes
(
context
,
filter
,
list
,
ItemRsNavContext
,
ItemRsNavParams
,
Item
RsParams
);
}
else
{
// 填充埃毕致图书管理
let
I
bizbookmanage
RsNavContext
:
any
=
{};
let
I
bizbookmanage
RsNavParams
:
any
=
{};
let
I
bizbookmanage
RsParams
:
any
=
{};
await
this
.
fillI
bizbookmanageNodes
(
context
,
filter
,
list
,
IbizbookmanageRsNavContext
,
IbizbookmanageRsNavParams
,
Ibizbookmanage
RsParams
);
let
I
tem
RsNavContext
:
any
=
{};
let
I
tem
RsNavParams
:
any
=
{};
let
I
tem
RsParams
:
any
=
{};
await
this
.
fillI
temNodes
(
context
,
filter
,
list
,
ItemRsNavContext
,
ItemRsNavParams
,
Item
RsParams
);
}
}
/**
* 填充 树视图节点[
埃毕致图书管理
]
* 填充 树视图节点[
图书管理日志
]
*
* @public
* @param {any{}} context
...
...
@@ -268,7 +283,7 @@ export default class UsrService extends ControlService {
* @memberof UsrService
*/
@
Errorlog
public
fillI
bizbookmanage
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
public
fillI
tem1
Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
...
...
@@ -277,7 +292,7 @@ export default class UsrService extends ControlService {
let
bFirst
:
boolean
=
true
;
let
records
:
any
[]
=
[];
try
{
this
.
searchI
bizbookmanage
(
context
,
searchFilter
,
filter
).
then
((
records
:
any
)
=>
{
this
.
searchI
tem1
(
context
,
searchFilter
,
filter
).
then
((
records
:
any
)
=>
{
if
(
records
&&
records
.
length
>
0
){
records
.
forEach
((
entity
:
any
)
=>
{
let
treeNode
:
any
=
{};
...
...
@@ -291,7 +306,7 @@ export default class UsrService extends ControlService {
Object
.
assign
(
treeNode
,{
'ibizbook'
:
strId
});
Object
.
assign
(
treeNode
,
{
srfkey
:
strId
});
Object
.
assign
(
treeNode
,
{
text
:
strText
,
srfmajortext
:
strText
});
let
strNodeId
:
string
=
'
IBIZBOOKMANAGE
'
;
let
strNodeId
:
string
=
'
item1
'
;
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
strId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
+
'_#_'
+
filter
.
srfnodeid
});
...
...
@@ -303,8 +318,8 @@ export default class UsrService extends ControlService {
if
(
!
Object
.
is
(
filter
.
srfnodeid
,
this
.
TREENODE_ROOT
))
{
Object
.
assign
(
treeNode
,
{
parentId
:
filter
.
srfotherkey
});
}
for
(
let
key
in
this
.
dataModel
.
IBIZBOOKMANAGE
)
{
let
item
=
this
.
dataModel
.
IBIZBOOKMANAGE
[
key
];
for
(
let
key
in
this
.
dataModel
.
item1
)
{
let
item
=
this
.
dataModel
.
item1
[
key
];
let
propVal
:
any
=
entity
[
item
.
prop
];
try
{
let
def
:
any
=
JSON
.
parse
(
item
.
default
);
...
...
@@ -346,7 +361,7 @@ export default class UsrService extends ControlService {
* @memberof TestEnetityDatasService
*/
@
Errorlog
public
searchI
bizbookmanage
(
context
:
any
=
{},
searchFilter
:
any
,
filter
:
any
):
Promise
<
any
>
{
public
searchI
tem1
(
context
:
any
=
{},
searchFilter
:
any
,
filter
:
any
):
Promise
<
any
>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
if
(
filter
.
viewparams
){
Object
.
assign
(
searchFilter
,
filter
.
viewparams
);
...
...
@@ -389,6 +404,68 @@ export default class UsrService extends ControlService {
})
}
/**
* 填充 树视图节点[图书管理日志]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof UsrService
*/
@
Errorlog
public
async
fillItem1NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[埃毕致图书管理]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof UsrService
*/
@
Errorlog
public
fillItemNodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
'entities.ibizbook.usr_gantt.nodes.item'
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'item'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
+
'_#_'
+
filter
.
srfnodeid
});
Object
.
assign
(
treeNode
,
{
collapsed
:
true
});
Object
.
assign
(
treeNode
,
{
leaf
:
false
});
Object
.
assign
(
treeNode
,
{
navparams
:
'{}'
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
if
(
!
Object
.
is
(
filter
.
srfnodeid
,
this
.
TREENODE_ROOT
))
{
Object
.
assign
(
treeNode
,
{
parentId
:
filter
.
srfotherkey
});
}
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[埃毕致图书管理]子节点
*
...
...
@@ -400,9 +477,19 @@ export default class UsrService extends ControlService {
* @memberof UsrService
*/
@
Errorlog
public
async
fillI
bizbookmanage
NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
public
async
fillI
tem
NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
// 填充图书管理日志
let
Item1RsNavContext
:
any
=
{};
let
Item1RsNavParams
:
any
=
{};
let
Item1RsParams
:
any
=
{};
await
this
.
fillItem1Nodes
(
context
,
filter
,
list
,
Item1RsNavContext
,
Item1RsNavParams
,
Item1RsParams
);
}
else
{
// 填充图书管理日志
let
Item1RsNavContext
:
any
=
{};
let
Item1RsNavParams
:
any
=
{};
let
Item1RsParams
:
any
=
{};
await
this
.
fillItem1Nodes
(
context
,
filter
,
list
,
Item1RsNavContext
,
Item1RsNavParams
,
Item1RsParams
);
}
}
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录