travel/admin/node_modules/.cache/babel-loader/2594edbf47e09fa6d3318e31d9b...

1 line
16 KiB
JSON

{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\admin\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\admin\\index.vue","mtime":1718702495118},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\babel.config.js","mtime":1718070785981},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\babel-loader\\lib\\index.js","mtime":1718764959024},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1718764957200},{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js","mtime":1718764959862}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8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vbnNlKSB7CiAgICAgICAgX3RoaXM0Lml0ZW0gPSB7fTsKICAgICAgICBfdGhpczQuZGlhbG9nV29yayA9IGZhbHNlOwogICAgICB9KS5jYXRjaChmdW5jdGlvbiAoZXJyKSB7fSk7CiAgICB9LAogICAgc2V0VGltZTogZnVuY3Rpb24gc2V0VGltZSh2YWwpIHsKICAgICAgY29uc29sZS5sb2codmFsKTsKICAgIH0KICB9Cn07"},{"version":3,"names":["Pagination","name","components","data","list","oss","from","total","listLoading","listQuery","page","limit","dialogVisible","dialogWork","item","created","getList","methods","_this","$axios","get","params","then","response","ext","console","log","catch","err","setStatus","_this2","post","res","$notify","title","message","type","duration","handleCreate","onSave","_this3","onWork","_this4","admin_id","id","setTime","val"],"sources":["src/views/admin/index.vue"],"sourcesContent":["<template>\r\n <div class=\"app-container\">\r\n\r\n <div class=\"filter-container\">\r\n <el-input v-model=\"listQuery.username\" placeholder=\"用户名\" style=\"width: 200px; margin-right: 10px;\" class=\"filter-item\" />\r\n <el-button class=\"filter-item\" type=\"primary\" icon=\"el-icon-search\" @click=\"getList\">\r\n 搜索\r\n </el-button>\r\n <el-button class=\"filter-item\" style=\"margin-left: 10px;\" type=\"primary\" icon=\"el-icon-circle-plus\" @click=\"handleCreate({})\">\r\n 添加\r\n </el-button>\r\n </div>\r\n\r\n <el-table v-loading=\"listLoading\" :data=\"list\" border fit highlight-current-row style=\"width: 100%\">\r\n\r\n <el-table-column align=\"center\" label=\"操作\" width=\"200\">\r\n <template slot-scope=\"scope\">\r\n <el-button type=\"primary\" @click=\"handleCreate(scope.row)\" size=\"small\" icon=\"el-icon-edit\">\r\n 修改\r\n </el-button>\r\n\r\n <el-button type=\"primary\" v-if=\"scope.row.status\" @click=\"onWork(scope.row)\" size=\"small\" icon=\"el-icon-date\">\r\n 排班\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"ID\" width=\"80\" prop=\"id\"></el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"用户名\" width=\"160\" prop=\"username\"></el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"姓名\" width=\"160\" prop=\"name\"></el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"手机\" width=\"160\" prop=\"mobile\"></el-table-column>\r\n\r\n <el-table-column align=\"center\" label=\"头像\">\r\n <template slot-scope=\"scope\">\r\n <el-avatar :size=\"50\" :src=\"scope.row.avatar\"></el-avatar>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column class-name=\"status-col\" label=\"状态\" width=\"180\">\r\n <template slot-scope=\"{row}\">\r\n <el-switch\r\n v-model=\"row.status\"\r\n @change=\"setStatus(row)\"\r\n active-text=\"启用\"\r\n :active-value=\"1\"\r\n :inactive-value=\"0\"\r\n inactive-text=\"禁用\">\r\n </el-switch>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column width=\"180px\" align=\"center\" label=\"创建时间\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.create_time | parseTime('{y}-{m}-{d} {h}:{i}') }}</span>\r\n </template>\r\n </el-table-column>\r\n\r\n <el-table-column width=\"180px\" align=\"center\" label=\"修改时间\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.update_time | parseTime('{y}-{m}-{d} {h}:{i}') }}</span>\r\n </template>\r\n </el-table-column>\r\n\r\n </el-table>\r\n\r\n <pagination\r\n v-show=\"total>0\"\r\n :total=\"total\"\r\n :page.sync=\"listQuery.page\"\r\n :limit.sync=\"listQuery.limit\"\r\n @pagination=\"getList\"\r\n />\r\n\r\n\r\n <el-dialog title=\"修改管理员\" :visible.sync=\"dialogVisible\">\r\n <el-form label-width=\"120px\" :model=\"item\">\r\n <el-form-item label=\"用户名\">\r\n <el-input v-model=\"item.username\" name=\"username\" placeholder=\"管理员的用户名\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"姓名\">\r\n <el-input v-model=\"item.name\" name=\"name\" placeholder=\"管理员的姓名\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"手机\">\r\n <el-input v-model=\"item.mobile\" name=\"name\" placeholder=\"发送短时的时候会用到这个手机\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"密码\">\r\n <el-input v-model=\"item.password\" type=\"password\" name=\"password\" placeholder=\"管理员的新密码\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"是否分配\">\r\n <el-switch\r\n v-model=\"item.is_order\"\r\n active-text=\"分配\"\r\n :active-value=\"1\"\r\n inactive-text=\"不分配\"\r\n :inactive-value=\"0\"\r\n >\r\n </el-switch>\r\n </el-form-item>\r\n <el-form-item label=\"是否主播\">\r\n <el-switch\r\n v-model=\"item.is_anchor\"\r\n active-text=\"主播\"\r\n :active-value=\"1\"\r\n inactive-text=\"\"\r\n :inactive-value=\"0\"\r\n >\r\n </el-switch>\r\n </el-form-item>\r\n </el-form>\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"onSave(item)\">保 存</el-button>\r\n </div>\r\n </el-dialog>\r\n\r\n <el-dialog title=\"添加排班\" :visible.sync=\"dialogWork\">\r\n <el-form label-width=\"120px\" :model=\"from\">\r\n\r\n <el-form-item label=\"上班日期\">\r\n <el-date-picker\r\n style=\"margin-right: 10px;\"\r\n type=\"dates\"\r\n v-model=\"from.dates\"\r\n placeholder=\"选择一个或多个日期\">\r\n </el-date-picker>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"上班时间段\">\r\n <el-time-picker\r\n is-range\r\n v-model=\"from.time\"\r\n range-separator=\"至\"\r\n start-placeholder=\"开始时间\"\r\n end-placeholder=\"结束时间\"\r\n placeholder=\"选择时间范围\"\r\n >\r\n </el-time-picker>\r\n </el-form-item>\r\n\r\n <el-form-item label=\"渠道\">\r\n <el-checkbox-group v-model=\"from.oss\" >\r\n <el-checkbox v-for=\"(v,i,k) in oss\" :label=\"i\" :key=\"k\">{{v}}</el-checkbox>\r\n </el-checkbox-group>\r\n </el-form-item>\r\n\r\n </el-form>\r\n\r\n <div slot=\"footer\" class=\"dialog-footer\">\r\n <el-button type=\"primary\" @click=\"onWork()\">保 存</el-button>\r\n </div>\r\n </el-dialog>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Pagination from '@/components/Pagination' // Secondary package based on el-pagination\r\n\r\nexport default {\r\n name: 'Adminlist',\r\n components: { Pagination },\r\n data() {\r\n return {\r\n list: [],\r\n oss: [],\r\n from: {oss:[]},\r\n total: 0,\r\n listLoading: true,\r\n listQuery: {\r\n page: 1,\r\n limit: 20\r\n },\r\n dialogVisible: false,\r\n dialogWork: false,\r\n item: {}\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n },\r\n methods: {\r\n getList() {\r\n this.$axios.get('/admin/admin/index', { params: this.listQuery }).then(response => {\r\n this.list = response.data.data\r\n this.total = response.data.total\r\n this.oss = response.ext.oss\r\n // for(let k in response.ext.oss){\r\n // this.oss.push({id:k,val:response.ext.oss[k]})\r\n // }\r\n console.log(this.oss)\r\n this.listLoading = false\r\n }).catch(err=>{\r\n })\r\n },\r\n setStatus(item) {\r\n console.log(item)\r\n this.$axios.post('/admin/admin/disabled',item).then(res=>{\r\n this.$notify({\r\n title: '成功',\r\n message: '修改成功',\r\n type: 'success',\r\n duration: 2000\r\n })\r\n }).catch(err=>{\r\n this.$notify({\r\n title: '成功',\r\n message: '修改失败',\r\n type: 'error',\r\n duration: 2000\r\n })\r\n })\r\n },\r\n handleCreate(item) {\r\n this.dialogVisible = true;\r\n this.item = item\r\n },\r\n onSave(from) {\r\n this.$axios.post('/admin/admin/save', from).then(response => {\r\n this.item = {}\r\n this.dialogVisible = false\r\n this.getList()\r\n }).catch(err=>{\r\n })\r\n },\r\n onWork(item) {\r\n if(item) {\r\n this.item = item\r\n this.from = {oss:[]}\r\n this.dialogWork = true\r\n return\r\n }\r\n this.from.admin_id = this.item.id;\r\n this.$axios.post('/admin/work/saves', this.from).then(response => {\r\n this.item = {}\r\n this.dialogWork = false\r\n }).catch(err=>{\r\n\r\n })\r\n },\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