This commit is contained in:
2025-08-14 16:49:58 +08:00
parent b2009403d8
commit 26c1ac5ced
15 changed files with 1144 additions and 351 deletions

View File

@@ -69,7 +69,7 @@
class="card_label"
v-if="statusTitle"
:style="`background-color:${statusColor} ;`"
>{{item.state==4?'质检未通过': statusTitle }}</text
>{{ item.state == 4 ? "质检未通过" : statusTitle }}</text
>
<image
v-if="currentCateIndex == 3 && item.state == 6"
@@ -168,22 +168,50 @@
"
>
<view
@click.stop="changeShowFlag(item)"
v-if="taihumedId == 4"
:style="`color: ${
item.showFlag == 1 ? '#5188e5' : '#5e6d82'
};display: flex;align-items: center;`"
>
<text style="margin-right: 10rpx"
>是否在我的医案中展示</text
>
<uni-icons
:color="item.showFlag == 1 ? '#5188e5' : '#5e6d82'"
:type="
item.showFlag == 0 ? 'eye-slash-filled' : 'eye-filled'
<template @click.stop="changeShowFlag(item)">
<text style="margin-right: 10rpx"
>是否在我的医案中展示</text
>
<uni-icons
:color="item.showFlag == 1 ? '#5188e5' : '#5e6d82'"
:type="
item.showFlag == 0 ? 'eye-slash-filled' : 'eye-filled'
"
size="24"
></uni-icons>
</template>
<view @click.stop="changeShowArticleFlag(item)"
v-if="item.articleFlag == 0"
style="
position: absolute;
right: 20rpx;
top: 0;
background-color: #0552c5;
padding: 2rpx 20rpx;
border-radius: 8rpx;
color: #fff;
"
size="24"
></uni-icons>
>发布医案文章</view
>
<view
v-else
style="
position: absolute;
right: 20rpx;
top: 0;
background-color: #fff;
padding: 2rpx 20rpx;
border-radius: 8rpx;
color: #0552c5;
"
>已发布</view
>
</view>
<!-- <view @click.stop="changeShowFlag(item)" v-if="taihumedId == 4" :style="`color: ${item.article_flag==1?'#5188e5':'#5e6d82'};display: flex;align-items: center;`">
<text style="margin-right: 10rpx;">是否在我的文章中展示</text>
@@ -401,6 +429,24 @@ export default {
this.getListData(this.taihumedId);
});
},
changeShowArticleFlag(data) {
this.$http
.request({
url: "common/medicalRecords/addTaihuTalentArticle",
method: "POST",
data: {
...data,
showArticleFlag: 1,
},
header: {
"Content-Type": "application/json",
},
})
.then((res) => {
this.getListData(this.taihumedId);
});
},
//加载更多
loadMore() {
this.getListData(this.taihumedId);