Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-Mob-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-Mob-R7-Res
提交
c0bb24d1
提交
c0bb24d1
编写于
6月 05, 2020
作者:
KK
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
b83e76f4
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
67 行增加
和
237 行删除
+67
-237
app-wf-approva1l.vue
src/components/app-wf-approval/app-wf-approva1l.vue
+0
-174
app-wf-approval.vue
src/components/app-wf-approval/app-wf-approval.vue
+67
-63
未找到文件。
src/components/app-wf-approval/app-wf-approva1l.vue
已删除
100644 → 0
浏览文件 @
b83e76f4
<
template
>
<div
class=
"app-wf-approval"
>
<div
class=
"app-wf-approval-header"
>
<span
class=
"approval-header-left"
>
{{
data
.
startTime
}}
</span>
<span>
{{
data
.
startUserName
}}
提交
</span>
</div>
<van-collapse
v-model=
"activeNames"
v-if=
"data.usertasks && data.usertasks.length >0"
>
<van-collapse-item
:title=
"usertask.userTaskName"
:name=
"index"
v-for=
"(usertask,index) in data.usertasks"
:key=
"index"
>
<div
class=
"app-wf-approval-content"
v-if=
"data.usertasks && data.usertasks.length >0"
>
<div
class=
"approval-content-item-right"
>
<div
class=
"approval-content-item-wait"
v-if=
"usertask.identitylinks.length >0"
>
<!--
<van-steps
direction=
"vertical"
>
<van-step
v-for=
"(identitylink,inx) in usertask.identitylinks"
:key=
"inx"
>
<h3>
{{
identitylink
.
displayname
}}
</h3>
</van-step>
</van-steps>
-->
等待
<span
v-for=
"(identitylink,inx) in usertask.identitylinks"
:key=
"inx"
>
{{
identitylink
.
displayname
}}
<span
v-if=
"inx >0"
>
、
</span>
</span>
处理
</div>
<div
class=
"approval-content-item-info"
v-if=
"usertask.comments.length >0"
>
<div
v-for=
"(comment,commentInx) in usertask.comments"
:key=
"commentInx"
>
<div
class=
"approval-content-item-info-item approval-content-item-info-top"
>
{{
`【${comment.type
}
】${comment.fullMessage
}
`
}}
<
/div
>
<
div
class
=
"approval-content-item-info-item approval-content-item-info-bottom"
>
<
span
class
=
"info-bottom-name"
>
{{
comment
.
authorName
}}
<
/span
>
<
span
>
{{
comment
.
time
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"approval-content-item-memo"
v
-
if
=
"usertask.userTaskId === viewparams.userTaskId"
>
<
ion
-
input
debounce
=
"300"
type
=
"textarea"
:
value
=
"initmemo"
placeholder
=
"请输入内容"
@
ionBlur
=
"handleBlur"
><
/ion-input
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"app-wf-approval-bottom"
>
<
span
v
-
if
=
"data.endTime"
>
{{
data
.
endTime
}}
结束
<
/span
>
<
/div
>
<
/van-collapse-item
>
<!--
<
van
-
collapse
-
item
title
=
"被驳回"
name
=
"2"
>
内容
<
/van-collapse-item
>
<
van
-
collapse
-
item
title
=
"标题3"
name
=
"3"
>
内容
<
/van-collapse-item>--
>
<
/van-collapse
>
<!--
<
div
class
=
"app-wf-approval-header"
>
<
span
class
=
"approval-header-left"
>
{{
data
.
startTime
}}
<
/span
>
<
span
>
{{
data
.
startUserName
}}
提交
<
/span
>
<
/div
>
<
div
class
=
"app-wf-approval-content"
v
-
if
=
"data.usertasks && data.usertasks.length >0"
>
<
div
class
=
"approval-content-item"
v
-
for
=
"(usertask,index) in data.usertasks"
:
key
=
"index"
>
<
div
class
=
"approval-content-item-left"
>
{{
usertask
.
userTaskName
}}
<
/div
>
<
div
class
=
"approval-content-item-right"
>
<
div
class
=
"approval-content-item-wait"
v
-
if
=
"usertask.identitylinks.length >0"
>
等待
<
span
v
-
for
=
"(identitylink,inx) in usertask.identitylinks"
:
key
=
"inx"
>
{{
identitylink
.
displayname
}}
<
span
v
-
if
=
"inx >0"
>
、
<
/span></
span
>
处理
<
/div
>
<
div
class
=
"approval-content-item-info"
v
-
if
=
"usertask.comments.length >0"
>
<
div
v
-
for
=
"(comment,commentInx) in usertask.comments"
:
key
=
"commentInx"
>
<
div
class
=
"approval-content-item-info-item approval-content-item-info-top"
>
{{
`【${comment.type
}
】${comment.fullMessage
}
`
}}
<
/div
>
<
div
class
=
"approval-content-item-info-item approval-content-item-info-bottom"
>
<
span
class
=
"info-bottom-name"
>
{{
comment
.
authorName
}}
<
/span
>
<
span
>
{{
comment
.
time
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"approval-content-item-memo"
v
-
if
=
"usertask.userTaskId === viewparams.userTaskId"
>
<
ion
-
input
debounce
=
"300"
type
=
"textarea"
:
value
=
"initmemo"
placeholder
=
"请输入内容"
@
ionBlur
=
"handleBlur"
><
/ion-input
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"app-wf-approval-bottom"
>
<
span
v
-
if
=
"data.endTime"
>
{{
data
.
endTime
}}
结束
<
/span
>
<
/div>--
>
<
/div
>
<
/template
>
<
script
lang
=
'ts'
>
import
{
Vue
,
Component
,
Prop
,
Model
}
from
"vue-property-decorator"
;
@
Component
({
}
)
export
default
class
AppWFApproval
extends
Vue
{
public
activeNames
=
[];
/**
* 双向绑定值
*
* @memberof AppWFApproval
*/
@
Model
(
"change"
)
value
!
:
string
;
/**
* 数据
*
* @memberof AppWFApproval
*/
public
data
:
any
=
{
}
;
/**
* 初始化memo
*
* @memberof AppWFApproval
*/
public
initmemo
:
string
=
""
;
/**
* 传入数据服务
*
* @memberof AppWFApproval
*/
@
Prop
()
public
service
:
any
;
/**
* 上下文
*
* @memberof AppWFApproval
*/
@
Prop
()
public
context
:
any
;
/**
* 视图参数
*
* @memberof AppWFApproval
*/
@
Prop
()
public
viewparams
:
any
;
/**
* 初始化数据
*
* @memberof AppWFApproval
*/
public
created
()
{
if
(
this
.
service
)
{
this
.
service
.
GetWFHistory
(
this
.
context
).
then
((
res
:
any
)
=>
{
if
(
res
&&
res
.
status
===
200
)
{
this
.
data
=
res
.
data
;
}
}
);
}
}
/**
* 抛出wfprocmemo
*
* @memberof AppWFApproval
*/
public
handleBlur
(
$event
:
any
)
{
this
.
$emit
(
"change"
,
$event
.
target
.
value
);
}
}
<
/script
>
<
style
lang
=
"less"
>
@
import
"./app-wf-approval.less"
;
<
/style>
\ No newline at end of file
src/components/app-wf-approval/app-wf-approval.vue
浏览文件 @
c0bb24d1
...
...
@@ -11,7 +11,7 @@
</div>
</van-step>
<template
v-for=
"(usertask,index) in data.usertasks"
>
<van-step
v-if=
"usertask.identitylinks.length >0"
:key=
"index"
>
<van-step
v-if=
"usertask.identitylinks.length >0"
:key=
"index
+'identitylinks'
"
>
<div
class=
"step-start-user"
>
<div
class=
"step-text"
>
等待处理
</div>
<div
class=
"step-start-user-name"
>
...
...
@@ -19,8 +19,6 @@
</div>
</div>
</van-step>
</
template
>
<
template
v-for=
"(usertask,index) in data.usertasks"
>
<van-step
v-if=
"usertask.comments.length >0"
:key=
"index"
>
<div
class=
"userTaskName"
>
{{
usertask
.
userTaskName
}}
</div>
<div
class=
"approval-content-item-info"
>
...
...
@@ -48,6 +46,12 @@ import { Vue, Component, Prop, Model } from "vue-property-decorator";
@
Component
({
}
)
export
default
class
AppWFApproval
extends
Vue
{
/**
* 激活步骤
*
* @memberof AppWFApproval
*/
public
activeNames
=
[];
/**
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录