| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = '/dream' |
| | | VUE_APP_BASE_API = '/dream_dev' |
| | |
| | | isRouterAlive: true |
| | | } |
| | | }, |
| | | created() { |
| | | localStorage.setItem("user", '{"id":25,"name":"微信用户","mobile":"18080857109","gender":"FEMALE","jwtToken":"eyJhbGciOiJIUzI1NiJ9.eyJleHBUaW1lIjoiMjAyNC8xMS8xOCAyMDo0MSIsInVzZXJJZCI6NDYsImp0aSI6ImM2MzE2NDJmLTQ1YzUtNDdhOC04MmRhLWQyMGMwNjg5NDRmOSIsImlhdCI6MTczMTkyNjQ3Miwic3ViIjoieWNsIiwiZXhwIjoxNzMxOTMzNjcyfQ.14nH_pdr4Nfd6Xq0StQ3sMHQz6cqLMEXEHhrSw5iHM4","avatars":[],"staffs":[{"id":1659,"createTime":"2023/11/16 09:58","createById":1,"modifyTime":"2023/11/16 09:58","modifyById":46,"name":"张华","description":"","mobile":"18080857109","gender":"MALE","birthday":"2003/11/16","avatars":[],"org":{"id":1,"createTime":"2023/06/06 19:47","createById":0,"modifyTime":"2024/05/22 00:02","modifyById":1,"name":"叮当云服务","description":"","address":"成都市","addressDetail":"123","lng":104.08373260498047,"lat":30.653186798095703,"pid":0,"versionType":"STANDARD","orgType":"PLATFORM","companyName":"88","region":[],"logos":[{"url1":"dream/1/setting/20240320/2a7d900fc72878a774d3cd6aea2195e0.jpg","url2":"dream/1/setting/20240320/9ccea81dbfdcb8e4d0c86b978aca0e42.jpg","url3":"dream/1/setting/20240320/a78b9307b000b3ec4d6ecc9d276494ee.jpg","origin":"dream/1/setting/20240320/71fad2f4bcae8fc644dca5d95b98c08c.jpg","def":null,"ext":"jpg","duration":null}],"galleries":[{"url1":"dream/1/setting/20240403/f87b937eedaf8842c59bbdcecf60d94e.jpg","url2":"dream/1/setting/20240403/172dc3868484f8b88ad26e54bb51d737.jpg","url3":"dream/1/setting/20240403/b1ddd7a6a8433e6ebace1d5360e426a1.jpg","origin":"dream/1/setting/20240403/15ba95a920efb1353226863f2ba26b53.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"13981970816","tel2":"","openTime":"10:00:00","closeTime":"20:00:00","mch":{"id":1,"name":"优创力直营店"}},"title":null,"user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":427,"createTime":"2023/10/04 13:18","createById":22,"modifyTime":"2023/10/04 13:18","modifyById":22,"name":"管理员","description":"校长,管理员,助理","orgId":1,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"},{"id":1616,"createTime":"2023/11/04 11:23","createById":0,"modifyTime":"2023/12/08 14:10","modifyById":35,"name":"叮当上课-技术","description":"","mobile":"18080857109","gender":"FEMALE","birthday":"1998/11/04","avatars":[],"org":{"id":186,"createTime":"2023/11/04 11:22","createById":0,"modifyTime":"2024/09/11 15:16","modifyById":35,"name":"拓世体育","description":"","address":"四川省成都市锦江区琉三路999号","addressDetail":"成都市锦江区水井坊锦江体育公园","lng":104.11273956298828,"lat":30.597631454467773,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"拓世体育","region":[],"logos":[{"url1":"dream/1/setting/20240911/35c21c25bdabe256e6d80a04443130bd.jpg","url2":"dream/1/setting/20240911/d147a21d1a515b8f1130f48131fb0fd0.jpg","url3":"dream/1/setting/20240911/4b377e21b8a24c326537b7033b3c5368.jpg","origin":"dream/1/setting/20240911/0fa9c2150e361d00a4c605477f355b72.jpg","def":null,"ext":"jpg","duration":null}],"galleries":[{"url1":"dream/1/setting/20231228//1fd0a04396e38f97154518976d2b9fcf.jpg","url2":"dream/1/setting/20231228//a8820bfd6b5b68430930308b138d07b8.jpg","url3":"dream/1/setting/20231228//4362c82baef5dd9114cc612275c5ef8b.jpg","origin":"dream/1/setting/20231228//19a648306dd555f044ae1321519d9765.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"13880121131","tel2":"","openTime":"07:00:00","closeTime":"22:00:00","mch":{"id":81,"name":"拓世体育"}},"title":"老师","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":886,"createTime":"2023/11/04 11:22","createById":0,"modifyTime":"2023/11/04 11:22","modifyById":0,"name":"课程顾问","description":"销售顾问","orgId":186,"sys":1,"roleGroup":"org","roleName":"salesman","state":"USED"},"state":"USED"},{"id":1621,"createTime":"2023/11/04 11:43","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"叮当技术支持","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":"1998/11/04","avatars":[],"org":{"id":187,"createTime":"2023/11/04 11:43","createById":0,"modifyTime":"2023/11/04 11:43","modifyById":0,"name":"惠海琴行","description":null,"address":"龙泉驿区","addressDetail":"成都市龙泉驿区怡和新城F4区双龙路388号24栋附106、107号","lng":104.262856,"lat":30.572496,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"KS","region":[],"logos":[],"galleries":[],"tel1":"18884828287","tel2":"","openTime":"09:00:00","closeTime":"21:30:00","mch":null},"title":"老师","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":890,"createTime":"2023/11/04 11:43","createById":0,"modifyTime":"2023/11/04 11:43","modifyById":0,"name":"管理员","description":"校长,管理员,助理","orgId":187,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"},{"id":1647,"createTime":"2023/11/04 13:09","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"叮当技术支持","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":"1998/11/04","avatars":[],"org":{"id":190,"createTime":"2023/11/04 13:09","createById":0,"modifyTime":"2023/11/04 13:09","modifyById":0,"name":"莱斯普乐艺术","description":null,"address":"锦江区锦丽路187号1楼","addressDetail":"","lng":104.09539,"lat":30.615751,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"莱斯普乐艺术培训学校","region":[],"logos":[],"galleries":[],"tel1":"15196265492","tel2":"","openTime":"09:00:00","closeTime":"21:00:00","mch":null},"title":"老师","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":905,"createTime":"2023/11/04 13:09","createById":0,"modifyTime":"2023/11/04 13:09","modifyById":0,"name":"管理员","description":"校长,管理员,助理","orgId":190,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"},{"id":2150,"createTime":"2024/09/13 19:15","createById":35,"modifyTime":"2024/10/15 09:15","modifyById":35,"name":"华老师","description":"","mobile":"","gender":"MALE","birthday":"2004/09/13","avatars":[],"org":{"id":192,"createTime":"2023/11/10 09:17","createById":1,"modifyTime":"2024/10/25 09:32","modifyById":35,"name":"格斗馆","description":"","address":"四川省成都市锦江区中纱帽街8号","addressDetail":"商鼎国际2-1","lng":104.08373260498047,"lat":30.653186798095703,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"巨石","region":[],"logos":[{"url1":"dream/1/setting/20240320/0e6dbe1029f347fd89eb5c99f287eaee.png","url2":"dream/1/setting/20240320/d1fca9110425cc02150b7c3f54298fbd.png","url3":"dream/1/setting/20240320/cdfd92ee8fd3da597be2144cd82f8788.png","origin":"dream/1/setting/20240320/86c0f4f1dfde36b0a9ea2b545ebc79c7.png","def":null,"ext":"png","duration":null}],"galleries":[{"url1":"dream/1/setting/20240809/d2b570eb5fc51f9e0a07106b96a0552c.jpg","url2":"dream/1/setting/20240809/4cfd9736bf2bc207cc50735f183fe6d7.jpg","url3":"dream/1/setting/20240809/8545384e4c2b8ccd0cba03833156884d.jpg","origin":"dream/1/setting/20240809/735f4daf8efc136ff4ab83d80dc9a79c.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"15002830891","tel2":null,"openTime":"08:00:00","closeTime":"21:00:00","mch":null},"title":null,"user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":912,"createTime":"2023/11/10 09:17","createById":1,"modifyTime":"2024/03/31 19:35","modifyById":1,"name":"教师","description":"教师","orgId":192,"sys":1,"roleGroup":"org","roleName":"staff","state":"USED"},"state":"USED"},{"id":1658,"createTime":"2023/11/16 09:57","createById":1,"modifyTime":"2023/11/16 09:59","modifyById":46,"name":"张老师","description":"","mobile":"18080857109","gender":"MALE","birthday":"2003/11/16","avatars":[],"org":{"id":193,"createTime":"2023/11/16 09:57","createById":1,"modifyTime":"2023/11/16 09:57","modifyById":1,"name":"测试机构1","description":null,"address":null,"addressDetail":null,"lng":null,"lat":null,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"测试机构1","region":[],"logos":[],"galleries":[],"tel1":null,"tel2":null,"openTime":"10:00:00","closeTime":"21:00:00","mch":null},"title":"管理员","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":920,"createTime":"2023/11/16 09:57","createById":1,"modifyTime":"2023/11/16 09:57","modifyById":1,"name":"管理员","description":"校长,管理员,助理","orgId":193,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"}],"sessionKey":null,"players":[{"id":3366,"name":"牛小二","orgId":193,"orgName":"测试机构1","mobile":"136780078","mgr":true,"state":"USED"},{"id":3372,"name":"张华","orgId":192,"orgName":"格斗馆","mobile":"","mgr":true,"state":"USED"}],"wxOpenid":"o4UBK6jiXYDPyeL3k54VI_3aNxN0","wxUnionid":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenid":"oApStw7I11L8uo1HoTWK4MUTBzkY"}'); |
| | | localStorage.setItem("staffs", '[{"id":1636,"createTime":"2023/11/16 09:58","createById":1,"modifyTime":"2023/11/16 09:58","modifyById":46,"name":"张华","description":"","mobile":"18080857109","gender":"MALE","birthday":"2003/11/16","avatars":[],"org":{"id":1,"createTime":"2023/06/06 19:47","createById":0,"modifyTime":"2024/05/22 00:02","modifyById":1,"name":"叮当云服务","description":"","address":"成都市","addressDetail":"123","lng":104.08373260498047,"lat":30.653186798095703,"pid":0,"versionType":"STANDARD","orgType":"PLATFORM","companyName":"88","region":[],"logos":[{"url1":"dream/1/setting/20240320/2a7d900fc72878a774d3cd6aea2195e0.jpg","url2":"dream/1/setting/20240320/9ccea81dbfdcb8e4d0c86b978aca0e42.jpg","url3":"dream/1/setting/20240320/a78b9307b000b3ec4d6ecc9d276494ee.jpg","origin":"dream/1/setting/20240320/71fad2f4bcae8fc644dca5d95b98c08c.jpg","def":null,"ext":"jpg","duration":null}],"galleries":[{"url1":"dream/1/setting/20240403/f87b937eedaf8842c59bbdcecf60d94e.jpg","url2":"dream/1/setting/20240403/172dc3868484f8b88ad26e54bb51d737.jpg","url3":"dream/1/setting/20240403/b1ddd7a6a8433e6ebace1d5360e426a1.jpg","origin":"dream/1/setting/20240403/15ba95a920efb1353226863f2ba26b53.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"13981970816","tel2":"","openTime":"10:00:00","closeTime":"20:00:00","mch":{"id":1,"name":"优创力直营店"}},"title":null,"user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":427,"createTime":"2023/10/04 13:18","createById":22,"modifyTime":"2023/10/04 13:18","modifyById":22,"name":"管理员","description":"校长,管理员,助理","orgId":1,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"},{"id":1616,"createTime":"2023/11/04 11:23","createById":0,"modifyTime":"2023/12/08 14:10","modifyById":35,"name":"叮当上课-技术","description":"","mobile":"18080857109","gender":"FEMALE","birthday":"1998/11/04","avatars":[],"org":{"id":186,"createTime":"2023/11/04 11:22","createById":0,"modifyTime":"2024/09/11 15:16","modifyById":35,"name":"拓世体育","description":"","address":"四川省成都市锦江区琉三路999号","addressDetail":"成都市锦江区水井坊锦江体育公园","lng":104.11273956298828,"lat":30.597631454467773,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"拓世体育","region":[],"logos":[{"url1":"dream/1/setting/20240911/35c21c25bdabe256e6d80a04443130bd.jpg","url2":"dream/1/setting/20240911/d147a21d1a515b8f1130f48131fb0fd0.jpg","url3":"dream/1/setting/20240911/4b377e21b8a24c326537b7033b3c5368.jpg","origin":"dream/1/setting/20240911/0fa9c2150e361d00a4c605477f355b72.jpg","def":null,"ext":"jpg","duration":null}],"galleries":[{"url1":"dream/1/setting/20231228//1fd0a04396e38f97154518976d2b9fcf.jpg","url2":"dream/1/setting/20231228//a8820bfd6b5b68430930308b138d07b8.jpg","url3":"dream/1/setting/20231228//4362c82baef5dd9114cc612275c5ef8b.jpg","origin":"dream/1/setting/20231228//19a648306dd555f044ae1321519d9765.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"13880121131","tel2":"","openTime":"07:00:00","closeTime":"22:00:00","mch":{"id":81,"name":"拓世体育"}},"title":"老师","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":886,"createTime":"2023/11/04 11:22","createById":0,"modifyTime":"2023/11/04 11:22","modifyById":0,"name":"课程顾问","description":"销售顾问","orgId":186,"sys":1,"roleGroup":"org","roleName":"salesman","state":"USED"},"state":"USED"},{"id":1621,"createTime":"2023/11/04 11:43","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"叮当技术支持","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":"1998/11/04","avatars":[],"org":{"id":187,"createTime":"2023/11/04 11:43","createById":0,"modifyTime":"2023/11/04 11:43","modifyById":0,"name":"惠海琴行","description":null,"address":"龙泉驿区","addressDetail":"成都市龙泉驿区怡和新城F4区双龙路388号24栋附106、107号","lng":104.262856,"lat":30.572496,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"KS","region":[],"logos":[],"galleries":[],"tel1":"18884828287","tel2":"","openTime":"09:00:00","closeTime":"21:30:00","mch":null},"title":"老师","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":890,"createTime":"2023/11/04 11:43","createById":0,"modifyTime":"2023/11/04 11:43","modifyById":0,"name":"管理员","description":"校长,管理员,助理","orgId":187,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"},{"id":1647,"createTime":"2023/11/04 13:09","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"叮当技术支持","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":"1998/11/04","avatars":[],"org":{"id":190,"createTime":"2023/11/04 13:09","createById":0,"modifyTime":"2023/11/04 13:09","modifyById":0,"name":"莱斯普乐艺术","description":null,"address":"锦江区锦丽路187号1楼","addressDetail":"","lng":104.09539,"lat":30.615751,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"莱斯普乐艺术培训学校","region":[],"logos":[],"galleries":[],"tel1":"15196265492","tel2":"","openTime":"09:00:00","closeTime":"21:00:00","mch":null},"title":"老师","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":905,"createTime":"2023/11/04 13:09","createById":0,"modifyTime":"2023/11/04 13:09","modifyById":0,"name":"管理员","description":"校长,管理员,助理","orgId":190,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"},{"id":2150,"createTime":"2024/09/13 19:15","createById":35,"modifyTime":"2024/10/15 09:15","modifyById":35,"name":"华老师","description":"","mobile":"","gender":"MALE","birthday":"2004/09/13","avatars":[],"org":{"id":192,"createTime":"2023/11/10 09:17","createById":1,"modifyTime":"2024/10/25 09:32","modifyById":35,"name":"格斗馆","description":"","address":"四川省成都市锦江区中纱帽街8号","addressDetail":"商鼎国际2-1","lng":104.08373260498047,"lat":30.653186798095703,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"巨石","region":[],"logos":[{"url1":"dream/1/setting/20240320/0e6dbe1029f347fd89eb5c99f287eaee.png","url2":"dream/1/setting/20240320/d1fca9110425cc02150b7c3f54298fbd.png","url3":"dream/1/setting/20240320/cdfd92ee8fd3da597be2144cd82f8788.png","origin":"dream/1/setting/20240320/86c0f4f1dfde36b0a9ea2b545ebc79c7.png","def":null,"ext":"png","duration":null}],"galleries":[{"url1":"dream/1/setting/20240809/d2b570eb5fc51f9e0a07106b96a0552c.jpg","url2":"dream/1/setting/20240809/4cfd9736bf2bc207cc50735f183fe6d7.jpg","url3":"dream/1/setting/20240809/8545384e4c2b8ccd0cba03833156884d.jpg","origin":"dream/1/setting/20240809/735f4daf8efc136ff4ab83d80dc9a79c.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"15002830891","tel2":null,"openTime":"08:00:00","closeTime":"21:00:00","mch":null},"title":null,"user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":912,"createTime":"2023/11/10 09:17","createById":1,"modifyTime":"2024/03/31 19:35","modifyById":1,"name":"教师","description":"教师","orgId":192,"sys":1,"roleGroup":"org","roleName":"staff","state":"USED"},"state":"USED"},{"id":1658,"createTime":"2023/11/16 09:57","createById":1,"modifyTime":"2023/11/16 09:59","modifyById":46,"name":"张老师","description":"","mobile":"18080857109","gender":"MALE","birthday":"2003/11/16","avatars":[],"org":{"id":193,"createTime":"2023/11/16 09:57","createById":1,"modifyTime":"2023/11/16 09:57","modifyById":1,"name":"测试机构1","description":null,"address":null,"addressDetail":null,"lng":null,"lat":null,"pid":0,"versionType":"STANDARD","orgType":"NORMAL","companyName":"测试机构1","region":[],"logos":[],"galleries":[],"tel1":null,"tel2":null,"openTime":"10:00:00","closeTime":"21:00:00","mch":null},"title":"管理员","user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":920,"createTime":"2023/11/16 09:57","createById":1,"modifyTime":"2023/11/16 09:57","modifyById":1,"name":"管理员","description":"校长,管理员,助理","orgId":193,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"}]'); |
| | | localStorage.setItem("selectStaff", '{"id":1636,"createTime":"2023/11/16 09:58","createById":1,"modifyTime":"2023/11/16 09:58","modifyById":46,"name":"张华","description":"","mobile":"18080857109","gender":"MALE","birthday":"2003/11/16","avatars":[],"org":{"id":1,"createTime":"2023/06/06 19:47","createById":0,"modifyTime":"2024/05/22 00:02","modifyById":1,"name":"叮当云服务","description":"","address":"成都市","addressDetail":"123","lng":104.08373260498047,"lat":30.653186798095703,"pid":0,"versionType":"STANDARD","orgType":"PLATFORM","companyName":"88","region":[],"logos":[{"url1":"dream/1/setting/20240320/2a7d900fc72878a774d3cd6aea2195e0.jpg","url2":"dream/1/setting/20240320/9ccea81dbfdcb8e4d0c86b978aca0e42.jpg","url3":"dream/1/setting/20240320/a78b9307b000b3ec4d6ecc9d276494ee.jpg","origin":"dream/1/setting/20240320/71fad2f4bcae8fc644dca5d95b98c08c.jpg","def":null,"ext":"jpg","duration":null}],"galleries":[{"url1":"dream/1/setting/20240403/f87b937eedaf8842c59bbdcecf60d94e.jpg","url2":"dream/1/setting/20240403/172dc3868484f8b88ad26e54bb51d737.jpg","url3":"dream/1/setting/20240403/b1ddd7a6a8433e6ebace1d5360e426a1.jpg","origin":"dream/1/setting/20240403/15ba95a920efb1353226863f2ba26b53.jpg","def":null,"ext":"jpg","duration":null}],"tel1":"13981970816","tel2":"","openTime":"10:00:00","closeTime":"20:00:00","mch":{"id":1,"name":"优创力直营店"}},"title":null,"user":{"id":46,"createTime":"2023/11/16 09:44","createById":0,"modifyTime":"2023/11/16 09:44","modifyById":46,"name":"微信用户","description":null,"mobile":"18080857109","gender":"FEMALE","birthday":null,"avatars":[],"wxOpenId":"ossku41W2iaQstCmFjGuenxP7lUg","wxUnionId":"oI1DI1QIOZp2Q1s7YCeOGkoxMoys","wxOaOpenId":"oApStw7I11L8uo1HoTWK4MUTBzkY"},"role":{"id":427,"createTime":"2023/10/04 13:18","createById":22,"modifyTime":"2023/10/04 13:18","modifyById":22,"name":"管理员","description":"校长,管理员,助理","orgId":1,"sys":1,"roleGroup":"org","roleName":"admin","state":"USED"},"state":"USED"}'); |
| | | }, |
| | | mounted() { |
| | | // 关闭浏览器窗口的时候清空浏览器缓存在localStorage的数据 |
| | | window.onbeforeunload = function (e) { |
| | |
| | | :data="{ staffId: staffId, orgId: orgId }" |
| | | :on-exceed="handleExceed" |
| | | :on-success="fileSuccess" |
| | | :on-error="fileSuccess" |
| | | :on-error="fileError" |
| | | :file-list="fileList" |
| | | :show-file-list="true" |
| | | multiple |
| | |
| | | this.successLoading = false |
| | | this.$emit("fileSuccess", res, this.type); |
| | | }, |
| | | |
| | | fileError(res, f, f1) { |
| | | this.successLoading = false |
| | | this.$message({ |
| | | message: "上次失败", |
| | | type: "error", |
| | | }); |
| | | }, |
| | | // 过滤文件 |
| | | beforeAvatarUpload(file) { |
| | | this.successLoading = true |
| | |
| | | }); |
| | | return false; |
| | | } |
| | | |
| | | this.successLoading = false |
| | | this.$emit("file-uploading"); |
| | | }, |
| | | }, |
| | | mounted() { }, |
| | |
| | | |
| | | // export default apolloClient; |
| | | // 定义不同请求地址 |
| | | const EFORMURI = "/dream/graphql"; |
| | | const IOTURI = "/dream/graphql"; |
| | | const EFORMURI = "/dream_dev/graphql"; |
| | | const IOTURI = "/dream_dev/graphql"; |
| | | // import ApolloClient from 'apollo-boost' //引入apollo-boost插件 |
| | | import { ApolloClient } from "apollo-client"; |
| | | import { createHttpLink } from "apollo-link-http"; |
| | |
| | | <template> |
| | | <el-form class="demo-ruleForm"> |
| | | <el-form-item label="" style="display: inline-block"> |
| | | <div class="uploading-center"> |
| | | <div class="uploading"> |
| | | <dragUpload |
| | | :limit="1" |
| | | :orgId="parseInt(orgId)" |
| | | :staffId="parseInt(staffId)" |
| | | @fileSuccess="fatherMethod" |
| | | :type="'AUDIENCE'" |
| | | :action="'/dream/player/importPlayer'" |
| | | > |
| | | <div class="uploading-btn-to"> |
| | | <i class="iconfont iconAdd"></i> 上传 |
| | | <el-form class="demo-ruleForm"> |
| | | <el-form-item label="" style="display: inline-block"> |
| | | <div class="uploading-center"> |
| | | <div class="uploading"> |
| | | <dragUpload |
| | | :limit="1" |
| | | :orgId="parseInt(orgId)" |
| | | :staffId="parseInt(staffId)" |
| | | @fileSuccess="fatherMethod" |
| | | @file-uploading="showUploadProcess" |
| | | :type="'AUDIENCE'" |
| | | :action="'/dream_dev/player/importPlayer'" |
| | | > |
| | | <div class="uploading-btn-to"> |
| | | <i class="iconfont iconAdd"></i> 上传 |
| | | </div> |
| | | <div class="el-upload__tip" slot="tip"> |
| | | 只能上传.xls,.xlsx文件 |
| | | </div> |
| | | </dragUpload> |
| | | </div> |
| | | <div class="download-file"> |
| | | <i class="iconfont iconFile"></i> |
| | | <a href="/static/学员导入模板.xlsx" download |
| | | >下载学员模板</a |
| | | > |
| | | </div> |
| | | </div> |
| | | <div class="el-upload__tip" slot="tip">只能上传.xls,.xlsx文件</div> |
| | | </dragUpload> |
| | | </div> |
| | | <div class="download-file"> |
| | | <i class="iconfont iconFile"></i> |
| | | <a href="/static/学员导入模板.xlsx" download>下载学员模板</a> |
| | | </div> |
| | | </div> |
| | | <div style="font-size: 12px; color: #6993ff" v-if="hasAudience"> |
| | | 已上传,如需修改直接点击上传 |
| | | <i class="el-icon-close" title="删除" @click="clearaudience"></i> |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div style="font-size: 12px; color: #6993ff" v-if="hasAudience"> |
| | | 已上传,如需修改直接点击上传 |
| | | <i |
| | | class="el-icon-close" |
| | | title="删除" |
| | | @click="clearaudience" |
| | | ></i> |
| | | </div> |
| | | </el-form-item> |
| | | |
| | | <el-progress |
| | | v-show="progress" |
| | | type="circle" |
| | | :percentage="percentage" |
| | | :status="progressStatus" |
| | | ></el-progress> |
| | | </el-form> |
| | | </template> |
| | | |
| | | <script> |
| | | import dragUpload from "@/components/drag-upload"; |
| | | var self = null; |
| | | export default { |
| | | inject: ["reload"], |
| | | name: "Creation", |
| | | data() { |
| | | return { |
| | | orgId: 0, |
| | | staffId: 0, |
| | | hasAudience: false, |
| | | }; |
| | | }, |
| | | components: { dragUpload }, |
| | | methods: { |
| | | downloadlist() { |
| | | window.open("../../../assets/学员导入模板.xlsx", "_blank"); |
| | | // this.download('downPlayerTemplate', '学员导入模板.xlsx') |
| | | inject: ["reload"], |
| | | name: "Creation", |
| | | data() { |
| | | return { |
| | | orgId: 0, |
| | | staffId: 0, |
| | | hasAudience: false, |
| | | progress: false, |
| | | percentage: 0, |
| | | progressStatus: "" |
| | | }; |
| | | }, |
| | | clearaudience() { |
| | | this.hasAudience = false; |
| | | components: { dragUpload }, |
| | | methods: { |
| | | downloadlist() { |
| | | window.open("../../../assets/学员导入模板.xlsx", "_blank"); |
| | | // this.download('downPlayerTemplate', '学员导入模板.xlsx') |
| | | }, |
| | | clearaudience() { |
| | | this.hasAudience = false; |
| | | }, |
| | | fatherMethod(res, type) { |
| | | // if (res.falseLst === null) { |
| | | // this.$message.success("上传数据成功"); |
| | | // this.$emit("load-success"); |
| | | // } else if (res.falseLst.length >= 1) { |
| | | // let errortips = ""; |
| | | // res.falseLst.map((item) => { |
| | | // errortips += (`${item.playerRoll}` + `${item.cause} \r\n`).replace('[]', ''); |
| | | // }); |
| | | // this.$message({ |
| | | // message: `导入数据成功导入${res.successNum}条,错误信息:${errortips}`, |
| | | // type: "error", |
| | | // duration: 6000, |
| | | // }); |
| | | // } |
| | | }, |
| | | showUploadProcess() { |
| | | self.progress = true |
| | | setTimeout(function () { |
| | | const eventSource = new EventSource('/dream_dev/sse-stream/' + JSON.parse(localStorage.getItem("selectStaff")).id); |
| | | |
| | | eventSource.onmessage = function (event) { |
| | | const res = JSON.parse(event.data) |
| | | self.percentage = parseInt(res.current * 100 / res.total) |
| | | if (res.current == res.total) { |
| | | self.progressStatus = 'success' |
| | | if (res.falseLst === null) { |
| | | self.$message.success("上传数据成功"); |
| | | self.$emit("load-success"); |
| | | } else if (res.falseLst.length >= 1) { |
| | | let errortips = ""; |
| | | res.falseLst.map((item) => { |
| | | errortips += (`${item.playerRoll}` + `${item.cause} \r\n`).replace('[]', ''); |
| | | }); |
| | | self.$message({ |
| | | message: `导入数据成功导入${res.successNum}条,错误信息:${errortips}`, |
| | | type: "error", |
| | | duration: 6000, |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | |
| | | eventSource.onerror = function (err) { |
| | | console.error("EventSource failed:", err); |
| | | eventSource.close(); |
| | | }; |
| | | }, 3 * 1000); |
| | | } |
| | | }, |
| | | fatherMethod(res, type) { |
| | | if (res.falseLst === null) { |
| | | this.$message.success("上传数据成功"); |
| | | this.$emit("load-success"); |
| | | } else if (res.falseLst.length >= 1) { |
| | | let errortips = ""; |
| | | res.falseLst.map((item) => { |
| | | errortips += (`${item.playerRoll}`+`${item.cause} \r\n`).replace('[]',''); |
| | | }); |
| | | this.$message({ |
| | | message: `导入数据成功导入${res.successNum}条,错误信息:${errortips}`, |
| | | type: "error", |
| | | duration: 6000, |
| | | }); |
| | | } |
| | | created() { |
| | | self = this |
| | | const selectStaff = JSON.parse(localStorage.getItem("selectStaff")); |
| | | this.orgId = selectStaff.org.id; |
| | | this.staffId = selectStaff.id; |
| | | }, |
| | | }, |
| | | created() { |
| | | const selectStaff = JSON.parse(localStorage.getItem("selectStaff")); |
| | | this.orgId = selectStaff.org.id; |
| | | this.staffId = selectStaff.id; |
| | | }, |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .demo-ruleForm { |
| | | text-align: center; |
| | | text-align: center; |
| | | } |
| | | .creation-center { |
| | | padding: 40px 40px 40px 40px; |
| | | padding: 40px 40px 40px 40px; |
| | | } |
| | | .uploading-center { |
| | | display: flex; |
| | | flex-direction: row; |
| | | > .uploading { |
| | | min-height: 40px; |
| | | line-height: 40px; |
| | | box-sizing: border-box; |
| | | border-radius: 4px; |
| | | } |
| | | .uploading-btn-to { |
| | | width: 100px; |
| | | line-height: 38px; |
| | | height: 38px; |
| | | border-radius: 3px; |
| | | text-align: center; |
| | | padding: 0 0px; |
| | | cursor: pointer; |
| | | user-select: none; |
| | | margin-left: 0; |
| | | color: #ffa800; |
| | | font-size: 14px; |
| | | border: 1px solid #ffbe41; |
| | | > i { |
| | | color: #ffbe41; |
| | | font-size: 12px; |
| | | margin-right: 5px; |
| | | } |
| | | } |
| | | > .download-file { |
| | | float: left; |
| | | display: flex; |
| | | flex-direction: row; |
| | | margin-left: 20px; |
| | | color: #6993ff; |
| | | font-size: 14px; |
| | | cursor: pointer; |
| | | user-select: none; |
| | | height: 40px; |
| | | > div { |
| | | width: 117px; |
| | | margin-left: 5px; |
| | | > .uploading { |
| | | min-height: 40px; |
| | | line-height: 40px; |
| | | box-sizing: border-box; |
| | | border-radius: 4px; |
| | | } |
| | | } |
| | | .uploading-btn-to { |
| | | width: 100px; |
| | | line-height: 38px; |
| | | height: 38px; |
| | | border-radius: 3px; |
| | | text-align: center; |
| | | padding: 0 0px; |
| | | cursor: pointer; |
| | | user-select: none; |
| | | margin-left: 0; |
| | | color: #ffa800; |
| | | font-size: 14px; |
| | | border: 1px solid #ffbe41; |
| | | > i { |
| | | color: #ffbe41; |
| | | font-size: 12px; |
| | | margin-right: 5px; |
| | | } |
| | | } |
| | | > .download-file { |
| | | float: left; |
| | | display: flex; |
| | | flex-direction: row; |
| | | margin-left: 20px; |
| | | color: #6993ff; |
| | | font-size: 14px; |
| | | cursor: pointer; |
| | | user-select: none; |
| | | height: 40px; |
| | | > div { |
| | | width: 117px; |
| | | margin-left: 5px; |
| | | } |
| | | } |
| | | } |
| | | .uploading-center-style { |
| | | ::v-deep .upload-demo { |
| | | ::v-deep .el-upload { |
| | | line-height: 38px; |
| | | ::v-deep .upload-demo { |
| | | ::v-deep .el-upload { |
| | | line-height: 38px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ::v-deep .uploading-center > .uploading { |
| | | line-height: 37px; |
| | | line-height: 37px; |
| | | } |
| | | </style> |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="全部" name="all" /> |
| | | <el-tab-pane label="待续费" name="pendingFees" /> |
| | | <el-tab-pane label="已过期" name="expired" /> |
| | | <el-tab-pane label="已停用" name="deactivated" /> |
| | | </el-tabs> |
| | | <div style="display: flex; justify-content: space-between"> |
| | | <!-- <el-button type="primary" size="small" @click="showCreate">新建学员</el-button> --> |
| | | <div> |
| | | <el-button type="primary" size="small" @click="handleExport" |
| | | >导出学员</el-button |
| | | > |
| | | <el-button type="primary" size="small" @click="handleImport" |
| | | >导入学员</el-button |
| | | > |
| | | </div> |
| | | <div style="width: 500px"> |
| | | <!-- <el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期" |
| | | <div class="app-container"> |
| | | <el-tabs v-model="activeName" @tab-click="handleClick"> |
| | | <el-tab-pane label="全部" name="all" /> |
| | | <el-tab-pane label="待续费" name="pendingFees" /> |
| | | <el-tab-pane label="已过期" name="expired" /> |
| | | <el-tab-pane label="已停用" name="deactivated" /> |
| | | </el-tabs> |
| | | <div style="display: flex; justify-content: space-between"> |
| | | <!-- <el-button type="primary" size="small" @click="showCreate">新建学员</el-button> --> |
| | | <div> |
| | | <el-button type="primary" size="small" @click="handleExport" |
| | | >导出学员</el-button |
| | | > |
| | | <el-button type="primary" size="small" @click="handleImport" |
| | | >导入学员</el-button |
| | | > |
| | | </div> |
| | | <div style="width: 500px"> |
| | | <!-- <el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期" |
| | | end-placeholder="结束日期" value-format="yyyy-MM-dd" style="margin-right: 10px"> |
| | | </el-date-picker> |
| | | <el-button type="primary" @click="handleExport2">导出课包</el-button> --> |
| | | </div> |
| | | <div style="width: 300px"> |
| | | <el-input |
| | | placeholder="按姓名搜索" |
| | | v-model="data.keyword" |
| | | class="input-with-select" |
| | | size="small" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="handleClick" |
| | | ></el-button> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | <div style="height: calc(100vh - 248px)"> |
| | | <el-table |
| | | v-loading="listLoading" |
| | | :data="list" |
| | | element-loading-text="Loading" |
| | | fit |
| | | height="100%" |
| | | > |
| | | <el-table-column label="姓名" prop=""> |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | type="primary" |
| | | :underline="false" |
| | | @click="goDetails(scope.row)" |
| | | >{{ scope.row.name }}</el-link |
| | | </div> |
| | | <div style="width: 300px"> |
| | | <el-input |
| | | placeholder="按姓名搜索" |
| | | v-model="data.keyword" |
| | | class="input-with-select" |
| | | size="small" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-search" |
| | | @click="handleClick" |
| | | ></el-button> |
| | | </el-input> |
| | | </div> |
| | | </div> |
| | | <div style="height: calc(100vh - 248px)"> |
| | | <el-table |
| | | v-loading="listLoading" |
| | | :data="list" |
| | | element-loading-text="Loading" |
| | | fit |
| | | height="100%" |
| | | > |
| | | <!-- <el-link type="primary" :underline="false">{{ |
| | | <el-table-column label="姓名" prop=""> |
| | | <template slot-scope="scope"> |
| | | <el-link |
| | | type="primary" |
| | | :underline="false" |
| | | @click="goDetails(scope.row)" |
| | | >{{ scope.row.name }}</el-link |
| | | > |
| | | <!-- <el-link type="primary" :underline="false">{{ |
| | | scope.row.name |
| | | }}</el-link> --> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="性别" |
| | | width="80" |
| | | v-if="activeName !== 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.gender == "FEMALE" ? "女" : "男" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="手机号" |
| | | width="200" |
| | | prop="mobile" |
| | | v-if="activeName !== 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.mobile ? scope.row.mobile : "--" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="是否绑定微信" |
| | | width="200" |
| | | v-if="activeName !== 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.user ? "是" : "否" }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | width="200" |
| | | v-if="activeName == 'deactivated'" |
| | | > |
| | | <template slot-scope=""> |
| | | <el-link type="primary" :underline="false">删除</el-link> |
| | | |
| | | <el-link type="primary" :underline="false">恢复</el-link> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="停用时间" |
| | | width="200" |
| | | v-if="activeName == 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.modifyTime }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="性别" |
| | | width="80" |
| | | v-if="activeName !== 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.gender == 'FEMALE' ? '女' : '男' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="手机号" |
| | | width="200" |
| | | prop="mobile" |
| | | v-if="activeName !== 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.mobile ? scope.row.mobile : '--' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="是否绑定微信" |
| | | width="200" |
| | | v-if="activeName !== 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.user ? '是' : '否' }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="操作" |
| | | width="200" |
| | | v-if="activeName == 'deactivated'" |
| | | > |
| | | <template slot-scope=""> |
| | | <el-link type="primary" :underline="false" |
| | | >删除</el-link |
| | | > |
| | | |
| | | <el-link type="primary" :underline="false" |
| | | >恢复</el-link |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | label="停用时间" |
| | | width="200" |
| | | v-if="activeName == 'deactivated'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | {{ scope.row.modifyTime }} |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="data.pageIn.index + 1" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="data.pageIn.size" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <el-dialog :visible.sync="dialogVisible" width="560px" title="导入学员"> |
| | | <UploadStudent |
| | | v-if="dialogVisible" |
| | | @load-success="reloadData" |
| | | ></UploadStudent> |
| | | </el-dialog> |
| | | </div> |
| | | <div> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="data.pageIn.index + 1" |
| | | :page-sizes="[10, 20, 30, 40]" |
| | | :page-size="data.pageIn.size" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total" |
| | | > |
| | | </el-pagination> |
| | | </div> |
| | | <el-dialog :visible.sync="dialogVisible" width="560px" title="导入学员"> |
| | | <UploadStudent |
| | | v-if="dialogVisible" |
| | | @load-success="reloadData" |
| | | ></UploadStudent> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | |
| | | import UploadStudent from "./components/upload-student.vue"; |
| | | |
| | | export default { |
| | | filters: { |
| | | statusFilter(status) { |
| | | const statusMap = { |
| | | published: "success", |
| | | draft: "gray", |
| | | deleted: "danger", |
| | | }; |
| | | return statusMap[status]; |
| | | }, |
| | | }, |
| | | components: { |
| | | UploadStudent, |
| | | }, |
| | | data() { |
| | | return { |
| | | dateRange: [], |
| | | list: null, |
| | | listLoading: true, |
| | | activeName: "all", |
| | | total: 0, |
| | | data: { |
| | | staffId: JSON.parse(localStorage.getItem("selectStaff")).id, |
| | | keyword: "", |
| | | pageIn: { |
| | | //可选,如果是分页查询,需要加上。 |
| | | index: 0, //必选 |
| | | size: 10, //每页的大小。默认20 |
| | | sorts: { |
| | | name: "name", //排序字段名称 |
| | | direction: "ASC", //排序方向 |
| | | }, |
| | | filters: { |
| | | statusFilter(status) { |
| | | const statusMap = { |
| | | published: "success", |
| | | draft: "gray", |
| | | deleted: "danger", |
| | | }; |
| | | return statusMap[status]; |
| | | }, |
| | | }, |
| | | dialogVisible: false, |
| | | }; |
| | | }, |
| | | created() { |
| | | // 获取地址栏code |
| | | // let code = this.$route.query.code; |
| | | // if (code) { |
| | | // if (localStorage.getItem("code")) { |
| | | // if (code !== localStorage.getItem("code")) { |
| | | // this.getUserDate(code); |
| | | // } |
| | | // } else { |
| | | // this.getUserDate(code); |
| | | // } |
| | | // } else { |
| | | // if (!localStorage.getItem("user")) { |
| | | // this.$router.push("/login"); |
| | | // } |
| | | // } |
| | | if (localStorage.getItem("user")) { |
| | | this.fetchData(); |
| | | } else { |
| | | this.$router.push("/login"); |
| | | } |
| | | }, |
| | | methods: { |
| | | handleExport() { |
| | | this.download( |
| | | "exportPlayer?orgId=" + |
| | | JSON.parse(localStorage.getItem("selectStaff")).org.id, |
| | | {}, |
| | | `导出_${new Date().getTime()}.xlsx` |
| | | ); |
| | | }, |
| | | handleExport2() { |
| | | if (this.dateRange.length == 0) { |
| | | this.$message.warning("请选择日期范围"); |
| | | return; |
| | | } |
| | | this.download( |
| | | "exportReport?startDate=" + |
| | | this.dateRange[0] + |
| | | "&endDate=" + |
| | | this.dateRange[1], |
| | | {}, |
| | | `导出_${new Date().getTime()}.xlsx` |
| | | ); |
| | | components: { |
| | | UploadStudent, |
| | | }, |
| | | handleImport() { |
| | | this.dialogVisible = true; |
| | | }, |
| | | reloadData() { |
| | | this.dialogVisible = false; |
| | | this.fetchData(); |
| | | }, |
| | | fetchData() { |
| | | this.listLoading = true; |
| | | getData(this.data).then((response) => { |
| | | this.list = response.data.findPlayerByStaff.ls; |
| | | this.total = response.data.findPlayerByStaff.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.data.pageIn.size = val; |
| | | this.handleClick(); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.data.pageIn.index = val - 1; |
| | | this.handleClick(); |
| | | }, |
| | | handleClick(tab, event) { |
| | | this.data.staffId = JSON.parse(localStorage.getItem("selectStaff")).id; |
| | | if (this.activeName == "pendingFees") { |
| | | this.listLoading = true; |
| | | getRenew(this.data).then((response) => { |
| | | this.list = response.data.findPlayerRenew.ls; |
| | | this.total = response.data.findPlayerRenew.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | } else if (this.activeName == "expired") { |
| | | this.listLoading = true; |
| | | getExpire(this.data).then((response) => { |
| | | this.list = response.data.findPlayerExpire.ls; |
| | | this.total = response.data.findPlayerExpire.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | } else if (this.activeName == "all") { |
| | | this.fetchData(); |
| | | } else if (this.activeName == "deactivated") { |
| | | this.listLoading = true; |
| | | let data = { |
| | | itemType: "PLAYER", |
| | | staffId: JSON.parse(localStorage.getItem("selectStaff")).id, |
| | | keyword: this.data.keyword, |
| | | pageIn: { ...this.data.pageIn }, |
| | | data() { |
| | | return { |
| | | dateRange: [], |
| | | list: null, |
| | | listLoading: true, |
| | | activeName: "all", |
| | | total: 0, |
| | | data: { |
| | | staffId: JSON.parse(localStorage.getItem("selectStaff")).id, |
| | | keyword: "", |
| | | pageIn: { |
| | | //可选,如果是分页查询,需要加上。 |
| | | index: 0, //必选 |
| | | size: 10, //每页的大小。默认20 |
| | | sorts: { |
| | | name: "name", //排序字段名称 |
| | | direction: "ASC", //排序方向 |
| | | }, |
| | | }, |
| | | }, |
| | | dialogVisible: false, |
| | | }; |
| | | getDeleted(data).then((response) => { |
| | | this.list = response.data.findDeletedItem.ls; |
| | | this.total = response.data.findDeletedItem.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | } |
| | | }, |
| | | goDetails(row) { |
| | | this.$router.push({ |
| | | name: "StudentDetails", |
| | | query: { |
| | | id: row.id, |
| | | created() { |
| | | // 获取地址栏code |
| | | // let code = this.$route.query.code; |
| | | // if (code) { |
| | | // if (localStorage.getItem("code")) { |
| | | // if (code !== localStorage.getItem("code")) { |
| | | // this.getUserDate(code); |
| | | // } |
| | | // } else { |
| | | // this.getUserDate(code); |
| | | // } |
| | | // } else { |
| | | // if (!localStorage.getItem("user")) { |
| | | // this.$router.push("/login"); |
| | | // } |
| | | // } |
| | | if (localStorage.getItem("user")) { |
| | | this.fetchData(); |
| | | } else { |
| | | this.$router.push("/login"); |
| | | } |
| | | }, |
| | | methods: { |
| | | handleExport() { |
| | | this.download( |
| | | "exportPlayer?orgId=" + |
| | | JSON.parse(localStorage.getItem("selectStaff")).org.id, |
| | | {}, |
| | | `导出_${new Date().getTime()}.xlsx` |
| | | ); |
| | | }, |
| | | }); |
| | | handleExport2() { |
| | | if (this.dateRange.length == 0) { |
| | | this.$message.warning("请选择日期范围"); |
| | | return; |
| | | } |
| | | this.download( |
| | | "exportReport?startDate=" + |
| | | this.dateRange[0] + |
| | | "&endDate=" + |
| | | this.dateRange[1], |
| | | {}, |
| | | `导出_${new Date().getTime()}.xlsx` |
| | | ); |
| | | }, |
| | | handleImport() { |
| | | this.dialogVisible = true; |
| | | }, |
| | | reloadData() { |
| | | this.dialogVisible = false; |
| | | this.fetchData(); |
| | | }, |
| | | fetchData() { |
| | | this.listLoading = true; |
| | | getData(this.data).then((response) => { |
| | | this.list = response.data.findPlayerByStaff.ls; |
| | | this.total = response.data.findPlayerByStaff.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | }, |
| | | handleSizeChange(val) { |
| | | this.data.pageIn.size = val; |
| | | this.handleClick(); |
| | | }, |
| | | handleCurrentChange(val) { |
| | | this.data.pageIn.index = val - 1; |
| | | this.handleClick(); |
| | | }, |
| | | handleClick(tab, event) { |
| | | this.data.staffId = JSON.parse(localStorage.getItem("selectStaff")).id; |
| | | if (this.activeName == "pendingFees") { |
| | | this.listLoading = true; |
| | | getRenew(this.data).then((response) => { |
| | | this.list = response.data.findPlayerRenew.ls; |
| | | this.total = response.data.findPlayerRenew.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | } else if (this.activeName == "expired") { |
| | | this.listLoading = true; |
| | | getExpire(this.data).then((response) => { |
| | | this.list = response.data.findPlayerExpire.ls; |
| | | this.total = response.data.findPlayerExpire.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | } else if (this.activeName == "all") { |
| | | this.fetchData(); |
| | | } else if (this.activeName == "deactivated") { |
| | | this.listLoading = true; |
| | | let data = { |
| | | itemType: "PLAYER", |
| | | staffId: JSON.parse(localStorage.getItem("selectStaff")).id, |
| | | keyword: this.data.keyword, |
| | | pageIn: { ...this.data.pageIn }, |
| | | }; |
| | | getDeleted(data).then((response) => { |
| | | this.list = response.data.findDeletedItem.ls; |
| | | this.total = response.data.findDeletedItem.pageOut.total; |
| | | this.listLoading = false; |
| | | }); |
| | | } |
| | | }, |
| | | goDetails(row) { |
| | | this.$router.push({ |
| | | name: "StudentDetails", |
| | | query: { |
| | | id: row.id, |
| | | }, |
| | | }); |
| | | }, |
| | | showCreate() { |
| | | this.$refs.studentCreate.showDialog(); |
| | | }, |
| | | |
| | | }, |
| | | showCreate() { |
| | | this.$refs.studentCreate.showDialog(); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | proxy: { |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // 匹配所有以 '/dev-api'开头的请求路径 |
| | | target: "http://localhost:18080/dream_test", //类似于Nginx反向代理 |
| | | target: "http://localhost:18080/dream_dev", //类似于Nginx反向代理 |
| | | changeOrigin: true, // 支持跨域 |
| | | pathRewrite: { |
| | | // 重写路径: 去掉路径中开头的'/dev-api' |