You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.7 KiB
Plaintext

11 months ago

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>按照设置的WebAPI接口获取的数据计算</title>
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script type="text/javascript" src="../../../Scripts/config.js"></script>
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
<script src="DDLBar.js" type="text/javascript"></script>
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
<script src="../../../Scripts/vue.js" type="text/javascript"></script>
<!-- 自己的系统风格统一. -->
<link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
<link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
<!-- 自己的系统风格统一end -->
</head>
<body>
<div id="App">
<div id="bar">
</div>
<fieldset>
<legend>输入WebAPI地址</legend>
<br />
<textarea id="TB_URL" style="width: 95%; height: 50px" v-model="urlExt"></textarea>
</fieldset>
<fieldset>
<legend id="help"></legend>
<ul>
<li>目前只支持WebAPI接口调用方式为POST.</li>
<li>接口返回值类型为json类型,且必须有No,Name,具体返回值格式如下:</li>
<li>[{"No","zhangsan","Name","张三"},{"No","lisi","Name","李四"}]</li>
<li>接口返回值中,请注意<span style="color:red">Key的大小写区分</span></li>
<li>WebAPI的输入格式@WebApiHost/DataUser/GetEmps?WorkID=@WorkID&Tel=@Tel&UserNo=@WebUser.No&UserNo=@WebUser.Token </li>
<li>@WebApiHost 是一个配置全局的变量,配置到全局文件里面. </li>
<li>表单参数:@+字段名 </li>
<li>内置参数支持ccbpm表达式, @WebUer.* 获取当前登陆人员信息. </li>
<li>@WorkID 是一个固定的参数就是当前实例的ID, 可以根据此参数了解ccbpm的数据库结构获得其他的数据. </li>
</ul>
</fieldset>
</div>
<script type="text/javascript">
var Baseinfo = new Vue({
el: '#App',
data: {
deliverWay: DeliveryWay.ByAPIUrl,
urlExt: '',
nodeId: GetQueryString("FK_Node")
},
created() {
InitBar(this.deliverWay);
var node = new Entity("BP.WF.Node", this.nodeId);
if (node.DeliveryWay == DeliveryWay.ByAPIUrl) {
this.urlExt = node.DeliveryParas;
}
}
});
function Save() {
var node = new Entity("BP.WF.Template.NodeExt", Baseinfo.nodeId);
node.DeliveryWay = Baseinfo.deliverWay;
if (Baseinfo.urlExt == "") {
alert("请输入的URL.");
return;
}
node.DeliveryParas = Baseinfo.urlExt;
node.Update();
}
</script>
</body>
</html>