更新plc

This commit is contained in:
朱文强 2024-07-16 11:04:46 +08:00
parent 572f72c213
commit 6f88d254e5
336 changed files with 212 additions and 29 deletions

View File

@ -2,7 +2,7 @@
* @Author: gtz * @Author: gtz
* @Date: 2021-11-19 10:10:51 * @Date: 2021-11-19 10:10:51
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2023-12-13 16:26:31 * @LastEditTime: 2024-07-16 10:49:35
* @Description: file content * @Description: file content
* @FilePath: \mt-qj-wms-ui\config\index.js * @FilePath: \mt-qj-wms-ui\config\index.js
*/ */
@ -22,7 +22,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置 // 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : { proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': { '/proxyApi': {
target: 'http://192.168.1.43:8090/', target: 'http://192.168.1.48:8090/',
// target: 'http://qy.wms.picaiba.com/wms-qy/', // target: 'http://qy.wms.picaiba.com/wms-qy/',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
webpackJsonp([10],{"5atb":function(t,e,s){var o=s("vIK7");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);s("rjj0")("45f76159",o,!0)},uZtf:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s("mvHQ"),n=s.n(o),i={data:function(){return{websock:"",wbData:[],url:""}},created:function(){this.url=window.SITE_CONFIG.wbURL,JSON.parse(sessionStorage.getItem("msgDiv"))?this.wbData=JSON.parse(sessionStorage.getItem("msgDiv")):this.wbData=[],this.initWebSocket()},methods:{initWebSocket:function(){var t="ws://"+this.url+"/log";this.websock=new WebSocket(t),this.websock.onmessage=this.websocketonmessage,this.websock.onopen=this.websocketonopen,this.websock.onerror=this.websocketonerror,this.websock.onclose=this.websocketclose},websocketonopen:function(){this.websocketsend()},websocketonerror:function(){this.initWebSocket()},websocketonmessage:function(t){this.wbData.length>=1e3?(this.wbData.shift(),this.wbData.push(t.data)):this.wbData.push(t.data),sessionStorage.setItem("msgDiv",n()(this.wbData))},websocketsend:function(t){this.websock.send(t)},websocketclose:function(t){console.log("断开连接",t)}}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"bg mod-config msgDiv"},t._l(t.wbData,function(e,o){return s("div",{key:o,staticClass:"msg-div"},[t._v("\n "+t._s(e)+"\n ")])}))},staticRenderFns:[]};var c=s("VU/8")(i,a,!1,function(t){s("5atb")},"data-v-68248a3c",null);e.default=c.exports},vIK7:function(t,e,s){(t.exports=s("FZ+f")(!1)).push([t.i,"\n.bg[data-v-68248a3c] {\n /* background-image: url(~@/assets/img/13.jpg);\n background-size: cover;\n position: relative; */\n}\n.msgDiv[data-v-68248a3c]{\n color: black;\n height: calc(100vh - 109px);\n overflow-y: auto;\n}\n.msg-div[data-v-68248a3c] {\n}\n",""])}});

View File

@ -1 +0,0 @@
webpackJsonp([11],{"7FDS":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"site-wrapper site-page--not-found"},[e("div",{staticClass:"site-content__wrapper"},[e("div",{staticClass:"site-content"},[e("h2",{staticClass:"not-found-title"},[n._v("400")]),n._v(" "),n._m(0),n._v(" "),e("el-button",{on:{click:function(t){n.$router.go(-1)}}},[n._v("返回上一页")]),n._v(" "),e("el-button",{staticClass:"not-found-btn-gohome",attrs:{type:"primary"},on:{click:function(t){n.$router.push({name:"home"})}}},[n._v("进入首页")])],1)])])},staticRenderFns:[function(){var n=this.$createElement,t=this._self._c||n;return t("p",{staticClass:"not-found-desc"},[this._v("抱歉!您访问的页面"),t("em",[this._v("失联")]),this._v("啦 ...")])}]};var s=e("VU/8")({},o,!1,function(n){e("Txlp")},null,null);t.default=s.exports},"9N5H":function(n,t,e){(n.exports=e("FZ+f")(!1)).push([n.i,"\n.site-wrapper.site-page--not-found {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n}\n.site-wrapper.site-page--not-found .site-content__wrapper {\n padding: 0;\n margin: 0;\n background-color: #fff;\n}\n.site-wrapper.site-page--not-found .site-content {\n position: fixed;\n top: 15%;\n left: 50%;\n z-index: 2;\n padding: 30px;\n text-align: center;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n}\n.site-wrapper.site-page--not-found .not-found-title {\n margin: 20px 0 15px;\n font-size: 10em;\n font-weight: 400;\n color: #37474f;\n}\n.site-wrapper.site-page--not-found .not-found-desc {\n margin: 0 0 30px;\n font-size: 26px;\n text-transform: uppercase;\n color: #76838f;\n}\n.site-wrapper.site-page--not-found .not-found-desc > em {\n font-style: normal;\n color: #ee8145;\n}\n.site-wrapper.site-page--not-found .not-found-btn-gohome {\n margin-left: 30px;\n}\n",""])},Txlp:function(n,t,e){var o=e("9N5H");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);e("rjj0")("d244dcfe",o,!0)}});

View File

