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.

139 lines
5.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></title>
<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" />
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
<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>
</head>
<body>
<div id="App">
<!--<model-component></model-component>-->
<div id="bar">
</div>
<div id="AdminModel">
<fieldset v-show="adminModel===1">
<legend>设置岗位</legend>
<ul>
<li><a href="#" @click="OpenDot2DotStations()">设置/更改岗位(旧版本)</a></li>
<li><a href="#" @click="OpenNew()">设置/更改岗位(左右树结构)</a> </li>
</ul>
</fieldset>
</div>
<div id="OrgModel">
<fieldset v-show="orgModel===1">
<legend>设置(组织管理员)</legend>
<ul>
<li v-show="isShow"><a href="#" @click="SetGroupStations()">设置集团岗位</a> </li>
<li><a href="#" @click="SetOrgStations()">设置本组织岗位</a> </li>
</ul>
</fieldset>
</div>
<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 id="help">帮助</legend>
<ul>
<li>可以设置一个或者多个岗位。</li>
<li>每个岗位下的人员都是上一个节点可以选择的人员范围.</li>
</ul>
<img src="../AccepterRole/4.BySelected-1.png" style="width:50%" class="HelpImg" />
</fieldset>
</div>
<script type="text/javascript">
var Baseinfo = new Vue({
el: '#App',
data: {
adminModel: 1,
orgModel: 0,
stas: [],
webuser: null,
deliverWay: SelectorModel.Station,
isShow: true
},
methods: {
OpenDot2DotStations: function () {
OpenDot2DotStations();
},
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;
var H = document.documentElement.clientHeight - 30;
OpenEasyUiDialogExtCloseFunc(url, '设置岗位', 800, H, function () {
Baseinfo.stas = getStas();
});
},
SetGroupStations: function () {
OpenNodStationGroup(this.webuser.GroupNo);
},
SetOrgStations: function () {
OpenNodStationGroup(this.webuser.OrgNo);
}
},
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;
this.isShow = this.webuser.CCBPMRunModel == 2 ? false : true;
}
});
function OpenNodStationGroup(orgNo) {
var url = "NodeStationGroup.htm?OrgNo=" + orgNo + "&FK_Node=" + GetQueryString("FK_Node");
var H = document.documentElement.clientHeight - 30;
OpenEasyUiDialogExtCloseFunc(url, '绑定岗位', 500, H, function () {
Baseinfo.stas = getStas();
});
}
//保存
function Save() {
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Template.Selector", nodeID);
node.SelectorModel = Baseinfo.deliverWay;
node.Update();
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
node.DeliveryWay = 4;
node.Update();
alert("保存成功.");
}
</script>
</body>
</html>