feat: 仅格式,方便格式缩进
This commit is contained in:
@ -2,7 +2,9 @@
|
|||||||
<div class="titleBox">
|
<div class="titleBox">
|
||||||
<PageTitle title="网上会议室">
|
<PageTitle title="网上会议室">
|
||||||
<el-button type="primary" @click="addEdit('add', '')">
|
<el-button type="primary" @click="addEdit('add', '')">
|
||||||
<el-icon style="vertical-align: middle"><CirclePlus /></el-icon>
|
<el-icon style="vertical-align: middle">
|
||||||
|
<CirclePlus />
|
||||||
|
</el-icon>
|
||||||
<span style="vertical-align: middle">新增</span>
|
<span style="vertical-align: middle">新增</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
</PageTitle>
|
</PageTitle>
|
||||||
@ -29,38 +31,42 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<el-button type="primary" size="small" @click="joinMeeting(item,'会议')">加入会议</el-button>
|
<el-button type="primary" size="small" @click="joinMeeting(item, '会议')">加入会议</el-button>
|
||||||
<el-button type="primary" size="small">反馈情况</el-button>
|
<el-button type="primary" size="small">反馈情况</el-button>
|
||||||
<el-button type="primary" size="small">处置下发</el-button>
|
<el-button type="primary" size="small">处置下发</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<el-popover placement="top" :visible="item.visible" :width="400" trigger="click">
|
<el-popover placement="top" :visible="item.visible" :width="400" trigger="click">
|
||||||
<template #reference>
|
<template #reference>
|
||||||
<el-link type="primary"><el-icon><ChatDotSquare /></el-icon>评论</el-link>
|
<el-link type="primary"><el-icon>
|
||||||
|
<ChatDotSquare />
|
||||||
|
</el-icon>评论</el-link>
|
||||||
</template>
|
</template>
|
||||||
<MOSTY.Other filterable style="width: 100%;" v-model="comments" type="textarea" rows="3" clearable placeholder="发表评论"/>
|
<MOSTY.Other filterable style="width: 100%;" v-model="comments" type="textarea" rows="3" clearable
|
||||||
|
placeholder="发表评论" />
|
||||||
<div class="mt10 flex just-center">
|
<div class="mt10 flex just-center">
|
||||||
<el-button size="small" type="primary" @click.stop="handleSumbit(item)">发送</el-button>
|
<el-button size="small" type="primary" @click.stop="handleSumbit(item)">发送</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-popover>
|
</el-popover>
|
||||||
<el-link type="primary" ><el-icon><VideoPlay /></el-icon>会议回放</el-link>
|
<el-link type="primary"><el-icon>
|
||||||
<el-link type="primary" @click="addEdit('edit', item)"><el-icon><Edit /></el-icon>编辑</el-link>
|
<VideoPlay />
|
||||||
<el-link type="danger" @click="delDictItem(item.id)"><el-icon><Delete /></el-icon>删除</el-link>
|
</el-icon>会议回放</el-link>
|
||||||
|
<el-link type="primary" @click="addEdit('edit', item)"><el-icon>
|
||||||
|
<Edit />
|
||||||
|
</el-icon>编辑</el-link>
|
||||||
|
<el-link type="danger" @click="delDictItem(item.id)"><el-icon>
|
||||||
|
<Delete />
|
||||||
|
</el-icon>删除</el-link>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<MOSTY.Empty :show="!pageData.loading && pageData.list.length <= 0"></MOSTY.Empty>
|
<MOSTY.Empty :show="!pageData.loading && pageData.list.length <= 0"></MOSTY.Empty>
|
||||||
</ul>
|
</ul>
|
||||||
<Pages
|
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||||
@changeNo="changeNo"
|
...pageData.pageConfiger,
|
||||||
@changeSize="changeSize"
|
total: pageData.total
|
||||||
:tableHeight="pageData.tableHeight"
|
}"></Pages>
|
||||||
:pageConfiger="{
|
|
||||||
...pageData.pageConfiger,
|
|
||||||
total: pageData.total
|
|
||||||
}"
|
|
||||||
></Pages>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- 详情 -->
|
<!-- 详情 -->
|
||||||
<DetailForm ref="detailDiloag" @updateDate="getList" />
|
<DetailForm ref="detailDiloag" @updateDate="getList" />
|
||||||
@ -73,250 +79,269 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import MeetingView from '@/components/Consultation/demo.vue'
|
import MeetingView from '@/components/Consultation/demo.vue'
|
||||||
import { ElMessageBox } from "element-plus";
|
import { ElMessageBox } from "element-plus";
|
||||||
import * as MOSTY from "@/components/MyComponents/index";
|
import * as MOSTY from "@/components/MyComponents/index";
|
||||||
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||||
import Pages from "@/components/aboutTable/Pages.vue";
|
import Pages from "@/components/aboutTable/Pages.vue";
|
||||||
import Search from "@/components/aboutTable/Search.vue";
|
import Search from "@/components/aboutTable/Search.vue";
|
||||||
import DetailForm from "./components/detailForm.vue";
|
import DetailForm from "./components/detailForm.vue";
|
||||||
import RoomDetail from "./components/roomDetail.vue";
|
import RoomDetail from "./components/roomDetail.vue";
|
||||||
import { useRoute, useRouter } from 'vue-router';
|
import { useRoute, useRouter } from 'vue-router';
|
||||||
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
||||||
import { reactive, ref, onMounted, getCurrentInstance,nextTick } from "vue";
|
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
|
||||||
import ConferenceRoom from "./components/Communications/conferenceRoom.vue";
|
import ConferenceRoom from "./components/Communications/conferenceRoom.vue";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const detailDiloag = ref();
|
const detailDiloag = ref();
|
||||||
const searchBox = ref(); //搜索框
|
const searchBox = ref(); //搜索框
|
||||||
const openMeeting = ref(false); // 打开会议窗口
|
const openMeeting = ref(false); // 打开会议窗口
|
||||||
const refMeetingView = ref()
|
const refMeetingView = ref()
|
||||||
const searchConfiger = ref([
|
const searchConfiger = ref([
|
||||||
{
|
{
|
||||||
label: "会议主题",
|
label: "会议主题",
|
||||||
prop: "hsbt",
|
prop: "hsbt",
|
||||||
placeholder: "请输入会议主题",
|
placeholder: "请输入会议主题",
|
||||||
showType: "input"
|
showType: "input"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "会议时间",
|
label: "会议时间",
|
||||||
prop: "daterange",
|
prop: "daterange",
|
||||||
showType: "datetimerange"
|
showType: "datetimerange"
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
const comments = ref(''); // 评论内容
|
const comments = ref(''); // 评论内容
|
||||||
const queryFrom = ref({});
|
const queryFrom = ref({});
|
||||||
const pageData = reactive({
|
const pageData = reactive({
|
||||||
list: [],
|
list: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
total: 0,
|
total: 0,
|
||||||
pageConfiger: {
|
pageConfiger: {
|
||||||
pageSize: 20,
|
pageSize: 20,
|
||||||
pageCurrent: 1
|
pageCurrent: 1
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const jsonData = ref('')
|
const jsonData = ref('')
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
jsonData.value = require('@/components/Consultation/components/zh_CN.json');
|
jsonData.value = require('@/components/Consultation/components/zh_CN.json');
|
||||||
|
getList();
|
||||||
|
tabHeightFn();
|
||||||
|
});
|
||||||
|
|
||||||
|
const updateItem = (item) => {
|
||||||
|
qcckPost(item, '/mosty-gsxt/wshs/update').then(res => {
|
||||||
getList();
|
getList();
|
||||||
tabHeightFn();
|
})
|
||||||
});
|
|
||||||
|
|
||||||
const updateItem = (item) => {
|
|
||||||
qcckPost(item,'/mosty-gsxt/wshs/update').then(res=>{
|
|
||||||
getList();
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 搜索
|
|
||||||
const onSearch = (val) => {
|
|
||||||
queryFrom.value = { ...val };
|
|
||||||
if (val.daterange && val.daterange.length > 0) {
|
|
||||||
queryFrom.value.startTime = val.daterange[0];
|
|
||||||
queryFrom.value.endTime = val.daterange[1];
|
|
||||||
} else {
|
|
||||||
delete queryFrom.value.startTime;
|
|
||||||
delete queryFrom.value.endTime;
|
|
||||||
}
|
|
||||||
pageData.pageConfiger.pageCurrent = 1;
|
|
||||||
getList();
|
|
||||||
};
|
|
||||||
|
|
||||||
const changeNo = (val) => {
|
|
||||||
pageData.pageConfiger.pageCurrent = val;
|
|
||||||
getList();
|
|
||||||
};
|
|
||||||
const changeSize = (val) => {
|
|
||||||
pageData.pageConfiger.pageSize = val;
|
|
||||||
getList();
|
|
||||||
};
|
|
||||||
|
|
||||||
// 获取列表
|
|
||||||
const getList = () => {
|
|
||||||
pageData.loading = true;
|
|
||||||
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
|
||||||
delete data.daterange; // 删除daterange字段
|
|
||||||
if(route.query.tsypid) data.tsypid = route.query.tsypid;
|
|
||||||
qcckGet(data,'/mosty-gsxt/wshs/selectPage').then(res=>{
|
|
||||||
let arr = res.records || [];
|
|
||||||
arr.forEach(item => {
|
|
||||||
item.chry = item.chryList ? item.chryList.map(el => el.chryxm).join('、') : '';
|
|
||||||
item.sjry = item.xsryList ? item.xsryList.map(el => el.xm).join('、') : '';
|
|
||||||
});
|
|
||||||
pageData.list = arr;
|
|
||||||
pageData.total = res.total;
|
|
||||||
pageData.loading = false;
|
|
||||||
}).catch(()=>{ pageData.loading = false; })
|
|
||||||
};
|
|
||||||
|
|
||||||
// 提交评论
|
|
||||||
const handleSumbit = (item) => {
|
|
||||||
if (!comments.value) return proxy.$message({ type: "warning", message: "评论内容不能为空" });
|
|
||||||
proxy.$message({ type: "success", message: "评论已发送" });
|
|
||||||
qcckPost({id:item.id,plnr:comments.value},'/mosty-gsxt/wshs/addWshyPl').then((res)=>{
|
|
||||||
getList();
|
|
||||||
item.visible = false; // 关闭评论弹窗
|
|
||||||
comments.value = ''; // 清空评论内容
|
|
||||||
})
|
|
||||||
};
|
|
||||||
// 加入会议
|
|
||||||
const joinMeeting = (item,type) => {
|
|
||||||
item.number = item.hybh;
|
|
||||||
refMeetingView.value.openInit(item,type)
|
|
||||||
};
|
|
||||||
|
|
||||||
// 删除
|
|
||||||
const delDictItem = (id) =>{
|
|
||||||
proxy.$confirm("确定要删除", "警告", {type: "warning"}).then(() => {
|
|
||||||
qcckPost({id},'/mosty-gsxt/wshs/delete').then(()=>{
|
|
||||||
proxy.$message({ type: "success", message: "删除成功" });
|
|
||||||
getList();
|
|
||||||
})
|
|
||||||
}).catch(() => {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 详情
|
// 搜索
|
||||||
const addEdit = (type, row) => {
|
const onSearch = (val) => {
|
||||||
detailDiloag.value.init(type, row);
|
queryFrom.value = { ...val };
|
||||||
};
|
if (val.daterange && val.daterange.length > 0) {
|
||||||
|
queryFrom.value.startTime = val.daterange[0];
|
||||||
|
queryFrom.value.endTime = val.daterange[1];
|
||||||
|
} else {
|
||||||
|
delete queryFrom.value.startTime;
|
||||||
|
delete queryFrom.value.endTime;
|
||||||
|
}
|
||||||
|
pageData.pageConfiger.pageCurrent = 1;
|
||||||
|
getList();
|
||||||
|
};
|
||||||
|
|
||||||
// 表格高度计算
|
const changeNo = (val) => {
|
||||||
const tabHeightFn = () => {
|
pageData.pageConfiger.pageCurrent = val;
|
||||||
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
getList();
|
||||||
window.onresize = function () {
|
};
|
||||||
tabHeightFn();
|
const changeSize = (val) => {
|
||||||
};
|
pageData.pageConfiger.pageSize = val;
|
||||||
|
getList();
|
||||||
|
};
|
||||||
|
|
||||||
|
// 获取列表
|
||||||
|
const getList = () => {
|
||||||
|
pageData.loading = true;
|
||||||
|
let data = { ...pageData.pageConfiger, ...queryFrom.value };
|
||||||
|
delete data.daterange; // 删除daterange字段
|
||||||
|
if (route.query.tsypid) data.tsypid = route.query.tsypid;
|
||||||
|
qcckGet(data, '/mosty-gsxt/wshs/selectPage').then(res => {
|
||||||
|
let arr = res.records || [];
|
||||||
|
arr.forEach(item => {
|
||||||
|
item.chry = item.chryList ? item.chryList.map(el => el.chryxm).join('、') : '';
|
||||||
|
item.sjry = item.xsryList ? item.xsryList.map(el => el.xm).join('、') : '';
|
||||||
|
});
|
||||||
|
pageData.list = arr;
|
||||||
|
pageData.total = res.total;
|
||||||
|
pageData.loading = false;
|
||||||
|
}).catch(() => { pageData.loading = false; })
|
||||||
|
};
|
||||||
|
|
||||||
|
// 提交评论
|
||||||
|
const handleSumbit = (item) => {
|
||||||
|
if (!comments.value) return proxy.$message({ type: "warning", message: "评论内容不能为空" });
|
||||||
|
proxy.$message({ type: "success", message: "评论已发送" });
|
||||||
|
qcckPost({ id: item.id, plnr: comments.value }, '/mosty-gsxt/wshs/addWshyPl').then((res) => {
|
||||||
|
getList();
|
||||||
|
item.visible = false; // 关闭评论弹窗
|
||||||
|
comments.value = ''; // 清空评论内容
|
||||||
|
})
|
||||||
|
};
|
||||||
|
// 加入会议
|
||||||
|
const joinMeeting = (item, type) => {
|
||||||
|
item.number = item.hybh;
|
||||||
|
refMeetingView.value.openInit(item, type)
|
||||||
|
};
|
||||||
|
|
||||||
|
// 删除
|
||||||
|
const delDictItem = (id) => {
|
||||||
|
proxy.$confirm("确定要删除", "警告", { type: "warning" }).then(() => {
|
||||||
|
qcckPost({ id }, '/mosty-gsxt/wshs/delete').then(() => {
|
||||||
|
proxy.$message({ type: "success", message: "删除成功" });
|
||||||
|
getList();
|
||||||
|
})
|
||||||
|
}).catch(() => { });
|
||||||
|
}
|
||||||
|
|
||||||
|
// 详情
|
||||||
|
const addEdit = (type, row) => {
|
||||||
|
detailDiloag.value.init(type, row);
|
||||||
|
};
|
||||||
|
|
||||||
|
// 表格高度计算
|
||||||
|
const tabHeightFn = () => {
|
||||||
|
pageData.tableHeight = window.innerHeight - searchBox.value.offsetHeight - 250;
|
||||||
|
window.onresize = function() {
|
||||||
|
tabHeightFn();
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// 会议详情弹窗
|
// 会议详情弹窗
|
||||||
const conferenceRoomVisible = ref(false);
|
const conferenceRoomVisible = ref(false);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.el-loading-mask {
|
.el-loading-mask {
|
||||||
background: rgba(0, 0, 0, 0.5) !important;
|
background: rgba(0, 0, 0, 0.5) !important;
|
||||||
}
|
}
|
||||||
.tabBox {
|
|
||||||
.pageSearch {
|
.tabBox {
|
||||||
margin-bottom: 0 !important;
|
.pageSearch {
|
||||||
.box {
|
margin-bottom: 0 !important;
|
||||||
align-items: center !important;
|
|
||||||
}
|
.box {
|
||||||
}
|
align-items: center !important;
|
||||||
:deep(.pageSearch .box .item) {
|
|
||||||
margin-bottom: 0 !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.btns {
|
|
||||||
padding: 10px 20px;
|
:deep(.pageSearch .box .item) {
|
||||||
|
margin-bottom: 0 !important;
|
||||||
}
|
}
|
||||||
.list {
|
}
|
||||||
height: calc(100% - 10px);
|
|
||||||
gap: 10px;
|
.btns {
|
||||||
margin: 0 15px;
|
padding: 10px 20px;
|
||||||
overflow: auto;
|
}
|
||||||
.list-item {
|
|
||||||
display: inline-block;
|
.list {
|
||||||
border: 1px solid #ccc;
|
height: calc(100% - 10px);
|
||||||
height: 296px;
|
gap: 10px;
|
||||||
width: 380px;
|
margin: 0 15px;
|
||||||
box-sizing: border-box;
|
overflow: auto;
|
||||||
border-radius: 5px;
|
|
||||||
|
.list-item {
|
||||||
|
display: inline-block;
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
height: 296px;
|
||||||
|
width: 380px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 10px 5px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
border-color: rgb(124, 195, 253);
|
||||||
|
background-color: rgba(190, 233, 255, 0.582);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .mid {
|
||||||
|
border-color: rgb(124, 195, 253);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover .desc {
|
||||||
|
background-color: rgb(190, 233, 255);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
color: black;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
color: #a5a1a1;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
line-height: 1.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.desc {
|
||||||
|
margin-top: 5px;
|
||||||
|
background-color: rgb(242, 242, 242);
|
||||||
|
width: 260px;
|
||||||
|
height: 80px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin: 10px 5px;
|
box-sizing: border-box;
|
||||||
&:hover {
|
overflow: hidden;
|
||||||
border-color: rgb(124, 195, 253);
|
overflow-y: auto;
|
||||||
background-color: rgba(190, 233, 255, 0.582);
|
}
|
||||||
}
|
|
||||||
&:hover .mid {
|
|
||||||
border-color: rgb(124, 195, 253);
|
|
||||||
}
|
|
||||||
&:hover .desc {
|
|
||||||
background-color: rgb(190, 233, 255);
|
|
||||||
}
|
|
||||||
.title {
|
|
||||||
color: black;
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 700;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.info {
|
|
||||||
color: #a5a1a1;
|
|
||||||
font-size: 12px;
|
|
||||||
|
|
||||||
line-height: 1.5;
|
.mid {
|
||||||
}
|
border: 1px dashed rgb(124, 195, 253);
|
||||||
.desc {
|
border-left: 0;
|
||||||
margin-top: 5px;
|
border-right: 0;
|
||||||
background-color: rgb(242, 242, 242);
|
padding: 10px 0;
|
||||||
width: 260px;
|
display: flex;
|
||||||
height: 80px;
|
justify-content: space-between;
|
||||||
padding: 10px;
|
|
||||||
box-sizing: border-box;
|
.left {
|
||||||
overflow: hidden;
|
width: calc(100% - 80px);
|
||||||
overflow-y: auto;
|
|
||||||
}
|
.title {
|
||||||
.mid {
|
font-size: 14px;
|
||||||
border: 1px dashed rgb(124, 195, 253);
|
color: black;
|
||||||
border-left: 0;
|
margin-bottom: 5px;
|
||||||
border-right: 0;
|
|
||||||
padding: 10px 0;
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
.left {
|
|
||||||
width: calc(100% - 80px);
|
|
||||||
.title {
|
|
||||||
font-size: 14px;
|
|
||||||
color: black;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.info {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #a5a1a1;
|
|
||||||
line-height: 1.5;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.info {
|
||||||
width: 80px;
|
font-size: 12px;
|
||||||
.el-button + .el-button {
|
color: #a5a1a1;
|
||||||
margin-left: 0;
|
line-height: 1.5;
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.bottom {
|
|
||||||
display: flex;
|
.right {
|
||||||
justify-content: flex-end;
|
width: 80px;
|
||||||
:deep(.el-link--inner) {
|
|
||||||
display: flex;
|
.el-button+.el-button {
|
||||||
align-items: center;
|
margin-left: 0;
|
||||||
gap: 2px;
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bottom {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
|
||||||
|
:deep(.el-link--inner) {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 2px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user