(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d22cea1"],{f4eb:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top"},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础配置")]),a("form-generator",{ref:"basicForm",attrs:{"form-config":t.formConfig,"show-footer":!0,showCancel:!0,cancelText:"返回"},on:{submit:t.handleBasicSubmit,cancel:t.handleCancel},model:{value:t.formData,callback:function(e){t.formData=e},expression:"formData"}})],1)])])},o=[],n=a("7f70"),r=a("8327"),s={name:"WorkorderSet",data:function(){return{formData:{status:1}}},computed:Object(n["a"])(Object(n["a"])({},Object(r["b"])(["config"])),{},{formConfig:function(){var t=[{type:"radio",label:"状态",prop:"status",required:!0,width:"400px",options:[{label:"启用",value:1},{label:"禁用",value:0}]}];return t}}),created:function(){this.init()},watch:{config:{handler:function(t){this.init()},deep:!0,immediate:!0}},methods:{init:function(){this.config.workorder&&(this.formData=this.$util.restJson(this.config.workorder))},handleBasicSubmit:function(t){var e=this;this.api.post("workorder/config/set",t).then((function(t){1==t.code?(e.$util.success(t.message),e.$store.dispatch("settings/getSetting")):e.$util.error(t.message)}))},handleCancel:function(){this.$router.back()}}},c=s,f=a("3d7a"),l=Object(f["a"])(c,i,o,!1,null,"48166262",null);e["default"]=l.exports}}]);