Commit d93c697f authored by 高飞's avatar 高飞

修改导调模块各类文件格式图片显示。信息制品第二级数据头部展示联动

parent 5903c075
......@@ -59,6 +59,18 @@
<el-image :src="textImg" @click="showLiterature(item1.attachment)">
</el-image>
</template>
<template v-else-if="item1.type == 'WORD'">
<el-image :src="wordImg" @click="showLiterature(item1.attachment)">
</el-image>
</template>
<template v-else-if="item1.type == 'PDF'">
<el-image :src="pdfImg" @click="showLiterature(item1.attachment)">
</el-image>
</template>
<template v-else-if="item1.type == 'PPT'">
<el-image :src="pptImg" @click="showLiterature(item1.attachment)">
</el-image>
</template>
</div>
</div>
</div>
......@@ -103,7 +115,10 @@ import ChatRoomDialog from "@/view/ddkz/components/chatRoomDialog.vue";
import chatRoomMemberDialog from "@/view/ddkz/components/chatRoomMemberDialog.vue";
import sendEmailDialog from "@/view/ddkz/components/sendEmailDialog.vue";
import textImg from '@/assets/img/ddkz/tool1.png';
import excelImg from '@/assets/img/ddkz/tool5.png';
import excelImg from '@/assets/img/ddkz/excel.png';
import wordImg from '@/assets/img/ddkz/word.png';
import pdfImg from '@/assets/img/ddkz/pdf.png';
import pptImg from '@/assets/img/ddkz/ppt.png';
import { MAIL_ADDRESS } from "@/constant/user";
import dayjs from "dayjs";
export default {
......@@ -112,6 +127,9 @@ export default {
goBack: goBack,
excelImg: excelImg,
textImg: textImg,
wordImg: wordImg,
pdfImg: pdfImg,
pptImg: pptImg,
formInfo: {
timeFrame: 5,
fromUser: null
......@@ -154,6 +172,7 @@ export default {
this.stompClient.subscribe(item.address, res => {
// this.getRecordsByPagingFn(item);
let body = JSON.parse(res.body);
console.log(body)
this.publicNoticeList.push({
attachment: body.attachment,
content: body.content,
......
......@@ -65,18 +65,34 @@ export default {
showDialog() {
this.dialogVisible = true;
},
beforeRemove(file, fileList) {
if(fileList.length>0){
this.form.title = fileList[fileList.length-1].name.split('.')[0];
}else{
this.form.title = '';
}
},
handleChange(file, fileList) {
let fd = new FormData();
fd.append('file', file.raw);
if(this.form.title==''){
this.form.title = file.name.split('.')[0];
}
upLoadFiles('CHAT', fd).then(res => {
this.form.attachment = res;
let type = file.name.split('.')[1];
if (type == 'png' || type == 'jpg' || type == 'PNG' || type == 'JPG') {
let type = file.name.split('.')[1].toLowerCase();
if (type == 'png' || type == 'jpg') {
this.form.messageForm = 'PICTURE';
} else if (type == 'mp4' || type == 'MP4' || type == 'flv' || type == 'FLV') {
} else if (type == 'mp4' || type == 'flv' ) {
this.form.messageForm = 'VIDEO';
} else if (type == 'xlsx' || type == 'xls' || type == 'XLSX' || type == 'XLS') {
} else if (type == 'xlsx' || type == 'xls') {
this.form.messageForm = 'EXCEL';
} else if (type == 'doc' || type == 'docx') {
this.form.messageForm = 'WORD';
} else if (type == 'pdf') {
this.form.messageForm = 'PDF';
} else if (type == 'ppt' || type == 'pptx') {
this.form.messageForm = 'PPT';
} else {
this.form.messageForm = 'TEXT';
}
......@@ -87,6 +103,7 @@ export default {
this.form.fileList = [];
},
sendNotice() {
console.log(this.form);
if (this.currentChatRoom.teamInfo.teamType == "DIRECTOR") {
this.myStompClient.send(`/app/sendToChatRoom/${this.currentChatRoom.id}/${this.currentChatRoom.teamId}`, {}, JSON.stringify(this.form));
} else {
......
<template>
<div class="navMenu">
<template v-for="navMenu in navMenus">
<!-- 最后一级菜单 -->
<el-menu-item v-if="!navMenu.children" :key="navMenu.id" :data="navMenu"
:index="navMenu.id+''">
<span slot="title">{{ navMenu.label }}</span>
</el-menu-item>
<!-- 此菜单下还有子菜单 -->
<el-submenu v-if="navMenu.children" :key="navMenu.id" :data="navMenu"
:index="navMenu.id+''">
<template slot="title">
<span> {{ navMenu.label }}</span>
</template>
<!-- 递归 -->
<NavMenu :navMenus="navMenu.children"></NavMenu>
</el-submenu>
</template>
</div>
</template>
<script>
// import NavMenu from "./NavMenu.vue";
export default {
name: 'NavMenu',
props: ['navMenus'],
// components: { NavMenu },
data() {
return {}
},
methods: {},
activated() {
console.log(11111111111)
console.log(this.navMenus)
},
};
</script>
<style>
/* @import "../../assets/styles/navMenu.scss"; */
/* 水平样式 */
</style>
\ No newline at end of file
<template>
<el-container class="myContainer">
<el-header class="myHeader">
<el-header class="myHeader" style="display: none;">
<el-menu default-active="1" class="second-router" mode="horizontal" @open="handleOpen" @close="handleClose"
background-color="transparent" text-color="#fff" @select="handleSelect">
<template v-for="(item, index) in module">
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment