This commit is contained in:
zoujiandong
2025-07-17 17:15:28 +08:00
parent dc39275e6e
commit 75d515fbc6
92 changed files with 1718 additions and 945 deletions
+104 -97
View File
@@ -10,10 +10,11 @@ if (!Array) {
const _easycom_up__image2 = common_vendor.resolveComponent("up--image");
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
const _easycom_up_empty2 = common_vendor.resolveComponent("up-empty");
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
(_easycom_u_icon2 + _easycom_up__textarea2 + _easycom_up_icon2 + _easycom_up__image2 + _easycom_up_input2 + _easycom_up_popup2 + _easycom_up_overlay2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
(_easycom_u_icon2 + _easycom_up__textarea2 + _easycom_up_icon2 + _easycom_up__image2 + _easycom_up_input2 + _easycom_up_popup2 + _easycom_up_empty2 + _easycom_up_overlay2 + _easycom_up_radio2 + _easycom_up_radio_group2)();
}
const _easycom_u_icon = () => "../../node-modules/uview-plus/components/u-icon/u-icon.js";
const _easycom_up__textarea = () => "../../node-modules/uview-plus/components/u--textarea/u--textarea.js";
@@ -21,11 +22,12 @@ const _easycom_up_icon = () => "../../node-modules/uview-plus/components/u-icon/
const _easycom_up__image = () => "../../node-modules/uview-plus/components/u--image/u--image.js";
const _easycom_up_input = () => "../../node-modules/uview-plus/components/u-input/u-input.js";
const _easycom_up_popup = () => "../../node-modules/uview-plus/components/u-popup/u-popup.js";
const _easycom_up_empty = () => "../../node-modules/uview-plus/components/u-empty/u-empty.js";
const _easycom_up_overlay = () => "../../node-modules/uview-plus/components/u-overlay/u-overlay.js";
const _easycom_up_radio = () => "../../node-modules/uview-plus/components/u-radio/u-radio.js";
const _easycom_up_radio_group = () => "../../node-modules/uview-plus/components/u-radio-group/u-radio-group.js";
if (!Math) {
(_easycom_u_icon + _easycom_up__textarea + svEditor + _easycom_up_icon + _easycom_up__image + _easycom_up_input + _easycom_up_popup + _easycom_up_overlay + _easycom_up_radio + _easycom_up_radio_group)();
(_easycom_u_icon + _easycom_up__textarea + svEditor + _easycom_up_icon + _easycom_up__image + _easycom_up_input + _easycom_up_popup + _easycom_up_empty + _easycom_up_overlay + _easycom_up_radio + _easycom_up_radio_group)();
}
const svEditor = () => "../../uni_modules/sv-editor/components/sv-editor/sv-editor.js";
const _sfc_main = {
@@ -72,7 +74,7 @@ const _sfc_main = {
common_vendor.ref([]);
const editorCtx = common_vendor.ref(null);
const editorCtxResult = common_vendor.ref(null);
const isFocusInfo = common_vendor.ref(true);
const isFocusInfo = common_vendor.ref(false);
const isFocusResult = common_vendor.ref(false);
const labelList = common_vendor.ref([]);
const goBack = () => {
@@ -80,11 +82,15 @@ const _sfc_main = {
delta: 1
});
};
const openDraftList = () => {
getDraftList();
showDraft.value = true;
};
const closeCase = () => {
showCase.value = false;
};
const epaste = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:518", e);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:535", e);
};
const addOption = () => {
voteData.case_exchange_vote_option.push({
@@ -120,7 +126,6 @@ const _sfc_main = {
form.case_exchange_vote.valid_day = 7;
};
const saveVote = () => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:553", voteData);
if (voteData.vote_title == "") {
common_vendor.index.showToast({
title: "请输入投票标题",
@@ -142,30 +147,7 @@ const _sfc_main = {
});
return false;
}
for (let i = 0; i < voteData.case_exchange_vote_option.length; i++) {
if (voteData.case_exchange_vote_option[i].option_value == "") {
common_vendor.index.showToast({
title: "投票选项不能为空",
icon: "none"
});
return false;
}
if (voteData.case_exchange_vote_option[i].option_value.length > 16) {
common_vendor.index.showToast({
title: "第" + (i + 1) + "个投票选项超过16个字符",
icon: "none"
});
return false;
}
}
if (voteData.case_exchange_vote_option.length < 2) {
common_vendor.index.showToast({
title: "至少添加两个选项",
icon: "none"
});
return false;
}
Object.assign(form.case_exchange_vote, voteData);
form.case_exchange_vote = voteData;
showVote.value = false;
};
const fromatDay = (value) => {
@@ -178,25 +160,37 @@ const _sfc_main = {
return common_vendor.dayjs(value).format("YYYY-MM-DD");
}
};
const fromatImg = (val) => {
if (val) {
return val.replace(/\<img/gi, '<img class="imgstyle"');
} else {
return "";
}
};
const ready = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:639", e);
editorCtx.value = e;
let html = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
editorCtx.value.initHtml(html);
common_vendor.index.hideKeyboard();
common_vendor.index.pageScrollTo({
scrollTop: 0,
selector: "#form"
// })
});
};
const readyResult = (e) => {
editorCtxResult.value = e;
};
const clearMuBan = () => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:625", "清空模板");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:659", "清空模板");
editorCtx.value.initHtml("");
};
const focusInfo = () => {
isFocusInfo.value = true;
};
const blurInfo = () => {
setTimeout(() => {
isFocusInfo.value = false;
}, 2e3);
isFocusInfo.value = false;
};
const focusResult = () => {
isFocusResult.value = true;
@@ -243,7 +237,7 @@ const _sfc_main = {
isLock.value = true;
const res = await editorCtx.value.getLastContent();
form.exchange_content = res.html;
const resResult = await editorCtx.value.getLastContent();
const resResult = await editorCtxResult.value.getLastContent();
form.exchange_summary = resResult.html;
if (labelList.value.length > 0) {
form.case_exchange_label = labelList.value;
@@ -273,7 +267,7 @@ const _sfc_main = {
labelList.value = exchange_label;
form.exchange_summary = exchange_summary;
form.case_exchange_vote = exchange_vote;
editorCtxResult.value.initHtml(exchange_content);
editorCtxResult.value.initHtml(exchange_summary);
Object.assign(voteData, draft);
showDraft.value = false;
};
@@ -284,6 +278,7 @@ const _sfc_main = {
};
const confirmDel = () => {
showModal.value = false;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:776", delType.value);
if (delType.value == "delDraft") {
delDraft(delId.value);
} else if (delType.value == "saveDraft") {
@@ -310,8 +305,9 @@ const _sfc_main = {
goBack();
} else {
const res = await editorCtx.value.getLastContent();
const initInfo = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p>";
const resContent = await editorCtxResult.value.getLastContent();
if (form.exchange_title || res.html || resContent.html || form.case_exchange_vote && form.case_exchange_vote.vote_title && form.case_exchange_label && form.case_exchange_label.length > 0) {
if (form.exchange_title || res.html != initInfo || resContent.text || form.case_exchange_vote && form.case_exchange_vote.vote_title && form.case_exchange_label && form.case_exchange_label.length > 0) {
delType.value = "saveDraft";
showModal.value = true;
} else {
@@ -320,7 +316,7 @@ const _sfc_main = {
}
};
const publish = async () => {
const initInfo = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
const initInfo = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p>";
if (form.exchange_title == "") {
common_vendor.index.showToast({
title: "请输入标题",
@@ -393,7 +389,7 @@ const _sfc_main = {
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:861", err);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:905", err);
}
});
});
@@ -423,7 +419,7 @@ const _sfc_main = {
return randomNumber;
};
const getImageFormat = (imageUrl) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:891", imageUrl);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:935", imageUrl);
const lastDotIndex = imageUrl.lastIndexOf(".");
if (lastDotIndex !== -1) {
return imageUrl.substring(lastDotIndex + 1);
@@ -455,7 +451,7 @@ const _sfc_main = {
//从相册选择
extension: [".mp4", ".webm", ".ogg"],
success: function(res) {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:918", res.tempFilePath);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:962", res.tempFilePath);
HandleAddVideo(res.tempFilePath);
}
});
@@ -493,7 +489,7 @@ const _sfc_main = {
async success(res2) {
if (res2.statusCode === 204) {
let url = host + "/" + dir + filename + imgType;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:960", editorCtx2);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1004", editorCtx2);
let imgUrl = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
const fileThumbnail = await editorCtx2.createCoverThumbnail(
imgUrl
@@ -507,7 +503,7 @@ const _sfc_main = {
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:975", err);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1019", err);
}
});
});
@@ -529,7 +525,7 @@ const _sfc_main = {
};
const getCaseLabel = (lev, pid = 0) => {
api_api.api.getCaseLabel({
pid
pId: pid
}).then((res) => {
if (lev == 1) {
labelObj.list1 = res.data.data;
@@ -557,7 +553,7 @@ const _sfc_main = {
showCase.value = false;
if (level.value == 1) {
let label = labelObj.list1.find((item) => item.app_iden == caseValue1.value);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1025", label);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1069", label);
labelList.value.push({
app_iden: label.app_iden,
label_name: label.label_name
@@ -609,7 +605,6 @@ const _sfc_main = {
getCaseLabel(1, 0);
};
common_vendor.onLoad(() => {
getDraftList();
});
return (_ctx, _cache) => {
return common_vendor.e({
@@ -687,7 +682,7 @@ const _sfc_main = {
}),
B: !isFocusInfo.value ? 1 : "",
C: common_vendor.o(alertTitle),
D: common_vendor.o(($event) => showDraft.value = true),
D: common_vendor.o(openDraftList),
E: common_vendor.p({
src: common_vendor.unref(common_assets.voteImg),
width: "47rpx",
@@ -748,16 +743,27 @@ const _sfc_main = {
size: "20"
}),
Y: common_vendor.o(closeDraft),
Z: common_vendor.f(draftList.value, (item, index, i0) => {
Z: draftList.value.length == 0
}, draftList.value.length == 0 ? {
aa: common_vendor.p({
marginTop: "120rpx",
text: "草稿箱为空",
mode: "list",
icon: common_vendor.unref(common_assets.draftImg)
})
} : {}, {
ab: draftList.value.length > 0
}, draftList.value.length > 0 ? {
ac: common_vendor.f(draftList.value, (item, index, i0) => {
return common_vendor.e({
a: common_vendor.t(item.exchange_title ? item.exchange_title : "无标题"),
b: item.exchange_content
}, item.exchange_content ? {
c: item.exchange_content
c: fromatImg(item.exchange_content)
} : item.exchange_summary ? common_vendor.e({
e: item.exchange_summary
}, item.exchange_summary ? {
f: item.exchange_summary
f: fromatImg(item.exchange_summary)
} : {}) : item.exchange_label && item.exchange_label.length > 0 ? common_vendor.e({
h: item.exchange_summary
}, item.exchange_summary ? {} : {}, {
@@ -774,74 +780,75 @@ const _sfc_main = {
g: item.exchange_label && item.exchange_label.length > 0,
j: item.exchange_vote,
l: common_vendor.t(fromatDay(item.updated_at)),
m: "bfce3555-18-" + i0 + ",bfce3555-16",
m: "bfce3555-19-" + i0 + ",bfce3555-16",
n: common_vendor.o(($event) => willDelDraft(item.draft_id), item.draft_id),
o: "bfce3555-19-" + i0 + ",bfce3555-16",
o: "bfce3555-20-" + i0 + ",bfce3555-16",
p: common_vendor.o(($event) => editDraft(index), item.draft_id),
q: item.draft_id
});
}),
aa: common_vendor.p({
ad: common_vendor.p({
name: "trash",
color: "#4B5563",
size: "16"
}),
ab: common_vendor.p({
ae: common_vendor.p({
name: "edit-pen",
color: "#fff",
size: "17"
}),
ac: common_vendor.o(closeDraft),
ad: common_vendor.o(openDraft),
ae: common_vendor.p({
})
} : {}, {
af: common_vendor.o(closeDraft),
ag: common_vendor.o(openDraft),
ah: common_vendor.p({
round: 10,
zIndex: "9",
show: showDraft.value,
mode: "bottom"
}),
af: common_vendor.p({
ai: common_vendor.p({
name: "close",
color: "#4B5563",
size: "20"
}),
ag: common_vendor.o(closeTitle),
ah: common_vendor.o(insertAllWord),
ai: common_vendor.p({
aj: common_vendor.o(closeTitle),
ak: common_vendor.o(insertAllWord),
al: common_vendor.p({
name: "plus-circle",
color: "#3CC7C0",
size: "20"
}),
aj: common_vendor.o(insertAllWord),
ak: common_vendor.o(($event) => insertWord("患者信息")),
al: common_vendor.o(($event) => insertWord("主诉")),
am: common_vendor.o(($event) => insertWord("现病史及既往史")),
an: common_vendor.o(($event) => insertWord("检查")),
ao: common_vendor.o(($event) => insertWord("临床诊断")),
ap: common_vendor.o(($event) => insertWord("治疗经过及结果")),
aq: common_vendor.o(closeTitle),
ar: common_vendor.o(openTitle),
as: common_vendor.p({
am: common_vendor.o(insertAllWord),
an: common_vendor.o(($event) => insertWord("患者信息")),
ao: common_vendor.o(($event) => insertWord("主诉")),
ap: common_vendor.o(($event) => insertWord("现病史及既往史")),
aq: common_vendor.o(($event) => insertWord("检查")),
ar: common_vendor.o(($event) => insertWord("临床诊断")),
as: common_vendor.o(($event) => insertWord("治疗经过及结果")),
at: common_vendor.o(closeTitle),
av: common_vendor.o(openTitle),
aw: common_vendor.p({
round: 10,
zIndex: "9",
show: showTitle.value,
mode: "bottom"
}),
at: delType.value == "delDraft"
ax: delType.value == "delDraft"
}, delType.value == "delDraft" ? {} : delType.value == "saveDraft" ? {} : {}, {
av: delType.value == "saveDraft",
aw: common_vendor.o(cancelDel),
ax: common_vendor.o(confirmDel),
ay: common_vendor.p({
ay: delType.value == "saveDraft",
az: common_vendor.o(cancelDel),
aA: common_vendor.o(confirmDel),
aB: common_vendor.p({
show: showModal.value,
["mask-click-able"]: true
}),
az: common_vendor.o(($event) => showCase.value = false),
aA: common_vendor.o(continueCase),
aB: level.value != 3,
aC: common_vendor.o(confirmCase),
aD: common_vendor.f(labelObj.list1, (item, k0, i0) => {
aC: common_vendor.o(($event) => showCase.value = false),
aD: common_vendor.o(continueCase),
aE: level.value != 3,
aF: common_vendor.o(confirmCase),
aG: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return {
a: "bfce3555-26-" + i0 + ",bfce3555-25",
a: "bfce3555-27-" + i0 + ",bfce3555-26",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
@@ -850,16 +857,16 @@ const _sfc_main = {
c: item.app_iden
};
}),
aE: common_vendor.o(($event) => caseValue1.value = $event),
aF: common_vendor.p({
aH: common_vendor.o(($event) => caseValue1.value = $event),
aI: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue1.value
}),
aG: level.value == 1,
aH: common_vendor.f(labelObj.list2, (item, k0, i0) => {
aJ: level.value == 1,
aK: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return {
a: "bfce3555-28-" + i0 + ",bfce3555-27",
a: "bfce3555-29-" + i0 + ",bfce3555-28",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
@@ -868,16 +875,16 @@ const _sfc_main = {
c: item.app_iden
};
}),
aI: common_vendor.o(($event) => caseValue2.value = $event),
aJ: common_vendor.p({
aL: common_vendor.o(($event) => caseValue2.value = $event),
aM: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue2.value
}),
aK: level.value == 2,
aL: common_vendor.f(labelObj.list2, (item, k0, i0) => {
aN: level.value == 2,
aO: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return {
a: "bfce3555-30-" + i0 + ",bfce3555-29",
a: "bfce3555-31-" + i0 + ",bfce3555-30",
b: common_vendor.p({
activeColor: "#3CC7C0 ",
label: item.label_name,
@@ -886,15 +893,15 @@ const _sfc_main = {
c: item.app_iden
};
}),
aM: common_vendor.o(($event) => caseValue3.value = $event),
aN: common_vendor.p({
aP: common_vendor.o(($event) => caseValue3.value = $event),
aQ: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue3.value
}),
aO: level.value == 3,
aP: common_vendor.o(closeCase),
aQ: common_vendor.p({
aR: level.value == 3,
aS: common_vendor.o(closeCase),
aT: common_vendor.p({
round: 10,
zIndex: "9",
show: showCase.value,
@@ -8,6 +8,7 @@
"up--image": "../../node-modules/uview-plus/components/u--image/u--image",
"up-input": "../../node-modules/uview-plus/components/u-input/u-input",
"up-popup": "../../node-modules/uview-plus/components/u-popup/u-popup",
"up-empty": "../../node-modules/uview-plus/components/u-empty/u-empty",
"up-overlay": "../../node-modules/uview-plus/components/u-overlay/u-overlay",
"up-radio": "../../node-modules/uview-plus/components/u-radio/u-radio",
"up-radio-group": "../../node-modules/uview-plus/components/u-radio-group/u-radio-group",
File diff suppressed because one or more lines are too long
+31 -3
View File
@@ -26,7 +26,7 @@
.casepop.data-v-bfce3555 {
display: flex;
flex-direction: column;
max-height: calc(100vh - 750rpx);
max-height: calc(100vh - 400rpx);
}
.casepop .continue.data-v-bfce3555 {
color: #2878ff !important;
@@ -35,7 +35,16 @@
flex: 1;
overflow-y: scroll;
padding-top: 10rpx;
max-height: calc(100vh - 700rpx);
min-height: 350rpx;
padding-bottom: 20rpx;
}
.casecon.data-v-bfce3555 .u-radio {
margin-bottom: 10px !important;
margin-top: 0px !important;
}
.casecon .casePadding.data-v-bfce3555 {
padding-bottom: 0rpx;
}
.casecon .column.data-v-bfce3555 {
padding: 0 30rpx;
@@ -246,7 +255,7 @@
font-size: 24rpx;
}
#editor.data-v-bfce3555 {
padding: 0 30rpx;
padding: 0 10rpx;
height: calc(100vh - 700rpx);
}
#editorRes.data-v-bfce3555 {
@@ -581,7 +590,7 @@
}
.form .sickbox.data-v-bfce3555 {
display: flex;
padding: 25rpx 25rpx 0;
padding: 25rpx 25rpx 10rpx;
margin-bottom: 20rpx;
}
.form .add.data-v-bfce3555 {
@@ -646,4 +655,23 @@
align-items: center;
color: #6b7280;
font-size: 31rpx;
}
.data-v-bfce3555 .ql-container {
padding-bottom: 25rpx;
height: calc(100vh - 700rpx);
}
.data-v-bfce3555 .ql-container img {
max-width: 100%;
position: relative;
left: 50%;
transform: translateX(-50%);
}
.data-v-bfce3555 .ql-container image {
max-width: 100%;
position: relative;
left: 50%;
transform: translateX(-50%);
}
.con.data-v-bfce3555 .imgstyle {
max-width: 100%;
}