提交 c27491f2 编写于 作者: doc_wei's avatar doc_wei

团队新增团队经理

上级 8cc2efe9
var userList = new Array();
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -29,6 +31,11 @@ layui.config({
ajaxSendLoadBefore: function(hdb, json) {},
ajaxSendAfter: function (json) {
loadTreeTable();
userList.push(json.bean.chargeUserMation);
$.each(userList, function(i, item) {
$("#chargeUser").val(item.name);
});
// 解析成员信息
$.each(json.bean.teamRoleList, function (i, item) {
treeTableData.push({
......@@ -80,6 +87,7 @@ layui.config({
objectKey: objectKey,
teamTemplateId: json.bean.teamTemplateId,
teamRoleList: JSON.stringify(teamRoleList),
chargeUser: userList[0].id,
teamObjectPermissionList: JSON.stringify(teamObjectPermissionList)
};
AjaxPostUtil.request({url: reqBasePath + "updateTeamBusiness", params: params, type: 'json', method: "POST", callback: function (json) {
......@@ -315,6 +323,22 @@ layui.config({
}});
});
// 团队经理选择
$("body").on("click", "#chargeUserSelPeople", function (e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(userReturnList);
// 添加选择
$.each(userList, function(i, item) {
$("#chargeUser").val(item.name);
});
});
});
$("body").on("click", "#cancle", function() {
location.href = "../../tpl/teamBusiness/teamBusinessDetails.html?objectId=" + objectId + "&objectKey=" + objectKey
+ "&objectType=" + objectType;
......
var userList = new Array();
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -119,6 +121,7 @@ layui.config({
enabled: $("#enabled input:radio:checked").val(),
remark: $("#remark").val(),
teamRoleList: JSON.stringify(teamRoleList),
chargeUser: userList[0].id,
teamObjectPermissionList: JSON.stringify(teamObjectPermissionList)
};
AjaxPostUtil.request({url: reqBasePath + "writeTeamTemplate", params: params, type: 'json', method: "POST", callback: function (json) {
......@@ -268,6 +271,22 @@ layui.config({
}});
});
// 团队经理选择
$("body").on("click", "#chargeUserSelPeople", function (e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(userReturnList);
// 添加选择
$.each(userList, function(i, item) {
$("#chargeUser").val(item.name);
});
});
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
......
var userList = new Array();
layui.config({
base: basePath,
version: skyeyeVersion
......@@ -29,6 +31,11 @@ layui.config({
skyeyeClassEnumUtil.showEnumDataListByClassName("teamObjectType", 'select', "objectType", json.bean.objectType, form);
skyeyeClassEnumUtil.showEnumDataListByClassName("commonEnable", 'radio', "enabled", json.bean.enabled, form);
userList.push(json.bean.chargeUserMation);
$.each(userList, function(i, item) {
$("#chargeUser").val(item.name);
});
loadTreeTable();
// 解析成员信息
$.each(json.bean.teamRoleList, function (i, item) {
......@@ -82,6 +89,7 @@ layui.config({
enabled: $("#enabled input:radio:checked").val(),
remark: $("#remark").val(),
teamRoleList: JSON.stringify(teamRoleList),
chargeUser: userList[0].id,
teamObjectPermissionList: JSON.stringify(teamObjectPermissionList)
};
AjaxPostUtil.request({url: reqBasePath + "writeTeamTemplate", params: params, type: 'json', method: "POST", callback: function (json) {
......@@ -318,6 +326,22 @@ layui.config({
}});
});
// 团队经理选择
$("body").on("click", "#chargeUserSelPeople", function (e) {
systemCommonUtil.userReturnList = [].concat(userList);
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据
userList = [].concat(userReturnList);
// 添加选择
$.each(userList, function(i, item) {
$("#chargeUser").val(item.name);
});
});
});
$("body").on("click", "#cancle", function() {
parent.layer.close(index);
});
......
......@@ -38,6 +38,7 @@ layui.config({
{ field: 'isUsed', title: '使用状态', align: 'center', width: 100, templet: function (d) {
return skyeyeClassEnumUtil.getEnumDataNameByCodeAndKey("isUsed", 'id', d.isUsed, 'name');
}},
{ field: 'chargeUserName', title: '团队经理', width: 120 },
{ field: 'remark', title: '备注', width: 300 },
{ field: 'createName', title: systemLanguage["com.skyeye.createName"][languageType], width: 120 },
{ field: 'createTime', title: systemLanguage["com.skyeye.createTime"][languageType], align: 'center', width: 150 },
......
......@@ -18,6 +18,15 @@
<div class="layui-form-item layui-col-xs12" id="teamAuthEdit" style="text-align: right;">
<a class="layui-btn layui-btn-sm layui-btn-normal" id="edit"><language showName="com.skyeye.editBtn"></language></a>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">基本信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">团队经理</label>
<div class="layui-input-block ver-center">
{{chargeUserMation.name}}
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">成员信息</span><hr>
</div>
......
......@@ -15,6 +15,17 @@
<script type="text/x-handlebars-template" id="showTemplate">
{{#bean}}
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">基本信息</span><hr>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">团队经理<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="chargeUser" name="chargeUser" win-verify="required" placeholder="请选择团队经理" class="layui-input" readonly="readonly"/>
<i class="fa fa-user-plus input-icon" id="chargeUserSelPeople"></i>
<div class="layui-form-mid layui-word-aux">团队经理拥有所有的权限</div>
</div>
</div>
<div class="layui-form-item layui-col-xs12">
<span class="hr-title">成员信息</span><hr>
</div>
......
......@@ -19,6 +19,14 @@
<div class="layui-form-mid layui-word-aux">团队名称不能重复。</div>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">团队经理<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="chargeUser" name="chargeUser" win-verify="required" placeholder="请选择团队经理" class="layui-input" readonly="readonly"/>
<i class="fa fa-user-plus input-icon" id="chargeUserSelPeople"></i>
<div class="layui-form-mid layui-word-aux">团队经理拥有所有的权限。</div>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">适用对象<i class="red">*</i></label>
<div class="layui-input-block">
......
......@@ -24,6 +24,12 @@
{{name}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">团队经理</label>
<div class="layui-input-block ver-center">
{{chargeUserMation.name}}
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">适用对象</label>
<div class="layui-input-block ver-center">
......
......@@ -25,6 +25,14 @@
<div class="layui-form-mid layui-word-aux">团队名称不能重复</div>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">团队经理<i class="red">*</i></label>
<div class="layui-input-block">
<input type="text" id="chargeUser" name="chargeUser" win-verify="required" placeholder="请选择团队经理" class="layui-input" readonly="readonly"/>
<i class="fa fa-user-plus input-icon" id="chargeUserSelPeople"></i>
<div class="layui-form-mid layui-word-aux">团队经理拥有所有的权限</div>
</div>
</div>
<div class="layui-form-item layui-col-xs6">
<label class="layui-form-label">适用对象<i class="red">*</i></label>
<div class="layui-input-block">
......
......@@ -19,7 +19,7 @@
{{# if(auth('1656731571539')){ }}
<a class="layui-btn layui-btn-xs" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
{{# } }}
{{# if(auth('1656731583257')){ }}
{{# if(auth('1656731583257') && d.isUsed != 1){ }}
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del"><language showName="com.skyeye.deleteBtn"></language></a>
{{# } }}
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册