Commit 83dc68f3 authored by 李苏's avatar 李苏 💬

登录页面

parent f7620f80
#kwrkb04{
#kwrkb04 div{
font-size: 14px;
}
#kwrkb04 li{
font-size: 14px;
}
#kwrkb05 div{
font-size: 14px;
}
#kwrkb05 li{
font-size: 14px;
}
#kwrkb06 div{
font-size: 14px;
}
#kwrkb06 li{
font-size: 14px;
}
#kwrkb04{
height: 100%;
width: 100%;
display: flex;
......
#kwrkb07{
#kwrkb07 div{
font-size: 14px;
}
#kwrkb07 li{
font-size: 14px;
}
#kwrkb08 div{
font-size: 14px;
}
#kwrkb08 li{
font-size: 14px;
}
#kwrkb09 div{
font-size: 14px;
}
#kwrkb09 li{
font-size: 14px;
}
#kwrkb07{
height: 100%;
width: 100%;
display: flex;
......
......@@ -3,22 +3,22 @@
padding: 0;
}
#kwrkb01 div{
font-size: 15px!important;
font-size: 14px;
}
#kwrkb01 li{
font-size: 15px!important;
font-size: 14px;
}
#kwrkb02 div{
font-size: 15px!important;
font-size: 14px;
}
#kwrkb02 li{
font-size: 15px!important;
font-size: 14px;
}
#kwrkb03 div{
font-size: 15px!important;
font-size: 14px;
}
#kwrkb03 li{
font-size: 15px!important;
font-size: 14px;
}
#kwrkb01 {
height: 100%;
......@@ -226,7 +226,7 @@
#kwrkb02 .tipul button{
margin-left: 10px;
height: 30px;
width: 60px;
/* width: 60px; */
background-color: #FFFFFF;
border: 0.5px solid #EEEEEE;
text-decoration:none;
......
// 首页加载完后,取消加载中状态
$(window).load(function () {
$("#loading").fadeOut();
if (myBrowser() == "I") {
if (confirm("经检测,该IE浏览器版本过低,不支持该系统(支持ie9及ie9+). 请点击'确认'按钮,将自动为您跳转ie9安装环境。")) {
location.href = "https://www.microsoft.com/zh-cn/download/internet-explorer-9-details.aspx";
}
}
$(window).off().on('contextmenu',function(event){
event.preventDefault();
return false;
});
window.onresize = function(){
setTimeout(function () {
$('#index_layout').layout('resize');
},300);
};
});
$(function () {
// 初始化accordion
$("#RightAccordion").iAccordion({
fit: true,
border: false
});
var navbarQuerms = [];
var iconCls={"C" :"fa fa-folder"};
var cookie=document.cookie;
/*HTTP.post('print/printstyle/cookie',{}, function (result){
if(result['success']&&result['data']){
cookie=result['data']["cookie"];
window.sessionStorage.setItem('cookie', cookie);
}
});*/
let hash=location.hash
let hashindex=hash.indexOf(';')
let idindex=hash.indexOf('+')
let smkurl=hash.substring(1,hashindex)
let smkid=hash.substring(hashindex+1,idindex)
let sbzlx=hash.substring(idindex+1,hash.length)
window.bzlx=sbzlx
HTTP.post("frame/init", {}, function (result) {
let isShow=false
result.data.menu.forEach(e=>{
if(e.fmkid=="160010600"){
isShow=true
}
})
window.isShow=isShow
$("#mb3").find(".l-btn-text").html(result.data.username);
$("#mb3").menubutton("options").text = result.data.username;
window.curUserId = result.data.userid;
window.curUserName = result.data.username;
window.sessionStorage.setItem('userId', result.data.userid);
window.sessionStorage.setItem('userName', result.data.username);
window.sessionStorage.setItem('appName', result.data.appName);
if(result.data&&result.data["data"]){
localStorage.setItem('user',JSON.stringify(result.data.data));
}
var cookie=result.data.cookie;
window.sessionStorage.setItem('cookie', cookie);
$.each(cookie.split(";"),function (i,value) {
if(value.indexOf("token")>-1){
window.sessionStorage.setItem('token',value.split("=")[1]);
}
})
window.sessionStorage.setItem('websocketport', result.data.websocketPort||"");
$('title').text(result.data.appName || '格物软件');
$('.header-txt').text(result.data.appName || '格物软件');
var menus = result.data.menu || [];
if (menus.length == 0) {
return;
}
var treeData = [], hash = {}, datas = [];
navConfigInformation={};
$.each(menus, function (i, record) {
if (record['flid'] !== 'C') {
navbarQuerms.push(record);
}
var data = {
id: record["mkid"],
text: record["mkmc"],
pid: record["fmkid"],
data: record,
state: "open",
url: record["url"],
children: [],
iconCls: record["icon"]||iconCls[record["flid"]]
};
if (data.url ==="") {
data["state"] = "closed";
}
datas.push(data);
hash[data["id"]] = data;
});
$.each(datas, function (i, data) {
var hashVP = hash[data["pid"]];
if (hashVP) {
!hashVP["children"] && (hashVP["children"] = []);
hashVP["children"].push(data);
} else {
treeData.push(data);
}
});
$.each(result.data.mk, function (i, record) {
if (record['flid'] !== 'C') {
navConfigInformation[record["mkid"]]=record
}
});
var allPanel = $("#RightAccordion").iAccordion('panels');
var size = allPanel.length;
if (size > 0) {
for (i = 0; i < size; i++) {
var index = $("#RightAccordion").iAccordion('getPanelIndex', allPanel[i]);
$("#RightAccordion").iAccordion('remove', 0);
}
}
$('#RightAccordion').iAccordion({
onAdd:function (title,index) {
var obj=$(this).accordion('getPanel',index);
var opt=obj.data("panel").options;
if(opt.iconCls&&opt.iconCls.length>64){
var t=obj.prev(".panel-header").find(".panel-icon").removeClass();
t.addClass("panel-icon");
obj.prev(".panel-header").find(".panel-icon").append("<img style='margin-top:-6px;width: 16px;height: 16px' src='"+opt["iconCls"]+"'>");
}
}
});
$.each(treeData, function (i, e) {// 循环创建手风琴的项
var pid = e.pid;
var isSelected = i == 0 ? true : false;
$('#RightAccordion').iAccordion('add', {
fit: false,
title: e.text,
content: "<ul id='tree" + e.id + "' ></ul>",
border: false,
selected: isSelected,
iconCls: e.iconCls,
});
$.parser.parse();
var childrens = e.children || [];
$("#tree" + e.id).tree({
data: childrens,
lines: false,
animate: true,
onBeforeExpand: function (node, param) {
$("#tree" + e.id).tree('options').url = node.url;
},
onClick: function (node) {
if (node.url) {
addTab('tabs', node.text, node.url, node);
} else {
if (node.state == "closed") {
$("#tree" + e.id).tree('expand', node.target);
} else if (node.state == 'open') {
$("#tree" + e.id).tree('collapse', node.target);
}
}
},
onLoadSuccess:function (row, data) {
var that=$(this);
$.each(data,function (i,item) {
if(item["iconCls"]&&item["iconCls"].length>64){
$(that.find("li")[i]).find("span.tree-icon").replaceWith("<img style='width: 16px;height: 16px' src='"+item["iconCls"]+"'>")
}
})
}
});
});
/*搜索框*/
searcher(navbarQuerms);
var uri = result.data["homePage"];
var homeName = result.data["homeName"] || "首页";
if ( !!uri ){
if ($('#tabs').iTabs('exists', homeName)) {
$('#tabs').iTabs('close', homeName);
}
moduleloader.load("datagrid", function(){
$('#tabs').iTabs('add', {
title: homeName,
href: smkurl||uri,
id:smkid||result.data["homeMkid"],
data:{
id:smkid||result.data["homeMkid"],
mkid:smkid||result.data["homeMkid"]
},
});
});
}
});
$("#gotoHomeTab").on('click', function () {
$("#tabs").tabs("select", "首页");
});
$('#tabs').iTabs({
onSelect: function (title, index) {
},
onClose: function (title, index) {
},
fit: true,
tools: [{
iconCls: 'fa fa-arrows-alt',
handler: function () {
openFullscreen(document.body);
exitFullScreen();
}
},{
iconCls: 'fa fa-home',
handler: function () {
$('#tabs').iTabs('select', 0);
}
}, {
iconCls: 'fa fa-chevron-circle-left',
handler: function () {
var p = $("#index_layout").iLayout("panel", "west")[0].clientWidth;
if (p > 0) {
$('#index_layout').iLayout('collapse', 'west');
//$(this).children('span').removeClass('fa-chevron-circle-left').addClass('fa-chevron-circle-right');
} else {
$('#index_layout').iLayout('expand', 'west');
/* $(this).children('span').removeClass('fa-chevron-circle-right').addClass('fa-chevron-circle-left');*/
}
}
}, {
iconCls: 'fa fa-close',
handler: function () {
/* var index = $('#tabs').iTabs('getTabIndex', $('#tabs').iTabs('getSelected'));
var tab = $('#tabs').iTabs('getTab', index);
if (tab.iPanel('options').closable) {
$('#tabs').iTabs('close', index);
}*/
var tablist=$('#tabs').iTabs('tabs');
for(var i=tablist.length-1;i>0;i--){
$('#tabs').iTabs('close',i);
}
}
}],
//监听右键事件,创建右键菜单
onContextMenu: function (e, title, index) {
e.preventDefault();
if (index >= 0) {
$('#mm').iMenu('show', {
left: e.pageX,
top: e.pageY
}).data("tabTitle", title);
}
}
});
$(".collapseMenu").on("click", function () {
var p = $("#index_layout").iLayout("panel", "west")[0].clientWidth;
if (p > 0) {
$('#index_layout').iLayout('collapse', 'west');
//$(this).children('span').removeClass('fa-chevron-circle-left').addClass('fa-chevron-circle-right');
} else {
$('#index_layout').iLayout('expand', 'west');
$(this).children('span').removeClass('fa-chevron-circle-right').addClass('fa-chevron-circle-left');
}
});
$("#setThemes").unbind().bind('click',function () {
$("#themeStyle").dialog({
title: '设置主题风格',
}).dialog('open');
});
// 保存主题
$(".guiTheme").unbind().bind("click", function () {
var theme = $('input[name="themes"]:checked').val();
var menu = $('input[name="menustyle"]:checked').val();
var topmenu = $('input[name="topmenu"]').is(':checked');
$.post("/json/response/success.json", {
theme: theme,
menu: menu,
topmenu: topmenu
}, function (data) {
changeTheme(theme);
//window.location.reload();
}, "json");
});
// 修改密码窗口
$('#pwdDialog').iDialog({
buttons: [{
text: '确定',
iconCls: 'fa fa-save',
btnCls: 'gui-btn',
handler: function () {
if ($('#pwdDialog').form('validate')) {
if ($("#newPassword").val().length < 6) {
$.iMessager.alert('警告', '新密码长度不能小于6位', 'messager-warning');
} else {
var formData = DataBind.collectData($('#pwdDialog'));
if( formData["newPassword"]!=formData["newPasswordConfirm"] ){
$.iMessager.alert("提示信息", "两次密码输入不一致");
return false;
}
$.ajax({
url: 'kzzx/user/password/update',
type: 'post',
cache: false,
data: JSON.stringify(formData),
dataType: "json",
contentType:'application/json;charset=utf-8',
beforeSend: function () {
$.iMessager.progress({
text: '正在操作...'
});
},
success: function (data, response, status) {
$.iMessager.progress('close');
if (data['success']) {
$.iMessager.show({
title: '提示',
msg: '操作成功'
});
$("#pwdDialog").iDialog('close').form('reset');
window.location.href ="logout";
} else {
$.iMessager.alert('操作失败!', data['message']||'未知错误或没有任何修改,请重试!', 'messager-error');
}
}
});
}
}
}
}],
onOpen: function () {
$(this).panel('refresh');
}
});
fnGetSystemInfo();
});
//新建tab窗口
function addTab(tabsId, title, url, data,type) {
var dataOps=data["data"]?data["data"]:data;
dataOps=navConfigInformation[dataOps["mkid"]];
if(dataOps){
var tabType=(type&&type=="s")&&dataOps["opentype"];
if(tabType=="1"){window.open(data.url,"target");}
else{
if(dataOps&&dataOps["flid"]&&dataOps["flid"]==="F"){
var $tabs = $('#' + tabsId);
var tabMkid=data.id||data.mkid;
if ($tabs.iTabs('exists', tabMkid)) {
$tabs.iTabs('select', tabMkid);
} else {
if (url[0] == '/') {
url = url.substr(1, url.length - 1)
}
$tabs.iTabs('add', {
title: title,
data: data,
href: url,
closable: true,
id:tabMkid
})
}
}
}
}
}
// Tab菜单操作
function tabMenuOprate(menu, type) {
var allTabs = $('#tabs').iTabs('tabs');
var allTabtitle = [];
$.each(allTabs, function (i, n) {
var opt = $(n).iPanel('options');
if (opt.closable)
allTabtitle.push(opt.title);
});
var curTabTitle = $(menu).data("tabTitle");
var curTabIndex = $('#tabs').iTabs("getTabIndex", $('#tabs').iTabs("getTab", curTabTitle));
switch (type) {
case "1"://关闭当前
if (curTabIndex > 0) {
$('#tabs').iTabs("close", curTabTitle);
return false;
break;
} else {
$.iMessager.show({
title: '操作提示',
msg: '首页不允许关闭!'
});
break;
}
case "2"://全部关闭
for (var i = 0; i < allTabtitle.length; i++) {
$('#tabs').iTabs('close', allTabtitle[i]);
}
break;
case "3"://除此之外全部关闭
for (var i = 0; i < allTabtitle.length; i++) {
if (curTabTitle != allTabtitle[i])
$('#tabs').iTabs('close', allTabtitle[i]);
}
$('#tabs').iTabs('select', curTabTitle);
break;
case "4"://当前侧面右边
for (var i = curTabIndex; i < allTabtitle.length; i++) {
$('#tabs').iTabs('close', allTabtitle[i]);
}
$('#tabs').iTabs('select', curTabTitle);
break;
case "5": //当前侧面左边
for (var i = 0; i < curTabIndex - 1; i++) {
$('#tabs').iTabs('close', allTabtitle[i]);
}
$('#tabs').iTabs('select', curTabTitle);
break;
case "6": //刷新
var refresh_tab = $('#tabs').iTabs('getSelected');
var refresh_iframe = refresh_tab.find('iframe')[0];
refresh_iframe.contentWindow.location.href = refresh_iframe.src;
//$('#tabs').trigger(gui.eventType.initUI.base);
break;
}
}
/**
* 更换页面风格
* @param guiThemeName
*/
function changeTheme(themeName) {/* 更换主题 */
var $dynamicTheme = $('#dynamicTheme');
var themeHref = $dynamicTheme.attr('href');
var themeHrefNew = themeHref.substring(0, themeHref.indexOf('themes')) + 'themes/default/gui.' + themeName + '.css';
// 更换主页面风格
$dynamicTheme.attr('href', themeHrefNew);
// 更换iframe页面风格
/*var $iframe = $('iframe');
if ($iframe.length > 0) {
for (var i = 1; i < $iframe.length; i++) {
var ifr = $iframe[i];
var $iframeDynamicTheme = $(ifr).contents().find('#dynamicTheme');
var iframeThemeHref = $iframeDynamicTheme.attr('href');
var iframeThemeHrefNew = iframeThemeHref.substring(0, iframeThemeHref.indexOf('themes')) + 'themes/default/gui.' + themeName + '.css';
$iframeDynamicTheme.attr('href', iframeThemeHrefNew);
}
}*/
$.cookie('guiThemeName', themeName, {
expires: 7,
path: '/'
});
}
if ($.cookie('guiThemeName')) {
changeTheme($.cookie('guiThemeName'));
}
/**
* 更换form风格
* @param guiFormThemeName
*/
function changeFormTheme(themeName) {/* 更换主题 */
var $dynamicTheme = $('#formTheme');
var themeHref = $dynamicTheme.attr('href');
var type=1;
var text=$(themeName).find(".menu-text").text();
var css={
1:'border',
2:'bottom'
};
if(text=="表单(无边框)"){
$(themeName).find(".menu-text").text("表单(有边框)");
type=2;
}else{
$(themeName).find(".menu-text").text("表单(无边框)");
type=1;
}
var themeHrefNew = themeHref.substring(0, themeHref.indexOf('themes')) + 'themes/default/gui.' + css[type] + '.css';
// 更换主页面风格
$dynamicTheme.attr('href', themeHrefNew);
$.cookie('formTheme', type, {
expires: 7,
path: '/'
});
}
function updateFormTheme(themeName) {/* 更换主题 */
var $dynamicTheme = $('#formTheme');
var themeHref = $dynamicTheme.attr('href');
var css={
1:'border',
2:'bottom'
};
if(themeName=="1"){
$(themeName).find(".menu-text").text("表单(有边框)");
}else{
$(themeName).find(".menu-text").text("表单(无边框)")
}
var themeHrefNew = themeHref.substring(0, themeHref.indexOf('themes')) + 'themes/default/gui.' + css[themeName] + '.css';
// 更换主页面风格
$dynamicTheme.attr('href', themeHrefNew);
$.cookie('formTheme', themeName, {
expires: 7,
path: '/'
});
}
// if ($.cookie('formTheme')) {
// updateFormTheme($.cookie('formTheme'));
// }
function addCssByLink(url) {
var doc = document;
var link = doc.createElement("link");
link.setAttribute("rel", "stylesheet");
link.setAttribute("type", "text/css");
link.setAttribute("href", url);
var heads = doc.getElementsByTagName("head");
if (heads.length)
heads[0].appendChild(link);
else
doc.documentElement.appendChild(link);
}
// 退出系统
function logout() {
$.iMessager.confirm('提示', '确定要退出吗?', function (r) {
if (r) {
localStorage.clear();
$.iMessager.progress({
text: '正在退出中...'
});
window.location.href ="logout";
}
});
}
//跳转工单系统
function support() {
window.open("redirect/support", "_blank");
}
function addParentTab(options) {
var src, title;
src = options.href;
title = options.title;
var iframe = '<iframe src="' + src + '" frameborder="0" style="border:0;width:100%;height:100%;"></iframe>';
parent.$('#tabs').iTabs("add", {
title: title,
content: iframe,
closable: true,
iconCls: 'fa fa-th',
border: true
});
}
function modifyPwd() {
$("#pwdDialog").iDialog('open');
}
function openFullscreen(element) {
if (element.requestFullscreen) {
element.requestFullscreen();
} else if (element.mozRequestFullScreen) {
element.mozRequestFullScreen();
} else if (element.msRequestFullscreen) {
element.msRequestFullscreen();
} else if (element.webkitRequestFullscreen) {
element.webkitRequestFullScreen();
}
}
//退出全屏方法
function exitFullScreen() {
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.msExitFullscreen) {
document.msExiFullscreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
} else if (document.webkitExitFullscreen) {
document.webkitExitFullscreen();
}
}
//判断浏览器类型
function myBrowser() {
var userAgent = navigator.userAgent;
var isOpera = userAgent.indexOf("Opera") > -1;
var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera;
var isFF = userAgent.indexOf("Firefox") > -1;
var isSafari = userAgent.indexOf("Safari") > -1;
if (userAgent.indexOf("Chrome") > -1) {
return "Chrome";
}
if (isIE) {
var IE5 = IE55 = IE6 = IE7 = IE8 = false;
var reIE = new RegExp("MSIE (\\d+\\.\\d+);");
reIE.test(userAgent);
var fIEVersion = parseFloat(RegExp["$1"]);
IE55 = fIEVersion == 5.5;
IE6 = fIEVersion == 6.0;
IE7 = fIEVersion == 7.0;
IE8 = fIEVersion == 8.0;
if (IE55) {
return "I";
}
if (IE6) {
return "I";
}
if (IE7) {
return "I";
}
if (IE8) {
return "I";
}
}
}
//搜索框
var dropindex=-1
var dropdownnum=-30
function searcher(navbarQuerms) {
$('.aliyun-common-search-input-elem').unbind().bind('keyup', function (event) {
// 38up
//40down
var searchText = $(this).val();
$('.aliyun-common-search-dropdown').addClass('open');
$('.dropdown-list').html('');
$('dropdown-list').css('z-index', '999999');
$.each(navbarQuerms, function (i, title) {
if (searchText == "" || title['mkmc'].indexOf(searchText) != -1) {
var li = $('<li><a>' + title['mkmc'] + '</a></li>');
$(li).data('data', title);
$('.dropdown-list').append(li);
}
});
event.stopPropagation();
$('.dropdown-list').find('a').each(function (e) {
$(this).click(function (e) {
event.stopPropagation();
var node = $(this).closest('li').data('data');
var text = $(this).text();
$('.aliyun-common-search-input-elem').val(text);
node.id=node.mkid;
addTab('tabs', node.mkmc, node.url, node,"s");
$('.aliyun-common-search-dropdown').removeClass('open');
})
})
let droplists=[]
droplists=$('.dropdown-list').find('a')
if(event.keyCode==40&&(dropindex<droplists.length-1)){
dropindex++
$(".aliyun-common-search-dropdown").scrollTop(dropdownnum+=30)
droplists[dropindex].style.color="Aqua"
}else if(event.keyCode==38&&(dropindex>0)){
dropindex--
droplists[dropindex].style.color="Aqua"
$(".aliyun-common-search-dropdown").scrollTop(dropdownnum-=30)
}else if(event.keyCode==38&&(dropindex<0)){
dropindex=droplists.length-1
droplists[dropindex].style.color="Aqua"
}else if(event.keyCode==13&&droplists[dropindex])
{
droplists[dropindex].click()
}else{
dropindex=-1
dropdownnum=-30
}
});
$(".aliyun-common-search-container").on("focus", "input", function () {
$('.aliyun-common-search-dropdown').addClass('open');
$('.aliyun-common-search-input-elem').keyup();
}).on("blur", "input", function () {
/* $('.aliyun-common-search-dropdown').removeClass('open');*/
});
$('#su').unbind().bind('click', function () {
$('.aliyun-common-search-input-elem').keyup();
});
$(document).click(function () {
$('.aliyun-common-search-dropdown').removeClass('open');
});
$(".aliyun-common-search-container").click(function (event) {
event.stopPropagation();
});
}
//获取系统参数
function fnGetSystemInfo() {
HTTP.post("systeminfo",{},function(res){
if(res.success&&res.data.records){
gas.conditionExpand=res.data.records.conditionExpand;
}
},null,false);
}
<!DOCTYPE html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<link rel="SHORTCUT ICON" href="images/logo.ico"/>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="lib/gui/gui/css/gui.bootstarp.min.css">
<link rel="stylesheet" type="text/css" href="lib/gui/gui/themes/default/gui.bluelighter.css" id="dynamicTheme"/>
<link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css">
<link rel="stylesheet" type="text/css" href="lib/gui/static/public/css/font.css"/>
<link rel="stylesheet" type="text/css" href="lib/gui/gui/css/gui.index.css">
<link rel="stylesheet" type="text/css" href="lib/webuploader/webuploader.css">
<link rel="stylesheet" type="text/css" href="lib/gui/gui/css/animate.min.css">
<link rel="stylesheet" type="text/css" href="lib/doublebox-boostrap/css/bootstrap-glyphicons.css"/>
<link rel="stylesheet" type="text/css" href="lib/doublebox-boostrap/css/doublebox.css"/>
<link rel="stylesheet" type="text/css" href="lib/doublebox-boostrap/css/doublebox-bootstrap.css"/>
<link rel="stylesheet" type="text/css" href="lib/zTree_v3/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="lib/codebase/webix/webix.css?v=6.3.1" />
<link rel="stylesheet" type="text/css" href="lib/codebase/spreadsheet.css?v=6.3.1">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/elfinder.full.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div data-toggle="gui-layout" data-options="id:'index_layout',fit:true" style="width: 100%;">
<div id="north" class="banner" data-options="region:'north',border:false,split:false"
style="height: 50px; padding:0;margin:0; overflow: hidden;">
<table style="float:left;border-spacing:0;">
<tr>
<td style="font-size: 24px;line-height: 42px;"><img src="images/logo.ico" alt="gavel" style="width: 32px;height: 32px;margin-left: 8px">
<span class="header-txt" style="vertical-align: middle"></span>
</td>
</tr>
</table>
<span style="float:right; padding-right: 10px; height: 50px; line-height: 50px;">
<span id="indexMessageLabel" class="" style="cursor:pointer;height: 50px;padding-right: 10px;">消息
<a title="消息" class="fa fa-bell " href="#" style="display: inline-block;color: #fff;position: relative;padding-right: 15px;text-decoration: none;">
<label id="indexMessageLabelNum" class="label label-danger" style="display: inline-block;background-color: red;min-width: 12px;text-align: center;position: absolute;left:10px;top:-5px;border-radius:40%;display: none;">0</label>
</a>
</span>
<!-- <a href="javascript:void(0)" onclick="support()" id="support" class="gui-menubutton"
data-options="hasDownArrow:false" style="color:#fff;padding: 0;text-align: center;width: 70px;">工单系统</a> -->
<a href="javascript:void(0)" id="mb3" class="gui-menubutton"
data-options="menu:'#mm3',iconCls:'fa fa-user',hasDownArrow:true" style="color:#fff;">用户</a>
<div id="mm3" style="width:74px;">
<div data-options="iconCls:'fa fa-sign',hasDownArrow:false" onclick="support()">工单系统</div>
<div data-options="iconCls:'fa fa-key'" onclick="javascript:modifyPwd(0)">修改密码</div>
<div data-options="iconCls:'fa fa-sign-out',hasDownArrow:false" onclick="logout()">注销</div>
</div>
<a href="javascript:void(0)" id="mb2" class="gui-menubutton"
data-options="menu:'#mm2',iconCls:'fa fa-tree',hasDownArrow:true" style="color:#fff;"
onclick="javascript:void(0)">主题</a>
<div id="mm2" style="width:180px;">
<div data-options="iconCls:'fa fa-tree blue'" onclick="changeTheme('bluelighter')">默认主题</div>
<div data-options="iconCls:'fa fa-tree'" onclick="changeTheme('black')">黑色主题</div>
<div data-options="iconCls:'fa fa-tree'" onclick="changeTheme('blacklight')">黑色主题-亮</div>
<div data-options="iconCls:'fa fa-tree red'" onclick="changeTheme('red')">红色主题</div>
<div data-options="iconCls:'fa fa-tree red'" onclick="changeTheme('redlight')">红色主题-亮</div>
<div data-options="iconCls:'fa fa-tree green'" onclick="changeTheme('green')">绿色主题</div>
<div data-options="iconCls:'fa fa-tree green'" onclick="changeTheme('greenlight')">绿色主题-亮</div>
<div data-options="iconCls:'fa fa-tree purple'" onclick="changeTheme('purple')">紫色主题</div>
<div data-options="iconCls:'fa fa-tree purple'" onclick="changeTheme('purplelight')">紫色主题-亮</div>
<div data-options="iconCls:'fa fa-tree blue'" onclick="changeTheme('blue')">蓝色主题</div>
<div data-options="iconCls:'fa fa-tree blue'" onclick="changeTheme('bluelight')">蓝色主题-亮</div>
<div data-options="iconCls:'fa fa-tree orange'" onclick="changeTheme('yellow')">橙色主题</div>
<div data-options="iconCls:'fa fa-tree orange'" onclick="changeTheme('yellowlight')">橙色主题-亮</div>
</div>
<!-- <a href="javascript:void(0)" onclick="logout()" class="gui-menubutton"
data-options="iconCls:'fa fa-sign-out',hasDownArrow:false" style="color:#fff;">注销</a> -->
</span>
<div style="position: fixed;z-index: 1030!important;float:right;right: 28%;margin-top: 12px">
<div class="aliyun-common-search-container">
<input class="aliyun-common-search-input-elem" id="searchIndex" placeholder="搜索">
<div class="aliyun-common-search-close" style="display: none;"></div>
<div class="aliyun-common-search-icon" id="su"></div>
<div class="aliyun-common-search-outline"></div>
<div class="aliyun-common-search-dropdown">
<ul class="dropdown-list" style="height:auto"></ul>
</div>
</div>
</div>
</div>
<div id="west"
data-options="region:'west',split:true,width:230,border:false,headerCls:'border_right',bodyCls:'border_right'"
title="" iconCls="fa fa-dashboard">
<div id="RightAccordion" data-toggle="gui-accordion"></div>
</div>
<div id="center" data-options="region:'center',border:false,split:true"
style="overflow:hidden;padding-right: 6px;padding-bottom:4px;">
<div id="tabs" style="width:100%;height:100%">
</div>
</div>
<div id="themeStyle" data-options="iconCls:'fa fa-tree'" style="display:none;width:600px;height:340px">
<table style="width:100%; padding:20px; line-height:30px;text-align:center;">
<tr>
<td>
<div class="skin-common skin-black"></div>
<input type="radio" name="themes" value="black" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-red"></div>
<input type="radio" name="themes" value="red" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-green"></div>
<input type="radio" name="themes" value="green" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-purple"></div>
<input type="radio" name="themes" value="purple" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-blue"></div>
<input type="radio" name="themes" value="blue" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-yellow"></div>
<input type="radio" name="themes" value="yellow" class="guiTheme"/>
</td>
</tr>
<tr>
<td>
<div class="skin-common skin-blacklight"></div>
<input type="radio" name="themes" value="blacklight" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-redlight"></div>
<input type="radio" name="themes" value="redlight" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-greenlight"></div>
<input type="radio" name="themes" value="greenlight" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-purplelight"></div>
<input type="radio" name="themes" value="purplelight" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-bluelight"></div>
<input type="radio" name="themes" value="bluelight" class="guiTheme"/>
</td>
<td>
<div class="skin-common skin-yellowlight"></div>
<input type="radio" name="themes" value="yellowlight" class="guiTheme"/>
</td>
</tr>
</table>
<table style="width: 100%; padding: 20px; line-height: 30px; text-align: center;">
<tr>
<td>
<input type="radio" name="menustyle" value="accordion" checked="checked"/>手风琴
<td>
<input type="radio" name="menustyle" value="tree"/>树形
</td>
<td>
<input type="checkbox" checked="checked" name="topmenu" value="topmenu"/>开启顶部菜单
</td>
</tr>
</table>
</div>
<form id="pwdDialog" class="hidden"
data-options="title: '&nbsp;&nbsp;修改密码',
iconCls:'fa fa-key',
width: 500,
height: 260">
<div class="gui-fluid editTable">
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label" for="">旧密码:</label>
<div class="gui-input-block">
<input type="text" name="oldPassword" id="oldPassword" data-toggle="gui-passwordbox"
data-options="required:true" style="width: 100%">
</div>
</div>
</div>
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label">新密码:</label>
<div class="gui-input-block">
<input type="text" name="newPassword" id="newPassword" data-toggle="gui-passwordbox"
data-options="required:true" style="width: 100%">
</div>
</div>
</div>
<div class="gui-row">
<div class="gui-col-sm12">
<label class="gui-form-label">新密码确认:</label>
<div class="gui-input-block">
<input type="text" name="newPasswordConfirm" id="newPasswordConfirm"
data-toggle="gui-passwordbox" data-options="required:true" style="width: 100%;">
</div>
</div>
</div>
</div>
</form>
</div>
</body>
<!--easyui框架-->
<script language="JavaScript" type="text/javascript" src="lib/easyui/jquery.min.js" charset="utf-8"></script>
<script language="JavaScript" type="text/javascript" src="lib/easyui/jquery.easyui.min.js" charset="utf-8"></script>
<script language="JavaScript" type="text/javascript" src="lib/easyui/locale/easyui-lang-zh_CN.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/easyui/extension/datagrid-cellediting.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/easyui/plugins/datagrid-detailview.js"></script>
<!--support es6 promise-->
<script language="JavaScript" type="text/javascript" src="js/common/bluebird.js"></script>
<!--common js-->
<script language="JavaScript" type="text/javascript" src="js/common/json2.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/common.js?v=1.1"></script>
<script language="JavaScript" type="text/javascript" src="js/common/http.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/databind.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/DateUtils.js"></script>
<!--拓展js-->
<script language="JavaScript" type="text/javascript" src="js/extension/detaildatagrid.js"></script>
<script language="JavaScript" type="text/javascript" src="js/extension/auxinput.js"></script>
<script language="JavaScript" type="text/javascript" src="js/extension/treeSearch.js"></script>
<script language="JavaScript" type="text/javascript" src="js/extension/dialog.js"></script>
<script language="JavaScript" type="text/javascript" src="js/extension/jquery.lazyload.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/extension/jquery.scrollstop.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/extension/jquery.magnific-popup.min.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/jquery.cookie.js"></script>
<!-- layui框架js -->
<script type="text/javascript" src="lib/layui/layui.js" charset="utf-8"></script>
<!--<script language="JavaScript" type="text/javascript" src="lib/layer/layer.js"></script>-->
<!-- gui框架配置-->
<script type="text/javascript" src="lib/gui/static/plugins/jquery/jquery.cookie.js"></script>
<script type="text/javascript" src="lib/gui/static/public/js/gui.config.js"></script>
<script type="text/javascript" src="lib/gui/gui/js/gui.js?v=1.1"></script>
<script type="text/javascript" src="lib/gui/gui/js/moduleloader.js"></script>
<script type="text/javascript" src="lib/gui/gui/js/locale/gui.lang.zh_CN.js"></script>
<!-- <script type="text/javascript" src="lib/gui/static/public/js/gui.home.js" charset="utf-8"></script> -->
<script type="text/javascript" src="lib/gui/static/plugins/gui/gui.function.js"></script>
<!-- 独立homejs -->
<script language="JavaScript" type="text/javascript" src="js/kmeshome.js"></script>
<!--基于GUI的拓展js-->
<script language="JavaScript" type="text/javascript" src="js/common/public.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/gui/gui/js/extension/datagrid-dnd.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/gui/gui/js/extension/treegrid-dnd.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/gui/gui/js/plugins/combobox.js"></script>
<script language="JavaScript" type="text/javascript" src="js/workflow.js?v=1"></script>
<script language="JavaScript" type="text/javascript" src="js/container.js"></script>
<script language="JavaScript" type="text/javascript" src="js/holder.js"></script>
<script language="JavaScript" type="text/javascript" src="js/combobox.js"></script>
<script language="JavaScript" type="text/javascript" src="js/auxiliary.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/datagride.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/timer.js"></script>
<!--mock数据-->
<script language="JavaScript" type="text/javascript" src="mock/mock.js"></script>
<!--webuploader附件上传-->
<script type="text/javascript" src="lib/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="views/common/attachment/uploader.js"></script>
<!--doublebox左右交换-->
<script type="text/javascript" src="lib/doublebox-boostrap/js/doublebox-bootstrap.js"></script>
<!--ztree树-->
<script type="text/javascript" src="lib/zTree_v3/js/jquery.ztree.core.js"></script>
<!--webix-数据表 -->
<script language="JavaScript" type="text/javascript" src="lib/codebase/webix/webix.js?v=6.3.1"></script>
<script language="JavaScript" type="text/javascript" src="lib/codebase/spreadsheet.js?v=6.3.1"></script>
<!--PDf在线预览-->
<script language="JavaScript" type="text/javascript" src="lib/pdfjs/build/pdf.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/pdfjs/web/viewer.js"></script>
<script src="lib/vue/plugin/lib/vue.min.js"></script>
<!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 拖拽测试 -->
<script src="https://www.itxst.com/package/vue/vue.min.js"></script>
<script src="js/zdytz/sortable.js"></script>
<script src="js/zdytz/vuedraggable.js"></script>
<!-- 引入组件库 -->
<script src="lib/vue/plugin/element-ui/index.js"></script>
<script src="lib/vue/plugin/lib/axios/axios.min.js"></script>
<script src="lib/vue/plugin/lib/axios/es6-promise.min.js"></script>
<script src="lib/vue/plugin/lib/axios/es6-promise.auto.min.js"></script>
<!--专用js-->
<script language="JavaScript" type="text/javascript" src="js/project/function.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/gui/static/plugins/echarts/echarts.min.js"></script>
<!-- -->
<script src="js/webSocket.js"></script>
<script>
$(function (){
var notifySocket=new gavelWebSocket(function (msg) {
if (msg && msg.type && msg.data){
if (msg.type == "info")
gas.showTips(msg.data);
else if (msg.type == "warning")
gas.showWarning(msg.data);
else if(msg.type == "error")
gas.showError(msg.data);
}
});
var $lblMessageNum = $("#indexMessageLabelNum");
var $lblMessage = $("#indexMessageLabel");
// 根据权限判断是否显示消息
function apihidexxtb(){
let isShow=window.isShow
if(isShow){
$lblMessage.show()
}else{
$lblMessage.hide()
}
}
// 获取消息数量
function apiGetinfornum(){
gas.post('message/msginfo/unread/count',{}, function(res){
if(res.data&&res.data.data){
console.log(res.data.data)
if(res.data.data==0){
$lblMessageNum.hide()
}else if(res.data.data<100){
$lblMessageNum.show()
$lblMessageNum.text(res.data.data)
}else{
$lblMessageNum.show()
$lblMessageNum.text("99+")
}
}
});
}
$lblMessage.click(function(){
let node={
mkid: "2502020001",
}
addTab('tabs','我的消息',"message/msginfo/index",node);
})
apihidexxtb()
apiGetinfornum()
let getinfornum=setInterval(
function(){
apiGetinfornum()
},60000
)
});
</script>
</html>
......@@ -3,12 +3,13 @@
<link rel="stylesheet" type="text/css" href="css/zpfk.css"/>
<style type="text/css">
.errdialog{
width: 35%;
min-width:35%;
/* width: 35%; */
height: 40px;
text-align: center;
line-height: 40px;
position: absolute;
top: 100px;
top: 50px;
right: 50%;
color: #FFFFFF;
background-color: rgba(255,0,0,0.5);
......@@ -41,7 +42,6 @@
/* 通用代码 */
/* 大屏内部弹框 */
function screenAlert(dom,msg,timeNum){
debugger
let getdom=$(dom)
getdom.css('position','relative')
let dialog="<div class='errdialog'>"+msg+"</div>"
......@@ -84,7 +84,7 @@
function zpfk_hqlx(e){
let that=e
return new Promise(function(y,n){
gas.post('kmes/gpfk/querySmlx ',{"wosnid":that.xlh}, function(res){
gas.post('kmes/gpfk/querySmlx ',{"wosnid":that.xlh,"bzlx":window.bzlx||"无"}, function(res){
if(res.data&&res.data.records){
let getinfor=res.data.records
y(getinfor.id||"")}
......@@ -97,12 +97,21 @@
/* 扫描物料 */
function zpfk_wlxh(z){
let that =z
gas.post('kmes/gphy/zpwl ',{"wlxh":that.xlh,"djid":that.gd}, function(res){
if(!that.gd){
let msg="请先扫描工单序列号,获取工单号"
screenAlert(that.el,msg,2000)
zpfk_wrz(that,msg,'error')
return false
}
gas.post('kmes/gphy/zpwl',{"wlxh":that.xlh}, function(res){
if(res.data&&res.data.records){
/* 表格加1 ok标志改变 日志 */
}else{
let msg="查询装配物料:"+that.xlh+"失败"
zpfk_wrz(that,msg,"error")
}
});
})
}
/* 获取工序工单等信息 */
function zpfk_queryKwellWoinfo(e){
......@@ -110,6 +119,8 @@
return new Promise(function(y,n){
gas.post('kmes/gpfk/queryKwellWoinfo',{"wosnid":that.xlh}, function(res){
if(res.data&&res.data.records){
let msg="查询工单信息:"+that.xlh+"成功"
zpfk_wrz(that,msg)
/* 赋值操作 */
that.gd = res.data.records.djid;
that.cpsn = res.data.records.wosnCode;
......@@ -120,6 +131,11 @@
/* 日志操作 */
/* pdf地址 */
}else{
let msg="查询工单信息:"+that.xlh+"失败"
that.xlh=""
zpfk_wrz(that,msg,'error')
screenAlert(that.el,msg,2000)
}
});
})
......@@ -130,13 +146,20 @@
that.xlh=""
gas.post('kmes/gpfk/queryWoBomByWoid',{"woid":woid}, function(res){
if(res.data&&res.data.records){
let msg="查询装配表格:"+woid+"成功"
zpfk_wrz(that,msg)
that.tabdata = res.data.records;
that.initpage()
}else{
let msg="查询装配表格:"+woid+"失败"
zpfk_wrz(that,msg,'error')
screenAlert(that.el,msg,2000)
}
});
}
/* pdfshow gxid登录页传进来 */
function zpfk_pdfshow(e,woid){
console.log("pdf")
let that=e
let newPdfurl=that.pdfurl+"?woid="+woid+"&&"+"gxid="+window.gxid||"nogxid"
if (newpdfurl!=that.pdfurl){
......@@ -152,10 +175,11 @@
/* 总体扫描封装 */
function zpfk_zpfk(t){
let that=t
zpfk_hqlx(that).then(function(e){
zpfk_hqlx(that).then(function(e){
if(e=="WOSNID"){
let msg="正在查询WOSNID:"+that.xlh
zpfk_wrz(that,msg)
zpfk_queryKwellWoinfo(that).then(function(s){
console.log(s)
zpfk_queryWoBomByWoid(that,s)
zpfk_pdfshow(that,s)
})
......@@ -164,10 +188,19 @@
}else if(e=="NGBZ"){
that.okOrng="N"
}else if(e=="WLID"){
let msg="正在查询WLID:"+that.xlh
zpfk_wrz(that,msg)
zpfk_wlxh(that)
}else if(e=="LOGOUT"){
zpfk_wrz(that,"即将退出系统")
}
/* 获取类型 */
}).catch(function(){
})
.catch(function(e){
console.log(e)
let msg="无法识别该序列号:"+that.xlh
zpfk_wrz(that,msg,'error')
screenAlert(that.el,msg,2000)
that.xlh=""
})
}
......@@ -202,11 +235,18 @@
},20000)
}
/* 日志事件汇总,写在请求内部或者单独拿出 */
function zpfk_rzts1(o){
function zpfk_wrz(o,msg,type){
let that=o
$(that.el).find(".rz").append("<br>>" + "<span>" +"正在查询:"+that.xlh+"</sapn>")
that.addtop = that.addtop + 600
$(that.el).find(".rz").scrollTop(that.addtop)
if(type!='error'){
$(that.el).find(".rz").append("<br>>" + "<span>" +msg+"</sapn>")
that.addtop = that.addtop + 600
$(that.el).find(".rz").scrollTop(that.addtop)
}else{
$(that.el).find(".rz").append("<br>>" + "<span style='color: red;'>" +msg+"</sapn>")
that.addtop = that.addtop + 600
$(that.el).find(".rz").scrollTop(that.addtop)
}
/* this.xlh="" */
}
/* 弹框封装 */
......@@ -255,7 +295,6 @@
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div class="rz" style="width: 80%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
<span>>>Tips</span>
</div>
<div :class="okOrng=='OK'?'ok-item':'nok-item'"
style="width: 20%;height: 100%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
......@@ -330,8 +369,7 @@
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
<div class="rz" style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
</div>
</div>
</div>
......@@ -394,8 +432,8 @@
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
<div class="rz" style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
</div>
</div>
</div>
......@@ -418,13 +456,14 @@
let Vkwrkb01 = new Vue({
el: "#kwrkb01",
mounted() {
console.log("mounted")
pdfshow("pdf/dcAcess.pdf","kwrkb01pdf",20000)
this.initpage()
dbenlarge('kwrkb01', 1, this.initpage)
$(this.el).dblclick()
this.gettime()
this.isFocus()
this.appdestory()
screenAlert(this.el,'error',2000)
},
destroyed() {
clearInterval(this.sivdestory)
......@@ -458,7 +497,7 @@
zpfk_zpfk(that)
},
isFocus(){
let $xlh=$("#kwrkb01").find('input[name="xlh"]')
let $xlh=$(this.el).find('input[name="xlh"]')
$xlh.focus()
},
// 扫码事件
......@@ -466,11 +505,6 @@
var evt = window.event || e;
if (evt.keyCode == 13) {
this.apiscanxlh()
console.log(this.xlh)
$("#kwrkb01").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600
$("#kwrkb01").find(".rz").scrollTop(this.addtop)
/* this.xlh="" */
}
},
// 初始化页面
......@@ -497,11 +531,8 @@
let Vkwrkb02= new Vue({
el:"#kwrkb02",
mounted() {
dbenlarge('kwrkb02',0,this.initpage)
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb02").hide()
})
// $(this.el).hide()
dbenlarge('kwrkb02',1,this.initpage)
// this.sivpdf=
this.initpage()
this.gettime()
......@@ -533,6 +564,10 @@
}
},
methods:{
isFocus(){
let $xlh=$(this.el).find('input[name="xlh"]')
$xlh.focus()
},
// 扫码接口
apiscanxlh(){
let that=this
......@@ -543,7 +578,6 @@
var evt = window.event || e;
if (evt.keyCode == 13) {
this.apiscanxlh()
console.log(this.xlh)
$("#kwrkb02").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600
$("#kwrkb02").find(".rz").scrollTop(this.addtop)
......@@ -573,11 +607,7 @@
let Vkwrkb03= new Vue({
el:"#kwrkb03",
mounted() {
dbenlarge('kwrkb03',0,this.initpage)
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb03").hide()
})
dbenlarge('kwrkb03',1,this.initpage)
// this.sivpdf=
this.initpage()
this.gettime()
......@@ -609,6 +639,10 @@
}
},
methods:{
isFocus(){
let $xlh=$(this.el).find('input[name="xlh"]')
$xlh.focus()
},
// 扫码接口
apiscanxlh(){
let that=this
......@@ -619,7 +653,6 @@
var evt = window.event || e;
if (evt.keyCode == 13) {
this.apiscanxlh()
console.log(this.xlh)
$("#kwrkb03").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600
$("#kwrkb03").find(".rz").scrollTop(this.addtop)
......
......@@ -128,15 +128,13 @@
let bzgxsn=$gylx.val()
HTTP.post("kmes/gpfk/login ", {usersn:usersn,bzgxsn:bzgxsn}, function(result) {
if (result['success']) {
if(result.data.records.gylx=='ZP'){
}
else if(result.data.records.gylx=='JY'){
}
else if(result.data.records.gylx=='WX'){
}
// window.location.href = "index";
let mkurl=result.data.records.fkurl
let mkid=result.data.records.modulecode
let bzlx=result.data.records.id
window.bzlx=bzlx
let url="index#"+mkurl+";"+mkid+"+"+bzlx
window.location.href =url
} else {
$rygh.val("")
$gylx.val("")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment