8.3
This commit is contained in:
+362
-217
@@ -2,6 +2,7 @@
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const api_api = require("../../api/api.js");
|
||||
const utils_throttle = require("../../utils/throttle.js");
|
||||
const uni_modules_svEditor_components_common_utils = require("../../uni_modules/sv-editor/components/common/utils.js");
|
||||
if (!Array) {
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
@@ -42,8 +43,9 @@ const _sfc_main = {
|
||||
setup(__props) {
|
||||
const uToast = common_vendor.ref(null);
|
||||
const isLock = common_vendor.ref(false);
|
||||
common_vendor.ref(false);
|
||||
const isFlag = common_vendor.ref(false);
|
||||
const delId = common_vendor.ref("");
|
||||
common_vendor.ref(null);
|
||||
const showModal = common_vendor.ref(false);
|
||||
const delType = common_vendor.ref("delDraft");
|
||||
const isPublish = common_vendor.ref(false);
|
||||
@@ -56,7 +58,9 @@ const _sfc_main = {
|
||||
exchange_title: "",
|
||||
exchange_content: "",
|
||||
exchange_summary: "",
|
||||
case_exchange_vote: {},
|
||||
case_exchange_vote: {
|
||||
vote_title: ""
|
||||
},
|
||||
case_exchange_label: []
|
||||
});
|
||||
const voteData = common_vendor.reactive({
|
||||
@@ -68,6 +72,8 @@ const _sfc_main = {
|
||||
}
|
||||
]
|
||||
});
|
||||
const videoface = common_vendor.ref("https://caseplatform.oss-cn-beijing.aliyuncs.com/prod/static/shipinfengmian.jpg");
|
||||
const showQuit = common_vendor.ref(false);
|
||||
common_vendor.ref("");
|
||||
const isConfirmPublish = common_vendor.ref(false);
|
||||
const showVote = common_vendor.ref(false);
|
||||
@@ -81,11 +87,12 @@ const _sfc_main = {
|
||||
const isFocusInfo = common_vendor.ref(false);
|
||||
const isFocusResult = common_vendor.ref(false);
|
||||
const labelList = common_vendor.ref([]);
|
||||
const infoHeight = common_vendor.ref(100);
|
||||
const pEditorRef = common_vendor.ref(null);
|
||||
const infoHeight = common_vendor.ref(300);
|
||||
let inithtmlString = "<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p><br/><br/>";
|
||||
const infoHtml = common_vendor.ref(inithtmlString);
|
||||
const resultHtml = common_vendor.ref("");
|
||||
const resultHeight = common_vendor.ref(100);
|
||||
const resultHeight = common_vendor.ref(300);
|
||||
const showInfoOpacity = common_vendor.ref(true);
|
||||
const level = common_vendor.ref(1);
|
||||
const freshKey = common_vendor.ref(0);
|
||||
@@ -108,6 +115,24 @@ const _sfc_main = {
|
||||
list2: [],
|
||||
list3: []
|
||||
});
|
||||
const cancelQuit = () => {
|
||||
showQuit.value = false;
|
||||
};
|
||||
const confirmQuit = () => {
|
||||
showQuit.value = false;
|
||||
goBack();
|
||||
};
|
||||
const oldScrollTop = common_vendor.ref(0);
|
||||
const scrollTop = common_vendor.ref(0);
|
||||
const scroll = (e) => {
|
||||
oldScrollTop.value = e.detail.scrollTop;
|
||||
};
|
||||
const toTop = () => {
|
||||
scrollTop.value = oldScrollTop.value;
|
||||
common_vendor.nextTick$1(() => {
|
||||
scrollTop.value = 0;
|
||||
});
|
||||
};
|
||||
const goBack = () => {
|
||||
common_vendor.index.navigateBack({
|
||||
delta: 1
|
||||
@@ -118,39 +143,50 @@ const _sfc_main = {
|
||||
showEditor.value = false;
|
||||
};
|
||||
const changeEditor = (data) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:682", "content");
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:683", data.content);
|
||||
showEditor.value = false;
|
||||
if (data.type == "info") {
|
||||
infoHtml.value = data.content;
|
||||
form.exchange_content = data.content;
|
||||
infoHeight.value = 600;
|
||||
editorCtx.value.initHtml(data.content, async (videoUrl) => {
|
||||
let res = "";
|
||||
const fox = common_assets.videoface;
|
||||
res = await editorCtx.value.createCoverThumbnail(fox);
|
||||
showEditor.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:692", videoface.value);
|
||||
res = await editorCtx.value.createCoverThumbnail(videoface.value);
|
||||
return res;
|
||||
}, async () => {
|
||||
});
|
||||
setTimeout(() => {
|
||||
const query = common_vendor.wx$1.createSelectorQuery();
|
||||
query.select("#infoContent").boundingClientRect(function(rect) {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:658", rect.height);
|
||||
infoHeight.value = rect.height + 10;
|
||||
}).exec();
|
||||
}, 0);
|
||||
setTimeout(async () => {
|
||||
let info_str = await editorCtx.value.getLastContent();
|
||||
infoHtml.value = info_str.html;
|
||||
setTimeout(() => {
|
||||
const query = common_vendor.wx$1.createSelectorQuery();
|
||||
query.select("#infoContent").boundingClientRect(function(rect) {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:708", rect.height);
|
||||
infoHeight.value = rect.height + 10;
|
||||
}).exec();
|
||||
}, 1e3);
|
||||
}, 1e3);
|
||||
} else {
|
||||
resultHtml.value = data.content;
|
||||
form.exchange_summary = data.content;
|
||||
editorCtxResult.value.initHtml(data.content, async (videoUrl) => {
|
||||
let res = "";
|
||||
const fox = common_assets.videoface;
|
||||
res = await editorCtx.value.createCoverThumbnail(fox);
|
||||
showEditor.value = false;
|
||||
res = await editorCtxResult.value.createCoverThumbnail(videoface.value);
|
||||
return res;
|
||||
}, async () => {
|
||||
});
|
||||
setTimeout(() => {
|
||||
const query = common_vendor.wx$1.createSelectorQuery();
|
||||
query.select("#resultContent").boundingClientRect(function(rect) {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:680", rect.height);
|
||||
resultHeight.value = rect.height + 10;
|
||||
}).exec();
|
||||
}, 0);
|
||||
setTimeout(async () => {
|
||||
let info_str = await editorCtxResult.value.getLastContent();
|
||||
resultHtml.value = info_str.html;
|
||||
setTimeout(() => {
|
||||
const query = common_vendor.wx$1.createSelectorQuery();
|
||||
query.select("#resultContent").boundingClientRect(function(rect) {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:734", rect.height);
|
||||
resultHeight.value = rect.height + 10;
|
||||
toTop();
|
||||
}).exec();
|
||||
}, 1e3);
|
||||
}, 1e3);
|
||||
}
|
||||
};
|
||||
const openDraftList = () => {
|
||||
@@ -158,7 +194,7 @@ const _sfc_main = {
|
||||
showDraft.value = true;
|
||||
};
|
||||
const epaste = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:696", e);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:751", e);
|
||||
};
|
||||
const alertVote = () => {
|
||||
if (exchange_id.value) {
|
||||
@@ -219,13 +255,29 @@ const _sfc_main = {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (voteData.case_exchange_vote_option.length == 0) {
|
||||
if (voteData.case_exchange_vote_option.length < 2) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请添加投票选项",
|
||||
title: "请至少设置2个选项",
|
||||
icon: "none"
|
||||
});
|
||||
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;
|
||||
}
|
||||
}
|
||||
form.case_exchange_vote = voteData;
|
||||
showVote.value = false;
|
||||
};
|
||||
@@ -247,37 +299,34 @@ const _sfc_main = {
|
||||
}
|
||||
};
|
||||
const ready = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:814", e);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:870", 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"
|
||||
// })
|
||||
});
|
||||
toTop();
|
||||
};
|
||||
const readyResult = (e) => {
|
||||
editorCtxResult.value = e;
|
||||
toTop();
|
||||
setTimeout(() => {
|
||||
if (exchange_id.value) {
|
||||
getExchangeDetail(exchange_id.value);
|
||||
}
|
||||
common_vendor.index.hideLoading();
|
||||
});
|
||||
};
|
||||
const focusInfo = async () => {
|
||||
isFocusInfo.value = true;
|
||||
const res = await editorCtx.value.getLastContent();
|
||||
editorCotent.value = res.html;
|
||||
editorCotent.value = editorCtx.value.exportHtml(res.html);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:906", "focus");
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:907", "editorCotent.value");
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:908", editorCotent.value);
|
||||
showEditor.value = true;
|
||||
editorType.value = "info";
|
||||
};
|
||||
const focusResult = async () => {
|
||||
isFocusResult.value = true;
|
||||
const res = await editorCtxResult.value.getLastContent();
|
||||
editorCotent.value = res.html;
|
||||
editorCotent.value = editorCtxResult.value.exportHtml(res.html);
|
||||
editorType.value = "result";
|
||||
showEditor.value = true;
|
||||
};
|
||||
@@ -312,6 +361,7 @@ const _sfc_main = {
|
||||
}
|
||||
api_api.api.saveDraft(form).then((res2) => {
|
||||
isLock.value = false;
|
||||
goBack();
|
||||
common_vendor.index.showToast({
|
||||
title: "保存成功",
|
||||
icon: "none"
|
||||
@@ -321,7 +371,7 @@ const _sfc_main = {
|
||||
};
|
||||
const getExchangeDetail = (id) => {
|
||||
api_api.api.getExchangeDetail(id).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:954", res.data.data);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1017", res.data.data);
|
||||
let {
|
||||
exchange_content,
|
||||
exchange_title,
|
||||
@@ -329,23 +379,17 @@ const _sfc_main = {
|
||||
exchange_summary,
|
||||
exchange_vote
|
||||
} = res.data.data;
|
||||
editorCtx.value.initHtml(exchange_content, async (videoUrl) => {
|
||||
let res2;
|
||||
const fox = common_assets.videoface;
|
||||
res2 = await editorCtx.value.createCoverThumbnail(fox);
|
||||
return res2;
|
||||
changeEditor({
|
||||
type: "info",
|
||||
content: exchange_content
|
||||
});
|
||||
form.exchange_content = exchange_content;
|
||||
form.exchange_title = exchange_title;
|
||||
form.case_exchange_label = exchange_label ? exchange_label : [];
|
||||
labelList.value = exchange_label ? exchange_label : [];
|
||||
form.exchange_summary = exchange_summary;
|
||||
form.case_exchange_vote = exchange_vote;
|
||||
editorCtxResult.value.initHtml(exchange_summary, async (videoUrl) => {
|
||||
let res2;
|
||||
const fox = common_assets.videoface;
|
||||
res2 = await editorCtxResult.value.createCoverThumbnail(fox);
|
||||
return res2;
|
||||
form.case_exchange_vote = exchange_vote ? exchange_vote : {};
|
||||
changeEditor({
|
||||
type: "result",
|
||||
content: exchange_summary
|
||||
});
|
||||
Object.assign(voteData, exchange_vote);
|
||||
});
|
||||
@@ -359,14 +403,25 @@ const _sfc_main = {
|
||||
exchange_summary,
|
||||
exchange_vote
|
||||
} = draft;
|
||||
editorCtx.value.initHtml(exchange_content);
|
||||
form.exchange_content = exchange_content;
|
||||
if (exchange_content) {
|
||||
let html = editorCtx.value.exportHtml(exchange_content.replace("undefined", ""));
|
||||
changeEditor({
|
||||
type: "info",
|
||||
content: html
|
||||
});
|
||||
}
|
||||
if (exchange_content) {
|
||||
let html = editorCtxResult.value.exportHtml(exchange_summary.replace("undefined", ""));
|
||||
changeEditor({
|
||||
type: "result",
|
||||
content: html
|
||||
});
|
||||
}
|
||||
form.exchange_title = exchange_title;
|
||||
form.case_exchange_label = exchange_label;
|
||||
labelList.value = exchange_label;
|
||||
form.case_exchange_label = exchange_label ? exchange_label : [];
|
||||
labelList.value = exchange_label ? exchange_label : [];
|
||||
form.exchange_summary = exchange_summary;
|
||||
form.case_exchange_vote = exchange_vote;
|
||||
editorCtxResult.value.initHtml(exchange_summary);
|
||||
form.case_exchange_vote = exchange_vote ? exchange_vote : {};
|
||||
Object.assign(voteData, exchange_vote);
|
||||
showDraft.value = false;
|
||||
};
|
||||
@@ -377,7 +432,7 @@ const _sfc_main = {
|
||||
};
|
||||
const confirmDel = () => {
|
||||
showModal.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1022", delType.value);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1090", delType.value);
|
||||
if (delType.value == "delDraft") {
|
||||
delDraft(delId.value);
|
||||
} else if (delType.value == "saveDraft") {
|
||||
@@ -388,7 +443,7 @@ const _sfc_main = {
|
||||
showModal.value = false;
|
||||
if (delType.value == "saveDraft") {
|
||||
goBack();
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1034", "wee");
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1102", "wee");
|
||||
}
|
||||
};
|
||||
const cancelConfirmPublish = () => {
|
||||
@@ -404,20 +459,95 @@ const _sfc_main = {
|
||||
});
|
||||
};
|
||||
const alertSave = async () => {
|
||||
if (isPublish.value || exchange_id.value) {
|
||||
goBack();
|
||||
if (exchange_id.value) {
|
||||
showQuit.value = true;
|
||||
} 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 != 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 {
|
||||
if (isPublish.value) {
|
||||
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 != 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 {
|
||||
goBack();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
const confirmConfirmPublish = () => {
|
||||
isConfirmPublish.value = false;
|
||||
publish();
|
||||
};
|
||||
const publish = utils_throttle.throttle(async () => {
|
||||
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: "请输入标题",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (form.exchange_title.length > 40) {
|
||||
common_vendor.index.showToast({
|
||||
title: "标题不超过40个字",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (form.exchange_content == "") {
|
||||
common_vendor.index.showToast({
|
||||
title: "请编辑病例信息",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (form.exchange_content == initInfo) {
|
||||
common_vendor.index.showToast({
|
||||
title: "请编辑病例信息",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (!(form.case_exchange_vote && form.case_exchange_vote.vote_title)) {
|
||||
delete form.case_exchange_vote;
|
||||
}
|
||||
if (!form.case_exchange_label || form.case_exchange_label && form.case_exchange_label.length == 0) {
|
||||
delete form.case_exchange_label;
|
||||
}
|
||||
form.case_exchange_label = labelList.value;
|
||||
if (isLock.value)
|
||||
return false;
|
||||
isFlag.value = true;
|
||||
if (form.exchange_summary == "<p><br></p>") {
|
||||
form.exchange_summary == "";
|
||||
}
|
||||
if (exchange_id.value) {
|
||||
api_api.api.updateExchange(exchange_id.value, form).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "修改成功",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
isFlag.value = false;
|
||||
isPublish.value = true;
|
||||
common_vendor.index.navigateBack();
|
||||
});
|
||||
} else {
|
||||
api_api.api.addExchange(form).then((res) => {
|
||||
common_vendor.index.showToast({
|
||||
title: "发布成功",
|
||||
icon: "none",
|
||||
duration: 2e3
|
||||
});
|
||||
isFlag.value = false;
|
||||
isPublish.value = true;
|
||||
common_vendor.index.navigateBack();
|
||||
});
|
||||
}
|
||||
});
|
||||
const insertWord = (word) => {
|
||||
uni_modules_svEditor_components_common_utils.addText(word);
|
||||
showTitle.value = false;
|
||||
@@ -480,7 +610,7 @@ const _sfc_main = {
|
||||
break;
|
||||
}
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1360", caseValue1);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1446", caseValue1);
|
||||
getCaseLabel(2, e);
|
||||
};
|
||||
const groupChange2 = (e) => {
|
||||
@@ -579,7 +709,7 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
labelList.value = labelList.value.filter((item, index) => labelList.value.findIndex((i) => i.app_iden === item.app_iden) === index);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1478", labelList.value);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1564", labelList.value);
|
||||
showCase.value = false;
|
||||
};
|
||||
const closeCase = () => {
|
||||
@@ -602,14 +732,12 @@ const _sfc_main = {
|
||||
type: "loading",
|
||||
title: "正在加载",
|
||||
message: "正在加载",
|
||||
duration: 1e3
|
||||
duration: 1500
|
||||
});
|
||||
});
|
||||
common_vendor.onLoad((optoions) => {
|
||||
if (optoions.exchange_id) {
|
||||
exchange_id.value = optoions.exchange_id;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1511", 1111);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1512", exchange_id.value);
|
||||
common_vendor.onLoad((options) => {
|
||||
if (options.exchange_id) {
|
||||
exchange_id.value = options.exchange_id;
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
@@ -619,50 +747,54 @@ const _sfc_main = {
|
||||
}),
|
||||
b: showEditor.value
|
||||
}, showEditor.value ? {
|
||||
c: common_vendor.o(closeEditor),
|
||||
d: common_vendor.o(changeEditor),
|
||||
e: common_vendor.p({
|
||||
editorCotent: editorCotent.value,
|
||||
c: common_vendor.sr(pEditorRef, "bfce3555-1", {
|
||||
"k": "pEditorRef"
|
||||
}),
|
||||
d: common_vendor.o(closeEditor),
|
||||
e: common_vendor.o(changeEditor),
|
||||
f: common_vendor.p({
|
||||
editorCotent: editorType.value == "info" ? form.exchange_content : form.exchange_summary,
|
||||
editorType: editorType.value
|
||||
})
|
||||
} : {}, {
|
||||
f: common_vendor.p({
|
||||
g: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
color: "#000",
|
||||
size: "24"
|
||||
}),
|
||||
g: common_vendor.o(alertSave),
|
||||
h: common_vendor.o(($event) => form.exchange_title = $event),
|
||||
i: common_vendor.p({
|
||||
h: common_vendor.o(alertSave),
|
||||
i: common_vendor.t(exchange_id.value ? "编辑病例交流帖" : "发病例交流帖"),
|
||||
j: common_vendor.o(($event) => form.exchange_title = $event),
|
||||
k: common_vendor.p({
|
||||
autoHeight: true,
|
||||
placeholder: "输入标题,可包含患者信息、主诉",
|
||||
modelValue: form.exchange_title
|
||||
}),
|
||||
j: common_vendor.o(focusInfo),
|
||||
k: fromatImg(infoHtml.value),
|
||||
l: common_vendor.o(ready),
|
||||
m: common_vendor.o(changeInfoEditor),
|
||||
n: common_vendor.o(epaste),
|
||||
o: common_vendor.p({
|
||||
l: common_vendor.o(focusInfo),
|
||||
m: fromatImg(infoHtml.value),
|
||||
n: common_vendor.o(ready),
|
||||
o: common_vendor.o(changeInfoEditor),
|
||||
p: common_vendor.o(epaste),
|
||||
q: common_vendor.p({
|
||||
placeholder: "患者基本情况,检查结果,诊疗图片或视频",
|
||||
eid: "editor-id",
|
||||
pasteMode: "origin",
|
||||
readOnly: "true"
|
||||
}),
|
||||
p: showInfoOpacity.value ? 1 : "",
|
||||
q: infoHeight.value + "px",
|
||||
r: common_vendor.o(focusResult),
|
||||
s: fromatImg(resultHtml.value),
|
||||
t: common_vendor.o(readyResult),
|
||||
v: common_vendor.o(changeResEditor),
|
||||
w: common_vendor.p({
|
||||
r: showInfoOpacity.value ? 1 : "",
|
||||
s: infoHeight.value + "px",
|
||||
t: common_vendor.o(focusResult),
|
||||
v: fromatImg(resultHtml.value),
|
||||
w: common_vendor.o(readyResult),
|
||||
x: common_vendor.o(changeResEditor),
|
||||
y: common_vendor.p({
|
||||
placeholder: "分享经验和心得,如:诊断与鉴别诊断易错点,治疗过程难点,病例的相关知识总结及讨论等",
|
||||
eid: "editorResult",
|
||||
readOnly: true
|
||||
}),
|
||||
x: showOpacity.value ? 1 : "",
|
||||
y: resultHeight.value + "px",
|
||||
z: common_vendor.f(labelList.value, (item, index, i0) => {
|
||||
z: showOpacity.value ? 1 : "",
|
||||
A: resultHeight.value + "px",
|
||||
B: common_vendor.f(labelList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label_name),
|
||||
b: "bfce3555-6-" + i0,
|
||||
@@ -670,45 +802,50 @@ const _sfc_main = {
|
||||
d: item.app_iden
|
||||
};
|
||||
}),
|
||||
A: common_vendor.p({
|
||||
C: common_vendor.p({
|
||||
name: "close-circle",
|
||||
color: "#3CC7C0",
|
||||
size: "20"
|
||||
}),
|
||||
B: common_vendor.p({
|
||||
D: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#3CC7C0",
|
||||
size: "16"
|
||||
}),
|
||||
C: common_vendor.o(openLabelPop),
|
||||
D: common_vendor.o(openDraftList),
|
||||
E: form.case_exchange_vote.vote_title
|
||||
E: common_vendor.o(openLabelPop),
|
||||
F: scrollTop.value,
|
||||
G: common_vendor.o(scroll),
|
||||
H: !exchange_id.value
|
||||
}, !exchange_id.value ? {
|
||||
I: common_vendor.o(openDraftList)
|
||||
} : {}, {
|
||||
J: form.case_exchange_vote.vote_title
|
||||
}, form.case_exchange_vote.vote_title ? {
|
||||
F: common_vendor.p({
|
||||
K: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.voteOnImg),
|
||||
width: "47rpx",
|
||||
height: "47rpx"
|
||||
})
|
||||
} : {
|
||||
G: common_vendor.p({
|
||||
L: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.voteImg),
|
||||
width: "47rpx",
|
||||
height: "47rpx"
|
||||
})
|
||||
}, {
|
||||
H: form.case_exchange_vote.vote_title ? 1 : "",
|
||||
I: common_vendor.o(alertVote),
|
||||
J: common_vendor.o(($event) => isConfirmPublish.value = true),
|
||||
K: common_vendor.o(closeVote),
|
||||
L: common_vendor.o(saveVote),
|
||||
M: common_vendor.o(($event) => voteData.vote_title = $event),
|
||||
N: common_vendor.p({
|
||||
M: form.case_exchange_vote.vote_title ? 1 : "",
|
||||
N: common_vendor.o(alertVote),
|
||||
O: common_vendor.o(($event) => isConfirmPublish.value = true),
|
||||
P: common_vendor.o(closeVote),
|
||||
Q: common_vendor.o(saveVote),
|
||||
R: common_vendor.o(($event) => voteData.vote_title = $event),
|
||||
S: common_vendor.p({
|
||||
placeholder: "请输入投票标题",
|
||||
border: "surround",
|
||||
clearable: true,
|
||||
modelValue: voteData.vote_title
|
||||
}),
|
||||
O: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
|
||||
T: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
|
||||
return {
|
||||
a: "bfce3555-12-" + i0 + ",bfce3555-10",
|
||||
b: common_vendor.o(($event) => item.option_value = $event, index),
|
||||
@@ -723,59 +860,59 @@ const _sfc_main = {
|
||||
f: index
|
||||
};
|
||||
}),
|
||||
P: common_vendor.p({
|
||||
U: common_vendor.p({
|
||||
name: "minus-circle",
|
||||
color: "red",
|
||||
size: "28"
|
||||
}),
|
||||
Q: common_vendor.p({
|
||||
V: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#4B5563",
|
||||
size: "18"
|
||||
}),
|
||||
R: common_vendor.o(addOption),
|
||||
S: common_vendor.p({
|
||||
W: common_vendor.o(addOption),
|
||||
X: common_vendor.p({
|
||||
name: "minus",
|
||||
color: "#4B5563",
|
||||
size: "30rpx",
|
||||
bold: true
|
||||
}),
|
||||
T: common_vendor.o(($event) => changeDay("minus")),
|
||||
U: common_vendor.t(voteData.valid_day),
|
||||
V: common_vendor.p({
|
||||
Y: common_vendor.o(($event) => changeDay("minus")),
|
||||
Z: common_vendor.t(voteData.valid_day),
|
||||
aa: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#4B5563",
|
||||
size: "30rpx",
|
||||
bold: true
|
||||
}),
|
||||
W: common_vendor.o(($event) => changeDay("plus")),
|
||||
X: common_vendor.o(saveVote),
|
||||
Y: common_vendor.o(clearVote),
|
||||
Z: common_vendor.o(closeVote),
|
||||
aa: common_vendor.o(openVote),
|
||||
ab: common_vendor.p({
|
||||
ab: common_vendor.o(($event) => changeDay("plus")),
|
||||
ac: common_vendor.o(saveVote),
|
||||
ad: common_vendor.o(clearVote),
|
||||
ae: common_vendor.o(closeVote),
|
||||
af: common_vendor.o(openVote),
|
||||
ag: common_vendor.p({
|
||||
round: 10,
|
||||
show: showVote.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
ac: common_vendor.p({
|
||||
ah: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#4B5563",
|
||||
size: "20"
|
||||
}),
|
||||
ad: common_vendor.o(closeDraft),
|
||||
ae: draftList.value.length == 0
|
||||
ai: common_vendor.o(closeDraft),
|
||||
aj: draftList.value.length == 0
|
||||
}, draftList.value.length == 0 ? {
|
||||
af: common_vendor.p({
|
||||
ak: common_vendor.p({
|
||||
marginTop: "120rpx",
|
||||
text: "草稿箱为空",
|
||||
mode: "list",
|
||||
icon: common_vendor.unref(common_assets.draftImg)
|
||||
})
|
||||
} : {}, {
|
||||
ag: draftList.value.length > 0
|
||||
al: draftList.value.length > 0
|
||||
}, draftList.value.length > 0 ? {
|
||||
ah: common_vendor.f(draftList.value, (item, index, i0) => {
|
||||
am: 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
|
||||
@@ -794,136 +931,144 @@ const _sfc_main = {
|
||||
b: cell.label_name
|
||||
};
|
||||
})
|
||||
}) : item.exchange_vote ? {
|
||||
k: common_vendor.t(item.exchange_vote.vote_title)
|
||||
} : {}, {
|
||||
}) : item.exchange_vote ? common_vendor.e({
|
||||
k: item.exchange_vote
|
||||
}, item.exchange_vote ? {
|
||||
l: common_vendor.t(item.exchange_vote.vote_title)
|
||||
} : {}) : {}, {
|
||||
d: item.exchange_summary,
|
||||
g: item.exchange_label && item.exchange_label.length > 0,
|
||||
j: item.exchange_vote,
|
||||
l: common_vendor.t(fromatDay(item.updated_at)),
|
||||
m: "bfce3555-20-" + i0 + ",bfce3555-17",
|
||||
n: common_vendor.o(($event) => willDelDraft(item.draft_id), item.draft_id),
|
||||
o: "bfce3555-21-" + i0 + ",bfce3555-17",
|
||||
p: common_vendor.o(($event) => editDraft(index), item.draft_id),
|
||||
q: item.draft_id
|
||||
m: common_vendor.t(fromatDay(item.updated_at)),
|
||||
n: "bfce3555-20-" + i0 + ",bfce3555-17",
|
||||
o: common_vendor.o(($event) => willDelDraft(item.draft_id), item.draft_id),
|
||||
p: "bfce3555-21-" + i0 + ",bfce3555-17",
|
||||
q: common_vendor.o(($event) => editDraft(index), item.draft_id),
|
||||
r: item.draft_id
|
||||
});
|
||||
}),
|
||||
ai: common_vendor.p({
|
||||
an: common_vendor.p({
|
||||
name: "trash",
|
||||
color: "#4B5563",
|
||||
size: "16"
|
||||
}),
|
||||
aj: common_vendor.p({
|
||||
ao: common_vendor.p({
|
||||
name: "edit-pen",
|
||||
color: "#fff",
|
||||
size: "17"
|
||||
})
|
||||
} : {}, {
|
||||
ak: common_vendor.o(closeDraft),
|
||||
al: common_vendor.o(openDraft),
|
||||
am: common_vendor.p({
|
||||
ap: common_vendor.o(closeDraft),
|
||||
aq: common_vendor.o(openDraft),
|
||||
ar: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showDraft.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
an: common_vendor.p({
|
||||
as: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#4B5563",
|
||||
size: "20"
|
||||
}),
|
||||
ao: common_vendor.o(closeTitle),
|
||||
ap: common_vendor.o(insertAllWord),
|
||||
aq: common_vendor.p({
|
||||
at: common_vendor.o(closeTitle),
|
||||
av: common_vendor.o(insertAllWord),
|
||||
aw: common_vendor.p({
|
||||
name: "plus-circle",
|
||||
color: "#3CC7C0",
|
||||
size: "20"
|
||||
}),
|
||||
ar: common_vendor.o(insertAllWord),
|
||||
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(($event) => insertWord("治疗经过及结果")),
|
||||
az: common_vendor.o(closeTitle),
|
||||
aA: common_vendor.o(openTitle),
|
||||
aB: common_vendor.p({
|
||||
ax: common_vendor.o(insertAllWord),
|
||||
ay: common_vendor.o(($event) => insertWord("患者信息")),
|
||||
az: common_vendor.o(($event) => insertWord("主诉")),
|
||||
aA: common_vendor.o(($event) => insertWord("现病史及既往史")),
|
||||
aB: common_vendor.o(($event) => insertWord("检查")),
|
||||
aC: common_vendor.o(($event) => insertWord("临床诊断")),
|
||||
aD: common_vendor.o(($event) => insertWord("治疗经过及结果")),
|
||||
aE: common_vendor.o(closeTitle),
|
||||
aF: common_vendor.o(openTitle),
|
||||
aG: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showTitle.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
aC: delType.value == "delDraft"
|
||||
aH: delType.value == "delDraft"
|
||||
}, delType.value == "delDraft" ? {} : delType.value == "saveDraft" ? {} : {}, {
|
||||
aD: delType.value == "saveDraft",
|
||||
aE: common_vendor.o(cancelDel),
|
||||
aF: common_vendor.o(confirmDel),
|
||||
aG: common_vendor.p({
|
||||
aI: delType.value == "saveDraft",
|
||||
aJ: common_vendor.o(cancelDel),
|
||||
aK: common_vendor.o(confirmDel),
|
||||
aL: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true,
|
||||
zIndex: "99"
|
||||
}),
|
||||
aH: exchange_id.value
|
||||
}, exchange_id.value ? {} : {}, {
|
||||
aI: common_vendor.o(cancelConfirmPublish),
|
||||
aJ: common_vendor.o((...args) => _ctx.confirmConfirmPublish && _ctx.confirmConfirmPublish(...args)),
|
||||
aK: common_vendor.p({
|
||||
aM: common_vendor.o(cancelQuit),
|
||||
aN: common_vendor.o(confirmQuit),
|
||||
aO: common_vendor.p({
|
||||
show: showQuit.value,
|
||||
["mask-click-able"]: true,
|
||||
zIndex: "99"
|
||||
}),
|
||||
aP: common_vendor.o(cancelConfirmPublish),
|
||||
aQ: common_vendor.o(confirmConfirmPublish),
|
||||
aR: common_vendor.p({
|
||||
show: isConfirmPublish.value,
|
||||
["mask-click-able"]: true,
|
||||
zIndex: "99"
|
||||
}),
|
||||
aL: common_vendor.o(cancelCase),
|
||||
aM: common_vendor.o(confirmCase),
|
||||
aN: common_vendor.t(!caseValue1.label_name ? "请选择选项" : caseValue1.label_name),
|
||||
aO: common_vendor.p({
|
||||
aS: common_vendor.o(cancelCase),
|
||||
aT: common_vendor.o(confirmCase),
|
||||
aU: common_vendor.t(!caseValue1.label_name ? "请选择选项" : caseValue1.label_name),
|
||||
aV: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
aP: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
aQ: caseValue1.label_name && labelObj.list2.length > 0
|
||||
aW: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
aX: caseValue1.label_name && labelObj.list2.length > 0
|
||||
}, caseValue1.label_name && labelObj.list2.length > 0 ? {
|
||||
aR: common_vendor.t(!caseValue2.label_name ? "请选择选项" : caseValue2.label_name),
|
||||
aS: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
aT: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
} : {}, {
|
||||
aU: caseValue2.label_name && labelObj.list3.length > 0
|
||||
}, caseValue2.label_name && labelObj.list3.length > 0 ? {
|
||||
aV: common_vendor.t(!caseValue3.label_name ? "请选择选项" : caseValue3.label_name),
|
||||
aW: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
aX: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
} : {}, {
|
||||
aY: freshKey.value,
|
||||
aY: common_vendor.t(!caseValue2.label_name ? "请选择选项" : caseValue2.label_name),
|
||||
aZ: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
ba: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
} : {}, {
|
||||
bb: caseValue2.label_name && labelObj.list3.length > 0
|
||||
}, caseValue2.label_name && labelObj.list3.length > 0 ? {
|
||||
bc: common_vendor.t(!caseValue3.label_name ? "请选择选项" : caseValue3.label_name),
|
||||
bd: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
be: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
} : {}, {
|
||||
bf: freshKey.value,
|
||||
bg: common_vendor.p({
|
||||
current: level.value - 1,
|
||||
direction: "column"
|
||||
}),
|
||||
ba: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
bh: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-36-" + i0 + ",bfce3555-35",
|
||||
a: "bfce3555-37-" + i0 + ",bfce3555-36",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
name: item.app_iden
|
||||
}),
|
||||
c: item.app_iden
|
||||
c: item.app_iden,
|
||||
d: item.label_name != "热门话题"
|
||||
};
|
||||
}),
|
||||
bb: common_vendor.o(groupChange1),
|
||||
bc: common_vendor.o(($event) => caseValue1.app_iden = $event),
|
||||
bd: common_vendor.p({
|
||||
bi: common_vendor.o(groupChange1),
|
||||
bj: common_vendor.o(($event) => caseValue1.app_iden = $event),
|
||||
bk: common_vendor.p({
|
||||
name: "group1",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.app_iden
|
||||
}),
|
||||
be: level.value == 1,
|
||||
bf: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
bl: level.value == 1,
|
||||
bm: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-38-" + i0 + ",bfce3555-37",
|
||||
a: "bfce3555-39-" + i0 + ",bfce3555-38",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
@@ -932,18 +1077,18 @@ const _sfc_main = {
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
bg: common_vendor.o(groupChange2),
|
||||
bh: common_vendor.o(($event) => caseValue2.app_iden = $event),
|
||||
bi: common_vendor.p({
|
||||
bn: common_vendor.o(groupChange2),
|
||||
bo: common_vendor.o(($event) => caseValue2.app_iden = $event),
|
||||
bp: common_vendor.p({
|
||||
name: "group2",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.app_iden
|
||||
}),
|
||||
bj: level.value == 2,
|
||||
bk: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
bq: level.value == 2,
|
||||
br: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-40-" + i0 + ",bfce3555-39",
|
||||
a: "bfce3555-41-" + i0 + ",bfce3555-40",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
@@ -952,17 +1097,17 @@ const _sfc_main = {
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
bl: common_vendor.o(groupChange3),
|
||||
bm: common_vendor.o(($event) => caseValue3.app_iden = $event),
|
||||
bn: common_vendor.p({
|
||||
bs: common_vendor.o(groupChange3),
|
||||
bt: common_vendor.o(($event) => caseValue3.app_iden = $event),
|
||||
bv: common_vendor.p({
|
||||
name: "group3",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.app_iden
|
||||
}),
|
||||
bo: level.value == 3,
|
||||
bp: common_vendor.o(closeCase),
|
||||
bq: common_vendor.p({
|
||||
bw: level.value == 3,
|
||||
bx: common_vendor.o(closeCase),
|
||||
by: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
closeOnClickOverlay: false,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+8
-2
@@ -270,6 +270,7 @@
|
||||
}
|
||||
#editor.data-v-bfce3555 {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
padding: 0 10rpx;
|
||||
min-height: 600rpx;
|
||||
}
|
||||
@@ -285,7 +286,11 @@
|
||||
opacity: 0;
|
||||
}
|
||||
#editor .infoContent.data-v-bfce3555 {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
background: #fff;
|
||||
margin: 0 32rpx;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
/* position: relative;
|
||||
z-index:2; */
|
||||
@@ -307,7 +312,7 @@
|
||||
top: 0;
|
||||
width: 100%;
|
||||
bottom: 0;
|
||||
z-index: 1;
|
||||
z-index: -1;
|
||||
opacity: 1;
|
||||
}
|
||||
#editorRes .editorcon.active.data-v-bfce3555 {
|
||||
@@ -315,6 +320,7 @@
|
||||
}
|
||||
#editorRes .resultContent.data-v-bfce3555 {
|
||||
margin: 0 32rpx;
|
||||
word-wrap: break-word;
|
||||
word-break: break-all;
|
||||
}
|
||||
#editorRes .mask.data-v-bfce3555 {
|
||||
@@ -636,9 +642,9 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-right: 25rpx;
|
||||
}
|
||||
.bottom .left .vote.data-v-bfce3555 {
|
||||
margin-left: 25rpx;
|
||||
width: 162rpx;
|
||||
height: 86rpx;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user