111
This commit is contained in:
@@ -1617,7 +1617,7 @@ const readRecord= async()=>{
|
||||
if(type.value=='article'){
|
||||
flag=1;
|
||||
}else if(type.value=='video'){
|
||||
flag=1;
|
||||
flag=2;
|
||||
}else{
|
||||
flag=3;
|
||||
}
|
||||
|
||||
@@ -152,6 +152,12 @@ const recommend_hospital=ref([]);
|
||||
const numInfo=reactive({})
|
||||
const goDetail = (id,isLink,src) => {
|
||||
if(isLink==1){
|
||||
api.readRecord({
|
||||
type:1,
|
||||
id:id
|
||||
}).then(res=>{
|
||||
|
||||
})
|
||||
// #ifdef MP-WEIXIN
|
||||
navTo({
|
||||
url: `/pages/web/web?src=${src}`,
|
||||
|
||||
@@ -262,6 +262,10 @@ const queryList = (pageNo, pageSize) => {
|
||||
margin-left: 30rpx;
|
||||
|
||||
}
|
||||
:deep(.u-dropdown__menu__item__text){
|
||||
font-size: 14px!important;
|
||||
color:rgb(60, 156, 255)!important;
|
||||
}
|
||||
.deal {
|
||||
margin-top: 20rpx;
|
||||
display: flex;
|
||||
|
||||
+29
-12
@@ -835,8 +835,8 @@ const getExchangeDetail = (id) => {
|
||||
});
|
||||
form.exchange_content = exchange_content;
|
||||
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,async (videoUrl) => {
|
||||
@@ -931,6 +931,7 @@ const alertSave = async () => {
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
const publish = async () => {
|
||||
const initInfo =
|
||||
"<p>【患者信息】:</p><br/><p>【主诉】:</p><br/><p>【现病史及既往史】:</p><br/><p>【检查】:</p><br/><p>【临床诊断】:</p><br/><p>【治疗经过及结果】:</p>";
|
||||
@@ -966,16 +967,30 @@ const publish = async () => {
|
||||
const resContent = await editorCtxResult.value.getLastContent();
|
||||
let reshtml = editorCtxResult.value.exportHtml(resContent.html);
|
||||
form.exchange_summary = reshtml=="<p><br></p>"?'':reshtml;
|
||||
api.addExchange(form).then((res) => {
|
||||
uni.showToast({
|
||||
title: "发布成功",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
isFlag.value = false;
|
||||
isPublish.value = true;
|
||||
uni.navigateBack()
|
||||
});
|
||||
if(exchange_id.value){
|
||||
api.updateExchange(exchange_id.value,form).then((res) => {
|
||||
uni.showToast({
|
||||
title: "修改成功",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
isFlag.value = false;
|
||||
isPublish.value = true;
|
||||
uni.navigateBack()
|
||||
});
|
||||
}else{
|
||||
api.addExchange(form).then((res) => {
|
||||
uni.showToast({
|
||||
title: "发布成功",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
isFlag.value = false;
|
||||
isPublish.value = true;
|
||||
uni.navigateBack()
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
const handleUpload = (file) => {
|
||||
api
|
||||
@@ -1310,6 +1325,8 @@ const openLabelPop=()=>{
|
||||
onLoad((optoions) => {
|
||||
if(optoions.exchange_id){
|
||||
exchange_id.value=optoions.exchange_id;
|
||||
console.log(1111)
|
||||
console.log(exchange_id.value)
|
||||
}
|
||||
//getDraftList();
|
||||
|
||||
|
||||
@@ -471,6 +471,12 @@ const formatdate=(date)=>{
|
||||
const goDetail=(id,isLink,src)=>{
|
||||
console.log(isLink)
|
||||
if(isLink==1){
|
||||
api.readRecord({
|
||||
type:isArticle.value?1:2,
|
||||
id:id
|
||||
}).then(res=>{
|
||||
|
||||
})
|
||||
// #ifdef MP-WEIXIN
|
||||
navTo({
|
||||
url: `/pages/web/web?src=${src}`,
|
||||
|
||||
@@ -531,7 +531,17 @@ const htmlToText=(html)=>{
|
||||
|
||||
const confirmDel = () => {
|
||||
//删除
|
||||
api.delExchange(dealId.value).then((res) => {
|
||||
uni.showToast({
|
||||
title: "删除成功",
|
||||
icon: "none",
|
||||
duration: 2000,
|
||||
});
|
||||
});
|
||||
let index=dataList.value.findIndex( item =>item.exchange_id=== dealId.value)
|
||||
dataList.value.splice(index, 1);
|
||||
showModal.value = false;
|
||||
//paging.value.refresh();
|
||||
};
|
||||
|
||||
const closeDealPop = () => {
|
||||
@@ -561,7 +571,6 @@ onLoad((options) => {
|
||||
getCaseLabel(1,0)
|
||||
});
|
||||
onShow(()=>{
|
||||
|
||||
paging.value?.refresh();
|
||||
})
|
||||
const changeDate=(e)=>{
|
||||
|
||||
Reference in New Issue
Block a user