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.

137 lines
5.6 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.11.0.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="BindDeptTree()">设置/更改部门:本组织</a> </li>
<li v-show="isShow"> <a href="#" @click="BindDeptTreeGroup()">设置/更改部门:全集团集团</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="dept">
<ul>
<li v-show="depts.length===0">未设置</li>
<template v-for="dept in depts">
<li v-if="dept.FK_DeptText!=undefined"> <img src="../../../Img/Author.gif" /> {{dept.FK_DeptText}}</li>
</template>
</ul>
</div>
</fieldset>
<fieldset>
<legend >帮助</legend>
<ul>
<li>节点绑定部门就是该节点下绑定部门里面的所有人员都可以接受该工作.</li>
</ul>
</fieldset>
</div>
<script type="text/javascript">
var Baseinfo = new Vue({
el: '#App',
data: {
adminModel: 1,
orgModel: 0,
depts: [],
webuser: null,
deliverWay: DeliveryWay.ByDept,
isShow: true
},
methods: {
OpenNew: function () {
var nodeID = GetQueryString("FK_Node");
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=";
url += url + '&NodeID=' + nodeID + '&PKVal=' + nodeID
url += url + '&BackBtn=' + 0;
OpenEasyUiDialogExtCloseFunc(url, '绑定部门', 500, 350, function () {
Baseinfo.depts = getDepts();
});
},
SetGroupDepts: function () {
OpenNodDeptGroup(this.webuser.GroupNo);
},
SetOrgDepts: function () {
OpenNodDeptGroup(this.webuser.OrgNo);
},
BindDeptTree: function () {
BindDeptTree();
},
BindDeptTreeGroup: function () {
BindDeptTreeGroup();
}
},
created() {
InitBar(this.deliverWay);
this.depts = getDepts();
//根据用户的信息,判断是否启用那个设置工具。
this.webuser = new WebUser();
this.adminModel = this.webuser.No == "admin" ? 1 : 0;
this.orgModel = this.webuser.No == "admin" ? 0 : 1;
this.isShow = this.webuser.CCBPMRunModel == 2 ? false : true;
}
});
function OpenNodDeptGroup(orgNo) {
var url = "NodeDeptGroup.htm?OrgNo=" + orgNo + "&FK_Node=" + GetQueryString("FK_Node");
OpenEasyUiDialogExtCloseFunc(url, '绑定部门', 500, 600, function () {
Baseinfo.depts = getDepts();
});
}
//保存
function Save() {
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
node.DeliveryWay = Baseinfo.deliverWay;
node.Update();
}
</script>
</body>
</html>