@ -1 +0,0 @@
webpackJsonp([12],{"5nv+":function(e,t,a){var r=a("nYeb");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("a204b102",r,!0)},Ev5x:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bg mod-config"},[a("el-card",{staticClass:"box-card"},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[a("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:e.dataForm.plcName,callback:function(t){e.$set(e.dataForm,"plcName",t)},expression:"dataForm.plcName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备型号",prop:"plcType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择设备型号"},model:{value:e.dataForm.plcType,callback:function(t){e.$set(e.dataForm,"plcType",t)},expression:"dataForm.plcType"}},e._l(e.options,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"IP",prop:"address"}},[a("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:e.dataForm.address,callback:function(t){e.$set(e.dataForm,"address",t)},expression:"dataForm.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"端口号",prop:"port"}},[a("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:e.dataForm.port,callback:function(t){e.$set(e.dataForm,"port",t)},expression:"dataForm.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[a("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:e.dataForm.frequence,callback:function(t){e.$set(e.dataForm,"frequence",t)},expression:"dataForm.frequence"}},e._l(e.options1,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[a("el-switch",{model:{value:e.dataForm.autoConnect,callback:function(t){e.$set(e.dataForm,"autoConnect",t)},expression:"dataForm.autoConnect"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[a("el-switch",{model:{value:e.dataForm.autoRead,callback:function(t){e.$set(e.dataForm,"autoRead",t)},expression:"dataForm.autoRead"}})],1)],1),e._v(" "),a("span",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",autoConnect:!0,autoRead:!0,plcType:""},options:[],options1:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}],plcType:[{required:!0,message:"设备型号不能为空",trigger:"change"}]}}},created:function(){this.init()},methods:{init:function(){var e=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options1=a.data)}),this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-siemensType"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options=a.data)}),this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("api/server/plcCreate/create-siemensPlc"),method:"post",data:e.$http.adornData(e.dataForm)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.init()}}):e.$message.error(a.msg)})})}}},r,!1,function(e){a("5nv+")},"data-v-ca2eef96",null);t.default=o.exports},nYeb:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.box-card[data-v-ca2eef96] {\n width: 480px;\n height: 480px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-ca2eef96] {\n background-image: url("+a("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])}});

View File

@ -1 +0,0 @@
webpackJsonp([14],{"4p2+":function(t,a,e){var r=e("gV7b");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);e("rjj0")("51a234aa",r,!0)},gV7b:function(t,a,e){(t.exports=e("FZ+f")(!1)).push([t.i,"\n.box-card[data-v-329128c5] {\n width: 480px;\n height: 540px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-329128c5] {\n background-image: url("+e("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])},ibYb:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"bg mod-config"},[e("el-card",{staticClass:"box-card"},[e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(a){if(!("button"in a)&&t._k(a.keyCode,"enter",13,a.key,"Enter"))return null;t.dataFormSubmit()}}},[e("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[e("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:t.dataForm.plcName,callback:function(a){t.$set(t.dataForm,"plcName",a)},expression:"dataForm.plcName"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"IP",prop:"address"}},[e("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:t.dataForm.address,callback:function(a){t.$set(t.dataForm,"address",a)},expression:"dataForm.address"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"端口号",prop:"port"}},[e("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:t.dataForm.port,callback:function(a){t.$set(t.dataForm,"port",a)},expression:"dataForm.port"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"站号",prop:"station"}},[e("el-input",{attrs:{placeholder:"站号",clearable:""},model:{value:t.dataForm.station,callback:function(a){t.$set(t.dataForm,"station",a)},expression:"dataForm.station"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"读取格式",prop:"dataFormat"}},[e("el-select",{attrs:{placeholder:"请选择读取格式"},model:{value:t.dataForm.dataFormat,callback:function(a){t.$set(t.dataForm,"dataFormat",a)},expression:"dataForm.dataFormat"}},t._l(t.options2,function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})}))],1),t._v(" "),e("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[e("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:t.dataForm.frequence,callback:function(a){t.$set(t.dataForm,"frequence",a)},expression:"dataForm.frequence"}},t._l(t.options1,function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})}))],1),t._v(" "),e("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[e("el-switch",{model:{value:t.dataForm.autoConnect,callback:function(a){t.$set(t.dataForm,"autoConnect",a)},expression:"dataForm.autoConnect"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[e("el-switch",{model:{value:t.dataForm.autoRead,callback:function(a){t.$set(t.dataForm,"autoRead",a)},expression:"dataForm.autoRead"}})],1)],1),t._v(" "),e("span",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=e("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",dataFormat:"",autoConnect:!0,autoRead:!0,station:""},options1:[],options2:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}],station:[{required:!0,message:"站号不能为空",trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(){var t=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(a){var e=a.data;e&&0===e.code&&(t.options1=e.data)}),this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-DataFormat"),method:"post"}).then(function(a){var e=a.data;e&&0===e.code&&(t.options2=e.data)}),this.$nextTick(function(){t.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(a){a&&t.$http({url:t.$http.adornUrl("api/server/plcCreate/create-Modbus"),method:"post",data:t.$http.adornData(t.dataForm)}).then(function(a){var e=a.data;e&&0===e.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.init()}}):t.$message.error(e.msg)})})}}},r,!1,function(t){e("4p2+")},"data-v-329128c5",null);a.default=o.exports}});

View File

@ -1 +0,0 @@
webpackJsonp([15],{"0ct2":function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.box-card[data-v-0e092704] {\n width: 480px;\n height: 450px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-0e092704] {\n background-image: url("+a("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])},G5Uz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bg mod-config"},[a("el-card",{staticClass:"box-card"},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[a("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:e.dataForm.plcName,callback:function(t){e.$set(e.dataForm,"plcName",t)},expression:"dataForm.plcName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"IP",prop:"address"}},[a("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:e.dataForm.address,callback:function(t){e.$set(e.dataForm,"address",t)},expression:"dataForm.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"端口号",prop:"port"}},[a("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:e.dataForm.port,callback:function(t){e.$set(e.dataForm,"port",t)},expression:"dataForm.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[a("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:e.dataForm.frequence,callback:function(t){e.$set(e.dataForm,"frequence",t)},expression:"dataForm.frequence"}},e._l(e.options1,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[a("el-switch",{model:{value:e.dataForm.autoConnect,callback:function(t){e.$set(e.dataForm,"autoConnect",t)},expression:"dataForm.autoConnect"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[a("el-switch",{model:{value:e.dataForm.autoRead,callback:function(t){e.$set(e.dataForm,"autoRead",t)},expression:"dataForm.autoRead"}})],1)],1),e._v(" "),a("span",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",autoConnect:!0,autoRead:!0},options1:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(){var e=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options1=a.data)}),this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("api/server/plcCreate/create-MelsecPlc"),method:"post",data:e.$http.adornData(e.dataForm)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.init()}}):e.$message.error(a.msg)})})}}},r,!1,function(e){a("nxB/")},"data-v-0e092704",null);t.default=o.exports},"nxB/":function(e,t,a){var r=a("0ct2");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("731ee9b8",r,!0)}});

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
webpackJsonp([4],{FUCY:function(n,t,e){n.exports=e.p+"static/img/12.07c5158.png"},KEXa:function(n,t,e){var a=e("jJrr");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("rjj0")("7354be3a",a,!0)},jJrr:function(n,t,e){(n.exports=e("FZ+f")(!1)).push([n.i,'\n.site-wrapper.site-page--login {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(38, 50, 56, 0.1);\n overflow: hidden;\n}\n.site-wrapper.site-page--login:before {\n position: fixed;\n top: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n content: "";\n background-image: url('+e("FUCY")+");\n background-size: cover;\n}\n.site-wrapper.site-page--login .site-content__wrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 0;\n margin: 0;\n overflow-x: hidden;\n overflow-y: auto;\n background-color: transparent;\n}\n.site-wrapper.site-page--login .site-content {\n min-height: 100%;\n padding: 30px 500px 30px 30px;\n}\n.site-wrapper.site-page--login .brand-info {\n margin: 220px 100px 0 90px;\n color: #fff;\n}\n.site-wrapper.site-page--login .brand-info__text {\n margin: 0 0 22px 0;\n font-size: 48px;\n font-weight: 400;\n text-transform: uppercase;\n}\n.site-wrapper.site-page--login .brand-info__intro {\n margin: 10px 0;\n font-size: 16px;\n line-height: 1.58;\n opacity: 0.6;\n}\n.site-wrapper.site-page--login .login-main {\n position: absolute;\n top: 0;\n right: 0;\n padding: 150px 60px 180px;\n width: 470px;\n min-height: 100%;\n background-color: #fff;\n}\n.site-wrapper.site-page--login .login-title {\n font-size: 16px;\n}\n.site-wrapper.site-page--login .login-captcha {\n overflow: hidden;\n}\n.site-wrapper.site-page--login .login-captcha > img {\n width: 100%;\n cursor: pointer;\n}\n.site-wrapper.site-page--login .login-btn-submit {\n width: 100%;\n margin-top: 38px;\n}\n",""])},wQTO:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"site-wrapper site-page--login"},[e("div",{staticClass:"site-content__wrapper"},[e("div",{staticClass:"site-content"},[n._m(0),n._v(" "),e("div",{staticClass:"login-main"},[e("h3",{staticClass:"login-title"},[n._v("管理员登录")]),n._v(" "),e("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"status-icon":""},nativeOn:{keyup:function(t){if(!("button"in t)&&n._k(t.keyCode,"enter",13,t.key,"Enter"))return null;n.dataFormSubmit()}}},[e("el-form-item",{attrs:{prop:"username"}},[e("el-input",{attrs:{placeholder:"帐号"},model:{value:n.dataForm.username,callback:function(t){n.$set(n.dataForm,"username",t)},expression:"dataForm.username"}})],1),n._v(" "),e("el-form-item",{attrs:{prop:"password"}},[e("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:n.dataForm.password,callback:function(t){n.$set(n.dataForm,"password",t)},expression:"dataForm.password"}})],1),n._v(" "),e("el-form-item",[e("el-button",{staticClass:"login-btn-submit",attrs:{type:"primary"},on:{click:function(t){n.dataFormSubmit()}}},[n._v("登录")])],1)],1)],1)])])])},staticRenderFns:[function(){var n=this.$createElement,t=this._self._c||n;return t("div",{staticClass:"brand-info"},[t("h2",{staticClass:"brand-info__text"},[this._v("MT-IG-B-1.5 "),t("br"),this._v("智能网关")])])}]};var r=e("VU/8")({data:function(){return{dataForm:{username:"admin",password:"admin"},dataRule:{username:[{required:!0,message:"帐号不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"}]}}},created:function(){},methods:{dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(t){if(t){var e={password:n.dataForm.password,userName:n.dataForm.username};n.$http({url:n.$http.adornUrl("api/server/user/login"),method:"post",data:e}).then(function(t){var e=t.data;e&&0===e.code?(n.$cookie.set("token",e.token),n.$router.replace({name:"home"})):n.$message.error(e.msg)})}})}}},a,!1,function(n){e("KEXa")},null,null);t.default=r.exports}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
webpackJsonp([9],{"2WB4":function(t,e,i){(t.exports=i("FZ+f")(!1)).push([t.i,"\n.mod-demo-ueditor {\n position: relative;\n z-index: 510;\n}\n.mod-demo-ueditor > .el-alert {\n margin-bottom: 10px;\n}\n",""])},feox:function(t,e,i){var o=i("2WB4");"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);i("rjj0")("1efd2d6a",o,!0)},t1fE:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=i("fZIC"),n=i.n(o),l={data:function(){return{ue:null,ueId:"J_ueditorBox_"+(new Date).getTime(),ueContent:"",dialogVisible:!1}},mounted:function(){this.ue=n.a.getEditor(this.ueId,{zIndex:3e3})},methods:{getContent:function(){var t=this;this.dialogVisible=!0,this.ue.ready(function(){t.ueContent=t.ue.getContent()})}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mod-demo-ueditor"},[i("el-alert",{attrs:{title:"提示:",type:"warning",closable:!1},scopedSlots:t._u([{key:"default",fn:function(e){return i("div",{},[i("p",{staticClass:"el-alert__description"},[t._v("1. 此Demo只提供UEditor官方使用文档入门部署和体验功能。具体使用请参考http://fex.baidu.com/ueditor/")]),t._v(" "),i("p",{staticClass:"el-alert__description"},[t._v("2. 浏览器控制台报错“请求后台配置项http错误上传功能将不能正常使用此错需要后台提供上传接口方法赋值给serverUrl属性")])])}}])}),t._v(" "),i("script",{staticClass:"ueditor-box",staticStyle:{width:"100%",height:"260px"},attrs:{id:t.ueId,type:"text/plain"}},[t._v("hello world!")]),t._v(" "),i("p",[i("el-button",{on:{click:function(e){t.getContent()}}},[t._v("获得内容")])],1),t._v(" "),i("el-dialog",{attrs:{title:"内容",visible:t.dialogVisible,"append-to-body":!0},on:{"update:visible":function(e){t.dialogVisible=e}}},[t._v("\n "+t._s(t.ueContent)+"\n "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("feox")},null,null);e.default=a.exports}});

View File

Before

Width:  |  Height:  |  Size: 386 KiB

After

Width:  |  Height:  |  Size: 386 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

1
dist/2095/static/js/1.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/2095/static/js/10.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([10],{DBgJ:function(e,t,s){(e.exports=s("FZ+f")(!1)).push([e.i,"\n.bg[data-v-625af12c] {\n /* background-image: url(~@/assets/img/13.jpg);\n background-size: cover;\n position: relative; */\n}\n.msgDiv[data-v-625af12c]{\n color: black;\n height: calc(100vh - 109px);\n overflow-y: auto;\n}\n.msg-div[data-v-625af12c] {\n}\n",""])},Sz5E:function(e,t,s){var o=s("DBgJ");"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);s("rjj0")("ae4e3c1c",o,!0)},uZtf:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s("mvHQ"),n=s.n(o),i={data:function(){return{websock:"",wbData:[],url:""}},created:function(){this.url=window.SITE_CONFIG.wbURL,JSON.parse(sessionStorage.getItem("msgDiv"))?this.wbData=JSON.parse(sessionStorage.getItem("msgDiv")):this.wbData=[],this.initWebSocket()},methods:{initWebSocket:function(){var e="ws://"+this.url+"/log";this.websock=new WebSocket(e),this.websock.onmessage=this.websocketonmessage,this.websock.onopen=this.websocketonopen,this.websock.onerror=this.websocketonerror,this.websock.onclose=this.websocketclose},websocketonopen:function(){this.websocketsend()},websocketonerror:function(){this.initWebSocket()},websocketonmessage:function(e){this.wbData.length>=1e3?(this.wbData.shift(),this.wbData.push(e.data)):this.wbData.push(e.data),sessionStorage.setItem("msgDiv",n()(this.wbData))},websocketsend:function(e){this.websock.send(e)},websocketclose:function(e){console.log("断开连接",e)}}},a={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"bg mod-config msgDiv"},e._l(e.wbData,function(t,o){return s("div",{key:o,staticClass:"msg-div"},[e._v("\n "+e._s(t)+"\n ")])}))},staticRenderFns:[]};var c=s("VU/8")(i,a,!1,function(e){s("Sz5E")},"data-v-625af12c",null);t.default=c.exports}});

1
dist/2095/static/js/11.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([11],{"5CI+":function(n,t,e){(n.exports=e("FZ+f")(!1)).push([n.i,"\n.site-wrapper.site-page--not-found {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n}\n.site-wrapper.site-page--not-found .site-content__wrapper {\n padding: 0;\n margin: 0;\n background-color: #fff;\n}\n.site-wrapper.site-page--not-found .site-content {\n position: fixed;\n top: 15%;\n left: 50%;\n z-index: 2;\n padding: 30px;\n text-align: center;\n -webkit-transform: translate(-50%, 0);\n transform: translate(-50%, 0);\n}\n.site-wrapper.site-page--not-found .not-found-title {\n margin: 20px 0 15px;\n font-size: 10em;\n font-weight: 400;\n color: #37474f;\n}\n.site-wrapper.site-page--not-found .not-found-desc {\n margin: 0 0 30px;\n font-size: 26px;\n text-transform: uppercase;\n color: #76838f;\n}\n.site-wrapper.site-page--not-found .not-found-desc > em {\n font-style: normal;\n color: #ee8145;\n}\n.site-wrapper.site-page--not-found .not-found-btn-gohome {\n margin-left: 30px;\n}\n",""])},"7FDS":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"site-wrapper site-page--not-found"},[e("div",{staticClass:"site-content__wrapper"},[e("div",{staticClass:"site-content"},[e("h2",{staticClass:"not-found-title"},[n._v("400")]),n._v(" "),n._m(0),n._v(" "),e("el-button",{on:{click:function(t){n.$router.go(-1)}}},[n._v("返回上一页")]),n._v(" "),e("el-button",{staticClass:"not-found-btn-gohome",attrs:{type:"primary"},on:{click:function(t){n.$router.push({name:"home"})}}},[n._v("进入首页")])],1)])])},staticRenderFns:[function(){var n=this.$createElement,t=this._self._c||n;return t("p",{staticClass:"not-found-desc"},[this._v("抱歉!您访问的页面"),t("em",[this._v("失联")]),this._v("啦 ...")])}]};var s=e("VU/8")({},o,!1,function(n){e("8SnF")},null,null);t.default=s.exports},"8SnF":function(n,t,e){var o=e("5CI+");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);e("rjj0")("ebd3c960",o,!0)}});

1
dist/2095/static/js/12.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([12],{Ev5x:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bg mod-config"},[a("el-card",{staticClass:"box-card"},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[a("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:e.dataForm.plcName,callback:function(t){e.$set(e.dataForm,"plcName",t)},expression:"dataForm.plcName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"设备型号",prop:"plcType"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择设备型号"},model:{value:e.dataForm.plcType,callback:function(t){e.$set(e.dataForm,"plcType",t)},expression:"dataForm.plcType"}},e._l(e.options,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"IP",prop:"address"}},[a("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:e.dataForm.address,callback:function(t){e.$set(e.dataForm,"address",t)},expression:"dataForm.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"端口号",prop:"port"}},[a("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:e.dataForm.port,callback:function(t){e.$set(e.dataForm,"port",t)},expression:"dataForm.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[a("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:e.dataForm.frequence,callback:function(t){e.$set(e.dataForm,"frequence",t)},expression:"dataForm.frequence"}},e._l(e.options1,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[a("el-switch",{model:{value:e.dataForm.autoConnect,callback:function(t){e.$set(e.dataForm,"autoConnect",t)},expression:"dataForm.autoConnect"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[a("el-switch",{model:{value:e.dataForm.autoRead,callback:function(t){e.$set(e.dataForm,"autoRead",t)},expression:"dataForm.autoRead"}})],1)],1),e._v(" "),a("span",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",autoConnect:!0,autoRead:!0,plcType:""},options:[],options1:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}],plcType:[{required:!0,message:"设备型号不能为空",trigger:"change"}]}}},created:function(){this.init()},methods:{init:function(){var e=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options1=a.data)}),this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-siemensType"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options=a.data)}),this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("api/server/plcCreate/create-siemensPlc"),method:"post",data:e.$http.adornData(e.dataForm)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.init()}}):e.$message.error(a.msg)})})}}},r,!1,function(e){a("Ji6/")},"data-v-332ceaaa",null);t.default=o.exports},"Ji6/":function(e,t,a){var r=a("myk5");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("c8f568fe",r,!0)},myk5:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.box-card[data-v-332ceaaa] {\n width: 480px;\n height: 480px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-332ceaaa] {\n background-image: url("+a("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])}});

View File

@ -1 +1 @@
webpackJsonp([13],{JHyu:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.box-card[data-v-a0f7cd08] {\n width: 480px;\n height: 450px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-a0f7cd08] {\n background-image: url("+a("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])},KNwn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bg mod-config"},[a("el-card",{staticClass:"box-card"},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[a("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:e.dataForm.plcName,callback:function(t){e.$set(e.dataForm,"plcName",t)},expression:"dataForm.plcName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"IP",prop:"address"}},[a("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:e.dataForm.address,callback:function(t){e.$set(e.dataForm,"address",t)},expression:"dataForm.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"端口号",prop:"port"}},[a("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:e.dataForm.port,callback:function(t){e.$set(e.dataForm,"port",t)},expression:"dataForm.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[a("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:e.dataForm.frequence,callback:function(t){e.$set(e.dataForm,"frequence",t)},expression:"dataForm.frequence"}},e._l(e.options1,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[a("el-switch",{model:{value:e.dataForm.autoConnect,callback:function(t){e.$set(e.dataForm,"autoConnect",t)},expression:"dataForm.autoConnect"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[a("el-switch",{model:{value:e.dataForm.autoRead,callback:function(t){e.$set(e.dataForm,"autoRead",t)},expression:"dataForm.autoRead"}})],1)],1),e._v(" "),a("span",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",autoConnect:!0,autoRead:!0},options1:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(){var e=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options1=a.data)}),this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("api/server/plcCreate/create-OmronPlc"),method:"post",data:e.$http.adornData(e.dataForm)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.init()}}):e.$message.error(a.msg)})})}}},r,!1,function(e){a("ydPE")},"data-v-a0f7cd08",null);t.default=o.exports},ydPE:function(e,t,a){var r=a("JHyu");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("382253be",r,!0)}}); webpackJsonp([13],{HP5Y:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.box-card[data-v-8da17d1c] {\n width: 480px;\n height: 450px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-8da17d1c] {\n background-image: url("+a("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])},KNwn:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bg mod-config"},[a("el-card",{staticClass:"box-card"},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[a("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:e.dataForm.plcName,callback:function(t){e.$set(e.dataForm,"plcName",t)},expression:"dataForm.plcName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"IP",prop:"address"}},[a("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:e.dataForm.address,callback:function(t){e.$set(e.dataForm,"address",t)},expression:"dataForm.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"端口号",prop:"port"}},[a("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:e.dataForm.port,callback:function(t){e.$set(e.dataForm,"port",t)},expression:"dataForm.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[a("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:e.dataForm.frequence,callback:function(t){e.$set(e.dataForm,"frequence",t)},expression:"dataForm.frequence"}},e._l(e.options1,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[a("el-switch",{model:{value:e.dataForm.autoConnect,callback:function(t){e.$set(e.dataForm,"autoConnect",t)},expression:"dataForm.autoConnect"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[a("el-switch",{model:{value:e.dataForm.autoRead,callback:function(t){e.$set(e.dataForm,"autoRead",t)},expression:"dataForm.autoRead"}})],1)],1),e._v(" "),a("span",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",autoConnect:!0,autoRead:!0},options1:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(){var e=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options1=a.data)}),this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("api/server/plcCreate/create-OmronPlc"),method:"post",data:e.$http.adornData(e.dataForm)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.init()}}):e.$message.error(a.msg)})})}}},r,!1,function(e){a("qNqZ")},"data-v-8da17d1c",null);t.default=o.exports},qNqZ:function(e,t,a){var r=a("HP5Y");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("d18c1fa8",r,!0)}});

