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.

115 lines
4.8 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"></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>
<div id="AdminModel">
<fieldset>
<legend>设置</legend>
<ul>
<li><a href="#" @click="OpenNew()"> 设置/更改组织</a></li>
<!-- <li><a href="javascript:OpenOld()">设置/更改部门(旧版本)</a></li>-->
<li>该组织下所有的人员都可以处理该节点的工作。</li>
</ul>
</fieldset>
</div>
<!--<div id="OrgModel">
<fieldset v-show="orgModel===1">
<legend>设置(组织管理员)</legend>
<ul>
<li><a href="#" @click="SetGroupDepts()">设置集团部门</a> </li>
<li><a href="#" @click="SetOrgDepts()">设置本组织部门</a> </li>
</ul>
</fieldset>
</div>-->
<fieldset>
<legend>已经选择的组织</legend>
<div id="Org">
<ul>
<li v-show="Orgs.length===0">未设置</li>
<template v-for="Org in Orgs">
<li v-if="Org.OrgNoText!=undefined">{{Org.OrgNoText}}</li>
</template>
</ul>
</div>
</fieldset>
<fieldset>
<legend id="help">帮助</legend>
<ul>
<li>节点绑定组织就是该组织里面的所有人员都可以接受该工作.</li>
</ul>
</fieldset>
</div>
<script type="text/javascript">
var Baseinfo = new Vue({
el: '#App',
data: {
Orgs: [],
webuser: null
},
methods: {
OpenNew: function () {
var flowNo = GetQueryString("FK_Flow");
if (flowNo == null || flowNo == "") {
var node = new Entity("BP.WF.Template.NodeSimple", GetQueryString("FK_Node"));
flowNo = node.FK_Flow;
}
//var url = "../../../Comm/RefFunc/Branches.htm?EnName=BP.WF.Template.NodeSheet&Dot2DotEnsName=BP.WF.Template.NodeDepts&Dot2DotEnName=BP.WF.Template.NodeDept&AttrOfOneInMM=FK_Node&AttrOfMInMM=FK_Dept&EnsOfM=BP.Port.Depts&DefaultGroupAttrKey=";
var url = "../../../Comm/RefFunc/Dot2Dot.htm?EnName=BP.WF.Template.FlowSheet&Dot2DotEnsName=BP.WF.Template.FlowOrgs&AttrOfOneInMM=FlowNo&AttrOfMInMM=OrgNo&EnsOfM=BP.WF.Port.Admin2Group.Orgs&DefaultGroupAttrKey=";
url += '&No=' + flowNo + '&PKVal=' + flowNo;
url += url + '&BackBtn=' + 0;
//url += '&NodeID=001&PKVal=001';
OpenEasyUiDialogExtCloseFunc(url, '绑定组织', 600, 500, function () {
Baseinfo.Orgs = getOrgs();
});
}
},
created() {
InitBar(DeliveryWay.BySelectedOrgs);
this.Orgs = getOrgs();
}
});
//保存
function Save() {
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
node.DeliveryWay = DeliveryWay.BySelectedOrgs;
node.Update();
//清除所有组织的.
AccepterRole_ClearAllOrgStartFlowsCash();
}
</script>
</body>
</html>