This commit is contained in:
liuyuan
2025-09-04 13:55:23 +08:00
parent 9126f47346
commit 0d0bf4bb3a
27 changed files with 9302 additions and 5262 deletions

View File

@@ -72,7 +72,7 @@
><text
style="margin-right: 30rpx; color: #e38d54"
v-if="item.come == 1"
>医案转发</text
>医案同步</text
><text style="letter-spacing: 1rpx">{{
item.createTime ? item.createTime : ""
}}</text></view
@@ -273,7 +273,7 @@ export default {
selectClick(e) {
console.log(e.name);
if (e.name == "删除") {
if (e.name == "删除文章") {
this.showDel=true;
} else {
uni.navigateTo({
@@ -308,9 +308,9 @@ export default {
}
if (item.come == 1) {
this.operateList = list;
} else {
// if (item.come == 1) {
// this.operateList = list;
// } else {
this.operateList = [
...list,
{
@@ -321,7 +321,7 @@ export default {
fontSize: "16",
},
];
}
// }
this.selectArticleId = item.id;
this.showOperate = true;
// this.$refs.commentLikePopup.showCommentPopup();
@@ -343,7 +343,7 @@ export default {
},
createFolder() {
uni.navigateTo({
url: `/pages/articleList/article?navTitle=文章&title=文章&type=add`,
url: `/pages/articleList/articleAdd?navTitle=文章&title=文章&type=add`,
});
},
//判断显示‘上/中/下’
@@ -386,6 +386,7 @@ export default {
//获取列表数据
delArticle() {
var that = this;
this.showDel=false;
uni.showLoading({
title: "加载中",
});
@@ -403,18 +404,27 @@ export default {
.then((res) => {
uni.hideLoading();
if (res.code == 0) {
uni.showToast({
title: "删除成功",
icon: "success",
duration: 2000,
});
}
this.$nextTick(() => {
this.$nextTick(() => {
this.list = this.list.filter((e) => {
return e.id != this.selectArticleId;
});
this.count = this.list.length;
});
}else {
this.showDel=false
uni.showToast({
title: "删除失败",
icon: "success",
duration: 2000,
});
}
});
},
getListData(taihumedId, type) {