{"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\\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//\n\nexport 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",{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;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","file":"index.vue","sourceRoot":"src/views/modules/test","sourcesContent":["\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"]}]}