management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/4ec7c0102381e6140f0c5aae43a...

1 line
7.1 KiB
JSON

{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!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\\test\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\test\\index.vue","mtime":1618452637717},{"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//\nexport default {\n name: \"index\",\n data: function data() {\n return {\n dialogFormVisible: false,\n form: {\n name: '',\n no: ''\n },\n formLabelWidth: '120px',\n tableData: []\n };\n },\n created: function created() {\n this.selectStudent();\n },\n methods: {\n handleEdit: function handleEdit(index, row) {\n this.dialogFormVisible = true;\n this.form = row; // 返回索引index和这一行的数据row\n // console.log(index, row);\n },\n handleDelete: function handleDelete(index, row) {\n var _this = this;\n\n this.$http.delete('system/student' + \"/\" + row.id).then(function (data) {\n console.log(data);\n _this.dialogFormVisible = false;\n\n _this.selectStudent();\n });\n console.log(index, row);\n },\n insertStudent: function insertStudent() {\n var _this2 = this;\n\n this.$http.post('system/student', this.form).then(function (data) {\n console.log(data);\n _this2.dialogFormVisible = false;\n\n _this2.selectStudent();\n });\n },\n selectStudent: function selectStudent() {\n var _this3 = this;\n\n this.$http.get('system/student').then(function (data) {\n console.log(data);\n _this3.tableData = data.data;\n });\n }\n }\n};",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,eAAA;AACA,EAAA,IAAA,EAAA,OADA;AAEA,EAAA,IAFA,kBAEA;AACA,WAAA;AACA,MAAA,iBAAA,EAAA,KADA;AAEA,MAAA,IAAA,EAAA;AACA,QAAA,IAAA,EAAA,EADA;AAEA,QAAA,EAAA,EAAA;AAFA,OAFA;AAMA,MAAA,cAAA,EAAA,OANA;AAQA,MAAA,SAAA,EAAA;AARA,KAAA;AAUA,GAbA;AAeA,EAAA,OAfA,qBAeA;AACA,SAAA,aAAA;AACA,GAjBA;AAmBA,EAAA,OAAA,EAAA;AACA,IAAA,UADA,sBACA,KADA,EACA,GADA,EACA;AACA,WAAA,iBAAA,GAAA,IAAA;AACA,WAAA,IAAA,GAAA,GAAA,CAFA,CAGA;AACA;AACA,KANA;AAOA,IAAA,YAPA,wBAOA,KAPA,EAOA,GAPA,EAOA;AAAA;;AACA,WAAA,KAAA,CAAA,MAAA,CAAA,mBAAA,GAAA,GAAA,GAAA,CAAA,EAAA,EAAA,IAAA,CAAA,UAAA,IAAA,EAAA;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,IAAA;AACA,QAAA,KAAA,CAAA,iBAAA,GAAA,KAAA;;AACA,QAAA,KAAA,CAAA,aAAA;AACA,OAJA;AAKA,MAAA,OAAA,CAAA,GAAA,CAAA,KAAA,EAAA,GAAA;AACA,KAdA;AAgBA,IAAA,aAhBA,2BAgBA;AAAA;;AACA,WAAA,KAAA,CAAA,IAAA,CAAA,gBAAA,EAAA,KAAA,IAAA,EAAA,IAAA,CAAA,UAAA,IAAA,EAAA;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,IAAA;AACA,QAAA,MAAA,CAAA,iBAAA,GAAA,KAAA;;AACA,QAAA,MAAA,CAAA,aAAA;AACA,OAJA;AAKA,KAtBA;AAuBA,IAAA,aAvBA,2BAuBA;AAAA;;AACA,WAAA,KAAA,CAAA,GAAA,CAAA,gBAAA,EAAA,IAAA,CAAA,UAAA,IAAA,EAAA;AACA,QAAA,OAAA,CAAA,GAAA,CAAA,IAAA;AACA,QAAA,MAAA,CAAA,SAAA,GAAA,IAAA,CAAA,IAAA;AACA,OAHA;AAIA;AA5BA;AAnBA,CAAA","sourcesContent":["<template>\n <div>\n <el-button size=\"mini\" @click=\"dialogFormVisible = true\">新增</el-button>\n <el-dialog title=\"详情\" :visible.sync=\"dialogFormVisible\">\n <el-form :model=\"form\">\n <el-form-item label=\"姓名\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.name\" autocomplete=\"off\"></el-input>\n </el-form-item>\n <el-form-item label=\"学号\" :label-width=\"formLabelWidth\">\n <el-input v-model=\"form.no\" autocomplete=\"off\"></el-input>\n </el-form-item>\n </el-form>\n <div slot=\"footer\" class=\"dialog-footer\">\n <el-button @click=\"dialogFormVisible = false\">取 消</el-button>\n <el-button type=\"primary\" @click=\"insertStudent\">确 定</el-button>\n </div>\n </el-dialog>\n\n\n <el-table\n :data=\"tableData\"\n style=\"width: 100%\">\n <el-table-column\n prop=\"id\"\n label=\"ID\"\n width=\"180\">\n </el-table-column>\n <el-table-column\n prop=\"name\"\n label=\"姓名\"\n width=\"180\">\n </el-table-column>\n <el-table-column\n prop=\"no\"\n label=\"学号\">\n </el-table-column>\n\n <el-table-column label=\"操作\">\n <template slot-scope=\"scope\">\n <el-button\n size=\"mini\"\n @click=\"handleEdit(scope.$index, scope.row)\">编辑</el-button>\n <el-button\n size=\"mini\"\n type=\"danger\"\n @click=\"handleDelete(scope.$index, scope.row)\">删除</el-button>\n </template>\n </el-table-column>\n\n </el-table>\n </div>\n</template>\n\n<script>\n export default {\n name: \"index\",\n data(){\n return {\n dialogFormVisible: false,\n form: {\n name: '',\n no: '',\n },\n formLabelWidth: '120px',\n\n tableData: [],\n }\n },\n\n created() {\n this.selectStudent();\n },\n\n methods:{\n handleEdit(index, row) {\n this.dialogFormVisible = true;\n this.form = row\n // 返回索引index和这一行的数据row\n // console.log(index, row);\n },\n handleDelete(index, row) {\n this.$http.delete('system/student'+\"/\"+row.id).then(data => {\n console.log(data);\n this.dialogFormVisible = false;\n this.selectStudent();\n })\n console.log(index, row);\n },\n\n insertStudent(){\n this.$http.post('system/student', this.form).then(data => {\n console.log(data);\n this.dialogFormVisible = false;\n this.selectStudent();\n })\n },\n selectStudent(){\n this.$http.get('system/student').then(data => {\n console.log(data);\n this.tableData = data.data;\n })\n }\n }\n }\n</script>\n\n<style scoped>\n\n</style>\n"],"sourceRoot":"src/views/modules/test"}]}