chunk-4c544fe6.0a0e90bc.js 6.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c544fe6"],{"09f4":function(e,t,o){"use strict";o.d(t,"a",(function(){return s})),Math.easeInOutQuad=function(e,t,o,r){return e/=r/2,e<1?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function n(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function a(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(e,t,o){var s=a(),l=e-s,i=20,c=0;t="undefined"===typeof t?500:t;var u=function e(){c+=i;var a=Math.easeInOutQuad(c,s,l,t);n(a),c<t?r(e):o&&"function"===typeof o&&o()};u()}},2343:function(e,t,o){"use strict";o("6372")},6372:function(e,t,o){},"704dd":function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"m-container"},[e._m(0),e._v(" "),o("div",{staticClass:"m-core"},[o("save-form",{ref:"form",attrs:{model:e.form,inline:""},on:{"update:model":function(t){e.form=t},submit:e.submit,reset:e.reset}},[o("el-form-item",{attrs:{prop:"input"}},[o("el-input",{attrs:{placeholder:"请输入内容"},model:{value:e.form.input,callback:function(t){e.$set(e.form,"input",t)},expression:"form.input"}})],1),e._v(" "),o("el-form-item",{attrs:{prop:"input2"}},[o("el-input",{attrs:{type:"number",placeholder:"请输入内容2"},model:{value:e.form.input2,callback:function(t){e.$set(e.form,"input2",t)},expression:"form.input2"}})],1),e._v(" "),o("el-form-item",{attrs:{prop:"region"}},[o("el-select",{attrs:{placeholder:"请选择活动区域"},model:{value:e.form.region,callback:function(t){e.$set(e.form,"region",t)},expression:"form.region"}},[o("el-option",{attrs:{label:"区域一",value:"shanghai"}}),e._v(" "),o("el-option",{attrs:{label:"区域二",value:"beijing"}})],1)],1),e._v(" "),o("el-form-item",{attrs:{prop:"branch"}},[o("el-select",{attrs:{placeholder:"请选择分部"},model:{value:e.form.branch,callback:function(t){e.$set(e.form,"branch",t)},expression:"form.branch"}},e._l(e.selects.branchs,(function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),o("el-form-item",{attrs:{prop:"subject"}},[o("el-select",{attrs:{placeholder:"请选择声部"},model:{value:e.form.subject,callback:function(t){e.$set(e.form,"subject",t)},expression:"form.subject"}},e._l(e.selects.subjects,(function(e){return o("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),e._v(" "),o("el-form-item",{attrs:{required:""}},[o("el-col",{attrs:{span:11}},[o("el-form-item",{attrs:{prop:"date1"}},[o("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择日期"},model:{value:e.form.date1,callback:function(t){e.$set(e.form,"date1",t)},expression:"form.date1"}})],1)],1),e._v(" "),o("el-col",{staticClass:"line",attrs:{span:2}},[e._v("-")]),e._v(" "),o("el-col",{attrs:{span:11}},[o("el-form-item",{attrs:{prop:"date2"}},[o("el-time-picker",{staticStyle:{width:"100%"},attrs:{placeholder:"选择时间"},model:{value:e.form.date2,callback:function(t){e.$set(e.form,"date2",t)},expression:"form.date2"}})],1)],1)],1),e._v(" "),o("el-form-item",{attrs:{prop:"times"}},[o("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.times,callback:function(t){e.$set(e.form,"times",t)},expression:"form.times"}})],1),e._v(" "),o("el-form-item",[o("remoteSearch",{attrs:{commit:"setEducations"},model:{value:e.form.educations,callback:function(t){e.$set(e.form,"educations",t)},expression:"form.educations"}})],1),e._v(" "),o("el-form-item",[o("remoteSearch",{attrs:{commit:"setTeachers"},model:{value:e.form.teacher,callback:function(t){e.$set(e.form,"teacher",t)},expression:"form.teacher"}})],1),e._v(" "),o("div",[o("el-button",{attrs:{type:"primary","native-type":"submit"}},[e._v("提交")]),e._v(" "),o("el-button",{attrs:{type:"danger","native-type":"reset"}},[e._v("重置")])],1)],1)],1),e._v(" "),o("tab-router",[o("el-tab-pane",{attrs:{label:"1",name:"1"}},[e._v("12131231")]),e._v(" "),o("el-tab-pane",{attrs:{label:"2",name:"2"}},[e._v("adwqj")])],1),e._v(" "),o("el-table",{staticClass:"table",attrs:{data:e.list}},[o("el-table-column",{attrs:{prop:"title",label:"标题"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("copy-text",[e._v(e._s(t.row.title))])]}}])}),e._v(" "),o("el-table-column",{attrs:{prop:"remark",width:"220px",label:"备注"},scopedSlots:e._u([{key:"default",fn:function(e){return[o("overflow-text",{attrs:{text:e.row.remark}})]}}])})],1),e._v(" "),o("pagination",{attrs:{total:e.rules.total,page:e.rules.page,limit:e.rules.limit,"page-sizes":e.rules.page_size,sync:!0},on:{"update:page":function(t){return e.$set(e.rules,"page",t)},"update:limit":function(t){return e.$set(e.rules,"limit",t)},pagination:e.getList}}),e._v(" "),o("el-dialog",{attrs:{visible:e.testvisible,"destroy-on-close":""},on:{"update:visible":function(t){e.testvisible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[o("el-button",{on:{click:function(t){e.testvisible=!1}}},[e._v("关闭")])]},proxy:!0}])},[e.testvisible?o("test"):e._e()],1)],1)},n=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("h2",[o("div",{staticClass:"squrt"}),e._v("保存表单演示\n ")])}],a=o("333d"),s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[e._v("弹窗状态测试")])},l=[],i={created:function(){console.log("created")},mounted:function(){console.log("mounted")},updated:function(){console.log("updated")},destroyed:function(){console.log("destroyed")}},c=i,u=o("2877"),m=Object(u["a"])(c,s,l,!1,null,null,null),d=m.exports,p=o("bd8f"),f={components:{test:d,pagination:a["a"],remoteSearch:p["a"]},data:function(){return{testvisible:!1,rules:{limit:10,page:1,total:30,page_size:[10,20,40,50]},form:{input:"",input2:"",region:"",date1:"",date2:"",delivery:"",type:[],resource:"",desc:"",times:[],educations:"",teacher:""},list:[{id:1,title:"表阿嚏内容",remark:"很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长"},{id:2,title:"标题信息",remark:"很长很长很长"}]}},mounted:function(){this.$store.dispatch("setBranchs"),this.$store.dispatch("setSubjects")},methods:{getList:function(){return Promise.resolve()},submit:function(e){console.log(this.form.educations),console.log(e)},reset:function(){this.$refs.form.resetFields()}}},v=f,b=(o("2343"),Object(u["a"])(v,r,n,!1,null,"4072be99",null));t["default"]=b.exports}}]);