extraLessonsForm.js 3.9 KB

1
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesClass/extraLessonsForm"],{"2d34":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=n("2f62");function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);t&&(u=u.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,u)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=n("157c"),s=n("f344"),a={computed:o({},(0,u.mapGetters)(["mainColor","customStyle"])),data:function(){return{userList:[],form:{address:"",remark:""},rules:{address:[{required:!0,message:"请输入补课地点",trigger:"change"}],remark:[{required:!0,message:"请输入备注",trigger:"change"}]}}},onLoad:function(){},onReady:function(){this.$refs.form.setRules(this.rules)},onShow:function(){this.userList=e.getStorageSync("extraLessonsUserList")},methods:{submitForm:function(){var t=this;this.$refs.form.validate((function(n){n&&c.request(s.submitExtraLessonsForm,o(o({},t.form),{},{studentIdList:t.userList.map((function(e){return{id:e.id}}))}),"POST").then((function(n){e.setStorage({key:"extraLessonsUserList",data:[]}),t.$refs.uTips.show({title:"提交成功",type:"success"}),setTimeout((function(){e.navigateBack()}),1e3)})).catch((function(e){t.$refs.uTips.show({title:e.message,type:"warning"})}))}))},goToSelectStudent:function(){e.navigateTo({url:"/pagesClass/extraLessonsStudentList"})}}};t.default=a}).call(this,n("543d")["default"])},"6e33":function(e,t,n){"use strict";var u=n("e76f"),r=n.n(u);r.a},"89c6":function(e,t,n){"use strict";n.r(t);var u=n("a5c7"),r=n("f2c7");for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("6e33"),n("ded4");var i,c=n("f0c5"),s=Object(c["a"])(r["default"],u["b"],u["c"],!1,null,"08af8157",null,!1,u["a"],i);t["default"]=s.exports},"8fb8":function(e,t,n){},a5c7:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u}));var u={uForm:function(){return n.e("uview-ui/components/u-form/u-form").then(n.bind(null,"93b0"))},uFormItem:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-form-item/u-form-item")]).then(n.bind(null,"bbfd"))},uGrid:function(){return n.e("uview-ui/components/u-grid/u-grid").then(n.bind(null,"53f4"))},uGridItem:function(){return n.e("uview-ui/components/u-grid-item/u-grid-item").then(n.bind(null,"1395"))},uAvatar:function(){return n.e("uview-ui/components/u-avatar/u-avatar").then(n.bind(null,"3479"))},uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"c4c2"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,"be27"))},uButton:function(){return n.e("uview-ui/components/u-button/u-button").then(n.bind(null,"0198"))},uTopTips:function(){return n.e("uview-ui/components/u-top-tips/u-top-tips").then(n.bind(null,"14ca"))}},r=function(){var e=this,t=e.$createElement;e._self._c},o=[]},ded4:function(e,t,n){"use strict";var u=n("8fb8"),r=n.n(u);r.a},e76f:function(e,t,n){},f2c7:function(e,t,n){"use strict";n.r(t);var u=n("2d34"),r=n.n(u);for(var o in u)"default"!==o&&function(e){n.d(t,e,(function(){return u[e]}))}(o);t["default"]=r.a},f64d:function(e,t,n){"use strict";(function(e){n("e744");u(n("66fd"));var t=u(n("89c6"));function u(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])}},[["f64d","common/runtime","common/vendor"]]]);