chenyc
2025-04-28 ae5f070e62ea58f99308af145a304c860a232405
xg营养管理需求
5个文件已修改
20 ■■■■ 已修改文件
.env.development 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/login/index.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/request.ts 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/components/patient_file.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/component/account.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
.env.development
@@ -2,5 +2,5 @@
ENV = development
# 本地环境接口地址
# VITE_API_URL = 'http://testbs.ihemodialysis.com/'
VITE_API_URL = 'https://hemobs.icoldchain.cn/'
VITE_API_URL = 'http://testbs.ihemodialysis.com/'
# VITE_API_URL = 'https://hemobs.icoldchain.cn/'
src/api/login/index.ts
@@ -7,7 +7,7 @@
 */
export function signIn(params: string) {
    return request({
        url: '/user/info/login',
        url: '/user/info/loginForNutrition',
        method: 'post',
        headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
src/utils/request.ts
@@ -66,13 +66,13 @@
            ElMessage.error('网络连接错误');
        } else if (error.message.indexOf('status code 401') != -1) {
            ElMessage.error('token 过期了');
            Session.clear(); // 清除浏览器全部临时缓存
            window.location.href = '/'; // 去登录页
            // Session.clear(); // 清除浏览器全部临时缓存
            // window.location.href = '/'; // 去登录页
        }else {
            if (error.response.data) ElMessage.error(error.response.statusText);
            else ElMessage.error('接口路径找不到');
        }
        console.log
        console.log(error)
        return Promise.reject(error);
    }
);
src/views/home/components/patient_file.vue
@@ -87,9 +87,9 @@
                        </tr>
                        <tr>
                            <td>电话号码:{{ patientsInfo.patientTelNo }}</td>
                            <td>家属电话:{{ patientsInfo.patientTelNoRelative }}</td>
                            <td colspan="3">家庭地址:{{ patientsInfo.patientAddress }}</td>
                            <td>电话号码:{{ state.patientData.电话号码 }}</td>
                            <td>家属电话:{{ state.patientData.亲属手机号 }}</td>
                            <td colspan="3">家庭地址:{{ state.patientData.家庭住址 }}</td>
                        </tr>
                        <tr>
src/views/login/component/account.vue
@@ -120,7 +120,7 @@
        } else { //第一次登录没有选择到客户
            state.loading.signIn = true;
            const signInRes = await signIn(`user_no=${state.ruleForm.userName}&user_password=${state.ruleForm.password}`);
            const signInRes = await signIn(`userno=${state.ruleForm.userName}&password=${state.ruleForm.password}`);
            if (signInRes.data) {
                // 存储 token 到浏览器缓存
                Session.set('token', signInRes.data);