addClassForm.js.map 28 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?1b0c","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?336e","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?9e33","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?6584","uni-app:///pagesClass/addClassForm.vue","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?eff4","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?0c64","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?cfd9","webpack:///D:/星火篮球维护/代码/小程序教练端/spark-coach/pagesClass/addClassForm.vue?10a6"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,0G;AACAA,UAAU,CAACC,qBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAqI;AACrI;AACgE;AACL;AACa;AACyB;;;AAGjG;AACqK;AACrK,gBAAgB,+KAAU;AAC1B,EAAE,kFAAM;AACR,EAAE,mGAAM;AACR,EAAE,4GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACxBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,uMAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP,KAAK;AACL;AACA,aAAa,mQAEN;AACP,KAAK;AACL;AACA,aAAa,uPAEN;AACP,KAAK;AACL;AACA,aAAa,mNAEN;AACP,KAAK;AACL;AACA,aAAa,6MAEN;AACP,KAAK;AACL;AACA,aAAa,uSAEN;AACP,KAAK;AACL;AACA,aAAa,6MAEN;AACP,KAAK;AACL;AACA,aAAa,yQAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,oBAAoB,oBAAoB;;AAEnE;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC1IA;AAAA;AAAA;AAAA;AAAsmB,CAAgB,goBAAG,EAAC,C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","file":"pagesClass/addClassForm.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesClass/addClassForm.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./addClassForm.vue?vue&type=template&id=200c2a90&scoped=true&\"\nvar renderjs\nimport script from \"./addClassForm.vue?vue&type=script&lang=js&\"\nexport * from \"./addClassForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./addClassForm.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./addClassForm.vue?vue&type=style&index=1&id=200c2a90&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\runtime\\\\componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"200c2a90\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pagesClass/addClassForm.vue\"\nexport default component.exports","export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=template&id=200c2a90&scoped=true&\"","var components\ntry {\n components = {\n uForm: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-form/u-form\" */ \"@/uview-ui/components/u-form/u-form.vue\"\n )\n },\n uFormItem: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-form-item/u-form-item\" */ \"@/uview-ui/components/u-form-item/u-form-item.vue\"\n )\n },\n uInput: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-input/u-input\" */ \"@/uview-ui/components/u-input/u-input.vue\"\n )\n },\n uSwipeAction: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-swipe-action/u-swipe-action\" */ \"@/uview-ui/components/u-swipe-action/u-swipe-action.vue\"\n )\n },\n uButton: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-button/u-button\" */ \"@/uview-ui/components/u-button/u-button.vue\"\n )\n },\n uPopup: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-popup/u-popup\" */ \"@/uview-ui/components/u-popup/u-popup.vue\"\n )\n },\n uRadioGroup: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-radio-group/u-radio-group\" */ \"@/uview-ui/components/u-radio-group/u-radio-group.vue\"\n )\n },\n uRadio: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-radio/u-radio\" */ \"@/uview-ui/components/u-radio/u-radio.vue\"\n )\n },\n uPicker: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-picker/u-picker\" */ \"@/uview-ui/components/u-picker/u-picker.vue\"\n )\n },\n uTopTips: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-top-tips/u-top-tips\" */ \"@/uview-ui/components/u-top-tips/u-top-tips.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var a0 = Object.assign({}, _vm.customStyle, { marginTop: \"15px\" })\n\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.startDateShow = true\n }\n\n _vm.e1 = function($event) {\n _vm.startDateShow = true\n }\n\n _vm.e2 = function($event) {\n _vm.endDateShow = true\n }\n\n _vm.e3 = function($event) {\n _vm.endDateShow = true\n }\n\n _vm.e4 = function($event) {\n _vm.venueShow = true\n }\n\n _vm.e5 = function($event) {\n _vm.venueShow = true\n }\n\n _vm.e6 = function($event) {\n return (function() {\n _vm.startTimeShow = true\n _vm.timeType = 1\n })($event)\n }\n\n _vm.e7 = function() {\n _vm.startTimeShow = true\n _vm.timeType = 1\n }\n\n _vm.e8 = function($event) {\n return (function() {\n _vm.startTimeShow = true\n _vm.timeType = 2\n })($event)\n }\n\n _vm.e9 = function() {\n _vm.startTimeShow = true\n _vm.timeType = 2\n }\n }\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n a0: a0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"content\">\r\n\t\t<u-form :model=\"form\" ref=\"form\" label-width=\"140\">\r\n\t\t\t<u-form-item label=\"班级名称\" prop=\"name\" required>\r\n\t\t\t\t<u-input v-model=\"form.name\" placeholder=\"请输入班级名称\" />\r\n\t\t\t</u-form-item>\r\n\t\t\t<u-form-item label=\"课程周期开始时间\" prop=\"startDate\" right-icon=\"arrow-right\" required @click.native=\"startDateShow = true\">\r\n\t\t\t\t<u-input v-model=\"form.startDate\" placeholder=\"请选择课程周期开始时间\" disabled @click=\"startDateShow = true\" />\r\n\t\t\t</u-form-item>\r\n\t\t\t<u-form-item label=\"课程周期结束时间\" prop=\"endDate\" right-icon=\"arrow-right\" required @click.native=\"endDateShow = true\">\r\n\t\t\t\t<u-input v-model=\"form.endDate\" placeholder=\"请选择课程周期结束时间\" disabled @click=\"endDateShow = true\" />\r\n\t\t\t</u-form-item>\r\n\t\t\t<u-form-item label=\"上课时间\" prop=\"timeReqList\" required label-position=\"top\"></u-form-item>\r\n\t\t\t<u-swipe-action :index=\"index\" v-for=\"(item, index) in form.timeReqList\" :key=\"item.id\" @click=\"deleteDate\" :options=\"options\">\r\n\t\t\t\t<u-form-item label=\" \" right-icon=\"arrow-right\" @click.native=\"toSetDate(index)\" label-width=\"0px\">\r\n\t\t\t\t\t<text :style=\"{color: item.week ? '' :'#999999'}\">{{item.week ? item.week + '&nbsp;&nbsp;' +item.startTime + '&nbsp;&nbsp;' +item.endTime : '请选择上课时间'}}</text>\r\n\t\t\t\t</u-form-item>\r\n\t\t\t</u-swipe-action>\r\n\t\t\t<u-form-item label=\" \" label-width=\"0px\">\r\n\t\t\t\t<view style=\"display: flex; justify-content: space-around;\">\r\n\t\t\t\t\t<u-button type=\"success\" :ripple=\"true\" size=\"medium\" :custom-style=\"{backgroundColor: '#ff6e3e'}\" @click=\"addDate\">新增</u-button>\r\n\t\t\t\t</view>\r\n\t\t\t</u-form-item>\r\n\t\t\t<u-form-item label=\"归属场馆\" prop=\"venueName\" right-icon=\"arrow-right\" required @click.native=\"venueShow = true\">\r\n\t\t\t\t<u-input v-model=\"form.venueName\" placeholder=\"请选择归属场馆\" disabled @click=\"venueShow = true\" />\r\n\t\t\t</u-form-item>\r\n\t\t\t<u-form-item label=\"地址\">\r\n\t\t\t\t<u-input v-model=\"form.address\" disabled placeholder=\"请输入地址\" />\r\n\t\t\t</u-form-item>\r\n\t\t\t<u-form-item label=\"学生数量\" prop=\"maxStudentCount\" required>\r\n\t\t\t\t<u-input v-model=\"form.maxStudentCount\" type=\"number\" placeholder=\"请输入学生数量\" />\r\n\t\t\t</u-form-item>\r\n\t\t</u-form>\r\n\t\t<u-popup v-model=\"classDate\" mode=\"bottom\" border-radius=\"30\">\r\n\t\t\t<view class=\"dateForm\">\r\n\t\t\t\t<u-form :model=\"selectForm\" ref=\"selectForm\" label-width=\"140\">\r\n\t\t\t\t\t<u-form-item label=\"上课时间\" prop=\"week\" required>\r\n\t\t\t\t\t\t<u-radio-group v-model=\"selectForm.week\">\r\n\t\t\t\t\t\t\t<u-radio v-for=\"(item, index) in weekList\" :key=\"index\" :name=\"item.name\">\r\n\t\t\t\t\t\t\t\t{{ item.name }}\r\n\t\t\t\t\t\t\t</u-radio>\r\n\t\t\t\t\t\t</u-radio-group>\r\n\t\t\t\t\t</u-form-item>\r\n\t\t\t\t\t<u-form-item label=\"上课时间\" prop=\"startTime\" right-icon=\"arrow-right\" required @click.native=\"()=>{startTimeShow = true;timeType = 1}\">\r\n\t\t\t\t\t\t<u-input v-model=\"selectForm.startTime\" placeholder=\"请选择上课时间\" disabled @click=\"()=>{startTimeShow = true;timeType = 1}\" />\r\n\t\t\t\t\t</u-form-item>\r\n\t\t\t\t\t<u-form-item label=\"下课时间\" prop=\"endTime\" right-icon=\"arrow-right\" required @click.native=\"()=>{startTimeShow = true;timeType = 2}\">\r\n\t\t\t\t\t\t<u-input v-model=\"selectForm.endTime\" placeholder=\"请选择下课时间\" disabled @click=\"()=>{startTimeShow = true;timeType = 2}\" />\r\n\t\t\t\t\t</u-form-item>\r\n\t\t\t\t</u-form>\r\n\t\t\t\t<u-button type=\"warning\" :ripple=\"true\" :custom-style=\"{...customStyle, marginTop: '15px'}\" @click=\"setDate()\">确定</u-button>\r\n\t\t\t</view>\r\n\t\t</u-popup>\r\n\t\t<u-picker mode=\"time\" v-model=\"startDateShow\" :params=\"cycleParams\" @confirm=\"setStartDate\"></u-picker>\r\n\t\t<u-picker mode=\"time\" v-model=\"endDateShow\" :params=\"cycleParams\" @confirm=\"setEndDate\"></u-picker>\r\n\t\t<u-picker mode=\"time\" v-model=\"startTimeShow\" :params=\"startTimeParams\" @confirm=\"setStartTime\"></u-picker>\r\n\t\t<u-picker mode=\"selector\" v-model=\"venueShow\" :range=\"venueList\" range-key=\"name\" @confirm=\"setVenue\"></u-picker>\r\n\t\t<view class=\"handle-fix-box\">\r\n\t\t\t<u-button type=\"warning\" shape=\"circle\" :ripple=\"true\" :custom-style=\"customStyle\" @click=\"submitForm()\">保存</u-button>\r\n\t\t</view>\r\n\t\t<u-top-tips ref=\"uTips\"></u-top-tips>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tmapGetters\r\n\t} from 'vuex'\r\n\tconst NET = require('@/utils/request')\r\n\tconst API = require('@/config/api')\r\n\texport default {\r\n\t\tcomputed: {\r\n\t\t\t...mapGetters([\r\n\t\t\t\t'mainColor',\r\n\t\t\t\t'customStyle',\r\n\t\t\t])\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tform: {\r\n\t\t\t\t\tname: '',\r\n\t\t\t\t\tstartDate: '',\r\n\t\t\t\t\tendDate: '',\r\n\t\t\t\t\taddress: '',\r\n\t\t\t\t\tvenueId: '',\r\n\t\t\t\t\tvenueName: '',\r\n\t\t\t\t\taddress: '',\r\n\t\t\t\t\tmaxStudentCount: '',\r\n\t\t\t\t\ttimeReqList: [{\r\n\t\t\t\t\t\tweek: '',\r\n\t\t\t\t\t\tstartTime: '',\r\n\t\t\t\t\t\tendTime: '',\r\n\t\t\t\t\t}],\r\n\t\t\t\t},\r\n\t\t\t\trules: {\r\n\t\t\t\t\tname: [{\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请输入班级名称',\r\n\t\t\t\t\t\ttrigger: 'change'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tstartDate: [{\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请选择课程周期开始时间',\r\n\t\t\t\t\t\ttrigger: 'change'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tendDate: [{\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请选择课程周期结束时间',\r\n\t\t\t\t\t\ttrigger: 'change'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\ttimeReqList: [{\r\n\t\t\t\t\t\ttype: 'array',\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请选择上课时间',\r\n\t\t\t\t\t\ttrigger: 'change'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tvenueName: [{\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请选择归属场馆',\r\n\t\t\t\t\t\ttrigger: 'change'\r\n\t\t\t\t\t}],\r\n\t\t\t\t\tmaxStudentCount: [{\r\n\t\t\t\t\t\trequired: true,\r\n\t\t\t\t\t\tmessage: '请输入学生数量',\r\n\t\t\t\t\t\ttrigger: 'change'\r\n\t\t\t\t\t}],\r\n\t\t\t\t},\r\n\t\t\t\tselectIndex: 0,\r\n\t\t\t\tselectForm: {\r\n\t\t\t\t\tweek: '',\r\n\t\t\t\t\tstartTime: '',\r\n\t\t\t\t\tendTime: '',\r\n\t\t\t\t},\r\n\t\t\t\tclassDate: false,\r\n\t\t\t\tweekList: [{\r\n\t\t\t\t\t\tname: '周一'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '周二'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '周三'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '周四'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '周五'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '周六'\r\n\t\t\t\t\t},\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tname: '周日'\r\n\t\t\t\t\t},\r\n\t\t\t\t],\r\n\t\t\t\tstartDateShow: false,\r\n\t\t\t\tendDateShow: false,\r\n\t\t\t\tcycleParams: {\r\n\t\t\t\t\tyear: true,\r\n\t\t\t\t\tmonth: true,\r\n\t\t\t\t\tday: true,\r\n\t\t\t\t\thour: false,\r\n\t\t\t\t\tminute: false,\r\n\t\t\t\t\tsecond: false\r\n\t\t\t\t},\r\n\t\t\t\tstartTimeShow: false,\r\n\t\t\t\tstartTimeParams: {\r\n\t\t\t\t\tyear: false,\r\n\t\t\t\t\tmonth: false,\r\n\t\t\t\t\tday: false,\r\n\t\t\t\t\thour: true,\r\n\t\t\t\t\tminute: true,\r\n\t\t\t\t\tsecond: true\r\n\t\t\t\t},\r\n\t\t\t\tvenueShow: false,\r\n\t\t\t\tvenueList: [],\r\n\t\t\t\toptions: [{\r\n\t\t\t\t\ttext: '删除',\r\n\t\t\t\t\tstyle: {\r\n\t\t\t\t\t\tcolor: '#fa3534'\r\n\t\t\t\t\t}\r\n\t\t\t\t}]\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad() {\r\n\t\t\tNET.request(API.getVenueList, {\r\n\t\t\t\tpage: 1,\r\n\t\t\t\tsize: 10000,\r\n\t\t\t}, 'POST').then(res => {\r\n\t\t\t\tthis.venueList = res.data.row\r\n\t\t\t}).catch(error => {\r\n\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\ttitle: error.message,\r\n\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t},\r\n\t\tonReady() {\r\n\t\t\tthis.$refs.form.setRules(this.rules);\r\n\t\t},\r\n\t\tonShow() {},\r\n\t\tmethods: {\r\n\t\t\t// 弹出设置时间\r\n\t\t\ttoSetDate(index) {\r\n\t\t\t\tthis.selectIndex = index\r\n\t\t\t\tthis.selectForm = {\r\n\t\t\t\t\tweek: this.form.timeReqList[index].week,\r\n\t\t\t\t\tstartTime: this.form.timeReqList[index].startTime,\r\n\t\t\t\t\tendTime: this.form.timeReqList[index].endTime,\r\n\t\t\t\t}\r\n\t\t\t\tthis.classDate = true\r\n\t\t\t},\r\n\t\t\t// 删除时间\r\n\t\t\tdeleteDate(index, index1) {\r\n\t\t\t\tif (index1 == 0) {\r\n\t\t\t\t\tthis.form.timeReqList.splice(index, 1);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 新增时间\r\n\t\t\taddDate() {\r\n\t\t\t\tthis.form.timeReqList.push({\r\n\t\t\t\t\tweek: '',\r\n\t\t\t\t\tstartTime: '',\r\n\t\t\t\t\tendTime: '',\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\t// 设置课程周期开始时间\r\n\t\t\tsetStartDate(date) {\r\n\t\t\t\tthis.form.startDate = date.year + '-' + date.month + '-' + date.day\r\n\t\t\t},\r\n\t\t\t// 设置课程周期结束时间\r\n\t\t\tsetEndDate(date) {\r\n\t\t\t\tthis.form.endDate = date.year + '-' + date.month + '-' + date.day\r\n\t\t\t},\r\n\t\t\t// 设置上课时间\r\n\t\t\tsetStartTime(date) {\r\n\t\t\t\tif (this.timeType == 1) {\r\n\t\t\t\t\tthis.selectForm.startTime = date.hour + ':' + date.minute + ':' + date.second\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.selectForm.endTime = date.hour + ':' + date.minute + ':' + date.second\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 设置上课时间\r\n\t\t\tsetDate() {\r\n\t\t\t\tthis.form.timeReqList[this.selectIndex] = {\r\n\t\t\t\t\tweek: this.selectForm.week,\r\n\t\t\t\t\tstartTime: this.selectForm.startTime,\r\n\t\t\t\t\tendTime: this.selectForm.endTime,\r\n\t\t\t\t}\r\n\t\t\t\tthis.classDate = false\r\n\t\t\t},\r\n\t\t\t// 设置场馆\r\n\t\t\tsetVenue(data) {\r\n\t\t\t\tthis.form.venueId = this.venueList[data[0]].id\r\n\t\t\t\tthis.form.venueName = this.venueList[data[0]].name\r\n\t\t\t\tthis.form.address = this.venueList[data[0]].address\r\n\t\t\t},\r\n\t\t\t// 提交表单\r\n\t\t\tsubmitForm() {\r\n\t\t\t\tthis.$refs.form.validate(valid => {\r\n\t\t\t\t\tif (valid) {\r\n\t\t\t\t\t\tNET.request(API.submitClassForm, {\r\n\t\t\t\t\t\t\t...this.form,\r\n\t\t\t\t\t\t}, 'POST').then(res => {\r\n\t\t\t\t\t\t\tuni.removeStorageSync({\r\n\t\t\t\t\t\t\t\tkey: 'extraLessonsUserList'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\t\t\ttitle: '提交成功',\r\n\t\t\t\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\tuni.navigateBack()\r\n\t\t\t\t\t\t\t}, 1000)\r\n\t\t\t\t\t\t}).catch(error => {\r\n\t\t\t\t\t\t\tthis.$refs.uTips.show({\r\n\t\t\t\t\t\t\t\ttitle: error.message,\r\n\t\t\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t},\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\tpage {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tposition: relative;\r\n\t}\r\n</style>\r\n<style lang=\"scss\" scoped>\r\n\t@import \"@/static/css/themes.scss\";\r\n\r\n\t.content {\r\n\t\twidth: 100%;\r\n\t\tfloat: left;\r\n\t\tpadding: 0 15px 60px 15px;\r\n\t\tbox-sizing: border-box;\r\n\r\n\t\t.dateForm {\r\n\t\t\tpadding: 20px;\r\n\t\t}\r\n\t}\r\n</style>\r\n","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--6-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--6-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--6-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--6-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631761629590\n var cssReload = require(\"E:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import mod from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=style&index=1&id=200c2a90&lang=scss&scoped=true&\"; export default mod; export * from \"-!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!E:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./addClassForm.vue?vue&type=style&index=1&id=200c2a90&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1631761632846\n var cssReload = require(\"E:/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}