update:运动馆bug

This commit is contained in:
ltx 2026-06-08 17:38:27 +08:00
parent 3f88408dcd
commit 6b4590bbf6
4 changed files with 13 additions and 12 deletions

View File

@ -16,8 +16,8 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL = 'http://101.132.164.149:9991/'; // axios.defaults.baseURL = 'http://101.132.164.149:9991/';
// axios.defaults.baseURL = 'http://8.153.108.90:9991/'; //测试(直连会触发 CORS,改用 Vite proxy) // axios.defaults.baseURL = 'http://8.153.108.90:9991/'; //测试(直连会触发 CORS,改用 Vite proxy)
// axios.defaults.baseURL = '/dev-api/'; //测试(通过 Vite 代理转发,避免 CORS) // axios.defaults.baseURL = '/dev-api/'; //测试(通过 Vite 代理转发,避免 CORS)
// axios.defaults.baseURL = 'https://smartsports.yuedongsports.com/'; //正式 axios.defaults.baseURL = 'https://smartsports.yuedongsports.com/'; //正式
axios.defaults.baseURL = 'http://172.17.30.204:9991/'; //汤龙本地 // axios.defaults.baseURL = 'http://172.17.30.204:9991/'; //汤龙本地
// axios.defaults.baseURL = 'http://47.101.60.251:9991/'; // axios.defaults.baseURL = 'http://47.101.60.251:9991/';
// axios.defaults.baseURL = 'http://localhost:9991/'; // axios.defaults.baseURL = 'http://localhost:9991/';
// axios.defaults.baseURL = 'http://120.48.130.27:14102/'; // axios.defaults.baseURL = 'http://120.48.130.27:14102/';

View File

@ -272,7 +272,7 @@ const fetchList = async () => {
...item, ...item,
scoreTime: item.scoreTime ? item.scoreTime.replace('T', ' ').substring(0, 16) : '' scoreTime: item.scoreTime ? item.scoreTime.replace('T', ' ').substring(0, 16) : ''
})) }))
pagination.total = res.total || 0 pagination.total = res.data.total || 0
} }
} catch (e) { } catch (e) {
ElMessage.error('获取数据失败') ElMessage.error('获取数据失败')

View File

@ -504,11 +504,11 @@ const data = ref({
label: '全部', label: '全部',
}, },
{ {
id: 1, id: '1',
label: '男', label: '男',
}, },
{ {
id: 2, id: '2',
label: '女', label: '女',
} }
], ],
@ -769,6 +769,7 @@ const submitForm = async (formEl) => {
break break
case false: case false:
// ruleForm.value.sex = '1' // ruleForm.value.sex = '1'
console.log(ruleForm1.value, 'ruleForm11111111111111111111')
ModifyTeachers(ruleForm1.value) ModifyTeachers(ruleForm1.value)
break break
} }
@ -836,7 +837,7 @@ const editTable = (e) => {
studentName: e.studentName, studentName: e.studentName,
classId: k, classId: k,
age: e.age, age: e.age,
sex: e.sex, sex: e.sex == '男' ? '1' : '2',
photo: e.photo, photo: e.photo,
birthday: '', birthday: '',
heartRateFrontNo: e.heartRateFrontNo, heartRateFrontNo: e.heartRateFrontNo,
@ -1115,7 +1116,6 @@ async function AddStudents(val) {
} }
//编辑 //编辑
async function ModifyTeachers(val) { async function ModifyTeachers(val) {
val.sex = val.sex == '男' ? "1" : "2"
// const path = val.photo.match(/(?:\/\/[^\/]+)?\/(.*)/)[1]; // const path = val.photo.match(/(?:\/\/[^\/]+)?\/(.*)/)[1];
// val.photo = path // val.photo = path
val.classId = val.classId ? val.classId[1] : null val.classId = val.classId ? val.classId[1] : null
@ -1317,6 +1317,7 @@ function exportData(val) {
}) })
} }
</script> </script>
<style> <style>
.confirm-tip { .confirm-tip {
color: red; color: red;
@ -1349,7 +1350,7 @@ function exportData(val) {
.m-2 { .m-2 {
width: 130px; width: 100px;
} }
} }
@ -1529,9 +1530,9 @@ function exportData(val) {
align-items: center; align-items: center;
} }
.el-select { // .el-select {
width: 300px; // width: 300px;
} // }
} }
} }

View File

@ -15,7 +15,7 @@ export default ({ mode }: ConfigEnv) => {
console.log(`ENV:`, ENV) console.log(`ENV:`, ENV)
return defineConfig({ return defineConfig({
base: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/samart-static/202605281600/', base: 'https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/web/samart-static/202606081720/',
server: { server: {
host: '0.0.0.0', host: '0.0.0.0',
// https: false, // https: false,