Commit 8805bd7c authored by 李苏's avatar 李苏 💬

登录页面

parent ee4e91fd
let hash=location.hash
let hashindex=hash.indexOf(';')
let idindex=hash.indexOf('+')
let gxindex=hash.indexOf('!')
let smkurl=hash.substring(1,hashindex)
let smkid=hash.substring(hashindex+1,idindex)
let sbzlx=hash.substring(idindex+1,gxindex)
let gxname=hash.substring(gxindex+1,hash.length)
window.gxname=decodeURI(gxname)
window.bzlx=sbzlx
\ No newline at end of file
...@@ -35,9 +35,12 @@ $(function () { ...@@ -35,9 +35,12 @@ $(function () {
let hash=location.hash let hash=location.hash
let hashindex=hash.indexOf(';') let hashindex=hash.indexOf(';')
let idindex=hash.indexOf('+') let idindex=hash.indexOf('+')
let gxindex=hash.indexOf('!')
let smkurl=hash.substring(1,hashindex) let smkurl=hash.substring(1,hashindex)
let smkid=hash.substring(hashindex+1,idindex) let smkid=hash.substring(hashindex+1,idindex)
let sbzlx=hash.substring(idindex+1,hash.length) let sbzlx=hash.substring(idindex+1,gxindex)
let gxname=hash.substring(gxindex+1,hash.length)
console.log("gxname")
window.bzlx=sbzlx window.bzlx=sbzlx
HTTP.post("frame/init", {}, function (result) { HTTP.post("frame/init", {}, function (result) {
let isShow=false let isShow=false
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<link rel="stylesheet" type="text/css" href="css/reset.css"> <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/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/gui/gui/themes/default/gui.bluelighter.css" id="dynamicTheme"/>
<!-- <link rel="stylesheet" type="text/css" href="lib/gui/gui/themes/default/gui.border.css" id="formTheme"/>-->
<link rel="stylesheet" type="text/css" href="lib/layui/css/layui.css"> <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/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/gui/gui/css/gui.index.css">
...@@ -21,6 +22,7 @@ ...@@ -21,6 +22,7 @@
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css"> <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/elfinder.full.css">
<link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/erp.css">
</head> </head>
<body> <body>
<div data-toggle="gui-layout" data-options="id:'index_layout',fit:true" style="width: 100%;"> <div data-toggle="gui-layout" data-options="id:'index_layout',fit:true" style="width: 100%;">
...@@ -34,25 +36,19 @@ ...@@ -34,25 +36,19 @@
</tr> </tr>
</table> </table>
<span style="float:right; padding-right: 10px; height: 50px; line-height: 50px;"> <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 href="javascript:void(0)" onclick="support()" id="support" class="gui-menubutton"
<a title="消息" class="fa fa-bell " href="#" style="display: inline-block;color: #fff;position: relative;padding-right: 15px;text-decoration: none;"> data-options="iconCls:'fa', hasDownArrow:false" style="color:#fff;">工单系统</a>
<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" <a href="javascript:void(0)" id="mb3" class="gui-menubutton"
data-options="menu:'#mm3',iconCls:'fa fa-user',hasDownArrow:true" style="color:#fff;">用户</a> data-options="menu:'#mm3',iconCls:'fa fa-user',hasDownArrow:true" style="color:#fff;">用户</a>
<div id="mm3" style="width:74px;"> <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-key'" onclick="javascript:modifyPwd(0)">修改密码</div>
<div data-options="iconCls:'fa fa-sign-out',hasDownArrow:false" onclick="logout()">注销</div>
</div> </div>
<a href="javascript:void(0)" id="mb2" class="gui-menubutton" <a href="javascript:void(0)" id="mb2" class="gui-menubutton"
data-options="menu:'#mm2',iconCls:'fa fa-tree',hasDownArrow:true" style="color:#fff;" data-options="menu:'#mm2',iconCls:'fa fa-tree',hasDownArrow:true" style="color:#fff;"
onclick="javascript:void(0)">主题</a> onclick="javascript:void(0)">主题</a>|
<div id="mm2" style="width:180px;"> <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 blue'" onclick="changeTheme('bluelighter')">默认主题</div>
<div data-options="iconCls:'fa fa-tree '" onclick="changeFormTheme(this)">表单(无边框)</div>
<div data-options="iconCls:'fa fa-tree'" onclick="changeTheme('black')">黑色主题</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'" 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('red')">红色主题</div>
...@@ -63,15 +59,16 @@ ...@@ -63,15 +59,16 @@
<div data-options="iconCls:'fa fa-tree purple'" onclick="changeTheme('purplelight')">紫色主题-亮</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('blue')">蓝色主题</div>
<div data-options="iconCls:'fa fa-tree blue'" onclick="changeTheme('bluelight')">蓝色主题-亮</div> <div data-options="iconCls:'fa fa-tree blue'" onclick="changeTheme('bluelight')">蓝色主题-亮</div>
<div data-options="iconCls:'fa fa-tree blue'" onclick="changeTheme('bluelighter')">蓝色主题-更亮</div>
<div data-options="iconCls:'fa fa-tree orange'" onclick="changeTheme('yellow')">橙色主题</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 data-options="iconCls:'fa fa-tree orange'" onclick="changeTheme('yellowlight')">橙色主题-亮</div>
</div> </div>
<!-- <a href="javascript:void(0)" onclick="logout()" class="gui-menubutton" <a href="javascript:void(0)" onclick="logout()" class="gui-menubutton"
data-options="iconCls:'fa fa-sign-out',hasDownArrow:false" style="color:#fff;">注销</a> --> data-options="iconCls:'fa fa-sign-out',hasDownArrow:false" style="color:#fff;">注销</a>
</span> </span>
<div style="position: fixed;z-index: 1030!important;float:right;right: 28%;margin-top: 12px"> <div style="position: fixed;z-index: 1030!important;float:right;right: 28%;margin-top: 12px">
<div class="aliyun-common-search-container"> <div class="aliyun-common-search-container">
<input class="aliyun-common-search-input-elem" id="searchIndex" placeholder="搜索"> <input class="aliyun-common-search-input-elem" placeholder="搜索">
<div class="aliyun-common-search-close" style="display: none;"></div> <div class="aliyun-common-search-close" style="display: none;"></div>
<div class="aliyun-common-search-icon" id="su"></div> <div class="aliyun-common-search-icon" id="su"></div>
<div class="aliyun-common-search-outline"></div> <div class="aliyun-common-search-outline"></div>
...@@ -160,14 +157,14 @@ ...@@ -160,14 +157,14 @@
</table> </table>
</div> </div>
<form id="pwdDialog" class="hidden" <form id="pwdDialog" class="hidden"
data-options="title: '&nbsp;&nbsp;修改密码', data-options="title: '修改密码',
iconCls:'fa fa-key', iconCls:'fa fa-key',
width: 500, width: 500,
height: 260"> height: 260">
<div class="gui-fluid editTable"> <div class="gui-fluid editTable">
<div class="gui-row"> <div class="gui-row">
<div class="gui-col-sm12"> <div class="gui-col-sm12">
<label class="gui-form-label" for="">旧密码:</label> <label class="gui-form-label">旧密码:</label>
<div class="gui-input-block"> <div class="gui-input-block">
<input type="text" name="oldPassword" id="oldPassword" data-toggle="gui-passwordbox" <input type="text" name="oldPassword" id="oldPassword" data-toggle="gui-passwordbox"
data-options="required:true" style="width: 100%"> data-options="required:true" style="width: 100%">
...@@ -206,7 +203,7 @@ ...@@ -206,7 +203,7 @@
<script language="JavaScript" type="text/javascript" src="js/common/bluebird.js"></script> <script language="JavaScript" type="text/javascript" src="js/common/bluebird.js"></script>
<!--common js--> <!--common js-->
<script language="JavaScript" type="text/javascript" src="js/common/json2.js"></script> <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/common.js?v=1"></script>
<script language="JavaScript" type="text/javascript" src="js/common/http.js"></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/databind.js"></script>
<script language="JavaScript" type="text/javascript" src="js/common/DateUtils.js"></script> <script language="JavaScript" type="text/javascript" src="js/common/DateUtils.js"></script>
...@@ -228,18 +225,15 @@ ...@@ -228,18 +225,15 @@
<script type="text/javascript" src="lib/gui/gui/js/gui.js?v=1.1"></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/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/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/public/js/gui.home.js" charset="utf-8"></script>
<script type="text/javascript" src="lib/gui/static/plugins/gui/gui.function.js"></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--> <!--基于GUI的拓展js-->
<script language="JavaScript" type="text/javascript" src="js/common/public.js"></script> <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/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/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="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/workflow.js"></script>
<script language="JavaScript" type="text/javascript" src="js/container.js"></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/holder.js"></script>
...@@ -268,13 +262,7 @@ ...@@ -268,13 +262,7 @@
<script src="lib/vue/plugin/lib/vue.min.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"> <link rel="stylesheet" href="lib/vue/plugin/element-ui/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/element-ui/index.js"></script>
<script src="lib/vue/plugin/lib/axios/axios.min.js"></script> <script src="lib/vue/plugin/lib/axios/axios.min.js"></script>
...@@ -282,64 +270,23 @@ ...@@ -282,64 +270,23 @@
<script src="lib/vue/plugin/lib/axios/es6-promise.auto.min.js"></script> <script src="lib/vue/plugin/lib/axios/es6-promise.auto.min.js"></script>
<!--专用js--> <!--专用js-->
<script language="JavaScript" type="text/javascript" src="js/project/function.js"></script> <script language="JavaScript" type="text/javascript" src="js/project/function.js"></script>
<script language="JavaScript" type="text/javascript" src="js/project/wl.js"></script>
<script language="JavaScript" type="text/javascript" src="js/project/user.js"></script>
<script language="JavaScript" type="text/javascript" src="js/project/bz.js"></script>
<script language="JavaScript" type="text/javascript" src="js/project/reson.js"></script>
<script language="JavaScript" type="text/javascript" src="js/project/xqsq.js"></script>
<script language="JavaScript" type="text/javascript" src="js/project/constants.js"></script>
<script language="JavaScript" type="text/javascript" src="lib/gui/static/plugins/echarts/echarts.min.js"></script> <script language="JavaScript" type="text/javascript" src="lib/gui/static/plugins/echarts/echarts.min.js"></script>
<!-- --> <script language="JavaScript" type="text/javascript" src="js/editaleHolder.js"></script>
<script src="js/webSocket.js"></script> <script src="js/webSocket.js"></script>
<script> <script>
$(function (){
var notifySocket=new gavelWebSocket(function (msg) { var notifySocket=new gavelWebSocket(function (msg) {
if (msg && msg.type && msg.data){ gas.showTips(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> </script>
......
<script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script> <script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script> <script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<script src="js/gethash.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/zpfk.css"/> <link rel="stylesheet" type="text/css" href="css/zpfk.css"/>
<style type="text/css"> <style type="text/css">
.errdialog{ .errdialog{
...@@ -39,6 +40,10 @@ ...@@ -39,6 +40,10 @@
} }
}) })
/* 取登录值 */
/* 通用代码 */ /* 通用代码 */
/* 大屏内部弹框 */ /* 大屏内部弹框 */
function screenAlert(dom,msg,timeNum){ function screenAlert(dom,msg,timeNum){
...@@ -83,7 +88,7 @@ ...@@ -83,7 +88,7 @@
/* 初始化工序 */ /* 初始化工序 */
function zpfk_getgx(e){ function zpfk_getgx(e){
let that=e let that=e
that.gx=window.bzlx||"获取失败" that.gx=window.gxname||"获取失败"
} }
/* 判定代码类型 登录页面*/ /* 判定代码类型 登录页面*/
function zpfk_hqlx(e){ function zpfk_hqlx(e){
...@@ -127,10 +132,10 @@ ...@@ -127,10 +132,10 @@
let msg="查询工单信息:"+that.xlh+"成功" let msg="查询工单信息:"+that.xlh+"成功"
zpfk_wrz(that,msg) zpfk_wrz(that,msg)
/* 赋值操作 */ /* 赋值操作 */
that.gd = res.data.records.djid; that.gd = res.data.records.woDjid;
that.cpsn = res.data.records.wosnCode; that.cpsn = res.data.records.wosnid;
that.ph = res.data.records.wlxxCode; that.ph = res.data.records.wlxxCode;
let woid = res.data.records.djid; let woid = res.data.records.woDjid;
y(woid) y(woid)
/** wobom查询 **/ /** wobom查询 **/
...@@ -264,7 +269,7 @@ ...@@ -264,7 +269,7 @@
<li>系统管理员</li> <li>系统管理员</li>
<li class="tipuli2">{{systime}}</li> <li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li> <li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li> <li class="tipuli2">当前工序:{{gx}}</li>
</ul> </ul>
</div> </div>
...@@ -286,7 +291,7 @@ ...@@ -286,7 +291,7 @@
<span>工单</span><input class="easyuitext wid70" v-model="gd" name="gd" /> <span>工单</span><input class="easyuitext wid70" v-model="gd" name="gd" />
</div> </div>
<div class="ery"> <div class="ery">
<span>产品SN</span><input class="easyuitext wid70" v-model="cpsn" name="cpsn" /> <span>SN</span><input class="easyuitext wid70" v-model="cpsn" name="cpsn" />
</div> </div>
<div class="ery"> <div class="ery">
<span>品号</span><input class="easyuitext wid70" v-model="ph" name="ph" /> <span>品号</span><input class="easyuitext wid70" v-model="ph" name="ph" />
...@@ -330,7 +335,7 @@ ...@@ -330,7 +335,7 @@
<li class="tipulmid">ADMIN</li> <li class="tipulmid">ADMIN</li>
<li class="tipulmid">系统管理员</li> <li class="tipulmid">系统管理员</li>
<li class="tipulmid">甲班</li> <li class="tipulmid">甲班</li>
<li class="tipulmid" style="width: 100px;">当前工序:焊接</li> <li class="tipulmid" style="width: 200px;">当前工序:{{gx}}</li>
</ul> </ul>
<ul class="tipul" style="height: 100%;width: 100%;"> <ul class="tipul" style="height: 100%;width: 100%;">
<li style="width: 400px;"> <li style="width: 400px;">
...@@ -354,7 +359,7 @@ ...@@ -354,7 +359,7 @@
<span>工单</span><input class="easyuitext" v-model="gd" style="width: 70%" name="gd" /> <span>工单</span><input class="easyuitext" v-model="gd" style="width: 70%" name="gd" />
</div> </div>
<div class="ery"> <div class="ery">
<span>产品SN</span><input class="easyuitext" v-model="cpsn" style="width: 70%" name="cpsn" /> <span>SN</span><input class="easyuitext" v-model="cpsn" style="width: 70%" name="cpsn" />
</div> </div>
<div class="ery"> <div class="ery">
<span>品号</span><input class="easyuitext" v-model="ph" style="width: 70%" name="ph" /> <span>品号</span><input class="easyuitext" v-model="ph" style="width: 70%" name="ph" />
...@@ -403,7 +408,7 @@ ...@@ -403,7 +408,7 @@
<li class="tipulmid">甲班</li> <li class="tipulmid">甲班</li>
<li class="tipuli2">{{systime}}</li> <li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 10px;">计数:30</li> <li class="tipuli2" style="margin-right: 10px;">计数:30</li>
<li class="tipuli2" style="margin-right: 10px;">当前工序:焊接</li> <li class="tipuli2" style="margin-right: 10px;">当前工序:{{gx}}</li>
</ul> </ul>
</div> </div>
<!-- 标题下信息 --> <!-- 标题下信息 -->
...@@ -416,7 +421,7 @@ ...@@ -416,7 +421,7 @@
<span>工单</span><input class="easyuitext" style="width:70%" name="gd" v-model="gd" /> <span>工单</span><input class="easyuitext" style="width:70%" name="gd" v-model="gd" />
</div> </div>
<div class="titdowinfor"> <div class="titdowinfor">
<span>产品SN</span><input class="easyuitext" style="width:70%" name="cpsn" v-model="cpsn" /> <span>SN</span><input class="easyuitext" style="width:70%" name="cpsn" v-model="cpsn" />
</div> </div>
<div class="titdowinfor"> <div class="titdowinfor">
<span>品号</span><input class="easyuitext" style="width:70%" name="ph" v-model="ph" /> <span>品号</span><input class="easyuitext" style="width:70%" name="ph" v-model="ph" />
......
<script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/jyfk.css"/>
<div>
<div class="btn-group" >
<button id="btnqh1" type="button" class="btn btn-default" style="color: white;position: absolute;right: 5px;z-index: 9999999999;height: 50px;width: 200px;border: 0 solid #00AAFF;background-color: #00AAFF;">切换风格</button>
</div>
</div>
<script type="text/javascript">
$("#btnqh1").click(function(){
if($("#kwrkb04").css("display")=="flex"){
$("#kwrkb04").css("display","none")
$("#kwrkb05").css("display","flex")
$("#kwrkb06").css("display","none")
}else if($("#kwrkb05").css("display")=="flex"){
$("#kwrkb04").css("display","none")
$("#kwrkb05").css("display","none")
$("#kwrkb06").css("display","flex")
}else{
$("#kwrkb04").css("display","flex")
$("#kwrkb05").css("display","none")
$("#kwrkb06").css("display","none")
}
})
/* 通用代码 */
/* 判定代码类型 登录页面*/
/* function jyfk_hqlx(e){
let that=e
return new Promise(function(y,n){
gas.post('kmes/gpfk/querySmlx ',{"wosnid":that.xlh}, function(res){
if(res.data&&res.data.records){
let getinfor=res.data.records
y(getinfor.id||"")}
else{
n('nok')
}
});
})
} */
</script>
<div id="kwrkb04">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext " style="width: 84%;" v-model="xlh" @keydown="scanxlh()" name="xlh" placeholder="请扫码条码" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input class="easyuitext wid70" v-model="gx" name="gx" />
</div>
<div class="ery">
<span>工单</span><input class="easyuitext wid70" v-model="gd" name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input class="easyuitext wid70" v-model="cpsn" name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input class="easyuitext wid70" v-model="ph" name="ph" />
</div>
</div>
</div>
<!-- 日志 -->
<div class="cprz" >
<div style="height: 100%;display: flex;align-items: center;justify-content: center;">
<div class="cardList-wrapper" style="width: 55%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;">
<div class="card-item" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div class="card-item" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
<div class="cardList-wrappers" style="width: 40%;height: 95%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b style="font-size: 60px;">ok</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab">
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div class="rz" style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
<span>>>Tips</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="gpjypdf" class="rightPdf"></canvas>
</div>
</div>
<!-- 界面5 -->
<div id="kwrkb05">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext" style="width: 80%" name="xlh" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div style="display: flex;width: 55%;height: 100%;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input class="easyuitext" style="width: 70%" name="gx" />
</div>
<div class="ery">
<span>工单</span><input class="easyuitext" style="width: 70%" name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input class="easyuitext" style="width: 70%" name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input class="easyuitext" style="width: 70%" name="ph" />
</div>
<div class="ery">
<span>品名</span><input class="easyuitext" style="width: 70%" name="pm" />
</div>
</div>
<div style="display: flex;width: 45%;height: 100%;flex-wrap: wrap;align-items: center;">
<div style="height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab" style="position: relative;">
<div class="cpiright" style="width:160px;height: 160px;padding: 10px;position: absolute;right: 10px;top: 20px;">
<div style="width: 100%;height: 100%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b>ok</b>
</div>
</div>
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="pdf" class="rightPdf"></canvas>
</div>
</div>
<!-- 看板6html -->
<div id="kwrkb06">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext" style="width: 80%;" name="xlh" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div style="display: flex;width: 55%;height: 100%;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input class="easyuitext" style="width: 70%;" name="gx" />
</div>
<div class="ery">
<span>工单</span><input class="easyuitext" style="width: 70%;" name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input class="easyuitext" style="width: 70%;" name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input class="easyuitext" style="width: 70%;" name="ph" />
</div>
<div class="ery">
<span>品名</span><input class="easyuitext" style="width: 70%;" name="pm" />
</div>
</div>
<div style="display: flex;width: 45%;height: 100%;flex-wrap: wrap;align-items: center;">
<div style="height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab" style="position: relative;">
<div class="cpiright" style="width:130px;height: 130px;padding: 10px;position: absolute;right: 10px;top: 20px;">
<div style="width: 100%;height: 100%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b>ok</b>
</div>
</div>
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
</div>
</div>
<div class="mainsp">
<video src="movie.ogg" controls="controls" style="height: 100%;width: 100%;">
您的浏览器不支持 video 标签。
</video>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="pdf" class="rightPdf"></canvas>
</div>
</div>
<script type="text/javascript">
let Vkwrkb04= new Vue({
el:"#kwrkb04",
mounted() {
dbenlarge('kwrkb04',1,this.isFocus())
pdfshow("pdf/dcAcess.pdf","gpjypdf",5000).then(e=>{
this.sivpdf=e
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
addtop:0,
xlh:"",
gx:"",
gd:"",
cpsn:"",
ph:"",
systime:"",
tabdata:[],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
},
methods:{
isFocus(){
let $xlh=$("#kwrkb04").find('input[name="xlh"]')
$xlh.focus()
},
// 扫码事件
scanxlh(e){
var evt = window.event || e;
if (evt.keyCode == 13) {
console.log(this.xlh)
$("#kwrkb04").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600
$("#kwrkb04").find(".rz").scrollTop(this.addtop)
this.xlh=""
}
},
// 初始化页面
initpage(){
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb04").height()){
Vkwrkb04.$destroy()
}
},3000)
}
}
})
/* 界面5vue实例 */
let Vkwrkb05= new Vue({
el:"#kwrkb05",
mounted() {
dbenlarge('kwrkb05')
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb05").hide()
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
systime:"",
tabdata:[
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
},
methods:{
// 初始化页面
initpage(){
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb05").height()){
Vkwrkb05.$destroy()
}
},3000)
}
}
})
/* 看板6实例 */
let Vkwrkb06= new Vue({
el:"#kwrkb06",
mounted() {
dbenlarge('kwrkb06')
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb06").hide()
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
addtop:0,
xlh:"",
gx:"",
gd:"",
cpsn:"",
ph:"",
systime:"",
tabdata:[],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
},
methods:{
// 初始化页面
initpage(){
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb06").height()){
Vkwrkb06.$destroy()
}
},3000)
}
}
})
</script>
<script src="js/pdfshow.js" type="text/javascript" charset="utf-8"></script>
<script src="js/dbenlarge.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="css/wxfk.css"/>
<div>
<div class="btn-group" >
<button id="btnqh2" type="button" class="btn btn-default" style="color: white;position: absolute;right: 5px;z-index: 9999999999;height: 50px;width: 200px;border: 0 solid #00AAFF;background-color: #00AAFF;">切换风格</button>
</div>
</div>
<script type="text/javascript">
$("#btnqh2").click(function(){
if($("#kwrkb07").css("display")=="flex"){
$("#kwrkb07").css("display","none")
$("#kwrkb08").css("display","flex")
$("#kwrkb09").css("display","none")
}else if($("#kwrkb08").css("display")=="flex"){
$("#kwrkb07").css("display","none")
$("#kwrkb08").css("display","none")
$("#kwrkb09").css("display","flex")
}else{
$("#kwrkb07").css("display","flex")
$("#kwrkb08").css("display","none")
$("#kwrkb09").css("display","none")
}
})
</script>
<div id="kwrkb07">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext " style="width: 84%;" v-model="xlh" @keydown="scanxlh()" name="xlh" placeholder="请扫码条码" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input class="easyuitext wid70" v-model="gx" name="gx" />
</div>
<div class="ery">
<span>工单</span><input class="easyuitext wid70" v-model="gd" name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input class="easyuitext wid70" v-model="cpsn" name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input class="easyuitext wid70" v-model="ph" name="ph" />
</div>
</div>
</div>
<!-- 日志 -->
<div class="cprz" >
<div style="height: 100%;display: flex;align-items: center;justify-content: center;">
<div class="cardList-wrapper" style="width: 55%;height: 100%;background-color: #FFFFFF;color: #FFFFFF;display: flex;flex-wrap: wrap;justify-content:space-around;align-items: center;">
<div class="card-item" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div class="card-item" style="height: 45%;width: 90%;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
<div class="cardList-wrappers" style="width: 40%;height: 95%;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b style="font-size: 60px;">ok</b>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab">
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div class="rz" style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;overflow: auto;">
<span>>>Tips</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="gpjypdf" class="rightPdf"></canvas>
</div>
</div>
<!-- 界面5 -->
<div id="kwrkb08">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext" style="width: 80%" name="xlh" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div style="display: flex;width: 55%;height: 100%;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input class="easyuitext" style="width: 70%" name="gx" />
</div>
<div class="ery">
<span>工单</span><input class="easyuitext" style="width: 70%" name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input class="easyuitext" style="width: 70%" name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input class="easyuitext" style="width: 70%" name="ph" />
</div>
<div class="ery">
<span>品名</span><input class="easyuitext" style="width: 70%" name="pm" />
</div>
</div>
<div style="display: flex;width: 45%;height: 100%;flex-wrap: wrap;align-items: center;">
<div style="height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab" style="position: relative;">
<div class="cpiright" style="width:160px;height: 160px;padding: 10px;position: absolute;right: 10px;top: 20px;">
<div style="width: 100%;height: 100%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b>ok</b>
</div>
</div>
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
</div>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="pdf" class="rightPdf"></canvas>
</div>
</div>
<!-- 看板6html -->
<div id="kwrkb09">
<!-- 顶部信息条 -->
<div class="toptitle" >
<ul class="tipul" style="height: 100%;">
<li>ADMIN</li>
<li>系统管理员</li>
<li>甲班</li>
<li class="tipuli2">{{systime}}</li>
<li class="tipuli2" style="margin-right: 200px;">计数:30</li>
<li class="tipuli2">当前工序:焊接</li>
</ul>
</div>
<!-- 左侧信息条 -->
<div class="left">
<!-- 左上信息表 -->
<div class="cbinfor">
<div class="cpif">
<!-- top -->
<div class="cpiftop" style="display: flex;align-items: center;">
<span>序列号</span><input class="easyuitext" style="width: 80%;" name="xlh" />
</div>
<!-- bot -->
<div class="cpifbot" style="display: flex;flex-wrap: wrap;">
<div style="display: flex;width: 55%;height: 100%;flex-wrap: wrap;">
<div class="ery">
<span>工序</span><input class="easyuitext" style="width: 70%;" name="gx" />
</div>
<div class="ery">
<span>工单</span><input class="easyuitext" style="width: 70%;" name="gd" />
</div>
<div class="ery">
<span>产品SN</span><input class="easyuitext" style="width: 70%;" name="cpsn" />
</div>
<div class="ery">
<span>品号</span><input class="easyuitext" style="width: 70%;" name="ph" />
</div>
<div class="ery">
<span>品名</span><input class="easyuitext" style="width: 70%;" name="pm" />
</div>
</div>
<div style="display: flex;width: 45%;height: 100%;flex-wrap: wrap;align-items: center;">
<div style="height: 45%;width: 90%;background-color: #00AAFF;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">合格数量:0</span>
</div>
<div style="height: 45%;width: 90%;background-color: #FEC041;display: flex;align-items: center;justify-content: center;color: #FFFFFF;">
<span style="font-size: 20px;font-weight: 800;">NG数量:0</span>
</div>
</div>
</div>
</div>
</div>
<!-- 左下表格 -->
<div class="tab">
<div class="maintab" style="position: relative;">
<div class="cpiright" style="width:130px;height: 130px;padding: 10px;position: absolute;right: 10px;top: 20px;">
<div style="width: 100%;height: 100%;background-color: #1890FF;color: white;display: flex;align-items: center;justify-content: center;font-size: 30px;">
<b>ok</b>
</div>
</div>
<div style="height: 20px;line-height: 20px;background-color: grey;color: white;text-align: center;">
日志
</div>
<div style="height: calc(100% - 20px);display: flex;">
<div style="width: 100%;height: 100%;background-color: #393456;color: #FFFFFF;">
<span>>>Tips</span>
</div>
</div>
</div>
<div class="mainsp">
<video src="movie.ogg" controls="controls" style="height: 100%;width: 100%;">
您的浏览器不支持 video 标签。
</video>
</div>
</div>
</div>
<!-- 右侧信息pdf -->
<div class="right">
<canvas id="pdf" class="rightPdf"></canvas>
</div>
</div>
<script type="text/javascript">
let Vkwrkb07= new Vue({
el:"#kwrkb07",
mounted() {
dbenlarge('kwrkb07',1,this.isFocus())
pdfshow("pdf/dcAcess.pdf","gpjypdf",5000).then(e=>{
this.sivpdf=e
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
addtop:0,
xlh:"",
gx:"",
gd:"",
cpsn:"",
ph:"",
systime:"",
tabdata:[
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
},
methods:{
isFocus(){
let $xlh=$("#kwrkb07").find('input[name="xlh"]')
$xlh.focus()
},
// 扫码事件
scanxlh(e){
var evt = window.event || e;
if (evt.keyCode == 13) {
console.log(this.xlh)
$("#kwrkb07").find(".rz").append("<br>>" + "<span>" +"正在查询:"+this.xlh+"</sapn>")
this.addtop = this.addtop + 600
$("#kwrkb07").find(".rz").scrollTop(this.addtop)
this.xlh=""
}
},
// 初始化页面
initpage(){
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb07").height()){
Vkwrkb07.$destroy()
}
},3000)
}
}
})
/* 界面5vue实例 */
let Vkwrkb08= new Vue({
el:"#kwrkb08",
mounted() {
dbenlarge('kwrkb08')
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb08").hide()
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
systime:"",
tabdata:[
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
},
methods:{
// 初始化页面
initpage(){
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb08").height()){
Vkwrkb08.$destroy()
}
},3000)
}
}
})
/* 看板6实例 */
let Vkwrkb09= new Vue({
el:"#kwrkb09",
mounted() {
dbenlarge('kwrkb09')
pdfshow("pdf/dcAcess.pdf","pdf",5000).then(e=>{
this.sivpdf=e
$("#kwrkb09").hide()
})
// this.sivpdf=
this.initpage()
this.gettime()
this.appdestory()
},
destroyed() {
clearInterval(this.sivdestory)
clearInterval(this.sivpdf)
clearInterval(this.sivtimer)
},
data:function(){
return{
systime:"",
tabdata:[
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
{ph:10,pm:"GT-RBZ6",ggxh:"RBG-AK",sl:13,zpsl:12},
],
sivtimer:null,//时间计数器
sivpdf:null,
sivdestory:null
}
},
methods:{
// 初始化页面
initpage(){
},
/* 展示时间 */
gettime(){
let that=this
let nowtime
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
this.sivtimer=setInterval(function(){
nowtime=new Date().getTime()
that.systime=new Date(nowtime).Format("yyyy-MM-dd hh:mm")
},20000)
},
appdestory(){
let that=this
this.sivdestory=setInterval(function(){
if(!$("#kwrkb09").height()){
Vkwrkb09.$destroy()
}
},3000)
}
}
})
</script>
...@@ -54,13 +54,14 @@ ...@@ -54,13 +54,14 @@
width: 80%; width: 80%;
} }
.errdialog{ .errdialog{
z-index: 99999;
min-width:35%; min-width:35%;
/* width: 35%; */ /* width: 35%; */
height: 40px; height: 40px;
text-align: center; text-align: center;
line-height: 40px; line-height: 40px;
position: absolute; position: absolute;
top: 50px; top: 30px;
right: 50%; right: 50%;
color: #FFFFFF; color: #FFFFFF;
background-color: rgba(255,0,0,0.5); background-color: rgba(255,0,0,0.5);
...@@ -112,7 +113,7 @@ ...@@ -112,7 +113,7 @@
/* 提示框 */ /* 提示框 */
/* 大屏内部弹框 */ /* 大屏内部弹框 */
function logalert(msg){ function logalert(msg){
let getdom=$("#kmessmdl") let getdom=$("body")
getdom.css('position','relative') getdom.css('position','relative')
let dialog="<div class='errdialog'>"+msg+"</div>" let dialog="<div class='errdialog'>"+msg+"</div>"
getdom.prepend(dialog) getdom.prepend(dialog)
...@@ -132,10 +133,11 @@ ...@@ -132,10 +133,11 @@
let mkurl=result.data.records.fkurl let mkurl=result.data.records.fkurl
let mkid=result.data.records.modulecode let mkid=result.data.records.modulecode
let bzlx=result.data.records.id let bzlx=result.data.records.id
window.bzlx=bzlx let gx=result.data.records.name
let url="index#"+mkurl+";"+mkid+"+"+bzlx let url="singleindex?url="+mkurl+"#"+mkurl+";"+mkid+"+"+bzlx+"!"+gx
window.location.href =url window.location.href =url
} else { } else {
logalert(result.message||"登录失败")
$rygh.val("") $rygh.val("")
$gylx.val("") $gylx.val("")
$rygh.focus() $rygh.focus()
......
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