1
dist/2095/static/js/14.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([14],{GQPu:function(t,a,e){(t.exports=e("FZ+f")(!1)).push([t.i,"\n.box-card[data-v-5e4aff8f] {\n width: 480px;\n height: 540px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-5e4aff8f] {\n background-image: url("+e("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])},ibYb:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"bg mod-config"},[e("el-card",{staticClass:"box-card"},[e("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(a){if(!("button"in a)&&t._k(a.keyCode,"enter",13,a.key,"Enter"))return null;t.dataFormSubmit()}}},[e("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[e("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:t.dataForm.plcName,callback:function(a){t.$set(t.dataForm,"plcName",a)},expression:"dataForm.plcName"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"IP",prop:"address"}},[e("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:t.dataForm.address,callback:function(a){t.$set(t.dataForm,"address",a)},expression:"dataForm.address"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"端口号",prop:"port"}},[e("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:t.dataForm.port,callback:function(a){t.$set(t.dataForm,"port",a)},expression:"dataForm.port"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"站号",prop:"station"}},[e("el-input",{attrs:{placeholder:"站号",clearable:""},model:{value:t.dataForm.station,callback:function(a){t.$set(t.dataForm,"station",a)},expression:"dataForm.station"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"读取格式",prop:"dataFormat"}},[e("el-select",{attrs:{placeholder:"请选择读取格式"},model:{value:t.dataForm.dataFormat,callback:function(a){t.$set(t.dataForm,"dataFormat",a)},expression:"dataForm.dataFormat"}},t._l(t.options2,function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})}))],1),t._v(" "),e("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[e("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:t.dataForm.frequence,callback:function(a){t.$set(t.dataForm,"frequence",a)},expression:"dataForm.frequence"}},t._l(t.options1,function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})}))],1),t._v(" "),e("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[e("el-switch",{model:{value:t.dataForm.autoConnect,callback:function(a){t.$set(t.dataForm,"autoConnect",a)},expression:"dataForm.autoConnect"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[e("el-switch",{model:{value:t.dataForm.autoRead,callback:function(a){t.$set(t.dataForm,"autoRead",a)},expression:"dataForm.autoRead"}})],1)],1),t._v(" "),e("span",{staticStyle:{float:"right"}},[e("el-button",{attrs:{type:"primary"},on:{click:function(a){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=e("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",dataFormat:"",autoConnect:!0,autoRead:!0,station:""},options1:[],options2:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}],station:[{required:!0,message:"站号不能为空",trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(){var t=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(a){var e=a.data;e&&0===e.code&&(t.options1=e.data)}),this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-DataFormat"),method:"post"}).then(function(a){var e=a.data;e&&0===e.code&&(t.options2=e.data)}),this.$nextTick(function(){t.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(a){a&&t.$http({url:t.$http.adornUrl("api/server/plcCreate/create-Modbus"),method:"post",data:t.$http.adornData(t.dataForm)}).then(function(a){var e=a.data;e&&0===e.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.init()}}):t.$message.error(e.msg)})})}}},r,!1,function(t){e("uOkm")},"data-v-5e4aff8f",null);a.default=o.exports},uOkm:function(t,a,e){var r=e("GQPu");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);e("rjj0")("7b687532",r,!0)}});

