You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
12 KiB
1 line
12 KiB
{"remainingRequest":"D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\src\\views\\pages\\TeamTypes.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\src\\views\\pages\\TeamTypes.vue","mtime":1642749860000},{"path":"D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1741688074111},{"path":"D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\node_modules\\babel-loader\\lib\\index.js","mtime":1741688074515},{"path":"D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1741688074111},{"path":"D:\\BaiduNetdiskDownload\\springboot和vue社团管理\\client\\node_modules\\vue-loader\\lib\\index.js","mtime":1741688069764}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CglpbXBvcnQgewoJCWdldFBhZ2VUZWFtVHlwZXMsCgkJYWRkVGVhbVR5cGVzLAoJCXVwZFRlYW1UeXBlcywKCQlkZWxUZWFtVHlwZXMKCX0gZnJvbSAiLi4vLi4vYXBpIjsKCglleHBvcnQgZGVmYXVsdCB7CgoJCWRhdGEoKSB7CgoJCQlyZXR1cm4gewoJCQkJcGFnZUluZm9zOiBbXSwKCQkJCXBhZ2VJbmRleDogMSwKCQkJCXBhZ2VTaXplOiAxMCwKCQkJCXBhZ2VUb3RhbDogMCwKCQkJCXRvdGFsSW5mbzogMCwKCQkJCWxvYWRpbmc6IHRydWUsCgkJCQlzaG93QWRkRmxhZzogZmFsc2UsCgkJCQlzaG93VXBkRmxhZzogZmFsc2UsCgkJCQlxcnlGb3JtOiB7CgkJCQkJbmFtZTogIiIsCgkJCQl9LAo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AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","file":"TeamTypes.vue","sourceRoot":"src/views/pages","sourcesContent":["<template>\n\t<div class=\"fater-body-show\">\n\t\t<el-card shadow=\"never\">\n\t\t\t<div slot=\"header\">\n\t\t\t\t信息查询\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<el-form :inline=\"true\" :model=\"qryForm\">\n\t\t\t\t\t<el-form-item>\n\t\t\t\t\t\t<el-input v-model=\"qryForm.name\" placeholder=\"输入社团类型名称…\" autocomplete=\"off\"></el-input>\n\t\t\t\t\t</el-form-item>\n\t\t\t\t\t<el-form-item>\n\t\t\t\t\t\t<el-button type=\"primary\" icon=\"el-icon-search\" @click=\"getPageLikeInfo()\"></el-button>\n\t\t\t\t\t</el-form-item>\n\t\t\t\t</el-form>\n\t\t\t</div>\n\t\t</el-card>\n\n\t\t<el-card shadow=\"never\">\n\t\t\t<div slot=\"header\">\n\t\t\t\t<el-button type=\"primary\" size=\"mini\" icon=\"el-icon-plus\" @click=\"showAddWin()\"></el-button>\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<el-table v-loading=\"loading\" element-loading-text=\"拼命加载中\" element-loading-spinner=\"el-icon-loading\"\n\t\t\t\t\telement-loading-background=\"rgba(124, 124, 124, 0.8)\" :data=\"pageInfos\" border>\n\t\t\t\t\t<el-table-column align=\"center\" type=\"index\"></el-table-column>\n\t\t\t\t\t<el-table-column align=\"center\" prop=\"name\" label=\"类型名称\"></el-table-column>\n\t\t\t\t\t<el-table-column align=\"center\" prop=\"createTime\" label=\"创建时间\"></el-table-column>\n\t\t\t\t\t<el-table-column align=\"center\" label=\"操作处理\">\n\t\t\t\t\t\t<template slot-scope=\"scope\">\n\t\t\t\t\t\t\t<el-button icon=\"el-icon-edit\" type=\"primary\" size=\"mini\" @click=\"showUpdWin(scope.row)\">\n\t\t\t\t\t\t\t</el-button>\n\t\t\t\t\t\t\t<el-button icon=\"el-icon-delete\" type=\"danger\" size=\"mini\" @click=\"delInfo(scope.row.id)\">\n\t\t\t\t\t\t\t</el-button>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</el-table-column>\n\t\t\t\t</el-table>\n\t\t\t\t<el-pagination v-if=\"pageTotal > 1\" style=\"margin-top: 15px;\" @size-change=\"handleSizeChange\"\n\t\t\t\t\t@current-change=\"handleCurrentChange\" :current-page=\"pageIndex\" :page-sizes=\"[5, 10, 20, 50]\"\n\t\t\t\t\t:page-size=\"pageSize\" layout=\"total, sizes, prev, pager, next, jumper\" :total=\"totalInfo\">\n\t\t\t\t</el-pagination>\n\t\t\t</div>\n\t\t</el-card>\n\n\t\t<el-dialog title=\"添加信息\" width=\"600px\" :visible.sync=\"showAddFlag\">\n\t\t\t<el-form label-width=\"90px\" :model=\"teamTypesForm\">\n\t\t\t\t<el-form-item label=\"类型名称\">\n\t\t\t\t\t<el-input v-model=\"teamTypesForm.name\" placeholder=\"请输入类型名称…\" autocomplete=\"off\"></el-input>\n\t\t\t\t</el-form-item>\n\t\t\t</el-form>\n\t\t\t<div slot=\"footer\" class=\"dialog-footer\">\n\t\t\t\t<el-button @click=\"showAddFlag = false\">取 消</el-button>\n\t\t\t\t<el-button type=\"primary\" @click=\"addInfo()\">确 定</el-button>\n\t\t\t</div>\n\t\t</el-dialog>\n\n\t\t<el-dialog title=\"修改信息\" width=\"600px\" :visible.sync=\"showUpdFlag\">\n\t\t\t<el-form label-width=\"90px\" :model=\"teamTypesForm\">\n\t\t\t\t<el-form-item label=\"类型名称\">\n\t\t\t\t\t<el-input v-model=\"teamTypesForm.name\" placeholder=\"请输入类型名称…\" autocomplete=\"off\"></el-input>\n\t\t\t\t</el-form-item>\n\t\t\t</el-form>\n\t\t\t<div slot=\"footer\" class=\"dialog-footer\">\n\t\t\t\t<el-button @click=\"showUpdFlag = false\">取 消</el-button>\n\t\t\t\t<el-button type=\"primary\" @click=\"updInfo()\">确 定</el-button>\n\t\t\t</div>\n\t\t</el-dialog>\n\t</div>\n</template>\n\n<style>\n\n</style>\n\n<script>\n\timport {\n\t\tgetPageTeamTypes,\n\t\taddTeamTypes,\n\t\tupdTeamTypes,\n\t\tdelTeamTypes\n\t} from \"../../api\";\n\n\texport default {\n\n\t\tdata() {\n\n\t\t\treturn {\n\t\t\t\tpageInfos: [],\n\t\t\t\tpageIndex: 1,\n\t\t\t\tpageSize: 10,\n\t\t\t\tpageTotal: 0,\n\t\t\t\ttotalInfo: 0,\n\t\t\t\tloading: true,\n\t\t\t\tshowAddFlag: false,\n\t\t\t\tshowUpdFlag: false,\n\t\t\t\tqryForm: {\n\t\t\t\t\tname: \"\",\n\t\t\t\t},\n\t\t\t\tteamTypesForm: {\n\t\t\t\t\tid: \"\",\n\t\t\t\t\tname: \"\",\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\n\t\t\tgetPageInfo(pageIndex, pageSize) {\n\n\t\t\t\tgetPageTeamTypes(pageIndex, pageSize).then(resp => {\n\n\t\t\t\t\tthis.pageInfos = resp.data.data;\n\t\t\t\t\tthis.pageIndex = resp.data.pageIndex;\n\t\t\t\t\tthis.pageSize = resp.data.pageSize;\n\t\t\t\t\tthis.pageTotal = resp.data.pageTotal;\n\t\t\t\t\tthis.totalInfo = resp.data.count;\n\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t});\n\t\t\t},\n\t\t\tgetPageLikeInfo() {\n\n\t\t\t\tgetPageTeamTypes(1, this.pageSize, this.qryForm.name).then(resp => {\n\n\t\t\t\t\tthis.pageInfos = resp.data.data;\n\t\t\t\t\tthis.pageIndex = resp.data.pageIndex;\n\t\t\t\t\tthis.pageSize = resp.data.pageSize;\n\t\t\t\t\tthis.totalInfo = resp.data.count;\n\t\t\t\t\tthis.pageTotal = resp.data.pageTotal;\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t});\n\t\t\t},\n\t\t\thandleSizeChange(pageSize) {\n\n\t\t\t\tthis.getPageInfo(this.pageIndex, pageSize, this.qryForm.name);\n\t\t\t},\n\t\t\thandleCurrentChange(pageIndex) {\n\n\t\t\t\tthis.getPageInfo(pageIndex, this.pageSize, this.qryForm.name);\n\t\t\t},\n\t\t\tinitForm() {\n\n\t\t\t\tthis.teamTypesForm = {\n\t\t\t\t\tid: \"\",\n\t\t\t\t\tname: \"\",\n\t\t\t\t};\n\t\t\t},\n\t\t\tshowAddWin() {\n\n\t\t\t\tthis.showAddFlag = true;\n\t\t\t},\n\t\t\tshowUpdWin(row) {\n\n\t\t\t\tthis.teamTypesForm = row;\n\t\t\t\tthis.showUpdFlag = true;\n\t\t\t},\n\t\t\taddInfo() {\n\n\t\t\t\taddTeamTypes(this.teamTypesForm).then(resp => {\n\n\t\t\t\t\tthis.$message({\n\t\t\t\t\t\tmessage: resp.msg,\n\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t});\n\n\t\t\t\t\tthis.getPageInfo(1, this.pageSize);\n\n\t\t\t\t\tthis.showAddFlag = false;\n\n\t\t\t\t\tthis.initForm();\n\t\t\t\t});\n\t\t\t},\n\t\t\tupdInfo() {\n\n\t\t\t\tupdTeamTypes(this.teamTypesForm).then(resp => {\n\n\t\t\t\t\tthis.$message({\n\t\t\t\t\t\tmessage: resp.msg,\n\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t});\n\n\t\t\t\t\tthis.getPageInfo(1, this.pageSize);\n\n\t\t\t\t\tthis.showUpdFlag = false;\n\n\t\t\t\t\tthis.initForm();\n\t\t\t\t});\n\t\t\t},\n\t\t\tdelInfo(id) {\n\t\t\t\tthis.$confirm('即将删除相关信息, 是否继续?', '提示', {\n\t\t\t\t\tconfirmButtonText: '确定',\n\t\t\t\t\tcancelButtonText: '取消',\n\t\t\t\t\ttype: 'warning'\n\t\t\t\t}).then(() => {\n\n\t\t\t\t\tdelTeamTypes(id).then(resp => {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(resp.code == 0){\n\n\t\t\t\t\t\t\tthis.$message({\n\t\t\t\t\t\t\t\tmessage: resp.msg,\n\t\t\t\t\t\t\t\ttype: 'success'\n\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\tthis.getPageInfo(1, this.pageSize);\n\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\tthis.$message({\n\t\t\t\t\t\t\t\tmessage: resp.msg,\n\t\t\t\t\t\t\t\ttype: 'warning'\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t},\n\t\tmounted() {\n\n\t\t\tthis.getPageInfo(1, this.pageSize);\n\t\t}\n\t}\n</script>"]}]} |