travel/admin/node_modules/.cache/vue-loader/9063bd658e9abbec7b1ec25fec8...

1 line
4.3 KiB
JSON

{"remainingRequest":"D:\\phpstudy_pro\\WWW\\travel\\admin\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\data\\anchor.vue?vue&type=script&lang=js","dependencies":[{"path":"D:\\phpstudy_pro\\WWW\\travel\\admin\\src\\views\\data\\anchor.vue","mtime":1718070786047},{"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:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQoNCmV4cG9ydCBkZWZhdWx0IHsNCiAgbmFtZTogJ0RhdGFsaXN0JywNCiAgZGF0YSgpIHsNCiAgICByZXR1cm4gew0KICAgICAgbGlzdDogW10sDQogICAgICBsaXN0TG9hZGluZzogdHJ1ZSwNCiAgICAgIGxpc3RRdWVyeTp7fQ0KICAgIH0NCiAgfSwNCiAgY3JlYXRlZCgpIHsNCiAgICB0aGlzLmdldExpc3QoKQ0KICB9LA0KICBtZXRob2RzOiB7DQogICAgZ2V0TGlzdCgpIHsNCiAgICAgIHRoaXMuJGF4aW9zLmdldCgnL2FkbWluL2RhdGEvYW5jaG9yJywgeyBwYXJhbXM6IHRoaXMubGlzdFF1ZXJ5IH0pLnRoZW4ocmVzcG9uc2UgPT4gew0KICAgICAgICB0aGlzLmxpc3QgPSByZXNwb25zZS5kYXRhDQogICAgICAgIHRoaXMubGlzdExvYWRpbmcgPSBmYWxzZQ0KICAgICAgfSkNCiAgICB9DQogIH0NCn0NCg=="},{"version":3,"sources":["anchor.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"anchor.vue","sourceRoot":"src/views/data","sourcesContent":["<template>\r\n <div class=\"app-container\">\r\n\r\n <div class=\"filter-container\">\r\n <el-input v-model=\"listQuery.admin\" placeholder=\"用户名\" style=\"width: 200px; margin-right: 10px;\" class=\"filter-item\" />\r\n <el-date-picker\r\n class=\"filter-item\"\r\n v-model=\"listQuery.times\"\r\n type=\"datetimerange\"\r\n :default-time=\"['00:00:00', '23:59:59']\"\r\n range-separator=\"至\"\r\n start-placeholder=\"开始日期\"\r\n end-placeholder=\"结束日期\">\r\n </el-date-picker>\r\n <el-button class=\"filter-item\" type=\"primary\" icon=\"el-icon-search\" @click=\"getList\">\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\" fixed label=\"姓名\" width=\"120\" prop=\"name\" />\r\n \r\n <el-table-column align=\"center\" label=\"管理员\" width=\"120\" prop=\"username\" />\r\n\r\n <el-table-column align=\"center\" width=\"120\" 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 align=\"center\" label=\"在线时长\">\r\n <template slot-scope=\"scope\">\r\n <div class=\"day\" v-for=\"work in scope.row.works\">\r\n <div>{{work.start | parseTime('{d}')}}</div>\r\n <p>{{work.start | parseTime('{h}:{i}')}} - {{work.end | parseTime('{h}:{i}')}}</p>\r\n {{ (work.total/100).toFixed(2) }}\r\n </div>\r\n </template>\r\n </el-table-column>\r\n \r\n </el-table>\r\n\r\n </div>\r\n</template>\r\n\r\n<script>\r\n\r\nexport default {\r\n name: 'Datalist',\r\n data() {\r\n return {\r\n list: [],\r\n listLoading: true,\r\n listQuery:{}\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/data/anchor', { params: this.listQuery }).then(response => {\r\n this.list = response.data\r\n this.listLoading = false\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped>\r\n.day {\r\n display: inline-block;\r\n margin: 10px;\r\n border: 1px solid #409EFF;\r\n border-radius: 6px;\r\n overflow: hidden;\r\n}\r\n.day p{\r\n background-color: #409EFF;\r\n margin: 0;\r\n color: #FFF;\r\n padding: 3px 10px;\r\n}\r\n</style>"]}]}