1
dist/2095/static/js/15.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([15],{G5Uz:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bg mod-config"},[a("el-card",{staticClass:"box-card"},[a("el-form",{ref:"dataForm",attrs:{model:e.dataForm,rules:e.dataRule,"label-width":"80px"},nativeOn:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"设备名称",prop:"plcName"}},[a("el-input",{attrs:{placeholder:"设备名称",clearable:""},model:{value:e.dataForm.plcName,callback:function(t){e.$set(e.dataForm,"plcName",t)},expression:"dataForm.plcName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"IP",prop:"address"}},[a("el-input",{attrs:{placeholder:"IP",clearable:""},model:{value:e.dataForm.address,callback:function(t){e.$set(e.dataForm,"address",t)},expression:"dataForm.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"端口号",prop:"port"}},[a("el-input",{attrs:{placeholder:"端口号",clearable:""},model:{value:e.dataForm.port,callback:function(t){e.$set(e.dataForm,"port",t)},expression:"dataForm.port"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"读取频率",prop:"frequence"}},[a("el-select",{attrs:{placeholder:"请选择读取频率"},model:{value:e.dataForm.frequence,callback:function(t){e.$set(e.dataForm,"frequence",t)},expression:"dataForm.frequence"}},e._l(e.options1,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})}))],1),e._v(" "),a("el-form-item",{attrs:{label:"自动连接",prop:"autoConnect"}},[a("el-switch",{model:{value:e.dataForm.autoConnect,callback:function(t){e.$set(e.dataForm,"autoConnect",t)},expression:"dataForm.autoConnect"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"自动读取",prop:"autoRead"}},[a("el-switch",{model:{value:e.dataForm.autoRead,callback:function(t){e.$set(e.dataForm,"autoRead",t)},expression:"dataForm.autoRead"}})],1)],1),e._v(" "),a("span",{staticStyle:{float:"right"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dataFormSubmit()}}},[e._v("确定")])],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")({data:function(){return{dataForm:{plcName:"",port:"",address:"",frequence:"",autoConnect:!0,autoRead:!0},options1:[],dataRule:{plcName:[{required:!0,message:"设备名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口号不能为空",trigger:"blur"}],address:[{required:!0,message:"IP不能为空",trigger:"blur"}],frequence:[{required:!0,message:"读取频率不能为空",trigger:"blur"}]}}},created:function(){this.init()},methods:{init:function(){var e=this;this.$http({url:this.$http.adornUrl("api/server/plcCreate/list-frequence"),method:"post"}).then(function(t){var a=t.data;a&&0===a.code&&(e.options1=a.data)}),this.$nextTick(function(){e.$refs.dataForm.resetFields()})},dataFormSubmit:function(){var e=this;this.$refs.dataForm.validate(function(t){t&&e.$http({url:e.$http.adornUrl("api/server/plcCreate/create-MelsecPlc"),method:"post",data:e.$http.adornData(e.dataForm)}).then(function(t){var a=t.data;a&&0===a.code?e.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){e.init()}}):e.$message.error(a.msg)})})}}},r,!1,function(e){a("R++o")},"data-v-39c2fdce",null);t.default=o.exports},"R++o":function(e,t,a){var r=a("tong");"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);a("rjj0")("4c844f5c",r,!0)},tong:function(e,t,a){(e.exports=a("FZ+f")(!1)).push([e.i,"\n.box-card[data-v-39c2fdce] {\n width: 480px;\n height: 450px;\n position: absolute;\n /* 水平垂直居中 */\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n margin: auto;\n}\n.bg[data-v-39c2fdce] {\n background-image: url("+a("1JAX")+");\n background-size: cover;\n position: relative;\n}\n",""])}});

1
dist/2095/static/js/2.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/2095/static/js/34.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([34],{I81Z:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"更新MQTT配置","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"port",prop:"port"}},[a("el-input",{attrs:{placeholder:"port",clearable:""},model:{value:t.dataForm.port,callback:function(e){t.$set(t.dataForm,"port",e)},expression:"dataForm.port"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"host",prop:"host"}},[a("el-input",{attrs:{placeholder:"host",clearable:""},model:{value:t.dataForm.host,callback:function(e){t.$set(t.dataForm,"host",e)},expression:"dataForm.host"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"isstart",prop:"isstart"}},[a("el-switch",{model:{value:t.dataForm.isstart,callback:function(e){t.$set(t.dataForm,"isstart",e)},expression:"dataForm.isstart"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"topic",prop:"virtualhost"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:t.dataForm.virtualhost,callback:function(e){t.$set(t.dataForm,"virtualhost",e)},expression:"dataForm.virtualhost"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},staticRenderFns:[]},o=a("VU/8")({data:function(){return{visible:!1,dataForm:{id:"",port:"",host:"",isstart:"",virtualhost:""},dataRule:{port:[{required:!0,message:"端口不能为空",trigger:"blur"}],host:[{required:!0,message:"IP不能为空",trigger:"blur"}],isstart:[{required:!0,message:"isstart不能为空",trigger:"blur"}],virtualhost:[{required:!0,message:"topic不能为空",trigger:"blur"}]}}},methods:{init:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.$http({url:t.$http.adornUrl("api/server/main-config/getMQTTConfig"),method:"post"}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.data)})})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){e&&t.$http({url:t.$http.adornUrl("api/server/main-config/updateMqConfig"),method:"post",data:t.$http.adornData(t.dataForm)}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(a.msg)})})}}},r,!1,null,null,null);e.default=o.exports}});

View File

@ -1 +1 @@
webpackJsonp([34],{Yzs3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"更新MQ配置","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"username",prop:"username"}},[a("el-input",{attrs:{placeholder:"username",clearable:""},model:{value:t.dataForm.username,callback:function(e){t.$set(t.dataForm,"username",e)},expression:"dataForm.username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"port",prop:"port"}},[a("el-input",{attrs:{placeholder:"port",clearable:""},model:{value:t.dataForm.port,callback:function(e){t.$set(t.dataForm,"port",e)},expression:"dataForm.port"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"host",prop:"host"}},[a("el-input",{attrs:{placeholder:"host",clearable:""},model:{value:t.dataForm.host,callback:function(e){t.$set(t.dataForm,"host",e)},expression:"dataForm.host"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"isstart",prop:"isstart"}},[a("el-switch",{model:{value:t.dataForm.isstart,callback:function(e){t.$set(t.dataForm,"isstart",e)},expression:"dataForm.isstart"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"passport",prop:"passport"}},[a("el-input",{attrs:{placeholder:"passport",clearable:""},model:{value:t.dataForm.passport,callback:function(e){t.$set(t.dataForm,"passport",e)},expression:"dataForm.passport"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"virtualhost",prop:"virtualhost"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:t.dataForm.virtualhost,callback:function(e){t.$set(t.dataForm,"virtualhost",e)},expression:"dataForm.virtualhost"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},staticRenderFns:[]},s=a("VU/8")({data:function(){return{visible:!1,dataForm:{id:"",username:"",port:"",host:"",passport:"",isstart:"",virtualhost:""},dataRule:{username:[{required:!0,message:"名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口不能为空",trigger:"blur"}],host:[{required:!0,message:"IP不能为空",trigger:"blur"}],passport:[{required:!0,message:"passport不能为空",trigger:"blur"}],isstart:[{required:!0,message:"isstart不能为空",trigger:"blur"}],virtualhost:[{required:!0,message:"isstart不能为空",trigger:"blur"}]}}},methods:{init:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.$http({url:t.$http.adornUrl("api/server/main-config/getMqConfig"),method:"post"}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.data)})})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){e&&t.$http({url:t.$http.adornUrl("api/server/main-config/updateMqConfig"),method:"post",data:t.$http.adornData(t.dataForm)}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(a.msg)})})}}},r,!1,null,null,null);e.default=s.exports}}); webpackJsonp([35],{Yzs3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"更新MQ配置","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"username",prop:"username"}},[a("el-input",{attrs:{placeholder:"username",clearable:""},model:{value:t.dataForm.username,callback:function(e){t.$set(t.dataForm,"username",e)},expression:"dataForm.username"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"port",prop:"port"}},[a("el-input",{attrs:{placeholder:"port",clearable:""},model:{value:t.dataForm.port,callback:function(e){t.$set(t.dataForm,"port",e)},expression:"dataForm.port"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"host",prop:"host"}},[a("el-input",{attrs:{placeholder:"host",clearable:""},model:{value:t.dataForm.host,callback:function(e){t.$set(t.dataForm,"host",e)},expression:"dataForm.host"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"isstart",prop:"isstart"}},[a("el-switch",{model:{value:t.dataForm.isstart,callback:function(e){t.$set(t.dataForm,"isstart",e)},expression:"dataForm.isstart"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"passport",prop:"passport"}},[a("el-input",{attrs:{placeholder:"passport",clearable:""},model:{value:t.dataForm.passport,callback:function(e){t.$set(t.dataForm,"passport",e)},expression:"dataForm.passport"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"virtualhost",prop:"virtualhost"}},[a("el-input",{attrs:{placeholder:"",clearable:""},model:{value:t.dataForm.virtualhost,callback:function(e){t.$set(t.dataForm,"virtualhost",e)},expression:"dataForm.virtualhost"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},staticRenderFns:[]},s=a("VU/8")({data:function(){return{visible:!1,dataForm:{id:"",username:"",port:"",host:"",passport:"",isstart:"",virtualhost:""},dataRule:{username:[{required:!0,message:"名称不能为空",trigger:"blur"}],port:[{required:!0,message:"端口不能为空",trigger:"blur"}],host:[{required:!0,message:"IP不能为空",trigger:"blur"}],passport:[{required:!0,message:"passport不能为空",trigger:"blur"}],isstart:[{required:!0,message:"isstart不能为空",trigger:"blur"}],virtualhost:[{required:!0,message:"virtualhost不能为空",trigger:"blur"}]}}},methods:{init:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.$http({url:t.$http.adornUrl("api/server/main-config/getMqConfig"),method:"post"}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.data)})})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){e&&t.$http({url:t.$http.adornUrl("api/server/main-config/updateMqConfig"),method:"post",data:t.$http.adornData(t.dataForm)}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(a.msg)})})}}},r,!1,null,null,null);e.default=s.exports}});

1
dist/2095/static/js/36.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([36],{"+Efp":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"更新HJ212配置","close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:"port",prop:"port"}},[a("el-input",{attrs:{placeholder:"port",clearable:""},model:{value:t.dataForm.port,callback:function(e){t.$set(t.dataForm,"port",e)},expression:"dataForm.port"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"isstart",prop:"isstart"}},[a("el-switch",{model:{value:t.dataForm.isstart,callback:function(e){t.$set(t.dataForm,"isstart",e)},expression:"dataForm.isstart"}})],1)],1),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dataFormSubmit()}}},[t._v("确定")])],1)],1)},staticRenderFns:[]},o=a("VU/8")({data:function(){return{visible:!1,dataForm:{id:"",port:"",isstart:""},dataRule:{port:[{required:!0,message:"端口不能为空",trigger:"blur"}],isstart:[{required:!0,message:"isstart不能为空",trigger:"blur"}]}}},methods:{init:function(){var t=this;this.visible=!0,this.$nextTick(function(){t.$refs.dataForm.resetFields(),t.$http({url:t.$http.adornUrl("api/server/main-config/getHJ212Config"),method:"post"}).then(function(e){var a=e.data;a&&0===a.code&&(t.dataForm=a.data)})})},dataFormSubmit:function(){var t=this;this.$refs.dataForm.validate(function(e){e&&t.$http({url:t.$http.adornUrl("api/server/main-config/updateMqConfig"),method:"post",data:t.$http.adornData(t.dataForm)}).then(function(e){var a=e.data;a&&0===a.code?t.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){t.visible=!1,t.$emit("refreshDataList")}}):t.$message.error(a.msg)})})}}},r,!1,null,null,null);e.default=o.exports}});

1
dist/2095/static/js/4.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/2095/static/js/5.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([5],{FJMX:function(n,t,e){(n.exports=e("FZ+f")(!1)).push([n.i,'\n.site-wrapper.site-page--login {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: rgba(38, 50, 56, 0.1);\n overflow: hidden;\n}\n.site-wrapper.site-page--login:before {\n position: fixed;\n top: 0;\n left: 0;\n z-index: -1;\n width: 100%;\n height: 100%;\n content: "";\n background-image: url('+e("FUCY")+");\n background-size: cover;\n}\n.site-wrapper.site-page--login .site-content__wrapper {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: 0;\n margin: 0;\n overflow-x: hidden;\n overflow-y: auto;\n background-color: transparent;\n}\n.site-wrapper.site-page--login .site-content {\n min-height: 100%;\n padding: 30px 500px 30px 30px;\n}\n.site-wrapper.site-page--login .brand-info {\n margin: 220px 100px 0 90px;\n color: #fff;\n}\n.site-wrapper.site-page--login .brand-info__text {\n margin: 0 0 22px 0;\n font-size: 48px;\n font-weight: 400;\n text-transform: uppercase;\n}\n.site-wrapper.site-page--login .brand-info__intro {\n margin: 10px 0;\n font-size: 16px;\n line-height: 1.58;\n opacity: 0.6;\n}\n.site-wrapper.site-page--login .login-main {\n position: absolute;\n top: 0;\n right: 0;\n padding: 150px 60px 180px;\n width: 470px;\n min-height: 100%;\n background-color: #fff;\n}\n.site-wrapper.site-page--login .login-title {\n font-size: 16px;\n}\n.site-wrapper.site-page--login .login-captcha {\n overflow: hidden;\n}\n.site-wrapper.site-page--login .login-captcha > img {\n width: 100%;\n cursor: pointer;\n}\n.site-wrapper.site-page--login .login-btn-submit {\n width: 100%;\n margin-top: 38px;\n}\n",""])},FUCY:function(n,t,e){n.exports=e.p+"static/img/12.07c5158.png"},Wj8W:function(n,t,e){var a=e("FJMX");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("rjj0")("6ee07416",a,!0)},wQTO:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"site-wrapper site-page--login"},[e("div",{staticClass:"site-content__wrapper"},[e("div",{staticClass:"site-content"},[n._m(0),n._v(" "),e("div",{staticClass:"login-main"},[e("h3",{staticClass:"login-title"},[n._v("管理员登录")]),n._v(" "),e("el-form",{ref:"dataForm",attrs:{model:n.dataForm,rules:n.dataRule,"status-icon":""},nativeOn:{keyup:function(t){if(!("button"in t)&&n._k(t.keyCode,"enter",13,t.key,"Enter"))return null;n.dataFormSubmit()}}},[e("el-form-item",{attrs:{prop:"username"}},[e("el-input",{attrs:{placeholder:"帐号"},model:{value:n.dataForm.username,callback:function(t){n.$set(n.dataForm,"username",t)},expression:"dataForm.username"}})],1),n._v(" "),e("el-form-item",{attrs:{prop:"password"}},[e("el-input",{attrs:{type:"password",placeholder:"密码"},model:{value:n.dataForm.password,callback:function(t){n.$set(n.dataForm,"password",t)},expression:"dataForm.password"}})],1),n._v(" "),e("el-form-item",[e("el-button",{staticClass:"login-btn-submit",attrs:{type:"primary"},on:{click:function(t){n.dataFormSubmit()}}},[n._v("登录")])],1)],1)],1)])])])},staticRenderFns:[function(){var n=this.$createElement,t=this._self._c||n;return t("div",{staticClass:"brand-info"},[t("h2",{staticClass:"brand-info__text"},[this._v("MT-IG-B-1.5 "),t("br"),this._v("智能网关")])])}]};var i=e("VU/8")({data:function(){return{dataForm:{username:"admin",password:"admin"},dataRule:{username:[{required:!0,message:"帐号不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"}]}}},created:function(){},methods:{dataFormSubmit:function(){var n=this;this.$refs.dataForm.validate(function(t){if(t){var e={password:n.dataForm.password,userName:n.dataForm.username};n.$http({url:n.$http.adornUrl("api/server/user/login"),method:"post",data:e}).then(function(t){var e=t.data;e&&0===e.code?(n.$cookie.set("token",e.token),n.$router.replace({name:"home"})):n.$message.error(e.msg)})}})}}},a,!1,function(n){e("Wj8W")},null,null);t.default=i.exports}});

