mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-10 00:40:30 +08:00
4f79e10bd6
Former-commit-id: 376f94edd602d3dfed1cbada6e08361ee7b08e73
1 line
2.7 KiB
JavaScript
1 line
2.7 KiB
JavaScript
webpackJsonp([150],{"/rPu":function(t,e,a){(t.exports=a("FZ+f")(!1)).push([t.i,"\n[data-v-f47fbf5a] .el-upload {\n text-align: left;\n width: 100px;\n}\n[data-v-f47fbf5a] .el-upload-list__item {\n width: 560px;\n}\n.upadd-card[data-v-f47fbf5a] {\n margin-bottom: 100px;\n padding-bottom: 18px;\n}\n[data-v-f47fbf5a] .el-button--default:hover {\n opacity: 1;\n}\n",""])},"2xOi":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("04W7"),o={data:function(){return{modelForm:{host:"",remark:""},rules:{host:[{trigger:"change",validator:function(t,e,a){e?/^(((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))\.){3}((\d{1,2})|(1\d{1,2})|(2[0-4]\d)|(25[0-5]))$/.test(e)?a():a(new Error("节点输入不正确")):a(new Error("请输入节点"))}}]}}},mounted:function(){this.modelForm=this.$route.query.row},methods:{handleConfirm:function(){var t=this;this.$refs.formData.validate(function(e){if(!e)return!1;r.a.editNode(t.modelForm).then(function(e){e.success&&(t.$message.success("编辑成功"),t.$router.push("/nodeManage/index"))})})},cancle:function(){this.$router.go(-1)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container",staticStyle:{width:"100%"}},[a("el-card",{staticClass:"upadd-card",attrs:{shadow:"hover"}},[a("div",{staticClass:"add-form",staticStyle:{width:"100%"}},[a("el-form",{ref:"formData",staticClass:"demo-detailData",attrs:{model:t.modelForm,rules:t.rules,"label-width":"140px"}},[a("el-form-item",{staticStyle:{width:"40%"},attrs:{label:"节点",prop:"host"}},[a("div",{staticClass:"word-limit-ctnr"},[a("el-input",{attrs:{maxlength:"255"},model:{value:t.modelForm.host,callback:function(e){t.$set(t.modelForm,"host",e)},expression:"modelForm.host"}})],1)]),t._v(" "),a("el-form-item",{staticStyle:{width:"40%"},attrs:{label:"备注",prop:"remark"}},[a("div",{staticClass:"word-limit-ctnr",staticStyle:{width:"555px"}},[a("el-input",{staticStyle:{width:"555px"},attrs:{type:"textarea",placeholder:"请输入备注",maxlength:"64",resize:"none"},model:{value:t.modelForm.remark,callback:function(e){t.$set(t.modelForm,"remark",e)},expression:"modelForm.remark"}}),t._v(" "),a("span",{staticClass:"word-limit"},[t._v(t._s(t.modelForm.remark&&t.modelForm.remark.length||0)+"/64")])],1)]),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleConfirm()}}},[t._v("确定")]),t._v(" "),a("el-button",{on:{click:t.cancle}},[t._v("取消")])],1)],1)],1)])],1)},staticRenderFns:[]};var l=a("VU/8")(o,n,!1,function(t){a("P78l")},"data-v-f47fbf5a",null);e.default=l.exports},P78l:function(t,e,a){var r=a("/rPu");"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);a("rjj0")("539494d8",r,!0)}}); |