|
|
@@ -13,7 +13,8 @@
|
|
|
<div class="course-info-main">
|
|
|
<el-row>发布作者: {{ communicationInfo.publisherName }}</el-row>
|
|
|
<el-row>所属组织: {{ communicationInfo.organization }}</el-row>
|
|
|
- <el-row>持续时间: {{ communicationInfo.publishTime }}~{{ communicationInfo.deadline }}</el-row>
|
|
|
+ <el-row>持续时间:</el-row>
|
|
|
+ <el-row style="text-indent: 1em"> {{ publishTime }}~{{ deadline }}</el-row>
|
|
|
</div>
|
|
|
<div class="explore-item-star" >
|
|
|
<el-tooltip placement="top-start" effect="light">
|
|
|
@@ -21,8 +22,8 @@
|
|
|
<p style="max-width:500px;">{{starersListString}}收藏了本交流</p>
|
|
|
</template>
|
|
|
<div>
|
|
|
- <el-icon v-if="communicationInfo.starred===true" style="font-size: 20px" @click="star()"><Star /></el-icon>
|
|
|
- <el-icon v-if="communicationInfo.starred===false" style="font-size: 20px;color: orange" @click="cancelStar()">
|
|
|
+ <el-icon v-if="communicationInfo.starred===false" style="font-size: 20px" @click="star()"><Star /></el-icon>
|
|
|
+ <el-icon v-if="communicationInfo.starred===true" style="font-size: 20px;color: orange" @click="cancelStar()">
|
|
|
<StarFilled />
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
@@ -78,6 +79,8 @@ export default {
|
|
|
attachments: [],
|
|
|
starersList: [],
|
|
|
starersListString: "",
|
|
|
+ publishTime: "",
|
|
|
+ deadline: ""
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
@@ -85,16 +88,21 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
fetchData(){
|
|
|
- this.$apis.getCommunicationDetail(this.$route.params.id).then(res=>{
|
|
|
+ this.$apis.getCommunicationDetail(this.$route.params.communicationId).then(res=>{
|
|
|
this.communicationInfo = res.data.data;
|
|
|
- this.communicationInfo.img = this.communicationInfo.photos[0].fileUrl;
|
|
|
+ if (this.communicationInfo.photos.length != 0){
|
|
|
+ this.communicationInfo.img = this.communicationInfo.photos[0].fileUrl;
|
|
|
+ }
|
|
|
+ else this.communicationInfo.img = this.$variables.noImgUrl;
|
|
|
this.attachments = this.communicationInfo.attachments;
|
|
|
+ this.publishTime = this.communicationInfo.publishTime.substring(0,10) + " " + this.communicationInfo.publishTime.substring(11,19);
|
|
|
+ this.deadline = this.communicationInfo.deadline.substring(0,10) + " " + this.communicationInfo.deadline.substring(11,19);
|
|
|
});
|
|
|
- this.$apis.getCommunicationStarers(this.$route.params.id).then(starRes=>{
|
|
|
+ this.$apis.getCommunicationStarers(this.$route.params.communicationId).then(starRes=>{
|
|
|
this.starersList = starRes.data.data;
|
|
|
this.starersListString = "";
|
|
|
this.starersList.forEach(starer=>{
|
|
|
- this.starersListString = this.starersListString + starer.userName + ",";
|
|
|
+ this.starersListString = this.starersListString + starer.username + ",";
|
|
|
});
|
|
|
if (this.starersListString === ""){
|
|
|
this.starersListString = "暂无用户";
|
|
|
@@ -104,10 +112,12 @@ export default {
|
|
|
},
|
|
|
star(){
|
|
|
this.communicationInfo.starred = !this.communicationInfo.starred;
|
|
|
+ this.$apis.starCommunication(this.$store.state.user.id, this.communicationInfo.id);
|
|
|
ElMessage.success("收藏成功");
|
|
|
},
|
|
|
cancelStar(){
|
|
|
this.communicationInfo.starred = !this.communicationInfo.starred;
|
|
|
+ this.$apis.cancelStarCommunication(this.$store.state.user.id, this.communicationInfo.id);
|
|
|
ElMessage.success("取消收藏成功");
|
|
|
},
|
|
|
downloadAttachment(){
|
|
|
@@ -148,25 +158,6 @@ export default {
|
|
|
margin-top: 32px;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-.flex-center {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-
|
|
|
-.flex-around {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-around;
|
|
|
-}
|
|
|
-
|
|
|
-.flex-between {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
-}
|
|
|
-
|
|
|
.header {
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
@@ -236,70 +227,6 @@ export default {
|
|
|
font-size: 20px;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-.course-tabs {
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
-}
|
|
|
-
|
|
|
-.course-tab-content {
|
|
|
- margin-top: 32px;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-.sel-notice-type {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- height: 45px;
|
|
|
- justify-content: space-around;
|
|
|
-}
|
|
|
-
|
|
|
-.sel-project-type {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- height: 45px;
|
|
|
- justify-content: space-around;
|
|
|
-}
|
|
|
-
|
|
|
-.project-type-icon {
|
|
|
- border-radius: 24px;
|
|
|
- border: 2px solid;
|
|
|
- box-sizing: border-box;
|
|
|
- padding: 4px 12px;
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
-.project-type-txt {
|
|
|
- font-size: 14px;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-.notice-type-icon {
|
|
|
- border-radius: 24px;
|
|
|
- border: 2px solid;
|
|
|
- box-sizing: border-box;
|
|
|
- padding: 4px 12px;
|
|
|
- font-size: 14px;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-.notice-type-txt {
|
|
|
- font-size: 14px;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-.el-dialog__title {
|
|
|
- font-size: 22px;
|
|
|
-}
|
|
|
-
|
|
|
-.new-notice-content {
|
|
|
- width: 100%;
|
|
|
- padding: 0 24px;
|
|
|
- box-sizing: border-box;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
.new-notice-content .new-notice-item {
|
|
|
height: 40px;
|
|
|
margin-bottom: 16px;
|
|
|
@@ -309,31 +236,10 @@ export default {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
-.content-description-area {
|
|
|
- height: 100px;
|
|
|
- box-sizing: border-box;
|
|
|
- padding-top: 6px;
|
|
|
- margin-bottom: 16px;
|
|
|
- display: flex;
|
|
|
- justify-content: flex-start;
|
|
|
- font-size: 16px;
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-.new-notice-item:last-child {
|
|
|
- margin-bottom: 0;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
.new-notice-item > span, .content-description-area > span {
|
|
|
min-width: 100px;
|
|
|
}
|
|
|
|
|
|
-.flex-vc {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-
|
|
|
.new-notice-item .mini-name-icon {
|
|
|
margin-left: 16px;
|
|
|
border-radius: 50%;
|
|
|
@@ -344,70 +250,4 @@ export default {
|
|
|
color: white;
|
|
|
|
|
|
}
|
|
|
-
|
|
|
-.new-notice-btn {
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- margin-top: 32px;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-.task-title {
|
|
|
- font-weight: bold;
|
|
|
-}
|
|
|
-
|
|
|
-.task-info {
|
|
|
- padding: 5px 0 0 5px;
|
|
|
-}
|
|
|
-
|
|
|
-#eval-button:hover {
|
|
|
- font-size: 17px
|
|
|
-}
|
|
|
-
|
|
|
-#coder-button:hover {
|
|
|
- font-size: 17px;
|
|
|
-}
|
|
|
-
|
|
|
-.comment {
|
|
|
- margin: 30px 0 0 30px;
|
|
|
-}
|
|
|
-
|
|
|
-.comment-child {
|
|
|
- padding: 20px 0 0 30px;
|
|
|
-}
|
|
|
-
|
|
|
-.reply-button {
|
|
|
- padding: 2px;
|
|
|
- border-radius: 4px;
|
|
|
- margin-left: 20px;
|
|
|
- font-size: small;
|
|
|
- cursor: pointer;
|
|
|
- color: #808080;
|
|
|
-}
|
|
|
-
|
|
|
-.reply-button:hover {
|
|
|
- background: #a5d1ff;
|
|
|
-}
|
|
|
-
|
|
|
-.announcement-content {
|
|
|
- font-size: 16px;
|
|
|
- padding: 10px 0 0 20px;
|
|
|
- white-space: pre-wrap;
|
|
|
-}
|
|
|
-
|
|
|
-.el-timeline-item {
|
|
|
- padding-top: 10px;
|
|
|
- padding-bottom: 10px;
|
|
|
- border-radius: 6px;
|
|
|
- cursor: pointer;
|
|
|
-}
|
|
|
-
|
|
|
-.el-timeline-item:hover {
|
|
|
- background-color: #F0F0F0;
|
|
|
-}
|
|
|
-
|
|
|
-.timeline-content{
|
|
|
- margin-right: 10px;
|
|
|
-}
|
|
|
</style>
|