1
dist/2095/static/js/6.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/2095/static/js/9.js vendored Normal file
View File

@ -0,0 +1 @@
webpackJsonp([9],{YSsm:function(t,e,i){(t.exports=i("FZ+f")(!1)).push([t.i,"\n.mod-demo-ueditor {\n position: relative;\n z-index: 510;\n}\n.mod-demo-ueditor > .el-alert {\n margin-bottom: 10px;\n}\n",""])},f7ii:function(t,e,i){var n=i("YSsm");"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);i("rjj0")("1b6af83e",n,!0)},t1fE:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("fZIC"),o=i.n(n),s={data:function(){return{ue:null,ueId:"J_ueditorBox_"+(new Date).getTime(),ueContent:"",dialogVisible:!1}},mounted:function(){this.ue=o.a.getEditor(this.ueId,{zIndex:3e3})},methods:{getContent:function(){var t=this;this.dialogVisible=!0,this.ue.ready(function(){t.ueContent=t.ue.getContent()})}}},l={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"mod-demo-ueditor"},[i("el-alert",{attrs:{title:"提示:",type:"warning",closable:!1},scopedSlots:t._u([{key:"default",fn:function(e){return i("div",{},[i("p",{staticClass:"el-alert__description"},[t._v("1. 此Demo只提供UEditor官方使用文档入门部署和体验功能。具体使用请参考http://fex.baidu.com/ueditor/")]),t._v(" "),i("p",{staticClass:"el-alert__description"},[t._v("2. 浏览器控制台报错“请求后台配置项http错误上传功能将不能正常使用此错需要后台提供上传接口方法赋值给serverUrl属性")])])}}])}),t._v(" "),i("script",{staticClass:"ueditor-box",staticStyle:{width:"100%",height:"260px"},attrs:{id:t.ueId,type:"text/plain"}},[t._v("hello world!")]),t._v(" "),i("p",[i("el-button",{on:{click:function(e){t.getContent()}}},[t._v("获得内容")])],1),t._v(" "),i("el-dialog",{attrs:{title:"内容",visible:t.dialogVisible,"append-to-body":!0},on:{"update:visible":function(e){t.dialogVisible=e}}},[t._v("\n "+t._s(t.ueContent)+"\n "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("确 定")])],1)])],1)},staticRenderFns:[]};var a=i("VU/8")(s,l,!1,function(t){i("f7ii")},null,null);e.default=a.exports}});

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,i){for(var u,a,f,s=0,l=[];s<r.length;s++)a=r[s],t[a]&&l.push(t[a][0]),t[a]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(n&&n(r,c,i);l.length;)l.shift()();if(i)for(s=0;s<i.length;s++)f=o(o.s=i[s]);return f};var r={},t={37:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,o.nc&&i.setAttribute("nonce",o.nc),i.src=o.p+"static/js/"+e+".js";var u=setTimeout(a,12e4);function a(){i.onerror=i.onload=null,clearTimeout(u);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return i.onerror=i.onload=a,c.appendChild(i),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=window.SITE_CONFIG.cdnUrl + "/",o.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,i){for(var u,a,f,s=0,l=[];s<r.length;s++)a=r[s],t[a]&&l.push(t[a][0]),t[a]=0;for(u in c)Object.prototype.hasOwnProperty.call(c,u)&&(e[u]=c[u]);for(n&&n(r,c,i);l.length;)l.shift()();if(i)for(s=0;s<i.length;s++)f=o(o.s=i[s]);return f};var r={},t={39:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],i=document.createElement("script");i.type="text/javascript",i.charset="utf-8",i.async=!0,i.timeout=12e4,o.nc&&i.setAttribute("nonce",o.nc),i.src=o.p+"static/js/"+e+".js";var u=setTimeout(a,12e4);function a(){i.onerror=i.onload=null,clearTimeout(u);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return i.onerror=i.onload=a,c.appendChild(i),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p=window.SITE_CONFIG.cdnUrl + "/",o.oe=function(e){throw console.error(e),e}}([]);

File diff suppressed because one or more lines are too long

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Some files were not shown because too many files have changed in this diff Show More