public/yuanqu.ini | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/doctor/checkAll/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/hosp/project/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/picture/picture/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
public/yuanqu.ini
@@ -1,7 +1,7 @@ [development] 8094=pbkwyy 81=jdczgzyy 82=ssyjyy 82=bjxjyy 8095=jdczgzyy 8096=sqyy 8097=wbzxyy src/views/doctor/checkAll/index.vue
@@ -2581,7 +2581,6 @@ yichangjieguo() { this.loading = true; this.isLoading = true; // 确保整体加载框开启 this.status1 = 0; this.yichangList = []; @@ -2595,7 +2594,6 @@ if (!data || data.length === 0) { this.$message.warning("暂无异常报告"); this.loading = false; this.isLoading = false; // 关闭整体加载框 resolve(); // 返回 Promise,但不继续后续逻辑 return; } @@ -2617,17 +2615,12 @@ resolve(); // 成功完成 }) .catch((error) => { this.isLoading = false; this.loading = false; console.error("获取异常结果失败:", error); this.$message.error("获取异常结果失败"); reject(error); // 返回错误 }) .finally(() => { // 只在没有提前返回的情况下关闭加载框 if (this.isLoading) { this.isLoading = false; } if (this.loading) { this.loading = false; } @@ -3183,6 +3176,7 @@ handleClick(row) { this.qingkong(); this.isLoading = true; // 开始整体加载 this.$refs.Pre.open = false; this.tableAll = row; let dict = "dict_tjtype"; @@ -3206,7 +3200,14 @@ if (this.status.status === "1") { // 先调用异常结果,等待其完成后再继续后续逻辑 this.yichangjieguo().then(() => { // 无论异常结果是否有数据,都继续后续逻辑 // 如果异常结果为空,立即关闭加载框并打开抽屉 if (!this.yichangList || this.yichangList.length === 0) { this.isLoading = false; this.drawer = true; return; } // 异常结果有数据,继续后续逻辑 getInfo().then((response) => { this.userId = response.user.userId; if (this.userId) { @@ -3217,10 +3218,6 @@ }; getModifiedState(data).then((res) => { this.MsgId = res.msg; // 只有当异常结果有数据时才开启加载框 if (this.yichangList && this.yichangList.length > 0) { this.isLoading = true; } this.drawer = true; getupdateCheckType(this.tjNumber).then((response) => { this.isLoading = false; // 关闭加载框 @@ -3267,7 +3264,14 @@ .then(() => { // 先调用异常结果,等待其完成后再继续后续逻辑 this.yichangjieguo().then(() => { // 无论异常结果是否有数据,都继续后续逻辑 // 如果异常结果为空,立即关闭加载框并打开抽屉 if (!this.yichangList || this.yichangList.length === 0) { this.isLoading = false; this.drawer = true; return; } // 异常结果有数据,继续后续逻辑 getInfo().then((response) => { this.userId = response.user.userId; if (this.userId) { @@ -3278,10 +3282,6 @@ }; getforceIn(data).then((res) => { this.MsgId = res.msg; // 只有当异常结果有数据时才开启加载框 if (this.yichangList && this.yichangList.length > 0) { this.isLoading = true; } this.drawer = true; getupdateCheckType(this.tjNumber).then((response) => { this.isLoading = false; // 关闭加载框 @@ -3316,6 +3316,7 @@ }); }) .catch(() => { this.isLoading = false; // 取消时也要关闭加载框 this.$message({ type: "info", message: "已取消进入", src/views/hosp/project/index.vue
@@ -1840,6 +1840,9 @@ // 等待右侧表格刷新 await this.getList(); // 立即刷新当前项目数据,确保数据是最新的 await this.refreshCurrentProjectData(); this.pageLoading = false; // ✅ 统一加载状态控制 }, @@ -1852,6 +1855,23 @@ }); } }, */ // 刷新当前选中项目的数据 async refreshCurrentProjectData() { if (this.id) { try { const response = await getInfoByProId(this.id); this.xiugaiList = response.data; console.log("刷新项目数据成功:", this.xiugaiList); return response.data; } catch (error) { console.error("刷新项目数据失败:", error); this.$message.error("刷新项目数据失败"); this.xiugaiList = null; // 刷新失败时重置为 null return null; } } return null; }, submit() { this.ChangeList.forEach((item) => { this.form.proPrice = item.ckdj; @@ -1861,6 +1881,10 @@ this.sfxmId = parseInt(item.id); }); this.dialogTableVisible = false; this.getDeptList(); this.getDeptTree().then(() => { this.precomputePinyin(); }); }, handleDelete(row) { const proIds = row.proId || this.ids; src/views/picture/picture/index.vue
@@ -779,18 +779,24 @@ this.changtjNumber(val.tjNumber); }, changtjNumber(val) { console.log(8989); let tjNumber = val; this.loading = true; getYxJcXx(tjNumber).then((res) => { this.tableList = res.data.map((item) => { // 如果 imageUrl 存在且是纯 Base64 字符串,添加 data:image 前缀 if (item.imageUrl && !item.imageUrl.startsWith("data:image")) { // 假设图片类型为 png,如果接口提供类型,可以替换为动态值 item.imageUrl = `data:image/png;base64,${item.imageUrl}`; } return item; }); // 检查 res.data 是否存在且为数组 if (res && res.data && Array.isArray(res.data)) { this.tableList = res.data.map((item) => { // 如果 imageUrl 存在且是纯 Base64 字符串,添加 data:image 前缀 if (item.imageUrl && !item.imageUrl.startsWith("data:image")) { // 假设图片类型为 png,如果接口提供类型,可以替换为动态值 item.imageUrl = `data:image/png;base64,${item.imageUrl}`; } return item; }); } else { // 如果 res.data 不存在或不是数组,设置为空数组 this.tableList = []; // console.warn('API response data is not an array:', res); } this.loading = false; this.$nextTick(() => { const headerCheckbox = this.$refs.mu.$el.querySelector( @@ -813,6 +819,10 @@ this.handleChange([firstRow]); } }); }).catch((error) => { console.error('获取影像检查信息失败:', error); this.tableList = []; this.loading = false; }); }, qijian(row) { @@ -919,15 +929,38 @@ this.form.proResult = yxbx; }, submiepilog() { if (!this.tableList || this.tableList.length === 0) { this.$message.warning("表格中没有数据"); return; } // 检查 tableList 表格中是否有选中的项目 const selectedRows = this.$refs.mu.selection; if (!selectedRows || selectedRows.length === 0) { this.$message.warning("请先选择表格中的项目"); return; } this.$refs.aaa.open = true; let proId = "1633660948860522585"; this.$refs.aaa.getList(proId); }, submito() { if (!this.selectedRow || !this.selectedRow.proId) { this.$message.error("请选择提交项目"); if (!this.tableList || this.tableList.length === 0) { this.$message.warning("表格中没有数据"); return; } // 检查 tableList 表格中是否有选中的项目 const selectedRows = this.$refs.mu.selection; if (!selectedRows || selectedRows.length === 0) { this.$message.warning("请先选择表格中的项目"); return; } /* if (!this.selectedRow || !this.selectedRow.proId) { this.$message.error("请选择提交项目"); return; } */ if (!this.form.proResult && !this.form.conclusion) { this.$message.warning("请选择检查所见或检查结论!"); } else {