111117.29
This commit is contained in:
+200
-320
@@ -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_u_icon2 = common_vendor.resolveComponent("u-icon");
|
||||
@@ -31,9 +32,10 @@ const _easycom_up_steps = () => "../../node-modules/uview-plus/components/u-step
|
||||
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_empty + _easycom_up_overlay + _easycom_up_steps_item + _easycom_up_steps + _easycom_up_radio + _easycom_up_radio_group)();
|
||||
(common_vendor.unref(pEditor) + _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_steps_item + _easycom_up_steps + _easycom_up_radio + _easycom_up_radio_group)();
|
||||
}
|
||||
const svEditor = () => "../../uni_modules/sv-editor/components/sv-editor/sv-editor.js";
|
||||
const pEditor = () => "../../components/pEditor/pEditor.js";
|
||||
const _sfc_main = {
|
||||
__name: "publish",
|
||||
setup(__props) {
|
||||
@@ -44,7 +46,9 @@ const _sfc_main = {
|
||||
const delType = common_vendor.ref("delDraft");
|
||||
const isPublish = common_vendor.ref(false);
|
||||
const exchange_id = common_vendor.ref("");
|
||||
const bottomHeight = common_vendor.ref(200);
|
||||
const showEditor = common_vendor.ref(false);
|
||||
const editorType = common_vendor.ref("info");
|
||||
common_vendor.ref(200);
|
||||
const form = common_vendor.reactive({
|
||||
exchange_title: "",
|
||||
exchange_content: "",
|
||||
@@ -66,7 +70,7 @@ const _sfc_main = {
|
||||
const showDraft = common_vendor.ref(false);
|
||||
const showTitle = common_vendor.ref(false);
|
||||
const draftList = common_vendor.ref([]);
|
||||
const imgList = common_vendor.ref([]);
|
||||
common_vendor.ref([]);
|
||||
common_vendor.ref([]);
|
||||
const editorCtx = common_vendor.ref(null);
|
||||
const editorCtxResult = common_vendor.ref(null);
|
||||
@@ -99,12 +103,48 @@ const _sfc_main = {
|
||||
delta: 1
|
||||
});
|
||||
};
|
||||
const editorCotent = common_vendor.ref("");
|
||||
const closeEditor = () => {
|
||||
showEditor.value = false;
|
||||
};
|
||||
const changeEditor = (data) => {
|
||||
showEditor.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:592", data);
|
||||
if (data.type == "info") {
|
||||
editorCtx.value.initHtml(data.content, async (videoUrl) => {
|
||||
let res = "";
|
||||
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
|
||||
res = await editorCtx.value.createCoverThumbnail(fox);
|
||||
showEditor.value = false;
|
||||
return res;
|
||||
});
|
||||
} else {
|
||||
editorCtxResult.value.initHtml(data.content, async (videoUrl) => {
|
||||
let res = "";
|
||||
const fox = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
|
||||
res = await editorCtx.value.createCoverThumbnail(fox);
|
||||
showEditor.value = false;
|
||||
return res;
|
||||
});
|
||||
}
|
||||
};
|
||||
const openDraftList = () => {
|
||||
getDraftList();
|
||||
showDraft.value = true;
|
||||
};
|
||||
const epaste = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:585", e);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:633", e);
|
||||
};
|
||||
const alertVote = () => {
|
||||
if (exchange_id.value) {
|
||||
common_vendor.index.showToast({
|
||||
title: "投票发布后不能编辑",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
} else {
|
||||
showVote.value = true;
|
||||
}
|
||||
};
|
||||
const addOption = () => {
|
||||
voteData.case_exchange_vote_option.push({
|
||||
@@ -182,7 +222,7 @@ const _sfc_main = {
|
||||
}
|
||||
};
|
||||
const ready = (e) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:689", e);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:749", 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);
|
||||
@@ -192,6 +232,7 @@ const _sfc_main = {
|
||||
selector: "#form"
|
||||
// })
|
||||
});
|
||||
common_vendor.index.hideLoading();
|
||||
};
|
||||
const readyResult = (e) => {
|
||||
editorCtxResult.value = e;
|
||||
@@ -201,18 +242,22 @@ const _sfc_main = {
|
||||
}
|
||||
});
|
||||
};
|
||||
const clearMuBan = () => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:715", "清空模板");
|
||||
editorCtx.value.initHtml("");
|
||||
const changeSv = () => {
|
||||
showEditor.value = false;
|
||||
};
|
||||
const focusInfo = () => {
|
||||
const focusInfo = async () => {
|
||||
isFocusInfo.value = true;
|
||||
const res = await editorCtx.value.getLastContent();
|
||||
editorCotent.value = res.html;
|
||||
showEditor.value = true;
|
||||
editorType.value = "info";
|
||||
};
|
||||
const blurInfo = () => {
|
||||
isFocusInfo.value = false;
|
||||
};
|
||||
const focusResult = () => {
|
||||
const focusResult = async () => {
|
||||
isFocusResult.value = true;
|
||||
const res = await editorCtxResult.value.getLastContent();
|
||||
editorCotent.value = res.html;
|
||||
editorType.value = "result";
|
||||
showEditor.value = true;
|
||||
};
|
||||
const closeVote = () => {
|
||||
showVote.value = false;
|
||||
@@ -232,24 +277,6 @@ const _sfc_main = {
|
||||
const openTitle = () => {
|
||||
showTitle.value = true;
|
||||
};
|
||||
const alertTitle = () => {
|
||||
if (isFocusInfo.value) {
|
||||
showTitle.value = true;
|
||||
}
|
||||
};
|
||||
const pFun = (files) => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在上传图片...",
|
||||
mask: true
|
||||
});
|
||||
let promiseFun = [];
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
promiseFun.push(handleUpload(files[i]));
|
||||
}
|
||||
Promise.all(promiseFun).then((res) => {
|
||||
common_vendor.index.hideLoading();
|
||||
});
|
||||
};
|
||||
const saveDraft = async () => {
|
||||
if (isLock.value)
|
||||
return false;
|
||||
@@ -272,7 +299,7 @@ const _sfc_main = {
|
||||
};
|
||||
const getExchangeDetail = (id) => {
|
||||
api_api.api.getExchangeDetail(id).then((res) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:816", res.data.data);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:890", res.data.data);
|
||||
let {
|
||||
exchange_content,
|
||||
exchange_title,
|
||||
@@ -328,7 +355,7 @@ const _sfc_main = {
|
||||
};
|
||||
const confirmDel = () => {
|
||||
showModal.value = false;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:884", delType.value);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:958", delType.value);
|
||||
if (delType.value == "delDraft") {
|
||||
delDraft(delId.value);
|
||||
} else if (delType.value == "saveDraft") {
|
||||
@@ -339,6 +366,7 @@ const _sfc_main = {
|
||||
showModal.value = false;
|
||||
if (delType.value == "saveDraft") {
|
||||
goBack();
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:970", "wee");
|
||||
}
|
||||
};
|
||||
const delDraft = (id) => {
|
||||
@@ -365,7 +393,8 @@ const _sfc_main = {
|
||||
}
|
||||
}
|
||||
};
|
||||
const publish = async () => {
|
||||
const publish = utils_throttle.throttle(async () => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1012", 3333);
|
||||
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({
|
||||
@@ -374,6 +403,13 @@ const _sfc_main = {
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if (form.exchange_title.length > 40) {
|
||||
common_vendor.index.showToast({
|
||||
title: "标题不超过40个字",
|
||||
icon: "none"
|
||||
});
|
||||
return false;
|
||||
}
|
||||
const res = await editorCtx.value.getLastContent();
|
||||
let html = editorCtx.value.exportHtml(res.html);
|
||||
if (html == initInfo) {
|
||||
@@ -420,45 +456,7 @@ const _sfc_main = {
|
||||
common_vendor.index.navigateBack();
|
||||
});
|
||||
}
|
||||
};
|
||||
const handleUpload = (file) => {
|
||||
api_api.api.getOss({
|
||||
scene: 1
|
||||
}).then((rep) => {
|
||||
let result = rep.data;
|
||||
if (result.code == 200) {
|
||||
let { access_id, dir, policy, signature, host } = result.data;
|
||||
let time = common_vendor.dayjs().format("YYYYMMDDHHmmss");
|
||||
let random = generateRandomNumber();
|
||||
let filename = time + random;
|
||||
let imgType = "." + getImageFormat(file);
|
||||
return new Promise((resolve, reject) => {
|
||||
common_vendor.index.uploadFile({
|
||||
url: host,
|
||||
// 仅为示例,非真实的接口地址
|
||||
filePath: file,
|
||||
name: "file",
|
||||
formData: {
|
||||
OSSAccessKeyId: access_id,
|
||||
policy,
|
||||
key: dir + time + random + imgType,
|
||||
signature
|
||||
},
|
||||
success(res) {
|
||||
if (res.statusCode === 204) {
|
||||
let url = host + "/" + dir + filename + imgType;
|
||||
imgList.value.push(url);
|
||||
uni_modules_svEditor_components_common_utils.addImage([url]);
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1028", err);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
});
|
||||
const insertWord = (word) => {
|
||||
uni_modules_svEditor_components_common_utils.addText(word);
|
||||
showTitle.value = false;
|
||||
@@ -477,110 +475,6 @@ const _sfc_main = {
|
||||
});
|
||||
showTitle.value = false;
|
||||
};
|
||||
const generateRandomNumber = () => {
|
||||
let randomNumber = Math.floor(1e3 + Math.random() * 9e3);
|
||||
return randomNumber;
|
||||
};
|
||||
const getImageFormat = (imageUrl) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1058", imageUrl);
|
||||
const lastDotIndex = imageUrl.lastIndexOf(".");
|
||||
if (lastDotIndex !== -1) {
|
||||
return imageUrl.substring(lastDotIndex + 1);
|
||||
}
|
||||
return "unknown";
|
||||
};
|
||||
const insertImage = (file) => {
|
||||
if (!(!isFocusInfo.value && !isFocusResult.value)) {
|
||||
common_vendor.index.chooseImage({
|
||||
count: 9,
|
||||
//默认9
|
||||
sizeType: ["original", "compressed"],
|
||||
//可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ["album"],
|
||||
//从相册选择
|
||||
extension: [".jpg", ".png", ".jpeg"],
|
||||
success: function(res) {
|
||||
pFun(res.tempFilePaths);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
const insertVideo = (file) => {
|
||||
if (!(!isFocusInfo.value && !isFocusResult.value)) {
|
||||
common_vendor.index.chooseVideo({
|
||||
count: 5,
|
||||
//默认9//可以指定是原图还是压缩图,默认二者都有
|
||||
sourceType: ["album"],
|
||||
//从相册选择
|
||||
extension: [".mp4", ".webm", ".ogg"],
|
||||
success: function(res) {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1085", res.tempFilePath);
|
||||
HandleAddVideo(res.tempFilePath);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
const HandleAddVideo = async (file) => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在上传视频...",
|
||||
mask: true
|
||||
});
|
||||
const videos = await uni_modules_svEditor_components_common_utils.addVideo(async (editorCtx2) => {
|
||||
return new Promise((resolve) => {
|
||||
api_api.api.getOss({
|
||||
scene: 2
|
||||
}).then((rep) => {
|
||||
let result = rep.data;
|
||||
if (result.code == 200) {
|
||||
let { access_id, dir, policy, signature, host } = result.data;
|
||||
let time = common_vendor.dayjs().format("YYYYMMDDHHmmss");
|
||||
let random = generateRandomNumber();
|
||||
let filename = time + random;
|
||||
let imgType = "." + getImageFormat(file);
|
||||
return new Promise((res, reject) => {
|
||||
common_vendor.index.uploadFile({
|
||||
url: host,
|
||||
// 仅为示例,非真实的接口地址
|
||||
filePath: file,
|
||||
name: "file",
|
||||
formData: {
|
||||
OSSAccessKeyId: access_id,
|
||||
policy,
|
||||
key: dir + time + random + imgType,
|
||||
signature
|
||||
},
|
||||
async success(res2) {
|
||||
if (res2.statusCode === 204) {
|
||||
let url = host + "/" + dir + filename + imgType;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1127", editorCtx2);
|
||||
let imgUrl = "https://cn.bing.com//th?id=OHR.FlamingosNamibia_ZH-CN3639748956_1920x1080.jpg";
|
||||
const fileThumbnail = await editorCtx2.createCoverThumbnail(
|
||||
imgUrl
|
||||
);
|
||||
resolve([
|
||||
{
|
||||
videoUrl: url,
|
||||
videoImg: fileThumbnail
|
||||
}
|
||||
]);
|
||||
}
|
||||
},
|
||||
fail: (err) => {
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1142", err);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
if (videos) {
|
||||
common_vendor.index.showLoading();
|
||||
common_vendor.index.showToast({ title: "添加视频成功", icon: "success" });
|
||||
} else {
|
||||
common_vendor.index.showToast({ title: "添加视频失败", icon: "error" });
|
||||
}
|
||||
};
|
||||
const getDraftList = () => {
|
||||
api_api.api.getDraftList().then((res) => {
|
||||
draftList.value = res.data.data.data;
|
||||
@@ -607,7 +501,7 @@ const _sfc_main = {
|
||||
break;
|
||||
}
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1187", caseValue1);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1271", caseValue1);
|
||||
getCaseLabel(2, e);
|
||||
};
|
||||
const groupChange2 = (e) => {
|
||||
@@ -706,7 +600,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:1305", labelList.value);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1389", labelList.value);
|
||||
showCase.value = false;
|
||||
};
|
||||
const closeCase = () => {
|
||||
@@ -725,49 +619,57 @@ const _sfc_main = {
|
||||
getCaseLabel(1, 0);
|
||||
};
|
||||
common_vendor.onLoad((optoions) => {
|
||||
common_vendor.index.showLoading({
|
||||
title: "正在加载中...",
|
||||
mask: true
|
||||
});
|
||||
if (optoions.exchange_id) {
|
||||
exchange_id.value = optoions.exchange_id;
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1328", 1111);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1329", exchange_id.value);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1416", 1111);
|
||||
common_vendor.index.__f__("log", "at pages/publish/publish.vue:1417", exchange_id.value);
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
a: showEditor.value
|
||||
}, showEditor.value ? {
|
||||
b: common_vendor.o(closeEditor),
|
||||
c: common_vendor.o(changeEditor),
|
||||
d: common_vendor.p({
|
||||
editorCotent: editorCotent.value,
|
||||
editorType: editorType.value
|
||||
})
|
||||
} : {}, {
|
||||
e: common_vendor.p({
|
||||
name: "arrow-left",
|
||||
color: "#000",
|
||||
size: "24"
|
||||
}),
|
||||
b: common_vendor.o(alertSave),
|
||||
c: common_vendor.o(($event) => form.exchange_title = $event),
|
||||
d: common_vendor.p({
|
||||
f: common_vendor.o(alertSave),
|
||||
g: common_vendor.o(($event) => form.exchange_title = $event),
|
||||
h: common_vendor.p({
|
||||
autoHeight: true,
|
||||
placeholder: "输入标题,可包含患者信息、主诉",
|
||||
modelValue: form.exchange_title
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
name: "trash",
|
||||
color: "#6B7280",
|
||||
size: "18"
|
||||
}),
|
||||
f: common_vendor.o(clearMuBan),
|
||||
g: common_vendor.o(ready),
|
||||
h: common_vendor.o(focusInfo),
|
||||
i: common_vendor.o(blurInfo),
|
||||
j: common_vendor.o(epaste),
|
||||
k: common_vendor.p({
|
||||
i: common_vendor.o(focusInfo),
|
||||
j: common_vendor.o(ready),
|
||||
k: common_vendor.o(changeSv),
|
||||
l: common_vendor.o(epaste),
|
||||
m: common_vendor.p({
|
||||
placeholder: "患者基本情况,检查结果,诊疗图片或视频",
|
||||
eid: "editor-id",
|
||||
pasteMode: "origin"
|
||||
pasteMode: "origin",
|
||||
readOnly: "true"
|
||||
}),
|
||||
l: common_vendor.o(readyResult),
|
||||
m: common_vendor.o(focusResult),
|
||||
n: common_vendor.o(focusResult),
|
||||
o: common_vendor.p({
|
||||
o: common_vendor.o(readyResult),
|
||||
p: common_vendor.p({
|
||||
placeholder: "分享经验和心得,如:诊断与鉴别诊断易错点,治疗过程难点,病例的相关知识总结及讨论等",
|
||||
eid: "editorResult"
|
||||
eid: "editorResult",
|
||||
readOnly: true
|
||||
}),
|
||||
p: common_vendor.f(labelList.value, (item, index, i0) => {
|
||||
q: common_vendor.f(labelList.value, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.label_name),
|
||||
b: "bfce3555-5-" + i0,
|
||||
@@ -775,60 +677,37 @@ const _sfc_main = {
|
||||
d: item.app_iden
|
||||
};
|
||||
}),
|
||||
q: common_vendor.p({
|
||||
r: common_vendor.p({
|
||||
name: "close-circle",
|
||||
color: "#3CC7C0",
|
||||
size: "20"
|
||||
}),
|
||||
r: common_vendor.p({
|
||||
s: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#3CC7C0",
|
||||
size: "16"
|
||||
}),
|
||||
s: common_vendor.o(openLabelPop),
|
||||
t: bottomHeight.value + "rpx",
|
||||
v: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.photoImg),
|
||||
width: "32rpx",
|
||||
height: "32rpx"
|
||||
}),
|
||||
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"
|
||||
}),
|
||||
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"
|
||||
}),
|
||||
C: !isFocusInfo.value ? 1 : "",
|
||||
D: common_vendor.o(alertTitle),
|
||||
E: common_vendor.o(openDraftList),
|
||||
F: common_vendor.p({
|
||||
t: common_vendor.o(openLabelPop),
|
||||
v: common_vendor.o(openDraftList),
|
||||
w: common_vendor.p({
|
||||
src: common_vendor.unref(common_assets.voteImg),
|
||||
width: "47rpx",
|
||||
height: "47rpx"
|
||||
}),
|
||||
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({
|
||||
x: common_vendor.o(alertVote),
|
||||
y: common_vendor.o((...args) => common_vendor.unref(publish) && common_vendor.unref(publish)(...args)),
|
||||
z: common_vendor.o(closeVote),
|
||||
A: common_vendor.o(saveVote),
|
||||
B: common_vendor.o(($event) => voteData.vote_title = $event),
|
||||
C: common_vendor.p({
|
||||
placeholder: "请输入投票标题",
|
||||
border: "surround",
|
||||
clearable: true,
|
||||
modelValue: voteData.vote_title
|
||||
}),
|
||||
N: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
|
||||
D: common_vendor.f(voteData.case_exchange_vote_option, (item, index, i0) => {
|
||||
return {
|
||||
a: "bfce3555-13-" + i0 + ",bfce3555-11",
|
||||
a: "bfce3555-10-" + i0 + ",bfce3555-8",
|
||||
b: common_vendor.o(($event) => item.option_value = $event, index),
|
||||
c: common_vendor.p({
|
||||
placeholder: "输入选项,建议少于16个字",
|
||||
@@ -836,64 +715,64 @@ const _sfc_main = {
|
||||
clearable: true,
|
||||
modelValue: item.option_value
|
||||
}),
|
||||
d: "bfce3555-14-" + i0 + ",bfce3555-11",
|
||||
d: "bfce3555-11-" + i0 + ",bfce3555-8",
|
||||
e: common_vendor.o(($event) => delOption(index), index),
|
||||
f: index
|
||||
};
|
||||
}),
|
||||
O: common_vendor.p({
|
||||
E: common_vendor.p({
|
||||
name: "minus-circle",
|
||||
color: "red",
|
||||
size: "28"
|
||||
}),
|
||||
P: common_vendor.p({
|
||||
F: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#4B5563",
|
||||
size: "18"
|
||||
}),
|
||||
Q: common_vendor.o(addOption),
|
||||
R: common_vendor.p({
|
||||
G: common_vendor.o(addOption),
|
||||
H: common_vendor.p({
|
||||
name: "minus",
|
||||
color: "#4B5563",
|
||||
size: "30rpx",
|
||||
bold: true
|
||||
}),
|
||||
S: common_vendor.o(($event) => changeDay("minus")),
|
||||
T: common_vendor.t(voteData.valid_day),
|
||||
U: common_vendor.p({
|
||||
I: common_vendor.o(($event) => changeDay("minus")),
|
||||
J: common_vendor.t(voteData.valid_day),
|
||||
K: common_vendor.p({
|
||||
name: "plus",
|
||||
color: "#4B5563",
|
||||
size: "30rpx",
|
||||
bold: true
|
||||
}),
|
||||
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({
|
||||
L: common_vendor.o(($event) => changeDay("plus")),
|
||||
M: common_vendor.o(saveVote),
|
||||
N: common_vendor.o(clearVote),
|
||||
O: common_vendor.o(closeVote),
|
||||
P: common_vendor.o(openVote),
|
||||
Q: common_vendor.p({
|
||||
round: 10,
|
||||
show: showVote.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
ab: common_vendor.p({
|
||||
R: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#4B5563",
|
||||
size: "20"
|
||||
}),
|
||||
ac: common_vendor.o(closeDraft),
|
||||
ad: draftList.value.length == 0
|
||||
S: common_vendor.o(closeDraft),
|
||||
T: draftList.value.length == 0
|
||||
}, draftList.value.length == 0 ? {
|
||||
ae: common_vendor.p({
|
||||
U: common_vendor.p({
|
||||
marginTop: "120rpx",
|
||||
text: "草稿箱为空",
|
||||
mode: "list",
|
||||
icon: common_vendor.unref(common_assets.draftImg)
|
||||
})
|
||||
} : {}, {
|
||||
af: draftList.value.length > 0
|
||||
V: draftList.value.length > 0
|
||||
}, draftList.value.length > 0 ? {
|
||||
ag: common_vendor.f(draftList.value, (item, index, i0) => {
|
||||
W: 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
|
||||
@@ -919,99 +798,100 @@ 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-21-" + i0 + ",bfce3555-18",
|
||||
m: "bfce3555-18-" + i0 + ",bfce3555-15",
|
||||
n: common_vendor.o(($event) => willDelDraft(item.draft_id), item.draft_id),
|
||||
o: "bfce3555-22-" + i0 + ",bfce3555-18",
|
||||
o: "bfce3555-19-" + i0 + ",bfce3555-15",
|
||||
p: common_vendor.o(($event) => editDraft(index), item.draft_id),
|
||||
q: item.draft_id
|
||||
});
|
||||
}),
|
||||
ah: common_vendor.p({
|
||||
X: common_vendor.p({
|
||||
name: "trash",
|
||||
color: "#4B5563",
|
||||
size: "16"
|
||||
}),
|
||||
ai: common_vendor.p({
|
||||
Y: common_vendor.p({
|
||||
name: "edit-pen",
|
||||
color: "#fff",
|
||||
size: "17"
|
||||
})
|
||||
} : {}, {
|
||||
aj: common_vendor.o(closeDraft),
|
||||
ak: common_vendor.o(openDraft),
|
||||
al: common_vendor.p({
|
||||
Z: common_vendor.o(closeDraft),
|
||||
aa: common_vendor.o(openDraft),
|
||||
ab: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showDraft.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
am: common_vendor.p({
|
||||
ac: common_vendor.p({
|
||||
name: "close",
|
||||
color: "#4B5563",
|
||||
size: "20"
|
||||
}),
|
||||
an: common_vendor.o(closeTitle),
|
||||
ao: common_vendor.o(insertAllWord),
|
||||
ap: common_vendor.p({
|
||||
ad: common_vendor.o(closeTitle),
|
||||
ae: common_vendor.o(insertAllWord),
|
||||
af: common_vendor.p({
|
||||
name: "plus-circle",
|
||||
color: "#3CC7C0",
|
||||
size: "20"
|
||||
}),
|
||||
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({
|
||||
ag: common_vendor.o(insertAllWord),
|
||||
ah: common_vendor.o(($event) => insertWord("患者信息")),
|
||||
ai: common_vendor.o(($event) => insertWord("主诉")),
|
||||
aj: common_vendor.o(($event) => insertWord("现病史及既往史")),
|
||||
ak: common_vendor.o(($event) => insertWord("检查")),
|
||||
al: common_vendor.o(($event) => insertWord("临床诊断")),
|
||||
am: common_vendor.o(($event) => insertWord("治疗经过及结果")),
|
||||
an: common_vendor.o(closeTitle),
|
||||
ao: common_vendor.o(openTitle),
|
||||
ap: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
show: showTitle.value,
|
||||
mode: "bottom"
|
||||
}),
|
||||
aB: delType.value == "delDraft"
|
||||
aq: delType.value == "delDraft"
|
||||
}, delType.value == "delDraft" ? {} : delType.value == "saveDraft" ? {} : {}, {
|
||||
aC: delType.value == "saveDraft",
|
||||
aD: common_vendor.o(cancelDel),
|
||||
aE: common_vendor.o(confirmDel),
|
||||
aF: common_vendor.p({
|
||||
ar: delType.value == "saveDraft",
|
||||
as: common_vendor.o(cancelDel),
|
||||
at: common_vendor.o(confirmDel),
|
||||
av: common_vendor.p({
|
||||
show: showModal.value,
|
||||
["mask-click-able"]: true
|
||||
["mask-click-able"]: true,
|
||||
zIndex: "99"
|
||||
}),
|
||||
aG: common_vendor.o(cancelCase),
|
||||
aH: common_vendor.o(confirmCase),
|
||||
aI: common_vendor.t(!caseValue1.label_name ? "请选择选项" : caseValue1.label_name),
|
||||
aJ: common_vendor.p({
|
||||
aw: common_vendor.o(cancelCase),
|
||||
ax: common_vendor.o(confirmCase),
|
||||
ay: common_vendor.t(!caseValue1.label_name ? "请选择选项" : caseValue1.label_name),
|
||||
az: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
aK: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
aL: caseValue1.label_name && labelObj.list2.length > 0
|
||||
aA: common_vendor.o(($event) => openCaseLevel("1")),
|
||||
aB: caseValue1.label_name && labelObj.list2.length > 0
|
||||
}, caseValue1.label_name && labelObj.list2.length > 0 ? {
|
||||
aM: common_vendor.t(!caseValue2.label_name ? "请选择选项" : caseValue2.label_name),
|
||||
aN: common_vendor.p({
|
||||
aC: common_vendor.t(!caseValue2.label_name ? "请选择选项" : caseValue2.label_name),
|
||||
aD: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
aO: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
aE: common_vendor.o(($event) => openCaseLevel("2"))
|
||||
} : {}, {
|
||||
aP: caseValue2.label_name && labelObj.list3.length > 0
|
||||
aF: caseValue2.label_name && labelObj.list3.length > 0
|
||||
}, caseValue2.label_name && labelObj.list3.length > 0 ? {
|
||||
aQ: common_vendor.t(!caseValue3.label_name ? "请选择选项" : caseValue3.label_name),
|
||||
aR: common_vendor.p({
|
||||
aG: common_vendor.t(!caseValue3.label_name ? "请选择选项" : caseValue3.label_name),
|
||||
aH: common_vendor.p({
|
||||
name: "arrow-right"
|
||||
}),
|
||||
aS: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
aI: common_vendor.o(($event) => openCaseLevel("3"))
|
||||
} : {}, {
|
||||
aT: freshKey.value,
|
||||
aU: common_vendor.p({
|
||||
aJ: freshKey.value,
|
||||
aK: common_vendor.p({
|
||||
current: level.value - 1,
|
||||
direction: "column"
|
||||
}),
|
||||
aV: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
aL: common_vendor.f(labelObj.list1, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-36-" + i0 + ",bfce3555-35",
|
||||
a: "bfce3555-33-" + i0 + ",bfce3555-32",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
@@ -1020,18 +900,18 @@ const _sfc_main = {
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
aW: common_vendor.o(groupChange1),
|
||||
aX: common_vendor.o(($event) => caseValue1.app_iden = $event),
|
||||
aY: common_vendor.p({
|
||||
aM: common_vendor.o(groupChange1),
|
||||
aN: common_vendor.o(($event) => caseValue1.app_iden = $event),
|
||||
aO: common_vendor.p({
|
||||
name: "group1",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue1.app_iden
|
||||
}),
|
||||
aZ: level.value == 1,
|
||||
ba: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
aP: level.value == 1,
|
||||
aQ: common_vendor.f(labelObj.list2, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-38-" + i0 + ",bfce3555-37",
|
||||
a: "bfce3555-35-" + i0 + ",bfce3555-34",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
@@ -1040,18 +920,18 @@ const _sfc_main = {
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
bb: common_vendor.o(groupChange2),
|
||||
bc: common_vendor.o(($event) => caseValue2.app_iden = $event),
|
||||
bd: common_vendor.p({
|
||||
aR: common_vendor.o(groupChange2),
|
||||
aS: common_vendor.o(($event) => caseValue2.app_iden = $event),
|
||||
aT: common_vendor.p({
|
||||
name: "group2",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue2.app_iden
|
||||
}),
|
||||
be: level.value == 2,
|
||||
bf: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
aU: level.value == 2,
|
||||
aV: common_vendor.f(labelObj.list3, (item, k0, i0) => {
|
||||
return {
|
||||
a: "bfce3555-40-" + i0 + ",bfce3555-39",
|
||||
a: "bfce3555-37-" + i0 + ",bfce3555-36",
|
||||
b: common_vendor.p({
|
||||
activeColor: "#3CC7C0 ",
|
||||
label: item.label_name,
|
||||
@@ -1060,17 +940,17 @@ const _sfc_main = {
|
||||
c: item.app_iden
|
||||
};
|
||||
}),
|
||||
bg: common_vendor.o(groupChange3),
|
||||
bh: common_vendor.o(($event) => caseValue3.app_iden = $event),
|
||||
bi: common_vendor.p({
|
||||
aW: common_vendor.o(groupChange3),
|
||||
aX: common_vendor.o(($event) => caseValue3.app_iden = $event),
|
||||
aY: common_vendor.p({
|
||||
name: "group3",
|
||||
iconPlacement: "right",
|
||||
placement: "column",
|
||||
modelValue: caseValue3.app_iden
|
||||
}),
|
||||
bj: level.value == 3,
|
||||
bk: common_vendor.o(closeCase),
|
||||
bl: common_vendor.p({
|
||||
aZ: level.value == 3,
|
||||
ba: common_vendor.o(closeCase),
|
||||
bb: common_vendor.p({
|
||||
round: 10,
|
||||
zIndex: "9",
|
||||
closeOnClickOverlay: false,
|
||||
|
||||
+2
-1
@@ -14,6 +14,7 @@
|
||||
"up-steps": "../../node-modules/uview-plus/components/u-steps/u-steps",
|
||||
"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",
|
||||
"sv-editor": "../../uni_modules/sv-editor/components/sv-editor/sv-editor"
|
||||
"sv-editor": "../../uni_modules/sv-editor/components/sv-editor/sv-editor",
|
||||
"p-editor": "../../components/pEditor/pEditor"
|
||||
}
|
||||
}
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+19
-1
@@ -269,12 +269,30 @@
|
||||
font-size: 24rpx;
|
||||
}
|
||||
#editor.data-v-bfce3555 {
|
||||
position: relative;
|
||||
padding: 0 10rpx;
|
||||
height: calc(100vh - 700rpx);
|
||||
}
|
||||
#editor .mask.data-v-bfce3555 {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: red;
|
||||
z-index: 9;
|
||||
}
|
||||
#editorRes.data-v-bfce3555 {
|
||||
position: relative;
|
||||
height: 600rpx;
|
||||
}
|
||||
#editorRes .mask.data-v-bfce3555 {
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: red;
|
||||
z-index: 9;
|
||||
}
|
||||
#editorRes.data-v-bfce3555 .sv-editor-wrapper {
|
||||
flex: 1;
|
||||
min-height: 300rpx;
|
||||
@@ -550,7 +568,7 @@
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
z-index: 3;
|
||||
z-index: 1;
|
||||
background: #ffffff;
|
||||
}
|
||||
.bottom .bottombtn.data-v-bfce3555 {
|
||||
|
||||
Reference in New Issue
Block a user