Commit d93c697f authored by 高飞's avatar 高飞

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

parent 5903c075
...@@ -59,6 +59,18 @@ ...@@ -59,6 +59,18 @@
<el-image :src="textImg" @click="showLiterature(item1.attachment)"> <el-image :src="textImg" @click="showLiterature(item1.attachment)">
</el-image> </el-image>
</template> </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> </div>
</div> </div>
...@@ -103,7 +115,10 @@ import ChatRoomDialog from "@/view/ddkz/components/chatRoomDialog.vue"; ...@@ -103,7 +115,10 @@ import ChatRoomDialog from "@/view/ddkz/components/chatRoomDialog.vue";
import chatRoomMemberDialog from "@/view/ddkz/components/chatRoomMemberDialog.vue"; import chatRoomMemberDialog from "@/view/ddkz/components/chatRoomMemberDialog.vue";
import sendEmailDialog from "@/view/ddkz/components/sendEmailDialog.vue"; import sendEmailDialog from "@/view/ddkz/components/sendEmailDialog.vue";
import textImg from '@/assets/img/ddkz/tool1.png'; 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 { MAIL_ADDRESS } from "@/constant/user";
import dayjs from "dayjs"; import dayjs from "dayjs";
export default { export default {
...@@ -112,6 +127,9 @@ export default { ...@@ -112,6 +127,9 @@ export default {
goBack: goBack, goBack: goBack,
excelImg: excelImg, excelImg: excelImg,
textImg: textImg, textImg: textImg,
wordImg: wordImg,
pdfImg: pdfImg,
pptImg: pptImg,
formInfo: { formInfo: {
timeFrame: 5, timeFrame: 5,
fromUser: null fromUser: null
...@@ -154,6 +172,7 @@ export default { ...@@ -154,6 +172,7 @@ export default {
this.stompClient.subscribe(item.address, res => { this.stompClient.subscribe(item.address, res => {
// this.getRecordsByPagingFn(item); // this.getRecordsByPagingFn(item);
let body = JSON.parse(res.body); let body = JSON.parse(res.body);
console.log(body)
this.publicNoticeList.push({ this.publicNoticeList.push({
attachment: body.attachment, attachment: body.attachment,
content: body.content, content: body.content,
......
...@@ -65,18 +65,34 @@ export default { ...@@ -65,18 +65,34 @@ export default {
showDialog() { showDialog() {
this.dialogVisible = true; 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) { handleChange(file, fileList) {
let fd = new FormData(); let fd = new FormData();
fd.append('file', file.raw); fd.append('file', file.raw);
if(this.form.title==''){
this.form.title = file.name.split('.')[0];
}
upLoadFiles('CHAT', fd).then(res => { upLoadFiles('CHAT', fd).then(res => {
this.form.attachment = res; this.form.attachment = res;
let type = file.name.split('.')[1]; let type = file.name.split('.')[1].toLowerCase();
if (type == 'png' || type == 'jpg' || type == 'PNG' || type == 'JPG') { if (type == 'png' || type == 'jpg') {
this.form.messageForm = 'PICTURE'; this.form.messageForm = 'PICTURE';
} else if (type == 'mp4' || type == 'MP4' || type == 'flv' || type == 'FLV') { } else if (type == 'mp4' || type == 'flv' ) {
this.form.messageForm = 'VIDEO'; this.form.messageForm = 'VIDEO';
} else if (type == 'xlsx' || type == 'xls' || type == 'XLSX' || type == 'XLS') { } else if (type == 'xlsx' || type == 'xls') {
this.form.messageForm = 'EXCEL'; 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 { } else {
this.form.messageForm = 'TEXT'; this.form.messageForm = 'TEXT';
} }
...@@ -87,6 +103,7 @@ export default { ...@@ -87,6 +103,7 @@ export default {
this.form.fileList = []; this.form.fileList = [];
}, },
sendNotice() { sendNotice() {
console.log(this.form);
if (this.currentChatRoom.teamInfo.teamType == "DIRECTOR") { if (this.currentChatRoom.teamInfo.teamType == "DIRECTOR") {
this.myStompClient.send(`/app/sendToChatRoom/${this.currentChatRoom.id}/${this.currentChatRoom.teamId}`, {}, JSON.stringify(this.form)); this.myStompClient.send(`/app/sendToChatRoom/${this.currentChatRoom.id}/${this.currentChatRoom.teamId}`, {}, JSON.stringify(this.form));
} else { } 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> <template>
<el-container class="myContainer"> <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" <el-menu default-active="1" class="second-router" mode="horizontal" @open="handleOpen" @close="handleClose"
background-color="transparent" text-color="#fff" @select="handleSelect"> background-color="transparent" text-color="#fff" @select="handleSelect">
<template v-for="(item, index) in module"> <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