Commit 3627cfca by wangshuangqing

添加消息提示

parent e9d85c5d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wsq * @Author: wsq
* @Date: 2022-04-22 15:20:58 * @Date: 2022-04-22 15:20:58
* @LastEditors: wsq * @LastEditors: wsq
* @LastEditTime: 2023-03-02 10:02:29 * @LastEditTime: 2023-03-02 17:50:33
* @Description: * @Description:
--> -->
<template> <template>
...@@ -149,6 +149,7 @@ ...@@ -149,6 +149,7 @@
@select="select" @select="select"
default-expand-all default-expand-all
size="mini" size="mini"
:row-class-name="rowClass"
> >
<el-table-column <el-table-column
type="selection" type="selection"
...@@ -557,11 +558,7 @@ export default { ...@@ -557,11 +558,7 @@ export default {
const transformTime = computed(() => { const transformTime = computed(() => {
return transformTimestampnow; return transformTimestampnow;
}); });
// const transformTime = (row) => {
// console.log(2222);
// row.tickTime = transformTimestampnow();
// console.log(row.tickTime);
// };
let state = reactive({ let state = reactive({
//患者信息 //患者信息
topdata: { topdata: {
...@@ -634,6 +631,14 @@ export default { ...@@ -634,6 +631,14 @@ export default {
return true; //禁用 return true; //禁用
} }
}; };
//表格当前行样式
const rowClass = ({ row, index }) => {
if (row.isClass == true) {
return "rowStyleclass";
} else {
return "";
}
};
//更多 //更多
const goSeeScore = (row) => { const goSeeScore = (row) => {
...@@ -753,6 +758,7 @@ export default { ...@@ -753,6 +758,7 @@ export default {
if (row.children) { if (row.children) {
row.children.map((p) => { row.children.map((p) => {
p.ischeck = 2; p.ischeck = 2;
p.isClass = false;
toggleSelection(p, false); toggleSelection(p, false);
}); });
...@@ -775,6 +781,7 @@ export default { ...@@ -775,6 +781,7 @@ export default {
row.ischeck = 1; row.ischeck = 1;
} else { } else {
row.ischeck = 2; row.ischeck = 2;
row.isClass = false;
} }
} }
}; };
...@@ -932,12 +939,7 @@ export default { ...@@ -932,12 +939,7 @@ export default {
state.tempMedicalCheckout = data.tempMedicalCheckout; state.tempMedicalCheckout = data.tempMedicalCheckout;
//长期西药 //长期西药
state.longMedical = data.longMedical; state.longMedical = data.longMedical;
//重新获取左侧时间线数据
getlefttime();
Message({
message: data.message,
type: "success",
});
// 调用his接口 临时西药 // 调用his接口 临时西药
http http
.post(`/${state.hisUrl}`, { .post(`/${state.hisUrl}`, {
...@@ -946,7 +948,24 @@ export default { ...@@ -946,7 +948,24 @@ export default {
data: state.tempMedicalDrug, data: state.tempMedicalDrug,
}) })
.then((data) => { .then((data) => {
//重新获取左侧时间线数据
getlefttime();
Message({
message: data.message,
type: "success",
});
console.log("临时西药"); console.log("临时西药");
if (data.code == "0") {
Message({
message: `临时西药${data.msg}`,
type: "success",
});
} else if (data.code == "1") {
Message({
message: `临时西药失败`,
type: "error",
});
}
}) })
.catch((error) => {}); .catch((error) => {});
...@@ -959,6 +978,17 @@ export default { ...@@ -959,6 +978,17 @@ export default {
}) })
.then((data) => { .then((data) => {
console.log("临时检查"); console.log("临时检查");
if (data.code == "0") {
Message({
message: `临时${data.msg}`,
type: "success",
});
} else if (data.code == "1") {
Message({
message: `临时检查失败`,
type: "error",
});
}
}) })
.catch((error) => {}); .catch((error) => {});
...@@ -971,6 +1001,17 @@ export default { ...@@ -971,6 +1001,17 @@ export default {
}) })
.then((data) => { .then((data) => {
console.log("临时检验"); console.log("临时检验");
if (data.code == "0") {
Message({
message: `临时${data.msg}`,
type: "success",
});
} else if (data.code == "1") {
Message({
message: `临时检验失败`,
type: "error",
});
}
}) })
.catch((error) => {}); .catch((error) => {});
...@@ -983,9 +1024,21 @@ export default { ...@@ -983,9 +1024,21 @@ export default {
}) })
.then((data) => { .then((data) => {
console.log("长期西药"); console.log("长期西药");
if (data.code == "0") {
Message({
message: `长期西药${data.msg}`,
type: "success",
});
} else if (data.code == "1") {
Message({
message: `长期西药失败`,
type: "error",
});
}
}) })
.catch((error) => {}); .catch((error) => {});
}) })
.catch((error) => {}); .catch((error) => {});
}; };
//获取病情变异--变异原因下拉框 //获取病情变异--变异原因下拉框
...@@ -1095,6 +1148,7 @@ export default { ...@@ -1095,6 +1148,7 @@ export default {
goSeefromRef, goSeefromRef,
goSeecolse, goSeecolse,
selectEnable, selectEnable,
rowClass,
}; };
}, },
}; };
...@@ -1102,6 +1156,10 @@ export default { ...@@ -1102,6 +1156,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../styles/mixin.scss"; @import "../styles/mixin.scss";
@import "../styles/media/components/outClinicalpathway.scss"; @import "../styles/media/components/outClinicalpathway.scss";
//选中当前行样式
::v-deep .rowStyleclass {
font-weight: 700;
}
//时间线样式 //时间线样式
::v-deep .el-timeline-item__tail { ::v-deep .el-timeline-item__tail {
left: 0 !important; left: 0 !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment