(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a310395"],{"01e6":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"box"},[r("div",{staticClass:"con"},[r("Form",{ref:"formValidate",staticClass:"form",attrs:{model:e.selectTable,"label-position":"top"}},[r("FormItem",{attrs:{label:"页脚内边距(上 右 下 左)",prop:"c_json.footer.padding"}},[r("Input",{staticStyle:{width:"150px"},model:{value:e.selectTable.c_json.footer.padding,callback:function(t){e.$set(e.selectTable.c_json.footer,"padding",t)},expression:"selectTable.c_json.footer.padding"}})],1),r("FormItem",{attrs:{label:"页脚背景颜色",prop:"c_json.footer.bgcolor"}},[r("ColorPicker",{attrs:{recommend:"",editable:!0,transfer:""},model:{value:e.selectTable.c_json.footer.bgcolor,callback:function(t){e.$set(e.selectTable.c_json.footer,"bgcolor",t)},expression:"selectTable.c_json.footer.bgcolor"}})],1),r("FormItem",{attrs:{label:"页脚文字内容",prop:"c_json.footer.html",rules:[e.rule[0]]}},[r("itemEditor",{attrs:{opt:{f_json:{},editorConfig:{editorImg:!1,editorFile:!1,toolbars:[["source","link","unlink","bold","italic","underline","fontborder","strikethrough","forecolor","backcolor","fontsize","justifyleft","justifycenter","justifyright","justifyjustify"]]}}},model:{value:e.selectTable.c_json.footer.html,callback:function(t){e.$set(e.selectTable.c_json.footer,"html",t)},expression:"selectTable.c_json.footer.html"}})],1)],1),r("div",{staticClass:"footers"},[r("Button",{attrs:{type:"primary",size:"large",loading:e.loading,icon:"md-repeat"},on:{click:function(t){return e.submitForm("formValidate")}}},[e._v("确认保存")])],1)],1),r("div",{staticClass:"back"},[r("Button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("close")}}},[e._v("返回")])],1)])},n=[],a=r("5412"),c=r.n(a);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t,r,o,n,a,c){try{var s=e[a](c),i=s.value}catch(l){return void r(l)}s.done?t(i):Promise.resolve(i).then(o,n)}function f(e){return function(){var t=this,r=arguments;return new Promise((function(o,n){var a=e.apply(t,r);function c(e){u(a,o,n,c,s,"next",e)}function s(e){u(a,o,n,c,s,"throw",e)}c(void 0)}))}}var b={name:"project-edit",components:{itemEditor:function(){return r.e("chunk-99bc2c72").then(r.bind(null,"0145"))}},created:function(){this.selectTable=this.JSONs(this.data)},props:{data:Object},data:function(){return{loading:!1,rule:[{required:!0,message:"必填项",trigger:"change"},{required:!0,type:"number",message:"必填项",trigger:"change"},{type:"array",message:"必选项",trigger:"change"},{pattern:/^(http|https):\/\/.{2,100}$/,message:"网址格式不正确",trigger:"change"}],selectTable:{}}},methods:{submitForm:function(e){var t=this;this.$refs[e].validate(function(){var r=f(c.a.mark((function r(o){var n,a,s;return c.a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(o){r.next=12;break}n=t.$refs[e].fields,a=0;case 3:if(!(a<n.length)){r.next=10;break}if("error"!==n[a].validateState){r.next=7;break}return n[a].$el.scrollIntoView({block:"center",behavior:"smooth"}),r.abrupt("break",10);case 7:a++,r.next=3;break;case 10:r.next=26;break;case 12:return r.prev=12,t.loading=!0,s=JSON.stringify(t.selectTable.c_json),r.next=17,t.api.projectUpdate(i(i({},t.selectTable),{},{c_json:s,method:t.selectTable.id?"edit":"add"}));case 17:t.$Message.success("操作成功"),t.$emit("getData"),t.$emit("close"),r.next=25;break;case 22:r.prev=22,r.t0=r["catch"](12);case 25:t.loading=!1;case 26:case"end":return r.stop()}}),r,null,[[12,22]])})));return function(e){return r.apply(this,arguments)}}())}}},d=b,p=(r("8bbd"),r("9ca4")),m=Object(p["a"])(d,o,n,!1,null,"559666fd",null);t["default"]=m.exports},"2fc9":function(e,t,r){},"8bbd":function(e,t,r){"use strict";var o=r("2fc9"),n=r.n(o);n.a}}]);