提交 768d98db 编写于 作者: W weizhiqiang

【架构】人选选择代码整改

上级 63d24458
var clickId = "";//选中的用户组id var clickId = "";//选中的用户组id
var name = ""; //用户组名 var name = ""; //用户组名
var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -20,7 +18,6 @@ layui.config({ ...@@ -20,7 +18,6 @@ layui.config({
authBtn('1563451417564');//一键移除用户 authBtn('1563451417564');//一键移除用户
authBtn('1572334408610');//同步人员到工作流 authBtn('1572334408610');//同步人员到工作流
var userInfo = ""; //用户id
showLeft(); showLeft();
//初始化左侧菜单用户组数据 //初始化左侧菜单用户组数据
...@@ -180,7 +177,7 @@ layui.config({ ...@@ -180,7 +177,7 @@ layui.config({
elem: '#messageTable', elem: '#messageTable',
method: 'post', method: 'post',
url: flowableBasePath + 'actgroup007', url: flowableBasePath + 'actgroup007',
where: {groupId: clickId, userName: $("#userName").val()}, where: getTableParams(),
even: true, even: true,
page: true, page: true,
limits: getLimits(), limits: getLimits(),
...@@ -210,32 +207,23 @@ layui.config({ ...@@ -210,32 +207,23 @@ layui.config({
// 新增用户 // 新增用户
$("body").on("click", "#addUser", function(e){ $("body").on("click", "#addUser", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [];
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], var userInfo = "";
callBack: function(refreshCode){ $.each(userReturnList, function (i, item) {
if (refreshCode == '0') { userInfo += item.id + ',';
userList = [].concat(userReturnList); })
$.each(userList, function (i, item) { AjaxPostUtil.request({url: flowableBasePath + "actgroup003", params: {rowId: clickId, userId: userInfo}, type: 'json', callback: function(json) {
userInfo += item.id + ','; if (json.returnCode == 0) {
}) loadTable();
AjaxPostUtil.request({url: flowableBasePath + "actgroup003", params: {rowId: clickId, userId: userInfo}, type: 'json', callback: function(json){ } else {
if(json.returnCode == 0){ winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
userList = []; }
userReturnList = [];
userInfo = "";
loadTable();
}else{
winui.window.msg(json.returnMessage, {icon: 2, time: 2000});
}
}});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2, time: 2000});
}
}}); }});
});
}); });
//一键移除指定用户组下的所有用户 //一键移除指定用户组下的所有用户
...@@ -295,11 +283,19 @@ layui.config({ ...@@ -295,11 +283,19 @@ layui.config({
}); });
//搜索条件 //搜索条件
function loadTable(){ function loadTable(){
table.reload("messageTable", {where:{groupId: clickId, userName: $("#userName").val()}}); table.reload("messageTable", {where: getTableParams()});
} }
function refreshTable(){ function refreshTable(){
table.reload("messageTable", {page: {curr: 1}, where:{groupId: clickId, userName: $("#userName").val()}}); table.reload("messageTable", {page: {curr: 1}, where: getTableParams()});
} }
function getTableParams() {
return {
groupId: clickId,
userName: $("#userName").val()
};
}
//刷新用户 //刷新用户
$("body").on("click", "#reloadTable", function(){ $("body").on("click", "#reloadTable", function(){
loadTable(); loadTable();
......
...@@ -105,8 +105,8 @@ layui.config({ ...@@ -105,8 +105,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
chooseUserList[rowIndex] = staffChooseList[0]; chooseUserList[rowIndex] = userReturnList[0];
table.reload("messageTable", {data: chooseUserList}); table.reload("messageTable", {data: chooseUserList});
}); });
}); });
......
...@@ -105,8 +105,8 @@ layui.config({ ...@@ -105,8 +105,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
chooseUserList[rowIndex] = staffChooseList[0]; chooseUserList[rowIndex] = userReturnList[0];
table.reload("messageTable", {data: chooseUserList}); table.reload("messageTable", {data: chooseUserList});
}); });
}); });
......
...@@ -197,8 +197,8 @@ layui.config({ ...@@ -197,8 +197,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
chooseUserList[rowIndex] = staffChooseList[0]; chooseUserList[rowIndex] = userReturnList[0];
table.reload("messageTable", {data: chooseUserList}); table.reload("messageTable", {data: chooseUserList});
}); });
}); });
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 用品信息 // 用品信息
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -76,28 +71,14 @@ layui.config({ ...@@ -76,28 +71,14 @@ layui.config({
}); });
// 用品管理人选择 // 用品管理人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 用品信息 // 用品信息
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -103,28 +98,14 @@ layui.config({ ...@@ -103,28 +98,14 @@ layui.config({
// 管理人员选择 // 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var employeeuserList = new Array();//选择用户返回的集合或者进行回显的集合 var employeeuserList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 资产信息 // 资产信息
layui.config({ layui.config({
...@@ -141,28 +137,14 @@ layui.config({ ...@@ -141,28 +137,14 @@ layui.config({
}); });
//资产管理人选择 //资产管理人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//资产领用人 //资产领用人
$('#employeeId').tagEditor({ $('#employeeId').tagEditor({
...@@ -184,28 +166,14 @@ layui.config({ ...@@ -184,28 +166,14 @@ layui.config({
}); });
//资产领用人选择 //资产领用人选择
$("body").on("click", "#employeePeople", function(e){ $("body").on("click", "#employeePeople", function(e){
userReturnList = [].concat(employeeuserList); systemCommonUtil.userReturnList = [].concat(employeeuserList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ employeeuserList = [].concat(systemCommonUtil.tagEditorResetData('employeeId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#employeeId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#employeeId').tagEditor('removeTag', tags[i]);
}
employeeuserList = [].concat(userReturnList);
//添加新的tag
$.each(employeeuserList, function(i, item){
$('#employeeId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var employeeuserList = new Array();//选择用户返回的集合或者进行回显的集合 var employeeuserList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 资产信息 // 资产信息
layui.config({ layui.config({
...@@ -193,63 +189,35 @@ layui.config({ ...@@ -193,63 +189,35 @@ layui.config({
} }
}); });
//管理人员选择 // 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('assetAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#assetAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#assetAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#assetAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//领用人选择 // 领用人选择
$("body").on("click", "#employeePeople", function(e){ $("body").on("click", "#employeePeople", function(e) {
userReturnList = [].concat(employeeuserList); systemCommonUtil.userReturnList = [].concat(employeeuserList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ employeeuserList = [].concat(systemCommonUtil.tagEditorResetData('employeeId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#employeeId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#employeeId').tagEditor('removeTag', tags[i]);
}
employeeuserList = [].concat(userReturnList);
//添加新的tag
$.each(employeeuserList, function(i, item){
$('#employeeId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html()); download(fileBasePath + $(this).attr("rowpath"), $(this).html());
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 会议室信息 // 会议室信息
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -91,28 +86,14 @@ layui.config({ ...@@ -91,28 +86,14 @@ layui.config({
// 会议室管理人选择 // 会议室管理人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['90vw', '90vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('roomAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#roomAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#roomAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#roomAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 会议室信息 // 会议室信息
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -120,28 +115,14 @@ layui.config({ ...@@ -120,28 +115,14 @@ layui.config({
// 管理人员选择 // 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['90vw', '90vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('roomAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#roomAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#roomAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#roomAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowList = new Array();//选择用户返回的集合或者进行回显的集合 var borrowList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 证照管理 // 证照管理
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -123,29 +118,15 @@ layui.config({ ...@@ -123,29 +118,15 @@ layui.config({
} }
}); });
// 管理人选择 // 管理人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('licenceAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#licenceAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#licenceAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#licenceAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 借用人 // 借用人
...@@ -167,32 +148,18 @@ layui.config({ ...@@ -167,32 +148,18 @@ layui.config({
} }
}); });
// 借用人选择 // 借用人选择
$("body").on("click", "#borrowNameSelPeople", function(e){ $("body").on("click", "#borrowNameSelPeople", function(e) {
userReturnList = [].concat(borrowList); systemCommonUtil.userReturnList = [].concat(borrowList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ borrowList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowList = [].concat(userReturnList);
//添加新的tag
$.each(borrowList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowList = new Array();//选择用户返回的集合或者进行回显的集合 var borrowList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 证照管理 // 证照管理
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -184,58 +179,30 @@ layui.config({ ...@@ -184,58 +179,30 @@ layui.config({
}); });
// 管理人员选择 // 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('licenceAdmin', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#licenceAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#licenceAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#licenceAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 借用人员选择 // 借用人员选择
$("body").on("click", "#borrowNameSelPeople", function(e){ $("body").on("click", "#borrowNameSelPeople", function(e) {
userReturnList = [].concat(borrowList); systemCommonUtil.userReturnList = [].concat(borrowList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ borrowList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowList = [].concat(userReturnList);
// 添加新的tag
$.each(borrowList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowuserList = new Array(); var borrowuserList = new Array();
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 印章信息 // 印章信息
layui.config({ layui.config({
...@@ -79,29 +75,15 @@ layui.config({ ...@@ -79,29 +75,15 @@ layui.config({
} }
}); });
// 管理人选择 // 管理人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('sealAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#sealAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#sealAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#sealAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 借用人 // 借用人
...@@ -123,32 +105,18 @@ layui.config({ ...@@ -123,32 +105,18 @@ layui.config({
} }
}); });
// 借用人选择 // 借用人选择
$("body").on("click", "#borrowPeople", function(e){ $("body").on("click", "#borrowPeople", function(e) {
userReturnList = [].concat(borrowuserList); systemCommonUtil.userReturnList = [].concat(borrowuserList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "borrowpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ borrowuserList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowuserList = [].concat(userReturnList);
//添加新的tag
$.each(borrowuserList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var borrowuserList = new Array();//选择用户返回的集合或者进行回显的集合 var borrowuserList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 印章信息 // 印章信息
layui.config({ layui.config({
...@@ -130,54 +126,26 @@ layui.config({ ...@@ -130,54 +126,26 @@ layui.config({
// 管理人员选择 // 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('sealAdmin', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#sealAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#sealAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#sealAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 借用人选择 // 借用人选择
$("body").on("click", "#borrowPeople", function(e){ $("body").on("click", "#borrowPeople", function(e){
userReturnList = [].concat(borrowuserList); systemCommonUtil.userReturnList = [].concat(borrowuserList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ borrowuserList = [].concat(systemCommonUtil.tagEditorResetData('borrowId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#borrowId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#borrowId').tagEditor('removeTag', tags[i]);
}
borrowuserList = [].concat(userReturnList);
//添加新的tag
$.each(borrowuserList, function(i, item){
$('#borrowId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function(){
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 车辆信息 // 车辆信息
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -134,36 +129,22 @@ layui.config({ ...@@ -134,36 +129,22 @@ layui.config({
} }
}); });
// 车辆管理人选择 // 车辆管理人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['600px', '500px'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('vehicleAdmin', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#vehicleAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#vehicleAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#vehicleAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html()); download(fileBasePath + $(this).attr("rowpath"), $(this).html());
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
// 车辆信息 // 车辆信息
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -153,28 +148,14 @@ layui.config({ ...@@ -153,28 +148,14 @@ layui.config({
// 管理人员选择 // 管理人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['600px', '500px'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('vehicleAdmin', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#vehicleAdmin').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#vehicleAdmin').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#vehicleAdmin').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function(){
......
...@@ -78,13 +78,13 @@ layui.config({ ...@@ -78,13 +78,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag // 移除所有tag
var tags = $('#interviewer').tagEditor('getTags')[0].tags; var tags = $('#interviewer').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) { for (i = 0; i < tags.length; i++) {
$('#interviewer').tagEditor('removeTag', tags[i]); $('#interviewer').tagEditor('removeTag', tags[i]);
} }
interviewer = [].concat(staffChooseList); interviewer = [].concat(userReturnList);
// 添加新的tag // 添加新的tag
$.each(interviewer, function(i, item){ $.each(interviewer, function(i, item){
$('#interviewer').tagEditor('addTag', item.name); $('#interviewer').tagEditor('addTag', item.name);
......
...@@ -71,13 +71,13 @@ layui.config({ ...@@ -71,13 +71,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag // 移除所有tag
var tags = $('#chargePersonId').tagEditor('getTags')[0].tags; var tags = $('#chargePersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) { for (i = 0; i < tags.length; i++) {
$('#chargePersonId').tagEditor('removeTag', tags[i]); $('#chargePersonId').tagEditor('removeTag', tags[i]);
} }
chargePerson = [].concat(staffChooseList); chargePerson = [].concat(userReturnList);
// 添加新的tag // 添加新的tag
$.each(chargePerson, function(i, item){ $.each(chargePerson, function(i, item){
$('#chargePersonId').tagEditor('addTag', item.name); $('#chargePersonId').tagEditor('addTag', item.name);
......
...@@ -94,13 +94,13 @@ layui.config({ ...@@ -94,13 +94,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag // 移除所有tag
var tags = $('#chargePersonId').tagEditor('getTags')[0].tags; var tags = $('#chargePersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) { for (i = 0; i < tags.length; i++) {
$('#chargePersonId').tagEditor('removeTag', tags[i]); $('#chargePersonId').tagEditor('removeTag', tags[i]);
} }
chargePerson = [].concat(staffChooseList); chargePerson = [].concat(userReturnList);
// 添加新的tag // 添加新的tag
$.each(chargePerson, function(i, item){ $.each(chargePerson, function(i, item){
$('#chargePersonId').tagEditor('addTag', item.name); $('#chargePersonId').tagEditor('addTag', item.name);
......
...@@ -82,13 +82,13 @@ layui.config({ ...@@ -82,13 +82,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 移除所有tag // 移除所有tag
var tags = $('#personLiable').tagEditor('getTags')[0].tags; var tags = $('#personLiable').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) { for (i = 0; i < tags.length; i++) {
$('#personLiable').tagEditor('removeTag', tags[i]); $('#personLiable').tagEditor('removeTag', tags[i]);
} }
personLiable = [].concat(staffChooseList); personLiable = [].concat(userReturnList);
// 添加新的tag // 添加新的tag
$.each(personLiable, function(i, item){ $.each(personLiable, function(i, item){
$('#personLiable').tagEditor('addTag', item.name); $('#personLiable').tagEditor('addTag', item.name);
......
...@@ -3,11 +3,6 @@ var responsIdList = new Array();// 商机负责人返回的集合或者进行回 ...@@ -3,11 +3,6 @@ var responsIdList = new Array();// 商机负责人返回的集合或者进行回
var partIdList = new Array();// 商机参与人返回的集合或者进行回显的集合 var partIdList = new Array();// 商机参与人返回的集合或者进行回显的集合
var followIdList = new Array();// 商机关注人返回的集合或者进行回显的集合 var followIdList = new Array();// 商机关注人返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";// 人员选择类型,1.多选;其他。单选
// 已经选择的客户信息 // 已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -156,29 +151,14 @@ layui.config({ ...@@ -156,29 +151,14 @@ layui.config({
}); });
// 商机负责人选择 // 商机负责人选择
$("body").on("click", "#responsIdSelPeople", function(e){ $("body").on("click", "#responsIdSelPeople", function(e){
userReturnList = [].concat(responsIdList); systemCommonUtil.userReturnList = [].concat(responsIdList);
checkType = "2";//人员选择类型,1.多选;其他。单选 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], responsIdList = [].concat(systemCommonUtil.tagEditorResetData('responsId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
//移除所有tag
var tags = $('#responsId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#responsId').tagEditor('removeTag', tags[i]);
}
responsIdList = [].concat(userReturnList);
//添加新的tag
$.each(responsIdList, function(i, item){
$('#responsId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 商机参与人 // 商机参与人
...@@ -201,29 +181,14 @@ layui.config({ ...@@ -201,29 +181,14 @@ layui.config({
}); });
// 商机参与人选择 // 商机参与人选择
$("body").on("click", "#partIdSelPeople", function(e){ $("body").on("click", "#partIdSelPeople", function(e){
userReturnList = [].concat(partIdList); systemCommonUtil.userReturnList = [].concat(partIdList);
checkType = "1";//人员选择类型,1.多选;其他。单选 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], partIdList = [].concat(systemCommonUtil.tagEditorResetData('partId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
//移除所有tag
var tags = $('#partId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#partId').tagEditor('removeTag', tags[i]);
}
partIdList = [].concat(userReturnList);
//添加新的tag
$.each(partIdList, function(i, item){
$('#partId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 商机关注人 // 商机关注人
...@@ -246,29 +211,14 @@ layui.config({ ...@@ -246,29 +211,14 @@ layui.config({
}); });
// 商机关注人选择 // 商机关注人选择
$("body").on("click", "#followIdSelPeople", function(e){ $("body").on("click", "#followIdSelPeople", function(e){
checkType = "1";//人员选择类型,1.多选;其他。单选 systemCommonUtil.userReturnList = [].concat(followIdList);
userReturnList = [].concat(followIdList); systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], followIdList = [].concat(systemCommonUtil.tagEditorResetData('followId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
//移除所有tag
var tags = $('#followId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#followId').tagEditor('removeTag', tags[i]);
}
followIdList = [].concat(userReturnList);
//添加新的tag
$.each(followIdList, function(i, item){
$('#followId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 客户选择 // 客户选择
......
...@@ -3,11 +3,6 @@ var responsIdList = new Array();// 商机负责人返回的集合或者进行回 ...@@ -3,11 +3,6 @@ var responsIdList = new Array();// 商机负责人返回的集合或者进行回
var partIdList = new Array();// 商机参与人返回的集合或者进行回显的集合 var partIdList = new Array();// 商机参与人返回的集合或者进行回显的集合
var followIdList = new Array();// 商机关注人返回的集合或者进行回显的集合 var followIdList = new Array();// 商机关注人返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";// 人员选择类型,1.多选;其他。单选
// 已经选择的客户信息 // 已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -26,9 +21,6 @@ layui.config({ ...@@ -26,9 +21,6 @@ layui.config({
textool = layui.textool; textool = layui.textool;
var selOption = getFileContent('tpl/template/select-option.tpl'); var selOption = getFileContent('tpl/template/select-option.tpl');
var partId = ""; //商机参与人id
var followId = ""; //商机关注人id
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: flowableBasePath + "opportunity004", url: flowableBasePath + "opportunity004",
...@@ -106,29 +98,14 @@ layui.config({ ...@@ -106,29 +98,14 @@ layui.config({
} }
}); });
$("body").on("click", "#responsIdSelPeople", function(e){ $("body").on("click", "#responsIdSelPeople", function(e){
userReturnList = [].concat(responsIdList); systemCommonUtil.userReturnList = [].concat(responsIdList);
checkType = "2";// 人员选择类型,1.多选;其他。单选 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['80vw', '80vh'], responsIdList = [].concat(systemCommonUtil.tagEditorResetData('responsId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#responsId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#responsId').tagEditor('removeTag', tags[i]);
}
responsIdList = [].concat(userReturnList);
// 添加新的tag
$.each(responsIdList, function(i, item){
$('#responsId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*商机负责人选择结束*/ /*商机负责人选择结束*/
...@@ -156,29 +133,14 @@ layui.config({ ...@@ -156,29 +133,14 @@ layui.config({
} }
}); });
$("body").on("click", "#partIdSelPeople", function(e){ $("body").on("click", "#partIdSelPeople", function(e){
userReturnList = [].concat(partIdList); systemCommonUtil.userReturnList = [].concat(partIdList);
checkType = "1";// 人员选择类型,1.多选;其他。单选 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['80vw', '80vh'], partIdList = [].concat(systemCommonUtil.tagEditorResetData('partId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#partId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#partId').tagEditor('removeTag', tags[i]);
}
partIdList = [].concat(userReturnList);
// 添加新的tag
$.each(partIdList, function(i, item){
$('#partId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*商机参与人选择结束*/ /*商机参与人选择结束*/
...@@ -206,29 +168,14 @@ layui.config({ ...@@ -206,29 +168,14 @@ layui.config({
} }
}); });
$("body").on("click", "#followIdSelPeople", function(e){ $("body").on("click", "#followIdSelPeople", function(e){
userReturnList = [].concat(followIdList); systemCommonUtil.userReturnList = [].concat(followIdList);
checkType = "1";// 人员选择类型,1.多选;其他。单选 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['80vw', '80vh'], followIdList = [].concat(systemCommonUtil.tagEditorResetData('followId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#followId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#followId').tagEditor('removeTag', tags[i]);
}
followIdList = [].concat(userReturnList);
// 添加新的tag
$.each(followIdList, function(i, item){
$('#followId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*商机关注人选择结束*/ /*商机关注人选择结束*/
form.render(); form.render();
...@@ -301,6 +248,7 @@ layui.config({ ...@@ -301,6 +248,7 @@ layui.config({
if(partIdList.length == 0 || isNull($('#partId').tagEditor('getTags')[0].tags)){ if(partIdList.length == 0 || isNull($('#partId').tagEditor('getTags')[0].tags)){
params.partId = ""; params.partId = "";
}else{ }else{
var partId = "";
$.each(partIdList, function (i, item) { $.each(partIdList, function (i, item) {
partId += item.id + ','; partId += item.id + ',';
}); });
...@@ -310,13 +258,14 @@ layui.config({ ...@@ -310,13 +258,14 @@ layui.config({
if(followIdList.length == 0 || isNull($('#followId').tagEditor('getTags')[0].tags)){ if(followIdList.length == 0 || isNull($('#followId').tagEditor('getTags')[0].tags)){
params.followId = ""; params.followId = "";
}else{ }else{
var followId = "";
$.each(followIdList, function (i, item) { $.each(followIdList, function (i, item) {
followId += item.id + ','; followId += item.id + ',';
}); });
params.followId = followId; params.followId = followId;
} }
AjaxPostUtil.request({url: flowableBasePath + "opportunity012", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "opportunity012", params: params, type: 'json', callback: function(json) {
if (json.returnCode == 0){ if (json.returnCode == 0) {
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
} else { } else {
...@@ -326,7 +275,7 @@ layui.config({ ...@@ -326,7 +275,7 @@ layui.config({
} }
// 客户选择 // 客户选择
$("body").on("click", "#customMationSel", function(e){ $("body").on("click", "#customMationSel", function(e) {
_openNewWindows({ _openNewWindows({
url: "../../tpl/customermanage/customerChoose.html", url: "../../tpl/customermanage/customerChoose.html",
title: "选择客户", title: "选择客户",
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息 //已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -84,28 +80,14 @@ layui.config({ ...@@ -84,28 +80,14 @@ layui.config({
}); });
// 关联人员选择选择 // 关联人员选择选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('relationUserId', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#relationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#relationUserId').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#relationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//客户选择 //客户选择
...@@ -149,8 +131,8 @@ layui.config({ ...@@ -149,8 +131,8 @@ layui.config({
return false; return false;
}); });
function saveData(subType, approvalId){ function saveData(subType, approvalId) {
if(isNull(customerMation.id)){ if(isNull(customerMation.id)) {
winui.window.msg("请选择客户", {icon: 2, time: 2000}); winui.window.msg("请选择客户", {icon: 2, time: 2000});
return false; return false;
} }
...@@ -188,7 +170,7 @@ layui.config({ ...@@ -188,7 +170,7 @@ layui.config({
}); });
params.relationUserId = relationUserId; params.relationUserId = relationUserId;
} }
AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract002", params: params, type: 'json', callback: function(json){ AjaxPostUtil.request({url: flowableBasePath + "mycrmcontract002", params: params, type: 'json', callback: function(json) {
if (json.returnCode == 0){ if (json.returnCode == 0){
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
......
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var processInstanceId = ""; var processInstanceId = "";
//已经选择的客户信息 //已经选择的客户信息
...@@ -114,28 +110,14 @@ layui.config({ ...@@ -114,28 +110,14 @@ layui.config({
// 关联人员选择 // 关联人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('relationUserId', userReturnList));
if (refreshCode == '0') { });
// 移除所有tag
var tags = $('#relationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#relationUserId').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
// 添加新的tag
$.each(userList, function(i, item){
$('#relationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 客户选择 // 客户选择
......
var userList = new Array();// 选择用户返回的集合或者进行回显的集合 var userList = new Array();// 选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";// 人员选择类型,1.多选;其他。单选
// 新增客户 // 新增客户
layui.config({ layui.config({
...@@ -116,23 +112,18 @@ layui.config({ ...@@ -116,23 +112,18 @@ layui.config({
// 负责人选择 // 负责人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['90vw', '90vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(userReturnList);
if (refreshCode == '0') { // 添加选择
userList = [].concat(userReturnList); $.each(userList, function(i, item) {
// 添加选择 $("#relationUserId").val(item.name);
$.each(userList, function(i, item){ });
$("#relationUserId").val(item.name); });
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var userList = new Array();// 选择用户返回的集合或者进行回显的集合 var userList = new Array();// 选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();// 选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";// 人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";// 人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -138,23 +134,17 @@ layui.config({ ...@@ -138,23 +134,17 @@ layui.config({
// 负责人选择 // 负责人选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['90vw', '90vh'], userList = [].concat(userReturnList);
callBack: function(refreshCode){ //添加选择
if (refreshCode == '0') { $.each(userList, function(i, item){
userList = [].concat(userReturnList); $("#relationUserId").val(item.name);
//添加选择 });
$.each(userList, function(i, item){ });
$("#relationUserId").val(item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -62,11 +57,14 @@ layui.config({ ...@@ -62,11 +57,14 @@ layui.config({
// 人员选择 // 人员选择
$("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){ $("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){
userReturnList = [];
var clickId = $(this).attr("id"); var clickId = $(this).attr("id");
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.userReturnList = [];
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
// 添加新的tag // 添加新的tag
$.each(staffChooseList, function(i, item){ $.each(userReturnList, function(i, item){
if(clickId == 'toPeopleSelPeople'){ if(clickId == 'toPeopleSelPeople'){
$('#toPeople').tagEditor('addTag', item.email); $('#toPeople').tagEditor('addTag', item.email);
}else if(clickId == 'toCcSelPeople'){ }else if(clickId == 'toCcSelPeople'){
......
...@@ -67,9 +67,9 @@ layui.config({ ...@@ -67,9 +67,9 @@ layui.config({
$("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){ $("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){
userReturnList = []; userReturnList = [];
var clickId = $(this).attr("id"); var clickId = $(this).attr("id");
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 添加新的tag // 添加新的tag
$.each(staffChooseList, function(i, item){ $.each(userReturnList, function(i, item){
if(clickId == 'toPeopleSelPeople'){ if(clickId == 'toPeopleSelPeople'){
$('#toPeople').tagEditor('addTag', item.email); $('#toPeople').tagEditor('addTag', item.email);
}else if(clickId == 'toCcSelPeople'){ }else if(clickId == 'toCcSelPeople'){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 邮件模板 // 邮件模板
var emailSendModel = {}; var emailSendModel = {};
// 如果邮件是从别的服务器同步来的,那么包含的附件可能在我们的附件库上没有,这个对象负责存储那些我们的附件库上没有的附件 // 如果邮件是从别的服务器同步来的,那么包含的附件可能在我们的附件库上没有,这个对象负责存储那些我们的附件库上没有的附件
...@@ -261,11 +256,14 @@ layui.config({ ...@@ -261,11 +256,14 @@ layui.config({
// 人员选择 // 人员选择
$("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){ $("body").on("click", "#toPeopleSelPeople, #toCcSelPeople, #toBccSelPeople", function(e){
userReturnList = [];
var clickId = $(this).attr("id"); var clickId = $(this).attr("id");
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.userReturnList = [];
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 添加新的tag // 添加新的tag
$.each(staffChooseList, function(i, item){ $.each(userReturnList, function(i, item) {
if(clickId == 'toPeopleSelPeople'){ if(clickId == 'toPeopleSelPeople'){
$('#toPeople').tagEditor('addTag', item.email); $('#toPeople').tagEditor('addTag', item.email);
}else if(clickId == 'toCcSelPeople'){ }else if(clickId == 'toCcSelPeople'){
......
...@@ -3,11 +3,6 @@ ...@@ -3,11 +3,6 @@
var procedureCheckType = 2;//工序选择类型:1.单选procedureMation;2.多选procedureMationList var procedureCheckType = 2;//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var procedureMationList = new Array(); var procedureMationList = new Array();
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -92,22 +87,16 @@ layui.config({ ...@@ -92,22 +87,16 @@ layui.config({
// 车间负责人选择 // 车间负责人选择
$("body").on("click", "#chargeUserIdSelPeople", function(e){ $("body").on("click", "#chargeUserIdSelPeople", function(e){
userReturnList = [].concat(chargeUser); systemCommonUtil.userReturnList = [].concat(chargeUser);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['90vw', '90vh'], chargeUser = [].concat(userReturnList);
callBack: function(refreshCode){ if(chargeUser.length > 0){
if (refreshCode == '0') { $("#chargeUserId").val(chargeUser[0].name);
chargeUser = [].concat(userReturnList); }
if(chargeUser.length > 0){ });
$("#chargeUserId").val(chargeUser[0].name);
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 取消 // 取消
......
...@@ -3,11 +3,6 @@ ...@@ -3,11 +3,6 @@
var procedureCheckType = 2;//工序选择类型:1.单选procedureMation;2.多选procedureMationList var procedureCheckType = 2;//工序选择类型:1.单选procedureMation;2.多选procedureMationList
var procedureMationList = new Array(); var procedureMationList = new Array();
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -111,27 +106,21 @@ layui.config({ ...@@ -111,27 +106,21 @@ layui.config({
}); });
// 车间负责人选择 // 车间负责人选择
$("body").on("click", "#chargeUserIdSelPeople", function(e){ $("body").on("click", "#chargeUserIdSelPeople", function(e) {
userReturnList = [].concat(chargeUser); systemCommonUtil.userReturnList = [].concat(chargeUser);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['90vw', '90vh'], chargeUser = [].concat(userReturnList);
callBack: function(refreshCode){ if(chargeUser.length > 0){
if (refreshCode == '0') { $("#chargeUserId").val(chargeUser[0].name);
chargeUser = [].concat(userReturnList); }
if(chargeUser.length > 0){ });
$("#chargeUserId").val(chargeUser[0].name);
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 取消 // 取消
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -102,33 +97,18 @@ layui.config({ ...@@ -102,33 +97,18 @@ layui.config({
} }
}); });
// 工序操作员选择 // 工序操作员选择
$("body").on("click", "#procedureUserIdSelPeople", function(e){ $("body").on("click", "#procedureUserIdSelPeople", function(e) {
checkType = '1'; systemCommonUtil.userReturnList = [].concat(procedureUser);
userReturnList = [].concat(procedureUser); systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], procedureUser = [].concat(systemCommonUtil.tagEditorResetData('procedureUserId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#procedureUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#procedureUserId').tagEditor('removeTag', tags[i]);
}
procedureUser = [].concat(userReturnList);
// 添加新的tag
$.each(procedureUser, function(i, item){
$('#procedureUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -121,29 +116,14 @@ layui.config({ ...@@ -121,29 +116,14 @@ layui.config({
// 工序操作员选择 // 工序操作员选择
$("body").on("click", "#procedureUserIdSelPeople", function(e){ $("body").on("click", "#procedureUserIdSelPeople", function(e){
checkType = '1'; systemCommonUtil.userReturnList = [].concat(procedureUser);
userReturnList = [].concat(procedureUser); systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], procedureUser = [].concat(systemCommonUtil.tagEditorResetData('procedureUserId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
// 移除所有tag
var tags = $('#procedureUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#procedureUserId').tagEditor('removeTag', tags[i]);
}
procedureUser = [].concat(userReturnList);
// 添加新的tag
$.each(procedureUser, function(i, item){
$('#procedureUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 已经选择的客户信息 // 已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -243,28 +239,14 @@ layui.config({ ...@@ -243,28 +239,14 @@ layui.config({
// 人员选择 // 人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
// 新增行 // 新增行
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 已经选择的客户信息 // 已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -324,28 +320,14 @@ layui.config({ ...@@ -324,28 +320,14 @@ layui.config({
//人员选择 //人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//新增行 //新增行
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息 //已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -343,28 +339,14 @@ layui.config({ ...@@ -343,28 +339,14 @@ layui.config({
//人员选择 //人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*********************** 商品表格操作 start ****************************/ /*********************** 商品表格操作 start ****************************/
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息 //已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -251,29 +247,15 @@ layui.config({ ...@@ -251,29 +247,15 @@ layui.config({
}); });
//人员选择 //人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e) {
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*********************** 商品表格操作 start ****************************/ /*********************** 商品表格操作 start ****************************/
//新增行 //新增行
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息 //已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -335,28 +331,14 @@ layui.config({ ...@@ -335,28 +331,14 @@ layui.config({
//人员选择 //人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*********************** 商品表格操作 start ****************************/ /*********************** 商品表格操作 start ****************************/
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息 //已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -253,28 +249,14 @@ layui.config({ ...@@ -253,28 +249,14 @@ layui.config({
//人员选择 //人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e){
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*********************** 商品表格操作 start ****************************/ /*********************** 商品表格操作 start ****************************/
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//已经选择的客户信息 //已经选择的客户信息
var customerMation = {}; var customerMation = {};
...@@ -333,30 +329,16 @@ layui.config({ ...@@ -333,30 +329,16 @@ layui.config({
}}); }});
} }
//人员选择 // 人员选择
$("body").on("click", "#toSalesManSelPeople", function(e){ $("body").on("click", "#toSalesManSelPeople", function(e) {
userReturnList = [].concat(salesManList); systemCommonUtil.userReturnList = [].concat(salesManList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ salesManList = [].concat(systemCommonUtil.tagEditorResetData('salesMan', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#salesMan').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#salesMan').tagEditor('removeTag', tags[i]);
}
salesManList = [].concat(userReturnList);
//添加新的tag
$.each(salesManList, function(i, item){
$('#salesMan').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
/*********************** 商品表格操作 start ****************************/ /*********************** 商品表格操作 start ****************************/
......
...@@ -79,8 +79,8 @@ layui.config({ ...@@ -79,8 +79,8 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList) { systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
chooseUser = [].concat(staffChooseList); chooseUser = [].concat(userReturnList);
// 重置数据 // 重置数据
systemCommonUtil.tagEditorResetData('principal', chooseUser); systemCommonUtil.tagEditorResetData('principal', chooseUser);
}); });
......
...@@ -102,9 +102,9 @@ layui.config({ ...@@ -102,9 +102,9 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList) { systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 重置数据 // 重置数据
chooseUser = [].concat(systemCommonUtil.tagEditorResetData('principal', staffChooseList)); chooseUser = [].concat(systemCommonUtil.tagEditorResetData('principal', userReturnList));
}); });
}); });
......
...@@ -136,13 +136,13 @@ layui.config({ ...@@ -136,13 +136,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 移除所有tag // 移除所有tag
var tags = $('#handsPersonId').tagEditor('getTags')[0].tags; var tags = $('#handsPersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) { for (i = 0; i < tags.length; i++) {
$('#handsPersonId').tagEditor('removeTag', tags[i]); $('#handsPersonId').tagEditor('removeTag', tags[i]);
} }
handsPersonList = [].concat(staffChooseList); handsPersonList = [].concat(userReturnList);
// 添加新的tag // 添加新的tag
$.each(handsPersonList, function(i, item){ $.each(handsPersonList, function(i, item){
$('#handsPersonId').tagEditor('addTag', item.name); $('#handsPersonId').tagEditor('addTag', item.name);
......
...@@ -201,13 +201,13 @@ layui.config({ ...@@ -201,13 +201,13 @@ layui.config({
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
// 移除所有tag // 移除所有tag
var tags = $('#handsPersonId').tagEditor('getTags')[0].tags; var tags = $('#handsPersonId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) { for (i = 0; i < tags.length; i++) {
$('#handsPersonId').tagEditor('removeTag', tags[i]); $('#handsPersonId').tagEditor('removeTag', tags[i]);
} }
handsPersonList = [].concat(staffChooseList); handsPersonList = [].concat(userReturnList);
// 添加新的tag // 添加新的tag
$.each(handsPersonList, function(i, item){ $.each(handsPersonList, function(i, item){
$('#handsPersonId').tagEditor('addTag', item.name); $('#handsPersonId').tagEditor('addTag', item.name);
......
var layedit; var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
// 我的日报 // 我的日报
...@@ -91,7 +86,7 @@ layui.config({ ...@@ -91,7 +86,7 @@ layui.config({
}, },
ajaxSendAfter:function(json){ ajaxSendAfter:function(json){
var userNames = ""; var userNames = "";
var userList = json.bean.userInfo; userList = json.bean.userInfo;
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
userNames += item.name + ','; userNames += item.name + ',';
}); });
...@@ -120,28 +115,14 @@ layui.config({ ...@@ -120,28 +115,14 @@ layui.config({
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo}); skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
//人员选择 //人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
matchingLanguage(); matchingLanguage();
......
var layedit; var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
// 我的月报 // 我的月报
...@@ -91,7 +86,7 @@ layui.config({ ...@@ -91,7 +86,7 @@ layui.config({
}, },
ajaxSendAfter:function(json){ ajaxSendAfter:function(json){
var userNames = ""; var userNames = "";
var userList = json.bean.userInfo; userList = json.bean.userInfo;
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
userNames += item.name + ','; userNames += item.name + ',';
}); });
...@@ -120,29 +115,15 @@ layui.config({ ...@@ -120,29 +115,15 @@ layui.config({
// 附件回显 // 附件回显
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo}); skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
//人员选择 //人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
matchingLanguage(); matchingLanguage();
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 发送日志 // 发送日志
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -22,10 +17,6 @@ layui.config({ ...@@ -22,10 +17,6 @@ layui.config({
form = layui.form; form = layui.form;
layedit = layui.layedit; layedit = layui.layedit;
var userInfo = ""; //日报接收人id
var weekUserInfo = ""; //周报接收人id
var monthUserInfo = ""; //月报接收人id
//日报标题 //日报标题
var today = new Date(); var today = new Date();
var submitTime = today.getFullYear() + '' + (today.getMonth() + 1) + '' + today.getDate() + '日日报';  var submitTime = today.getFullYear() + '' + (today.getMonth() + 1) + '' + today.getDate() + '日日报'; 
...@@ -174,6 +165,7 @@ layui.config({ ...@@ -174,6 +165,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000}); winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var userInfo = "";
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
userInfo += item.id + ','; userInfo += item.id + ',';
}); });
...@@ -286,6 +278,7 @@ layui.config({ ...@@ -286,6 +278,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000}); winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var weekUserInfo = "";
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
weekUserInfo += item.id + ','; weekUserInfo += item.id + ',';
}); });
...@@ -402,6 +395,7 @@ layui.config({ ...@@ -402,6 +395,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000}); winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var monthUserInfo = "";
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
monthUserInfo += item.id + ','; monthUserInfo += item.id + ',';
}); });
...@@ -475,28 +469,14 @@ layui.config({ ...@@ -475,28 +469,14 @@ layui.config({
}); });
//日报人员选择 //日报人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//周报接收人 //周报接收人
$('#weekUserName').tagEditor({ $('#weekUserName').tagEditor({
...@@ -518,28 +498,14 @@ layui.config({ ...@@ -518,28 +498,14 @@ layui.config({
}); });
//周报人员选择 //周报人员选择
$("body").on("click", "#weekUserNameSelPeople", function(e){ $("body").on("click", "#weekUserNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysusersel", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('weekUserName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#weekUserName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#weekUserName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#weekUserName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//月报接收人 //月报接收人
$('#monthUserName').tagEditor({ $('#monthUserName').tagEditor({
...@@ -561,28 +527,14 @@ layui.config({ ...@@ -561,28 +527,14 @@ layui.config({
}); });
//月报人员选择 //月报人员选择
$("body").on("click", "#monthUserNameSelPeople", function(e){ $("body").on("click", "#monthUserNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysusersel", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('monthUserName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#monthUserName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#monthUserName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#monthUserName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
}); });
......
var layedit; var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
// 我的周报 // 我的周报
...@@ -20,8 +15,7 @@ layui.config({ ...@@ -20,8 +15,7 @@ layui.config({
var $ = layui.$; var $ = layui.$;
layedit = layui.layedit; layedit = layui.layedit;
var reg = new RegExp("<br>", "g"); var reg = new RegExp("<br>", "g");
var userId = ""; //月报接收人id
layedit.set({ layedit.set({
uploadImage: { uploadImage: {
url: reqBasePath + "common003", //接口url url: reqBasePath + "common003", //接口url
...@@ -91,7 +85,7 @@ layui.config({ ...@@ -91,7 +85,7 @@ layui.config({
}, },
ajaxSendAfter:function(json){ ajaxSendAfter:function(json){
var userNames = ""; var userNames = "";
var userList = json.bean.userInfo; userList = json.bean.userInfo;
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
userNames += item.name + ','; userNames += item.name + ',';
}); });
...@@ -121,28 +115,14 @@ layui.config({ ...@@ -121,28 +115,14 @@ layui.config({
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo}); skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.enclosureInfo});
//人员选择 //人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
matchingLanguage(); matchingLanguage();
...@@ -212,6 +192,7 @@ layui.config({ ...@@ -212,6 +192,7 @@ layui.config({
winui.window.msg('请选择收件人', {icon: 2,time: 2000}); winui.window.msg('请选择收件人', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var userId = "";
$.each(userList, function (i, item) { $.each(userList, function (i, item) {
userId += item.id + ','; userId += item.id + ',';
}); });
...@@ -262,12 +243,12 @@ layui.config({ ...@@ -262,12 +243,12 @@ layui.config({
} }
}); });
$("body").on("click", ".enclosureItem", function(){ $("body").on("click", ".enclosureItem", function() {
download(fileBasePath + $(this).attr("rowpath"), $(this).html()); download(fileBasePath + $(this).attr("rowpath"), $(this).html());
}); });
//取消 // 取消
$("body").on("click", "#weekCancle", function(){ $("body").on("click", "#weekCancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
}); });
......
var layedit; var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
layui.config({ layui.config({
...@@ -175,28 +170,14 @@ layui.config({ ...@@ -175,28 +170,14 @@ layui.config({
//人员选择 //人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var layedit; var layedit;
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "1";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
layui.config({ layui.config({
...@@ -17,8 +12,8 @@ layui.config({ ...@@ -17,8 +12,8 @@ layui.config({
layui.use(['form', 'layedit'], function (form) { layui.use(['form', 'layedit'], function (form) {
var index = parent.layer.getFrameIndex(window.name); var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$, var $ = layui.$,
tableSelect = layui.tableSelect, tableSelect = layui.tableSelect,
laydate = layui.laydate; laydate = layui.laydate;
layedit = layui.layedit; layedit = layui.layedit;
//初始化一级公告类型 //初始化一级公告类型
function initNoticeType(id){ function initNoticeType(id){
...@@ -158,28 +153,14 @@ layui.config({ ...@@ -158,28 +153,14 @@ layui.config({
}); });
//人员选择 //人员选择
$("body").on("click", "#userNameSelPeople", function(e){ $("body").on("click", "#userNameSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "1"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('userName', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#userName').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#userName').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#userName').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
matchingLanguage(); matchingLanguage();
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 项目任命 // 项目任命
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -22,9 +17,6 @@ layui.config({ ...@@ -22,9 +17,6 @@ layui.config({
var toProjectSponsor = new Array();//项目赞助人 var toProjectSponsor = new Array();//项目赞助人
var toProjectMembers = new Array();//项目组成员 var toProjectMembers = new Array();//项目组成员
var projectEnclosureInfoList = new Array();//项目组织和分工的附件
var planEnclosureInfoList = new Array();//实施计划和方案的附件
showGrid({ showGrid({
id: "showForm", id: "showForm",
url: flowableBasePath + "proproject013", url: flowableBasePath + "proproject013",
...@@ -196,80 +188,38 @@ layui.config({ ...@@ -196,80 +188,38 @@ layui.config({
//项目经理选择 //项目经理选择
$("body").on("click", "#toProjectManager", function(e){ $("body").on("click", "#toProjectManager", function(e){
userReturnList = [].concat(toProjectManager); systemCommonUtil.userReturnList = [].concat(toProjectManager);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ toProjectManager = [].concat(systemCommonUtil.tagEditorResetData('projectManager', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#projectManager').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#projectManager').tagEditor('removeTag', tags[i]);
}
toProjectManager = [].concat(userReturnList);
//添加新的tag
$.each(toProjectManager, function(i, item){
$('#projectManager').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//项目赞助人选择 //项目赞助人选择
$("body").on("click", "#toProjectSponsor", function(e){ $("body").on("click", "#toProjectSponsor", function(e){
userReturnList = [].concat(toProjectSponsor); systemCommonUtil.userReturnList = [].concat(toProjectSponsor);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ toProjectSponsor = [].concat(systemCommonUtil.tagEditorResetData('projectSponsor', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#projectSponsor').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#projectSponsor').tagEditor('removeTag', tags[i]);
}
toProjectSponsor = [].concat(userReturnList);
//添加新的tag
$.each(toProjectSponsor, function(i, item){
$('#projectSponsor').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//项目组成员选择 //项目组成员选择
$("body").on("click", "#toProjectMembers", function(e){ $("body").on("click", "#toProjectMembers", function(e){
userReturnList = [].concat(toProjectMembers); systemCommonUtil.userReturnList = [].concat(toProjectMembers);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ toProjectMembers = [].concat(systemCommonUtil.tagEditorResetData('projectMembers', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#projectMembers').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#projectMembers').tagEditor('removeTag', tags[i]);
}
toProjectMembers = [].concat(userReturnList);
//添加新的tag
$.each(toProjectMembers, function(i, item){
$('#projectMembers').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var performIdList = new Array();//执行人返回的集合或者进行回显的集合 var performIdList = new Array();//执行人返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 项目工作量分配 // 项目工作量分配
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -173,30 +168,16 @@ layui.config({ ...@@ -173,30 +168,16 @@ layui.config({
} }
}); });
//执行人选择 // 执行人选择
$("body").on("click", "#performIdSelPeople", function(e){ $("body").on("click", "#performIdSelPeople", function(e) {
userReturnList = [].concat(performIdList); systemCommonUtil.userReturnList = [].concat(performIdList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ performIdList = [].concat(systemCommonUtil.tagEditorResetData('performId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#performId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#performId').tagEditor('removeTag', tags[i]);
}
performIdList = [].concat(userReturnList);
//添加新的tag
$.each(performIdList, function(i, item){
$('#performId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
var performIdList = new Array();//执行人返回的集合或者进行回显的集合 var performIdList = new Array();//执行人返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
// 项目工作量分配 // 项目工作量分配
layui.config({ layui.config({
base: basePath, base: basePath,
...@@ -129,29 +124,15 @@ layui.config({ ...@@ -129,29 +124,15 @@ layui.config({
} }
} }
}); });
$("body").on("click", "#performIdSelPeople", function(e){ $("body").on("click", "#performIdSelPeople", function(e) {
userReturnList = [].concat(performIdList); systemCommonUtil.userReturnList = [].concat(performIdList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ performIdList = [].concat(systemCommonUtil.tagEditorResetData('performId', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#performId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#performId').tagEditor('removeTag', tags[i]);
}
performIdList = [].concat(userReturnList);
//添加新的tag
$.each(performIdList, function(i, item){
$('#performId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
matchingLanguage(); matchingLanguage();
form.render(); form.render();
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//工单接收人信息 //工单接收人信息
var serviceUser = {}; var serviceUser = {};
...@@ -219,29 +214,14 @@ layui.config({ ...@@ -219,29 +214,14 @@ layui.config({
}); });
//工单协助人选择 //工单协助人选择
$("body").on("click", "#cooperationUserIdSelPeople", function(e){ $("body").on("click", "#cooperationUserIdSelPeople", function(e){
checkType = '1'; systemCommonUtil.userReturnList = [].concat(cooperationUser);
userReturnList = [].concat(cooperationUser); systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], cooperationUser = [].concat(systemCommonUtil.tagEditorResetData('cooperationUserId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
//移除所有tag
var tags = $('#cooperationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#cooperationUserId').tagEditor('removeTag', tags[i]);
}
cooperationUser = [].concat(userReturnList);
//添加新的tag
$.each(cooperationUser, function(i, item){
$('#cooperationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
form.on('select(areaProvince)', function(data){ form.on('select(areaProvince)', function(data){
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//工单接收人信息 //工单接收人信息
var serviceUser = {}; var serviceUser = {};
...@@ -259,29 +255,14 @@ layui.config({ ...@@ -259,29 +255,14 @@ layui.config({
//工单协助人选择 //工单协助人选择
$("body").on("click", "#cooperationUserIdSelPeople", function(e){ $("body").on("click", "#cooperationUserIdSelPeople", function(e){
checkType = '1'; systemCommonUtil.userReturnList = [].concat(cooperationUser);
userReturnList = [].concat(cooperationUser); systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['90vw', '90vh'], cooperationUser = [].concat(systemCommonUtil.tagEditorResetData('cooperationUserId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
//移除所有tag
var tags = $('#cooperationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#cooperationUserId').tagEditor('removeTag', tags[i]);
}
cooperationUser = [].concat(userReturnList);
//添加新的tag
$.each(cooperationUser, function(i, item){
$('#cooperationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
form.on('select(areaProvince)', function(data){ form.on('select(areaProvince)', function(data){
......
...@@ -7,11 +7,6 @@ var marker = null; ...@@ -7,11 +7,6 @@ var marker = null;
var longitude = "";//经度 var longitude = "";//经度
var latitude = "";//纬度 var latitude = "";//纬度
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
layui.config({ layui.config({
base: basePath, base: basePath,
version: skyeyeVersion version: skyeyeVersion
...@@ -64,24 +59,18 @@ layui.config({ ...@@ -64,24 +59,18 @@ layui.config({
//人员选择 //人员选择
$("body").on("click", "#userIdSelPeople", function(e){ $("body").on("click", "#userIdSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], userList = [].concat(userReturnList);
callBack: function(refreshCode){ if(userList.length > 0){
if (refreshCode == '0') { $("#userName").val(userList[0].name);
userList = [].concat(userReturnList); }else{
if(userList.length > 0){ $("#userName").val("");
$("#userName").val(userList[0].name); }
}else{ });
$("#userName").val("");
}
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
initMap(); initMap();
......
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//工单接收人信息 //工单接收人信息
var serviceUser = {}; var serviceUser = {};
...@@ -101,29 +96,14 @@ layui.config({ ...@@ -101,29 +96,14 @@ layui.config({
}); });
//工单协助人选择 //工单协助人选择
$("body").on("click", "#cooperationUserIdSelPeople", function(e){ $("body").on("click", "#cooperationUserIdSelPeople", function(e){
checkType = '1'; systemCommonUtil.userReturnList = [].concat(cooperationUser);
userReturnList = [].concat(cooperationUser); systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
_openNewWindows({ systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
url: "../../tpl/common/sysusersel.html", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
title: "人员选择", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
pageId: "sysuserselpage", // 重置数据
area: ['80vw', '80vh'], cooperationUser = [].concat(systemCommonUtil.tagEditorResetData('cooperationUserId', userReturnList));
callBack: function(refreshCode){ });
if (refreshCode == '0') {
//移除所有tag
var tags = $('#cooperationUserId').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#cooperationUserId').tagEditor('removeTag', tags[i]);
}
cooperationUser = [].concat(userReturnList);
//添加新的tag
$.each(cooperationUser, function(i, item){
$('#cooperationUserId').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function(){
......
...@@ -213,11 +213,10 @@ var activitiUtil = { ...@@ -213,11 +213,10 @@ var activitiUtil = {
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
systemCommonUtil.userReturnList = [].concat(staffChooseList);
var params = { var params = {
taskId: task.taskId, taskId: task.taskId,
principalUserId: staffChooseList[0].id principalUserId: userReturnList[0].id
}; };
AjaxPostUtil.request({url: flowableBasePath + "activitiTask001", params: params, method: "POST", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "activitiTask001", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
...@@ -237,11 +236,10 @@ var activitiUtil = { ...@@ -237,11 +236,10 @@ var activitiUtil = {
systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含 systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要 systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选 systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
systemCommonUtil.openSysUserStaffChoosePage(function (staffChooseList){ systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList){
systemCommonUtil.userReturnList = [].concat(staffChooseList);
var params = { var params = {
taskId: task.taskId, taskId: task.taskId,
transferredPersonId: staffChooseList[0].id transferredPersonId: userReturnList[0].id
}; };
AjaxPostUtil.request({url: flowableBasePath + "activitiTask002", params: params, method: "POST", type: 'json', callback: function(json) { AjaxPostUtil.request({url: flowableBasePath + "activitiTask002", params: params, method: "POST", type: 'json', callback: function(json) {
if(json.returnCode == 0) { if(json.returnCode == 0) {
......
...@@ -12,13 +12,13 @@ var sysCustomerUtil = { ...@@ -12,13 +12,13 @@ var sysCustomerUtil = {
* *
* @param callback 回调函数 * @param callback 回调函数
*/ */
openSysCustomerChoosePage: function (callback){ openSysCustomerChoosePage: function (callback) {
_openNewWindows({ _openNewWindows({
url: "../../tpl/customermanage/customerChoose.html", url: "../../tpl/customermanage/customerChoose.html",
title: "客户选择", title: "客户选择",
pageId: "customerChoose", pageId: "customerChoose",
area: ['90vw', '90vh'], area: ['90vw', '90vh'],
callBack: function(refreshCode){ callBack: function(refreshCode) {
if (refreshCode == '0') { if (refreshCode == '0') {
if(typeof(callback) == "function") { if(typeof(callback) == "function") {
callback(sysCustomerUtil.customerMation); callback(sysCustomerUtil.customerMation);
......
// 系统工具函数 // 系统工具函数
var systemCommonUtil = { var systemCommonUtil = {
/**
* 已经选择的员工列表
*/
staffChooseList: [],
/**
* 已经选择的图标资源列表
*/
sysIconChooseClass: [],
/** /**
* 获取系统账户信息 * 获取系统账户信息
* *
...@@ -215,6 +205,10 @@ var systemCommonUtil = { ...@@ -215,6 +205,10 @@ var systemCommonUtil = {
* *
* @param callback 回调函数 * @param callback 回调函数
*/ */
chooseOrNotMy: 1, // 人员列表中是否包含自己--1.包含;其他参数不包含
chooseOrNotEmail: 1, // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
checkType: 1, // 人员选择类型,1.多选;其他。单选
userReturnList: [], // 人员选择后的集合
openSysUserStaffChoosePage: function (callback){ openSysUserStaffChoosePage: function (callback){
_openNewWindows({ _openNewWindows({
url: "../../tpl/common/sysusersel.html", url: "../../tpl/common/sysusersel.html",
...@@ -224,7 +218,7 @@ var systemCommonUtil = { ...@@ -224,7 +218,7 @@ var systemCommonUtil = {
callBack: function(refreshCode){ callBack: function(refreshCode){
if (refreshCode == '0') { if (refreshCode == '0') {
if(typeof(callback) == "function") { if(typeof(callback) == "function") {
callback(systemCommonUtil.staffChooseList); callback(systemCommonUtil.userReturnList);
} }
} else if (refreshCode == '-9999') { } else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000}); winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
...@@ -261,6 +255,7 @@ var systemCommonUtil = { ...@@ -261,6 +255,7 @@ var systemCommonUtil = {
* *
* @param callback 回调函数 * @param callback 回调函数
*/ */
sysIconChooseClass: [], // 已经选择的图标资源列表
openSysEveIconChoosePage: function (callback){ openSysEveIconChoosePage: function (callback){
_openNewWindows({ _openNewWindows({
url: "../../tpl/sysEveIcon/sysEveIconListChoose.html", url: "../../tpl/sysEveIcon/sysEveIconListChoose.html",
......
...@@ -29,8 +29,6 @@ layui.config({ ...@@ -29,8 +29,6 @@ layui.config({
//进行数据回显使用 //进行数据回显使用
if(parent.systemCommonUtil.userReturnList){ if(parent.systemCommonUtil.userReturnList){
userOperatorReturnList = [].concat(parent.systemCommonUtil.userReturnList); userOperatorReturnList = [].concat(parent.systemCommonUtil.userReturnList);
}else{
userOperatorReturnList = [].concat(parent.userReturnList);
} }
//遍历加载已选人员列表 //遍历加载已选人员列表
...@@ -42,24 +40,12 @@ layui.config({ ...@@ -42,24 +40,12 @@ layui.config({
// 如果父页面有这个参数,则赋值 // 如果父页面有这个参数,则赋值
if(!isNull(parent.systemCommonUtil.chooseOrNotMy)){ if(!isNull(parent.systemCommonUtil.chooseOrNotMy)){
chooseOrNotMy = parent.systemCommonUtil.chooseOrNotMy; chooseOrNotMy = parent.systemCommonUtil.chooseOrNotMy;
}else{
if(!isNull(parent.chooseOrNotMy)){
chooseOrNotMy = parent.chooseOrNotMy;
}
} }
if(!isNull(parent.systemCommonUtil.chooseOrNotEmail)){ if(!isNull(parent.systemCommonUtil.chooseOrNotEmail)){
chooseOrNotEmail = parent.systemCommonUtil.chooseOrNotEmail; chooseOrNotEmail = parent.systemCommonUtil.chooseOrNotEmail;
}else {
if (!isNull(parent.chooseOrNotEmail)) {
chooseOrNotEmail = parent.chooseOrNotEmail;
}
} }
if(!isNull(parent.systemCommonUtil.checkType)){ if(!isNull(parent.systemCommonUtil.checkType)){
checkType = parent.systemCommonUtil.checkType; checkType = parent.systemCommonUtil.checkType;
}else {
if (!isNull(parent.checkType)) {
checkType = parent.checkType;
}
} }
//设置提示信息 //设置提示信息
...@@ -135,8 +121,7 @@ layui.config({ ...@@ -135,8 +121,7 @@ layui.config({
//确定 //确定
$("body").on("click", "#confimChoose", function(){ $("body").on("click", "#confimChoose", function(){
parent.userReturnList = [].concat(userOperatorReturnList); parent.systemCommonUtil.userReturnList = [].concat(userOperatorReturnList);
parent.systemCommonUtil.staffChooseList = [].concat(userOperatorReturnList);
parent.layer.close(index); parent.layer.close(index);
parent.refreshCode = '0'; parent.refreshCode = '0';
}); });
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
//计划类型 //计划类型
var nowCheckType = ""; var nowCheckType = "";
...@@ -275,34 +270,20 @@ layui.config({ ...@@ -275,34 +270,20 @@ layui.config({
} }
}); });
//计划指定他人-人员选择 // 计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){ $("body").on("click", "#carryPeopleSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//取消 // 取消
$("body").on("click", "#cancle", function(){ $("body").on("click", "#cancle", function() {
parent.layer.close(index); parent.layer.close(index);
}); });
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型 //计划类型
var nowCheckType = ""; var nowCheckType = "";
...@@ -38,8 +33,6 @@ layui.config({ ...@@ -38,8 +33,6 @@ layui.config({
} }
}); });
var carryPeople = "";//指定人员id
if(!isNull(parent.timeSolt)){ if(!isNull(parent.timeSolt)){
// 如果父页面传递时间段 // 如果父页面传递时间段
timeSolt = parent.timeSolt; timeSolt = parent.timeSolt;
...@@ -197,6 +190,7 @@ layui.config({ ...@@ -197,6 +190,7 @@ layui.config({
winui.window.msg('请选择人员', {icon: 2,time: 2000}); winui.window.msg('请选择人员', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var carryPeople = "";
$.each(userList, function(i, item){ $.each(userList, function(i, item){
if(i == 0) if(i == 0)
carryPeople = item.id; carryPeople = item.id;
...@@ -271,28 +265,14 @@ layui.config({ ...@@ -271,28 +265,14 @@ layui.config({
//计划指定他人-人员选择 //计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){ $("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//取消 //取消
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型 //计划类型
var nowCheckType = ""; var nowCheckType = "";
...@@ -280,30 +275,16 @@ layui.config({ ...@@ -280,30 +275,16 @@ layui.config({
} }
}}); }});
//计划指定他人-人员选择 // 计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){ $("body").on("click", "#carryPeopleSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//取消 //取消
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型 //计划类型
var nowCheckType = ""; var nowCheckType = "";
...@@ -38,8 +33,6 @@ layui.config({ ...@@ -38,8 +33,6 @@ layui.config({
} }
}); });
var carryPeople = "";//指定人员id
if(!isNull(parent.timeSolt)){ if(!isNull(parent.timeSolt)){
// 如果父页面传递时间段 // 如果父页面传递时间段
timeSolt = parent.timeSolt; timeSolt = parent.timeSolt;
...@@ -197,6 +190,7 @@ layui.config({ ...@@ -197,6 +190,7 @@ layui.config({
winui.window.msg('请选择人员', {icon: 2,time: 2000}); winui.window.msg('请选择人员', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var carryPeople = "";
$.each(userList, function(i, item){ $.each(userList, function(i, item){
if(i == 0) if(i == 0)
carryPeople = item.id; carryPeople = item.id;
...@@ -269,30 +263,16 @@ layui.config({ ...@@ -269,30 +263,16 @@ layui.config({
} }
}); });
//计划指定他人-人员选择 // 计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){ $("body").on("click", "#carryPeopleSelPeople", function(e) {
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//取消 //取消
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "1";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "1";//人员选择类型,1.多选;其他。单选
//计划类型 //计划类型
var nowCheckType = ""; var nowCheckType = "";
...@@ -39,8 +34,6 @@ layui.config({ ...@@ -39,8 +34,6 @@ layui.config({
} }
}); });
var carryPeople = "";//指定人员id
AjaxPostUtil.request({url:reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
...@@ -222,6 +215,7 @@ layui.config({ ...@@ -222,6 +215,7 @@ layui.config({
winui.window.msg('请选择人员', {icon: 2,time: 2000}); winui.window.msg('请选择人员', {icon: 2,time: 2000});
return false; return false;
}else{ }else{
var carryPeople = "";
$.each(userList, function(i, item){ $.each(userList, function(i, item){
if(i == 0) if(i == 0)
carryPeople = item.id; carryPeople = item.id;
...@@ -282,28 +276,14 @@ layui.config({ ...@@ -282,28 +276,14 @@ layui.config({
//计划指定他人-人员选择 //计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){ $("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "1"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "1"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//取消 //取消
......
...@@ -3,11 +3,6 @@ var layedit; ...@@ -3,11 +3,6 @@ var layedit;
var userList = new Array();//选择用户返回的集合或者进行回显的集合 var userList = new Array();//选择用户返回的集合或者进行回显的集合
var userReturnList = new Array();//选择用户返回的集合或者进行回显的集合
var chooseOrNotMy = "2";//人员列表中是否包含自己--1.包含;其他参数不包含
var chooseOrNotEmail = "2";//人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
var checkType = "2";//人员选择类型,1.多选;其他。单选
//计划类型 //计划类型
var nowCheckType = ""; var nowCheckType = "";
...@@ -39,8 +34,6 @@ layui.config({ ...@@ -39,8 +34,6 @@ layui.config({
} }
}); });
var carryPeople = "";//指定人员id
AjaxPostUtil.request({url:reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function(json){ AjaxPostUtil.request({url:reqBasePath + "sysworkplan007", params:{planId: parent.rowId}, type: 'json', callback: function(json){
if(json.returnCode == 0){ if(json.returnCode == 0){
nowCheckType = json.bean.planCycle; nowCheckType = json.bean.planCycle;
...@@ -217,16 +210,15 @@ layui.config({ ...@@ -217,16 +210,15 @@ layui.config({
}; };
//他人执行 //他人执行
if(params.assignmentType === '2'){ if (params.assignmentType === '2') {
//指定人员 //指定人员
if(userList.length == 0 || isNull($('#carryPeople').tagEditor('getTags')[0].tags)){ if (userList.length == 0 || isNull($('#carryPeople').tagEditor('getTags')[0].tags)) {
winui.window.msg('请选择指定人员', {icon: 2,time: 2000}); winui.window.msg('请选择指定人员', {icon: 2, time: 2000});
return false; return false;
}else{ } else {
carryPeople = userList[0].id; params.carryPeople = userList[0].id;
params.carryPeople = carryPeople; }
} }
}
//是否邮件通知 //是否邮件通知
if($("#whetherMail").val() == 'true'){ if($("#whetherMail").val() == 'true'){
...@@ -277,28 +269,14 @@ layui.config({ ...@@ -277,28 +269,14 @@ layui.config({
//计划指定他人-人员选择 //计划指定他人-人员选择
$("body").on("click", "#carryPeopleSelPeople", function(e){ $("body").on("click", "#carryPeopleSelPeople", function(e){
userReturnList = [].concat(userList); systemCommonUtil.userReturnList = [].concat(userList);
_openNewWindows({ systemCommonUtil.chooseOrNotMy = "2"; // 人员列表中是否包含自己--1.包含;其他参数不包含
url: "../../tpl/common/sysusersel.html", systemCommonUtil.chooseOrNotEmail = "2"; // 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
title: "人员选择", systemCommonUtil.checkType = "2"; // 人员选择类型,1.多选;其他。单选
pageId: "sysuserselpage", systemCommonUtil.openSysUserStaffChoosePage(function (userReturnList) {
area: ['80vw', '80vh'], // 重置数据
callBack: function(refreshCode){ userList = [].concat(systemCommonUtil.tagEditorResetData('carryPeople', userReturnList));
if (refreshCode == '0') { });
//移除所有tag
var tags = $('#carryPeople').tagEditor('getTags')[0].tags;
for (i = 0; i < tags.length; i++) {
$('#carryPeople').tagEditor('removeTag', tags[i]);
}
userList = [].concat(userReturnList);
//添加新的tag
$.each(userList, function(i, item){
$('#carryPeople').tagEditor('addTag', item.name);
});
} else if (refreshCode == '-9999') {
winui.window.msg(systemLanguage["com.skyeye.operationFailed"][languageType], {icon: 2,time: 2000});
}
}});
}); });
//取消 //取消
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册