forked from zhurui/management
1 line
10 KiB
JSON
1 line
10 KiB
JSON
{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\applicationPart4\\course2\\course2.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\applicationPart4\\course2\\course2.vue","mtime":1622476791610},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport mixinViewModule from '@/mixins/view-module'\nimport AddOrUpdate from './course2-add-or-update'\n\nexport default {\n mixins: [mixinViewModule],\n data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/course/course/page',\n getDataListIsPage: true,\n deleteURL: '/system/course/course',\n deleteIsBatch: true\n },\n dataForm: {\n id: '',\n studentNumber: this.$store.state.user.username,\n },\n popIsEdit: false,\n mycourese: [\n {time: \"第一大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第二大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第三大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第四大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第五大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n ],\n aim: null,\n }\n }, created() {\n this.getCoures()\n },\n components: {\n AddOrUpdate\n },\n methods: {\n getCoures() {\n // 获取课程列表\n this.$http.get(\n '/system/course/course/page', {\n params: {\n order: this.order,\n orderField: this.orderField,\n page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,\n limit: 1000,\n studentNumber: this.$store.state.user.username,\n }\n }\n ).then(({\n data: res\n }) => {\n\n this.aim = res.data.list[0];\n if (this.aim) {\n this.mycourese = [\n {time: \"第一大节\", class1: this.aim.c11, class2: this.aim.c12, class3: this.aim.c13, class4: this.aim.c14, class5: this.aim.c15,},\n {time: \"第二大节\", class1: this.aim.c21, class2: this.aim.c22, class3: this.aim.c23, class4: this.aim.c24, class5: this.aim.c25,},\n {time: \"第三大节\", class1: this.aim.c31, class2: this.aim.c32, class3: this.aim.c33, class4: this.aim.c34, class5: this.aim.c35,},\n {time: \"第四大节\", class1: this.aim.c41, class2: this.aim.c42, class3: this.aim.c43, class4: this.aim.c44, class5: this.aim.c45,},\n {time: \"第五大节\", class1: this.aim.c51, class2: this.aim.c52, class3: this.aim.c53, class4: this.aim.c54, class5: this.aim.c55,},\n ];\n this.dataForm.id = this.aim.id;\n }\n // console.log(this.aim)\n if (res.code !== 0) {\n this.aim = null\n this.total = 0\n return this.$message.error(res.msg)\n }\n }).catch(() => {\n })\n\n // console.log(this.mycourese);\n // console.log(this.dataForm.id);\n },\n lookUpInfo(scopeRowId) {\n\n this.popIsEdit = false;\n this.addOrUpdateHandle(scopeRowId)\n },\n addOrUpdateHandleWapper(scopeRowId) {\n this.popIsEdit = true;\n this.addOrUpdateHandle(scopeRowId)\n },\n deleteHandleWapper(scopeRowId) {\n this.deleteHandle(scopeRowId)\n },\n }\n\n}\n",{"version":3,"sources":["course2.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA","file":"course2.vue","sourceRoot":"src/views/modules/applicationPart4/course2","sourcesContent":["<template>\n <el-card shadow=\"never\" class=\"aui-card--fill\">\n <div class=\"mod-course__course}\">\n <el-form :inline=\"true\" :model=\"dataForm\" @keyup.enter.native=\"getDataList()\">\n <el-form-item>\n <el-button @click=\"getCoures()\">{{ $t('query') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"addOrUpdateHandleWapper()\">{{ $t('add') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button type=\"primary\" @click=\"addOrUpdateHandleWapper(dataForm.id)\">{{ $t('update') }}</el-button>\n </el-form-item>\n <el-form-item>\n <el-button type=\"danger\" @click=\"deleteHandleWapper(dataForm.id)\">{{ $t('deleteBatch') }}</el-button>\n </el-form-item>\n </el-form>\n <el-table v-loading=\"dataListLoading\" :data=\"mycourese\" border @selection-change=\"dataListSelectionChangeHandle\"\n style=\"width: 100%;\">\n\n <el-table-column prop=\"time\" label=\"时间\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"class1\" label=\"星期一\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"class2\" label=\"星期二\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"class3\" label=\"星期三\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"class4\" label=\"星期四\" header-align=\"center\" align=\"center\"></el-table-column>\n <el-table-column prop=\"class5\" label=\"星期五\" header-align=\"center\" align=\"center\"></el-table-column>\n </el-table>\n\n <!-- 弹窗, 新增 / 详情/ 修改 -->\n <add-or-update :isedit=\"popIsEdit\" v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\"\n @refreshDataList=\"getDataList\"></add-or-update>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport AddOrUpdate from './course2-add-or-update'\n\nexport default {\n mixins: [mixinViewModule],\n data() {\n return {\n mixinViewModuleOptions: {\n getDataListURL: '/system/course/course/page',\n getDataListIsPage: true,\n deleteURL: '/system/course/course',\n deleteIsBatch: true\n },\n dataForm: {\n id: '',\n studentNumber: this.$store.state.user.username,\n },\n popIsEdit: false,\n mycourese: [\n {time: \"第一大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第二大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第三大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第四大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n {time: \"第五大节\", class1: '', class2: '', class3: '', class4: '', class5: '',},\n ],\n aim: null,\n }\n }, created() {\n this.getCoures()\n },\n components: {\n AddOrUpdate\n },\n methods: {\n getCoures() {\n // 获取课程列表\n this.$http.get(\n '/system/course/course/page', {\n params: {\n order: this.order,\n orderField: this.orderField,\n page: this.mixinViewModuleOptions.getDataListIsPage ? this.page : null,\n limit: 1000,\n studentNumber: this.$store.state.user.username,\n }\n }\n ).then(({\n data: res\n }) => {\n\n this.aim = res.data.list[0];\n if (this.aim) {\n this.mycourese = [\n {time: \"第一大节\", class1: this.aim.c11, class2: this.aim.c12, class3: this.aim.c13, class4: this.aim.c14, class5: this.aim.c15,},\n {time: \"第二大节\", class1: this.aim.c21, class2: this.aim.c22, class3: this.aim.c23, class4: this.aim.c24, class5: this.aim.c25,},\n {time: \"第三大节\", class1: this.aim.c31, class2: this.aim.c32, class3: this.aim.c33, class4: this.aim.c34, class5: this.aim.c35,},\n {time: \"第四大节\", class1: this.aim.c41, class2: this.aim.c42, class3: this.aim.c43, class4: this.aim.c44, class5: this.aim.c45,},\n {time: \"第五大节\", class1: this.aim.c51, class2: this.aim.c52, class3: this.aim.c53, class4: this.aim.c54, class5: this.aim.c55,},\n ];\n this.dataForm.id = this.aim.id;\n }\n // console.log(this.aim)\n if (res.code !== 0) {\n this.aim = null\n this.total = 0\n return this.$message.error(res.msg)\n }\n }).catch(() => {\n })\n\n // console.log(this.mycourese);\n // console.log(this.dataForm.id);\n },\n lookUpInfo(scopeRowId) {\n\n this.popIsEdit = false;\n this.addOrUpdateHandle(scopeRowId)\n },\n addOrUpdateHandleWapper(scopeRowId) {\n this.popIsEdit = true;\n this.addOrUpdateHandle(scopeRowId)\n },\n deleteHandleWapper(scopeRowId) {\n this.deleteHandle(scopeRowId)\n },\n }\n\n}\n</script>\n"]}]} |