forked from zhurui/management
1 line
8.9 KiB
JSON
1 line
8.9 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\\course\\course.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\applicationPart4\\course\\course.vue","mtime":1622475177367},{"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//\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 './course-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 }\n },\n components: {\n AddOrUpdate\n },\n computed: {\n scopeRowId() {\n let id = null;\n if (this.dataList) {\n id = this.dataList[0].id\n }\n return id;\n },\n course() {\n let courses = [];\n let aim = null;\n if (this.dataList) {\n aim = this.dataList[0]\n }\n if (aim) {\n courses = [\n {time: \"第一大节\", class1: aim.c11, class2: aim.c12, class3: aim.c13, class4: aim.c14, class5: aim.c15,},\n {time: \"第二大节\", class1: aim.c21, class2: aim.c22, class3: aim.c23, class4: aim.c24, class5: aim.c25,},\n {time: \"第三大节\", class1: aim.c31, class2: aim.c32, class3: aim.c33, class4: aim.c34, class5: aim.c35,},\n {time: \"第四大节\", class1: aim.c41, class2: aim.c42, class3: aim.c43, class4: aim.c44, class5: aim.c45,},\n {time: \"第五大节\", class1: aim.c51, class2: aim.c52, class3: aim.c53, class4: aim.c54, class5: aim.c55,},];\n }\n\n return courses;\n }\n },\n methods: {\n lookUpInfo(scopeRowId) {\n console.log(scopeRowId);\n console.log(\"11111\")\n this.popIsEdit = false;\n this.addOrUpdateHandle(scopeRowId)\n },\n addOrUpdateHandleWapper(scopeRowId) {\n console.log(scopeRowId);\n console.log(\"2222\")\n this.popIsEdit = true;\n this.addOrUpdateHandle(scopeRowId)\n },\n deleteHandleWapper(scopeRowId) {\n console.log(scopeRowId);\n console.log(\"3333\")\n this.deleteHandle(scopeRowId)\n },\n }\n\n}\n",{"version":3,"sources":["course.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA","file":"course.vue","sourceRoot":"src/views/modules/applicationPart4/course","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\n <el-form-item>\n <el-button type=\"primary\" @click=\"addOrUpdateHandleWapper()\">{{ $t('add') }}</el-button>\n </el-form-item>\n\n <el-form-item>\n <el-button type=\"primary\" @click=\"addOrUpdateHandleWapper(scopeRowId)\">{{ $t('update') }}</el-button>\n </el-form-item>\n\n <el-form-item>\n <el-button type=\"danger\" @click=\"deleteHandleWapper(scopeRowId)\">{{ $t('deleteBatch') }}</el-button>\n </el-form-item>\n\n </el-form>\n\n\n <!-- <el-table-column prop=\"id\" label=\" 主键\" header-align=\"center\" align=\"center\"></el-table-column>-->\n\n\n <!-- <el-table-column prop=\"creator\" label=\" 创建人\" header-align=\"center\" align=\"center\"></el-table-column>-->\n <!-- <el-table-column prop=\"createDate\" label=\" 创建时间\" header-align=\"center\" align=\"center\"></el-table-column>-->\n <!-- <el-row :gutter=\"20\">-->\n <!-- <el-col :span=\"6\"><div class=\"grid-content bg-purple\"></div></el-col>-->\n <!-- <el-col :span=\"6\"><div class=\"grid-content bg-purple\"></div></el-col>-->\n <!-- <el-col :span=\"6\"><div class=\"grid-content bg-purple\"></div></el-col>-->\n <!-- <el-col :span=\"6\"><div class=\"grid-content bg-purple\"></div></el-col>-->\n <!-- </el-row>-->\n <!-- <el-col :span=\"10\"> <el-table-column prop=\"studentNumber\" label=\" 学号\" header-align=\"center\" align=\"center\"></el-table-column></el-col>-->\n <!-- <el-col :span=\"10\"><el-table-column prop=\"studetnName\" label=\" 姓名\" header-align=\"center\" align=\"center\"></el-table-column></el-col>-->\n\n <el-table v-loading=\"dataListLoading\" :data=\"course\" 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\n\n <!-- 弹窗, 新增 / 详情/ 修改 -->\n <add-or-update :isedit=\"popIsEdit\" v-if=\"addOrUpdateVisible\" ref=\"addOrUpdate\"\n @refreshDataList=\"getDataList\"></add-or-update>\n </el-table>\n </div>\n </el-card>\n</template>\n\n<script>\nimport mixinViewModule from '@/mixins/view-module'\nimport AddOrUpdate from './course-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 }\n },\n components: {\n AddOrUpdate\n },\n computed: {\n scopeRowId() {\n let id = null;\n if (this.dataList) {\n id = this.dataList[0].id\n }\n return id;\n },\n course() {\n let courses = [];\n let aim = null;\n if (this.dataList) {\n aim = this.dataList[0]\n }\n if (aim) {\n courses = [\n {time: \"第一大节\", class1: aim.c11, class2: aim.c12, class3: aim.c13, class4: aim.c14, class5: aim.c15,},\n {time: \"第二大节\", class1: aim.c21, class2: aim.c22, class3: aim.c23, class4: aim.c24, class5: aim.c25,},\n {time: \"第三大节\", class1: aim.c31, class2: aim.c32, class3: aim.c33, class4: aim.c34, class5: aim.c35,},\n {time: \"第四大节\", class1: aim.c41, class2: aim.c42, class3: aim.c43, class4: aim.c44, class5: aim.c45,},\n {time: \"第五大节\", class1: aim.c51, class2: aim.c52, class3: aim.c53, class4: aim.c54, class5: aim.c55,},];\n }\n\n return courses;\n }\n },\n methods: {\n lookUpInfo(scopeRowId) {\n console.log(scopeRowId);\n console.log(\"11111\")\n this.popIsEdit = false;\n this.addOrUpdateHandle(scopeRowId)\n },\n addOrUpdateHandleWapper(scopeRowId) {\n console.log(scopeRowId);\n console.log(\"2222\")\n this.popIsEdit = true;\n this.addOrUpdateHandle(scopeRowId)\n },\n deleteHandleWapper(scopeRowId) {\n console.log(scopeRowId);\n console.log(\"3333\")\n this.deleteHandle(scopeRowId)\n },\n }\n\n}\n</script>\n"]}]} |