This commit is contained in:
zoujiandong
2025-07-22 09:40:54 +08:00
parent 89d55643f6
commit 89336f5621
24 changed files with 766 additions and 199 deletions
+135 -92
View File
@@ -44,11 +44,13 @@ const _sfc_main = {
const caseValue3 = common_vendor.ref("");
const level = common_vendor.ref(1);
const isPublish = common_vendor.ref(false);
const exchange_id = common_vendor.ref("");
const labelObj = common_vendor.reactive({
list1: [],
list2: [],
list3: []
});
const bottomHeight = common_vendor.ref(200);
const form = common_vendor.reactive({
exchange_title: "",
exchange_content: "",
@@ -90,7 +92,7 @@ const _sfc_main = {
showCase.value = false;
};
const epaste = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:539", e);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:541", e);
};
const addOption = () => {
voteData.case_exchange_vote_option.push({
@@ -168,7 +170,7 @@ const _sfc_main = {
}
};
const ready = (e) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:643", e);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:645", 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);
@@ -181,9 +183,14 @@ const _sfc_main = {
};
const readyResult = (e) => {
editorCtxResult.value = e;
setTimeout(() => {
if (exchange_id.value) {
getExchangeDetail(exchange_id.value);
}
});
};
const clearMuBan = () => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:663", "清空模板");
common_vendor.index.__f__("log", "at pages/publish/publish.vue:671", "清空模板");
editorCtx.value.initHtml("");
};
const focusInfo = () => {
@@ -251,6 +258,37 @@ const _sfc_main = {
getDraftList();
});
};
const getExchangeDetail = (id) => {
api_api.api.getExchangeDetail(id).then((res) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:772", res.data.data);
let {
exchange_content,
exchange_title,
exchange_label,
exchange_summary,
exchange_vote
} = res.data.data;
editorCtx.value.initHtml(exchange_content, async (videoUrl) => {
let res2;
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
res2 = await editorCtx.value.createCoverThumbnail(fox);
return res2;
});
form.exchange_content = exchange_content;
form.exchange_title = exchange_title;
form.case_exchange_label = exchange_label;
labelList.value = exchange_label;
form.exchange_summary = exchange_summary;
form.case_exchange_vote = exchange_vote;
editorCtxResult.value.initHtml(exchange_summary, async (videoUrl) => {
let res2;
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
res2 = await editorCtxResult.value.createCoverThumbnail(fox);
return res2;
});
Object.assign(voteData, exchange_vote);
});
};
const editDraft = (index) => {
let draft = draftList.value[index];
let {
@@ -268,7 +306,7 @@ const _sfc_main = {
form.exchange_summary = exchange_summary;
form.case_exchange_vote = exchange_vote;
editorCtxResult.value.initHtml(exchange_summary);
Object.assign(voteData, draft);
Object.assign(voteData, exchange_vote);
showDraft.value = false;
};
const willDelDraft = (id) => {
@@ -278,7 +316,7 @@ const _sfc_main = {
};
const confirmDel = () => {
showModal.value = false;
common_vendor.index.__f__("log", "at pages/publish/publish.vue:780", delType.value);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:840", delType.value);
if (delType.value == "delDraft") {
delDraft(delId.value);
} else if (delType.value == "saveDraft") {
@@ -301,7 +339,7 @@ const _sfc_main = {
getDraftList();
};
const alertSave = async () => {
if (isPublish.value) {
if (isPublish.value || exchange_id.value) {
goBack();
} else {
const res = await editorCtx.value.getLastContent();
@@ -389,7 +427,7 @@ const _sfc_main = {
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:909", err);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:969", err);
}
});
});
@@ -419,7 +457,7 @@ const _sfc_main = {
return randomNumber;
};
const getImageFormat = (imageUrl) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:939", imageUrl);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:999", imageUrl);
const lastDotIndex = imageUrl.lastIndexOf(".");
if (lastDotIndex !== -1) {
return imageUrl.substring(lastDotIndex + 1);
@@ -451,7 +489,7 @@ const _sfc_main = {
//从相册选择
extension: [".mp4", ".webm", ".ogg"],
success: function(res) {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:966", res.tempFilePath);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1026", res.tempFilePath);
HandleAddVideo(res.tempFilePath);
}
});
@@ -489,7 +527,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:1008", editorCtx2);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1068", editorCtx2);
let imgUrl = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
const fileThumbnail = await editorCtx2.createCoverThumbnail(
imgUrl
@@ -503,7 +541,7 @@ const _sfc_main = {
}
},
fail: (err) => {
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1023", err);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1083", err);
}
});
});
@@ -553,7 +591,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:1073", label);
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1133", label);
labelList.value.push({
app_iden: label.app_iden,
label_name: label.label_name
@@ -608,7 +646,10 @@ const _sfc_main = {
showCase.value = true;
getCaseLabel(1, 0);
};
common_vendor.onLoad(() => {
common_vendor.onLoad((optoions) => {
if (optoions.exchange_id) {
exchange_id.value = optoions.exchange_id;
}
});
return (_ctx, _cache) => {
return common_vendor.e({
@@ -665,45 +706,47 @@ const _sfc_main = {
size: "16"
}),
s: common_vendor.o(openLabelPop),
t: common_vendor.p({
t: bottomHeight.value + "rpx",
v: common_vendor.p({
src: common_vendor.unref(common_assets.photoImg),
width: "32rpx",
height: "32rpx"
}),
v: common_vendor.o(insertImage),
w: !isFocusInfo.value && !isFocusResult.value ? 1 : "",
x: common_vendor.p({
w: common_vendor.o(insertImage),
x: !isFocusInfo.value && !isFocusResult.value ? 1 : "",
y: common_vendor.p({
src: common_vendor.unref(common_assets.videoImg$1),
width: "32rpx",
height: "32rpx"
}),
y: common_vendor.o(insertVideo),
z: !isFocusInfo.value && !isFocusResult.value ? 1 : "",
A: common_vendor.p({
z: common_vendor.o(insertVideo),
A: !isFocusInfo.value && !isFocusResult.value ? 1 : "",
B: common_vendor.p({
src: common_vendor.unref(common_assets.addImg),
width: "32rpx",
height: "32rpx"
}),
B: !isFocusInfo.value ? 1 : "",
C: common_vendor.o(alertTitle),
D: common_vendor.o(openDraftList),
E: common_vendor.p({
C: !isFocusInfo.value ? 1 : "",
D: common_vendor.o(alertTitle),
E: common_vendor.o(openDraftList),
F: common_vendor.p({
src: common_vendor.unref(common_assets.voteImg),
width: "47rpx",
height: "47rpx"
}),
F: common_vendor.o(($event) => showVote.value = true),
G: common_vendor.o(publish),
H: common_vendor.o(closeVote),
I: common_vendor.o(saveVote),
J: common_vendor.o(($event) => voteData.vote_title = $event),
K: common_vendor.p({
G: common_vendor.o(($event) => showVote.value = true),
H: common_vendor.o(publish),
I: bottomHeight.value + "rpx",
J: common_vendor.o(closeVote),
K: common_vendor.o(saveVote),
L: common_vendor.o(($event) => voteData.vote_title = $event),
M: common_vendor.p({
placeholder: "请输入投票标题",
border: "surround",
clearable: true,
modelValue: voteData.vote_title
}),
L: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
N: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
return {
a: "bfce3555-13-" + i0 + ",bfce3555-11",
b: common_vendor.o(($event) => item.option_value = $event, index),
@@ -718,59 +761,59 @@ const _sfc_main = {
f: index
};
}),
M: common_vendor.p({
O: common_vendor.p({
name: "minus-circle",
color: "red",
size: "28"
}),
N: common_vendor.p({
P: common_vendor.p({
name: "plus",
color: "#4B5563",
size: "18"
}),
O: common_vendor.o(addOption),
P: common_vendor.p({
Q: common_vendor.o(addOption),
R: common_vendor.p({
name: "minus",
color: "#4B5563",
size: "30rpx",
bold: true
}),
Q: common_vendor.o(($event) => changeDay("minus")),
R: common_vendor.t(voteData.valid_day),
S: common_vendor.p({
S: common_vendor.o(($event) => changeDay("minus")),
T: common_vendor.t(voteData.valid_day),
U: common_vendor.p({
name: "plus",
color: "#4B5563",
size: "30rpx",
bold: true
}),
T: common_vendor.o(($event) => changeDay("plus")),
U: common_vendor.o(saveVote),
V: common_vendor.o(clearVote),
W: common_vendor.o(closeVote),
X: common_vendor.o(openVote),
Y: common_vendor.p({
V: common_vendor.o(($event) => changeDay("plus")),
W: common_vendor.o(saveVote),
X: common_vendor.o(clearVote),
Y: common_vendor.o(closeVote),
Z: common_vendor.o(openVote),
aa: common_vendor.p({
round: 10,
show: showVote.value,
mode: "bottom"
}),
Z: common_vendor.p({
ab: common_vendor.p({
name: "close",
color: "#4B5563",
size: "20"
}),
aa: common_vendor.o(closeDraft),
ab: draftList.value.length == 0
ac: common_vendor.o(closeDraft),
ad: draftList.value.length == 0
}, draftList.value.length == 0 ? {
ac: common_vendor.p({
ae: common_vendor.p({
marginTop: "120rpx",
text: "草稿箱为空",
mode: "list",
icon: common_vendor.unref(common_assets.draftImg)
})
} : {}, {
ad: draftList.value.length > 0
af: draftList.value.length > 0
}, draftList.value.length > 0 ? {
ae: common_vendor.f(draftList.value, (item, index, i0) => {
ag: 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
@@ -803,66 +846,66 @@ const _sfc_main = {
q: item.draft_id
});
}),
af: common_vendor.p({
ah: common_vendor.p({
name: "trash",
color: "#4B5563",
size: "16"
}),
ag: common_vendor.p({
ai: common_vendor.p({
name: "edit-pen",
color: "#fff",
size: "17"
})
} : {}, {
ah: common_vendor.o(closeDraft),
ai: common_vendor.o(openDraft),
aj: common_vendor.p({
aj: common_vendor.o(closeDraft),
ak: common_vendor.o(openDraft),
al: common_vendor.p({
round: 10,
zIndex: "9",
show: showDraft.value,
mode: "bottom"
}),
ak: common_vendor.p({
am: common_vendor.p({
name: "close",
color: "#4B5563",
size: "20"
}),
al: common_vendor.o(closeTitle),
am: common_vendor.o(insertAllWord),
an: common_vendor.p({
an: common_vendor.o(closeTitle),
ao: common_vendor.o(insertAllWord),
ap: common_vendor.p({
name: "plus-circle",
color: "#3CC7C0",
size: "20"
}),
ao: common_vendor.o(insertAllWord),
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(($event) => insertWord("临床诊断")),
av: common_vendor.o(($event) => insertWord("治疗经过及结果")),
aw: common_vendor.o(closeTitle),
ax: common_vendor.o(openTitle),
ay: common_vendor.p({
aq: common_vendor.o(insertAllWord),
ar: common_vendor.o(($event) => insertWord("患者信息")),
as: common_vendor.o(($event) => insertWord("主诉")),
at: common_vendor.o(($event) => insertWord("现病史及既往史")),
av: common_vendor.o(($event) => insertWord("检查")),
aw: common_vendor.o(($event) => insertWord("临床诊断")),
ax: common_vendor.o(($event) => insertWord("治疗经过及结果")),
ay: common_vendor.o(closeTitle),
az: common_vendor.o(openTitle),
aA: common_vendor.p({
round: 10,
zIndex: "9",
show: showTitle.value,
mode: "bottom"
}),
az: delType.value == "delDraft"
aB: delType.value == "delDraft"
}, delType.value == "delDraft" ? {} : delType.value == "saveDraft" ? {} : {}, {
aA: delType.value == "saveDraft",
aB: common_vendor.o(cancelDel),
aC: common_vendor.o(confirmDel),
aD: common_vendor.p({
aC: delType.value == "saveDraft",
aD: common_vendor.o(cancelDel),
aE: common_vendor.o(confirmDel),
aF: common_vendor.p({
show: showModal.value,
["mask-click-able"]: true
}),
aE: common_vendor.o(($event) => showCase.value = false),
aF: common_vendor.o(continueCase),
aG: level.value != 3,
aH: common_vendor.o(confirmCase),
aI: common_vendor.f(labelObj.list1, (item, k0, i0) => {
aG: common_vendor.o(($event) => showCase.value = false),
aH: common_vendor.o(continueCase),
aI: level.value != 3,
aJ: common_vendor.o(confirmCase),
aK: common_vendor.f(labelObj.list1, (item, k0, i0) => {
return {
a: "bfce3555-29-" + i0 + ",bfce3555-28",
b: common_vendor.p({
@@ -873,14 +916,14 @@ const _sfc_main = {
c: item.app_iden
};
}),
aJ: common_vendor.o(($event) => caseValue1.value = $event),
aK: common_vendor.p({
aL: common_vendor.o(($event) => caseValue1.value = $event),
aM: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue1.value
}),
aL: level.value == 1,
aM: common_vendor.f(labelObj.list2, (item, k0, i0) => {
aN: level.value == 1,
aO: common_vendor.f(labelObj.list2, (item, k0, i0) => {
return {
a: "bfce3555-31-" + i0 + ",bfce3555-30",
b: common_vendor.p({
@@ -891,14 +934,14 @@ const _sfc_main = {
c: item.app_iden
};
}),
aN: common_vendor.o(($event) => caseValue2.value = $event),
aO: common_vendor.p({
aP: common_vendor.o(($event) => caseValue2.value = $event),
aQ: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue2.value
}),
aP: level.value == 2,
aQ: common_vendor.f(labelObj.list3, (item, k0, i0) => {
aR: level.value == 2,
aS: common_vendor.f(labelObj.list3, (item, k0, i0) => {
return {
a: "bfce3555-33-" + i0 + ",bfce3555-32",
b: common_vendor.p({
@@ -909,15 +952,15 @@ const _sfc_main = {
c: item.app_iden
};
}),
aR: common_vendor.o(($event) => caseValue3.value = $event),
aS: common_vendor.p({
aT: common_vendor.o(($event) => caseValue3.value = $event),
aU: common_vendor.p({
iconPlacement: "right",
placement: "column",
modelValue: caseValue3.value
}),
aT: level.value == 3,
aU: common_vendor.o(closeCase),
aV: common_vendor.p({
aV: level.value == 3,
aW: common_vendor.o(closeCase),
aX: common_vendor.p({
round: 10,
zIndex: "9",
show: showCase.value,
File diff suppressed because one or more lines are too long
+4 -3
View File
@@ -259,7 +259,7 @@
height: calc(100vh - 700rpx);
}
#editorRes.data-v-bfce3555 {
min-height: 300rpx;
height: 600rpx;
}
#editorRes.data-v-bfce3555 .sv-editor-wrapper {
flex: 1;
@@ -508,6 +508,7 @@
display: flex;
flex-direction: column;
height: 100vh;
position: relative;
}
.upage.data-v-bfce3555 .u-image {
background: transparent !important;
@@ -584,8 +585,8 @@
}
.form.data-v-bfce3555 {
height: calc(100vh - 133rpx);
margin: -20rpx 0rpx 134rpx;
padding-bottom: 80rpx;
margin: -20rpx 0rpx 0rpx;
padding-bottom: 0rpx;
overflow-y: scroll;
}
.form .sickbox.data-v-bfce3555 {