yxk_pc_mdh/gyhl/static/js/104.83acf4aa3bd57f04bae5.js

1 line
17 KiB
JavaScript
Raw Normal View History

2025-08-28 15:26:35 +08:00
webpackJsonp([104],{Lr3z:function(e,t){},LvUt:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("d7EF"),n=a.n(i),s=a("//Fk"),o=a.n(s),r=a("lbHh"),l=a.n(r),c=a("Dd8w"),d=a.n(c),m=a("NYxO"),v=a("bzuE"),u={name:"",data:function(){return{loading:!1,config:v.a,innerVisible:this.visible,activeName:"first",formData:{},rulesForm:{},value2:0,remark0:0}},props:{deviceId:{default:""},visible:{type:Boolean,default:!1},id:{}},created:function(){},mounted:function(){},watch:{visible:function(e,t){e!==t&&(e&&this.initData(),this.innerVisible=e)},innerVisible:function(e,t){e!==t&&this.$emit("update:visible",e)},formData:{handler:function(e,t){this.remark0=e.remark.toString().length},deep:!0}},methods:d()({},Object(m.d)({removeTagNav:"tagNav/removeTagNav"}),{initData:function(){},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/networking/alarm_measure"})},save:function(e){var t=this;this.$refs[e].validate(function(e){e&&(t.formData.deviceId=t.deviceId,t.$api.netWorkingAPI.measurePointSave(t.formData).then(function(e){0===e.code?(t.innerVisible=!1,t.$emit("change"),t.$message({message:e.msg,type:"success"})):t.$message({message:e.msg,type:"error"})}))})}})},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{center:"",title:"控制下发",visible:e.innerVisible,width:"530px"},on:{"update:visible":function(t){e.innerVisible=t}}},[a("div",{staticClass:"sys-box plan-box",staticStyle:{"min-height":"200px !important"}},[a("div",{staticClass:"sys-tabs"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("div",[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{inline:!0,"label-width":"90px",model:e.formData,rules:e.rulesForm}},[a("div",{staticClass:"flex"},[a("el-form-item",{attrs:{label:"值",prop:"serialNo"}},[a("el-switch",{attrs:{"active-value":"1","inactive-value":"0","active-text":"分","inactive-text":"合"},model:{value:e.value2,callback:function(t){e.value2=t},expression:"value2"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"操作密码",prop:"name"}},[a("el-input",{attrs:{placeholder:"请输入密码"},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注",prop:"remark"}},[a("el-input",{attrs:{type:"textarea",maxlength:"500",rows:3,placeholder:"请输入备注"},model:{value:e.formData.remark,callback:function(t){e.$set(e.formData,"remark",t)},expression:"formData.remark"}}),e._v(" "),[a("i",{staticStyle:{position:"absolute",right:"10px",bottom:"-2px","line-height":"14px","font-size":"14px"}},[e._v(e._s(e.remark0)+"/500")])]],2)],1)])],1)])],1)]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.innerVisible=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.save("form")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var p=a("VU/8")(u,f,!1,function(e){a("hR5y")},"data-v-1f4ad052",null).exports,h={name:"",data:function(){return{loading:!1,config:v.a,innerVisible:this.visible,activeName:"first",formData:{remark:111},rulesForm:{},value2:0,remark0:0,datatime:[],tableData:[{time:"",add:!0},{time:123,data:""}]}},props:{deviceId:{default:""},visible:{type:Boolean,default:!1},id:{}},created:function(){},mounted:function(){},watch:{visible:function(e,t){e!==t&&(e&&this.initData(),this.innerVisible=e)},innerVisible:function(e,t){e!==t&&this.$emit("update:visible",e)},formData:{handler:function(e,t){this.remark0=e.remark.toString().length},deep:!0}},methods:d()({},Object(m.d)({removeTagNav:"tagNav/removeTagNav"}),{initData:function(){},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/networking/alarm_measure"})},save:function(e