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.

122 lines
5.1 KiB
Plaintext

<!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>
<ul>
<li><a href="javascript:OpenDot2DotStations()">绑定岗位-分组模式</a> </li>
<li><a href="javascript:OpenBranchesAndLeafStations()">绑定岗位-左右树结构模式</a> </li>
</ul>
</fieldset>
<fieldset>
<legend>已经绑定的岗位 </legend>
<div id="stas">
<ul>
<li v-show="stas.length===0">未设置</li>
<template v-for="sta in stas">
<li v-show="sta.FK_StationText!=undefined">{{sta.FK_StationText}}</li>
</template>
</ul>
</div>
</fieldset>
<fieldset>
<legend>帮助</legend>
<ul>
<li>当前节点绑定岗位的集合下面的人员集合作为接受人</li>
<li>比如:一个省级的公安系统应用里,当前节点绑定派出所所长岗位, 如果仅按照岗位计算,就会投递到全省的所有派出所所长。</li>
<li>如果按照岗位智能计算,就会投递到该警察所在部门的派出所所长。</li>
</ul>
</fieldset>
</div>
<script type="text/javascript">
var Baseinfo = new Vue({
el: '#App',
data: {
adminModel: 1,
orgModel: 0,
stas: [],
webuser: null,
deliverWay: DeliveryWay.ByStationOnly
},
methods: {
OpenDot2DotStations: function () {
OpenDot2DotStations();
Save();
},
OpenNew: function () {
var nodeID = GetQueryString("FK_Node");
var url = "../../../Comm/RefFunc/BranchesAndLeaf.htm?EnName=BP.WF.Template.NodeSheet&Dot2DotEnsName=BP.WF.Template.NodeStations&Dot2DotEnName=BP.WF.Template.NodeStation&AttrOfOneInMM=FK_Node&AttrOfMInMM=FK_Station&EnsOfM=BP.Port.Stations&DefaultGroupAttrKey=FK_StationType&NodeID=" + nodeID + "&PKVal=" + nodeID;
OpenEasyUiDialogExtCloseFunc(url, '设置岗位', 1100, 500, function () {
Baseinfo.stas = getStas();
Save();
});
},
SetGroupStations: function () {
OpenNodStationGroup(this.webuser.GroupNo);
},
SetOrgStations: function () {
OpenNodStationGroup(this.webuser.FK_Dept);
}
},
created() {
InitBar(this.deliverWay);
this.stas = getStas();
//根据用户的信息,判断是否启用那个设置工具。
this.webuser = new WebUser();
this.adminModel = this.webuser.No == "admin" ? 1 : 0;
this.orgModel = this.webuser.No == "admin" ? 0 : 1;
}
});
function OpenNodStationGroup(orgNo) {
var url = "NodeStationGroup.htm?OrgNo=" + orgNo + "&FK_Node=" + GetQueryString("FK_Node");
OpenEasyUiDialogExtCloseFunc(url, '绑定岗位', 500, 600, function () {
Baseinfo.stas = getStas();
});
}
//保存
function Save() {
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
node.DeliveryWay = Baseinfo.deliverWay;
node.Update();
// alert("接受人方式,设置成功.");
}
</script>
</body>
</html>