mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 16:30:29 +08:00
0c56a3e599
Made-with: Cursor Former-commit-id: 571c9a99ee26d90505e550c287eb8ad8d743ff8d
1 line
2.4 KiB
JavaScript
1 line
2.4 KiB
JavaScript
webpackJsonp([232],{"E7f/":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r("hOsK"),a=(r.n(o),r("kqC4")),s=(r.n(a),r("lv5w")),i=(r.n(s),r("DixE")),n=(r.n(i),r("2bj9")),l=(r.n(n),r("44wJ")),d=(r.n(l),r("6zSr")),m=(r.n(d),r("23M+")),c=(r.n(m),r("oiss"),r("EVzn")),u=r("mtWM"),h=(r.n(u),r("zL8q")),f=(r.n(h),r("sDtw")),v=Object(c.a)({render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container",staticStyle:{width:"100%"}},[r("el-card",{staticClass:"upadd-card",attrs:{shadow:"hover"}},[r("div",{staticClass:"add-form",staticStyle:{width:"100%"}},[r("el-form",{ref:"formData",staticClass:"demo-detailData",attrs:{model:t.modelForm,rules:t.rules,"label-width":"140px"}},[r("el-form-item",{staticStyle:{width:"40%"},attrs:{label:"节点",prop:"host"}},[r("div",{staticClass:"word-limit-ctnr"},[r("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(" "),r("el-form-item",{staticStyle:{width:"40%"},attrs:{label:"备注",prop:"remark"}},[r("div",{staticClass:"word-limit-ctnr",staticStyle:{width:"555px"}},[r("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(" "),r("span",{staticClass:"word-limit"},[t._v(t._s(t.modelForm.remark&&t.modelForm.remark.length||0)+"/64")])],1)]),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleConfirm()}}},[t._v("确定")]),t._v(" "),r("el-button",{on:{click:t.cancle}},[t._v("取消")])],1)],1)],1)])],1)},staticRenderFns:[]},void 0,{data:function(){return{modelForm:{host:"",remark:""},rules:{host:[{trigger:"change",validator:function(t,e,r){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)?r():r(new Error("节点输入不正确")):r(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;f.a.editNode(t.modelForm).then(function(e){e.success&&(t.$message.success("编辑成功"),t.$router.push("/nodeManage/index"))})})},cancle:function(){this.$router.go(-1)}}},"data-v-3cbf8bc1",!1,void 0,!1,void 0,void 0,void 0);e.default=v}}); |