cmp.handWriteSignature 类
签章组件(只支持在M3环境下运行)
模块: V5
方法
clear
clear
(
-
[options]
)
签章组件-清除签章
参数:
名称 | 类型 | 标识 | 描述 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[options] |
Object | 可选 | 配置参数
|
示例:
<script>
cmp.handWriteSignature.clear({
success:function(){
},
error:function(e){
console.log(e);
},
});
</script>
initSignatureData
initSignatureData
(
-
options
-
[0]
-
[0]
)
签章组件-初始化签章图片
参数:
名称 | 类型 | 标识 | 描述 | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options
| Object | 必选 | 配置参数
|
||||||||||||||||
[0] |
String | 可选 | 表单域名称 | ||||||||||||||||
[0] |
String | 可选 | 表单域值 |
示例:
<script>
cmp.handWriteSignature.initSignatureData({
success:function(result){
var oneData = result[0];
var fieldName = oneData.fieldName;
var fieldValue = oneData.fieldValue;
var picData = oneData.picData;//签章图片数据
},
error:function(e){
console.log(e);
},
value:[{fieldName:"field0001",fieldValue:"12727"}]
});
</script>
show
show
(
-
options
)
签章组件-显示签章组件
参数:
名称 | 类型 | 标识 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options
| Object | 必选 | 配置参数
|
示例:
<script>
cmp.handWriteSignature.show({
success:function(result){
},
error:function(e){
console.log(e);
},
"fieldName": "",
"fieldValue": "", // 需要提交到服务前端的base64数据
"height": "", // 签章控件高
"width": "", // 签章控件宽
"picData": "", // 可以显示在当前表单的签章图片base64
"recordID": "0",
"summaryID": "",
"currentOrgID": "",
"currentOrgName": "",
"signatureListUrl": "", //签章列表url地址,http//10.5.6.240:88/seeyon/rest/signet/signets
"signaturePicUrl": "",//获取签章数据url地址,http//10.5.6.240:88/seeyon/rest/signet/signetPic
"hasSignetures": false, // 是否有签章权限
"affairId":""
});
</script>