|
|
|
|
|
<!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></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>请选择一个人员字段.</legend>
|
|
|
<div style="margin-top:15px">
|
|
|
请选择一个节点字段:
|
|
|
<select name="DDL_ByPreviousNodeFormStations" id="DDL_ByPreviousNodeFormStations" v-model="selectMapAttr">
|
|
|
<option :value="mapAttr.KeyOfEn" v-for="mapAttr in mapAttrs">{{mapAttr.Name}}</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
<fieldset>
|
|
|
<legend id="help"></legend>
|
|
|
<ul>
|
|
|
<li> 通常的做法是使用pop,或小范围多选单选来确定岗位数据。</li>
|
|
|
<li> 使用这两个mapext能让岗位的数据格式化的存储到字段里。</li>
|
|
|
</ul>
|
|
|
|
|
|
</fieldset>
|
|
|
</div>
|
|
|
<script type="text/javascript">
|
|
|
var Baseinfo = new Vue({
|
|
|
el: '#App',
|
|
|
data: {
|
|
|
deliverWay: DeliveryWay.ByPreviousNodeFormStationsOnly,
|
|
|
sql: '',
|
|
|
nodeId: GetQueryString("FK_Node"),
|
|
|
mapAttrs: [],
|
|
|
selectMapAttr: '',
|
|
|
StationReqEmpsWay:0,
|
|
|
},
|
|
|
created() {
|
|
|
InitBar(this.deliverWay);
|
|
|
var node = new Entity("BP.WF.Node", this.nodeId);
|
|
|
var paras = node.DeliveryParas;
|
|
|
var FK_Flow = node.FK_Flow;
|
|
|
var FK_MapData = "ND" + parseInt(FK_Flow) + "Rpt";
|
|
|
var mapAttrs = new Entities("BP.Sys.MapAttrs", "FK_MapData", FK_MapData);
|
|
|
this.mapAttrs = $.grep(mapAttrs, function (obj, i) {
|
|
|
return obj.UIVisible == 1;
|
|
|
})
|
|
|
|
|
|
//初始话下拉列表值
|
|
|
if (node.DeliveryWay == DeliveryWay.ByPreviousNodeFormStationsOnly) {
|
|
|
if (paras != null && paras != "")
|
|
|
this.selectMapAttr = paras;
|
|
|
}
|
|
|
var val = node.GetPara('StationReqEmpsWay');
|
|
|
this.StationReqEmpsWay = val;
|
|
|
}
|
|
|
});
|
|
|
function Save() {
|
|
|
var node = new Entity("BP.WF.Template.NodeExt", Baseinfo.nodeId);
|
|
|
node.DeliveryWay = Baseinfo.deliverWay;
|
|
|
node.DeliveryParas = Baseinfo.selectMapAttr;
|
|
|
node.SetPara('StationReqEmpsWay', Baseinfo.StationReqEmpsWay);
|
|
|
node.Update();
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
</html>
|