| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326 |
- <template>
- <div class="containe">
- <div class="top">
- <div class="left">
- <div class="left1">
- <div class="left-top">
- <h3>通知</h3>
- <p @click="leftMores">更多</p>
- </div>
- <ul class="left-main">
- <li v-for="item in notices" :key="item.id">
- <div class="one">通知标题:{{ item.msgTitle }}</div>
- <div class="two">发送时间:{{ item.createTime }}</div>
- <div>发<span class="three">送</span>人:{{ item.createBy }}</div>
- <div class="four">
- <p class="four1">通知内容:</p>
- <p class="four2" v-html="item.msgContent"></p>
- </div>
- <div class="five">
- <span @click="looks(item.msgContent)">查看详细</span>
- </div>
- </li>
- </ul>
- </div>
- </div>
- <div class="cen">
- <div class="cen—top">
- <el-select v-model="type" class="cen—top-left">
- <el-option value="1" label="公共文档">公共文档</el-option>
- <el-option value="2" label="部门文档">部门文档</el-option>
- <el-option value="3" label="个人文档">个人文档</el-option>
- </el-select>
- <div class="cen—top-right">
- <div class="cen—top-div">
- <el-input type="text" placeholder="请输入文档信息" v-model="input" class="searchs"
- @keyup.enter.native="jumpSearch"></el-input>
- <div class="cen—top-but" @click="jumpSearch">快速搜索</div>
- <img src="../../assets/img/ri:search-2-line@2x.png" class="cen—top-img" />
- </div>
- </div>
- </div>
- <div class="cen—bottom">
- <div class="one" @click="checkRouteAndNavigate('/home/doc/personal')" style="cursor: pointer;">
- <p>个人文档</p>
- <img src="../../assets/img/MMB1.png" alt="" />
- </div>
- <router-link :to="{ path: '/home/doc/dept' }" class="two">
- <p>部门文档</p>
- <img src="../../assets/img/MMB2.png" alt="" />
- </router-link>
- <router-link :to="{ path: '/home/doc/public' }" class="three">
- <p>公共文档</p>
- <img src="../../assets/img/MMB3.png" alt="" />
- </router-link>
- <router-link :to="{ path: '/home/setting/ocr' }" class="four">
- <p>文字识别</p>
- <img src="../../assets/img/MMB4.png" alt="" />
- </router-link>
- </div>
- </div>
- <div class="right">
- <div class="right1">
- <div class="right-top">
- <h3>消息</h3>
- <p @click="rightMores">更多</p>
- </div>
- <ul class="right-main">
- <li v-for="item in msg" :key="item.id">
- <div class="one">消息标题:{{ item.msgTitle }}</div>
- <div class="two">消息时间:{{ item.createTime }}</div>
- <div>发<span class="three">送</span>人:{{ item.createBy }}</div>
- <div class="four">
- <p class="four1">消息内容:</p>
- <p class="four2" v-html="item.msgContent"></p>
- </div>
- <div class="five">
- <span @click="looks(item.msgContent)">查看详细</span>
- </div>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="bottom">
- <div class="left">
- <div class="left-top">
- <h3>最近收到的文件</h3>
- <p @click="mores">更多</p>
- </div>
- <el-table :data="tableData1" stripe style="width: 99%" class="left-main" height="calc(100vh * (230 / 1080))">
- <el-table-column prop="docName" label="文件名" width="180">
- </el-table-column>
- <el-table-column prop="user" label="发件人" width="120">
- </el-table-column>
- <el-table-column prop="createTime" label="收到时间" width="160">
- </el-table-column>
- <el-table-column prop="docType" label="文件类型" width="80">
- </el-table-column>
- <el-table-column prop="docLevel" label="文件级别" width="80" :formatter="fileLevelData">
- </el-table-column>
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button size="mini" type="text" icon="el-icon-view" @click="handlePreview(scope.row)">预览</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- <div class="right">
- <div class="right-top">
- <h3>最近发送的文件</h3>
- <p @click="mores2">更多</p>
- </div>
- <el-table :data="tableData2" stripe style="width: 99%" class="right-main" height="calc(100vh * (230 / 1080))">
- <el-table-column prop="docName" label="文件名" width="180">
- </el-table-column>
- <el-table-column prop="createTime" label="收到时间" width="180">
- </el-table-column>
- <el-table-column prop="docType" label="文件类型" width="120">
- </el-table-column>
- <el-table-column prop="docLevel" label="文件级别" width="80" :formatter="fileLevelData">
- </el-table-column>
- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
- <template slot-scope="scope">
- <el-button size="mini" type="text" icon="el-icon-view" @click="handlePreview(scope.row)">预览</el-button>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <!-- 预览对话框 -->
- <div class="dhk" v-if="preview">
- <video :src="vid" controls v-if="vid1"></video>
- <audio :src="aud" controls v-if="aud1"></audio>
- <div class="image-container" v-if="img1">
- <el-image :src="imgg" ref="imageRef" style="max-width: 100%" @mousewheel.prevent="gunlun" />
- <el-button-group>
- <el-button icon="el-icon-refresh-left" @click="rotate(-90)" title="向左旋转"></el-button>
- <el-button icon="el-icon-refresh-right" @click="rotate(90)" title="向右旋转"></el-button>
- <el-button icon="el-icon-zoom-in" @click="scale(0.1)" title="放大"></el-button>
- <el-button icon="el-icon-zoom-out" @click="scale(-0.1)" title="缩小"></el-button>
- </el-button-group>
- </div>
- <el-button class="gb" icon="el-icon-close" circle @click="gb" />
- </div>
- <!-- 是否机密文件 -->
- <!-- <div class="jm" v-if="check">
- <el-form
- ref="loginForm"
- :model="loginForm"
- :rules="loginRules"
- label-width="100px"
- class="login-form"
- >
- <el-form-item label="用户名" prop="username">
- <el-input
- type="text"
- v-model="loginForm.username"
- autocomplete="off"
- ></el-input>
- </el-form-item>
- <el-form-item label="密码" prop="password">
- <el-input
- type="password"
- v-model="loginForm.password"
- autocomplete="off"
- ></el-input>
- </el-form-item>
- <el-form-item style="width: 100%">
- <el-button
- size="medium"
- type="primary"
- style="width: 30%"
- @click="submitForm"
- >
- 提交
- </el-button>
- </el-form-item>
- </el-form>
- <el-button
- class="gb1"
- icon="el-icon-close"
- size="small"
- circle
- @click="gb1"
- />
- </div> -->
- <!-- 查看详细 -->
- <el-dialog title="内容详细" :visible.sync="look1" width="30%" custom-class="el-dialog6">
- <div class="main" v-html="details"></div>
- <span slot="footer" class="dialog-footer1">
- <el-button type="primary" @click="look1 = false">确 定</el-button>
- <el-button @click="look1 = false">取 消</el-button>
- </span>
- </el-dialog>
- </div>
- </template>
- <script>
- import Cookies from "js-cookie";
- import store from "@/store";
- import "@/styles1/element-ui1.scss";
- import {
- listLevel
- } from "@/api/doc/level";
- import {
- officeType
- } from "@/api/doc/info";
- import {
- delShare1,
- delShare2,
- notice,
- msg
- } from "@/api/doc/share1";
- export default {
- data() {
- return {
- //文件等级数据
- levelOptions: [],
- //内容详细弹窗
- look1: false,
- //内容详细弹窗内容
- details: "",
- //中间通知列表
- notices: [],
- //中间消息列表
- msg: [],
- //搜索
- type: "1",
- input: "",
- //机密文件的账号密码内容
- // loginForm: {
- // username: "",
- // password: "",
- // },
- //机密文件的账号密码验证规则
- // loginRules: {
- // username: [
- // { required: true, trigger: "blur", message: "请输入您的用户名" },
- // ],
- // password: [
- // { required: true, trigger: "blur", message: "请输入您的密码" },
- // ],
- // },
- //底部左边表格数据
- tableData1: [],
- //底部右边表格数据
- tableData2: [],
- //预览图片的旋转
- scalePercentage: 1,
- //预览图片的缩放
- rotationAngle: 0,
- // 预览界面
- preview: false,
- // 机密界面
- // check: false,
- //视频路径和显示
- vid: "",
- vid1: false,
- //音频路径和显示
- aud: "",
- aud1: false,
- //图片路径和显示
- imgg: "",
- img1: false,
- // 临时保存当前点击行 row
- currentRow: {},
- };
- },
- mounted() {
- this.getList();
- this.noticesList();
- this.msgList();
- // this.loginForm.username = sessionStorage.getItem("name");
- },
- methods: {
- /**
- * 检查权限并导航到指定路由
- * @param {string} routePath - 目标路由路径
- */
- checkRouteAndNavigate(routePath) {
- if (this.checkRouteAccess(routePath)) {
- this.$router.push(routePath);
- }
- },
- /**
- * 检查路由访问权限
- * @param {string} routePath - 要检查的路由路径
- */
- checkRouteAccess(routePath) {
- // 获取用户角色
- const userRoles = store.getters.roles;
- // 定义角色对应的路由权限(根据你的实际业务调整)
- const rolePermissions = {
- admin: ['/home/doc/personal', '/home/doc/dept', '/home/doc/public', '/home/setting/ocr'],
- user: ['/home/doc/personal'],
- deptManager: ['/home/doc/personal', '/home/doc/dept']
- };
- // 检查当前用户的角色是否有访问该路由的权限
- const hasPermission = userRoles.some(role => {
- const permissions = rolePermissions[role] || [];
- return permissions.includes(routePath);
- });
- if (!hasPermission) {
- this.$modal.msgWarning('您没有访问该功能的权限');
- return false;
- }
- return true;
- },
- //通知内容更多
- leftMores() {
- this.$router.push("/home/page/leftmores");
- },
- //消息内容更多
- rightMores() {
- this.$router.push("/home/page/rightmores");
- },
- //内容详细
- looks(val) {
- this.look1 = true;
- this.details = val;
- },
- //中间通知列表
- noticesList() {
- notice().then((response) => {
- this.notices = response.rows;
- // console.log(response.rows);
- });
- },
- //中间通知列表
- msgList() {
- msg().then((response) => {
- this.msg = response.rows;
- });
- },
- // 搜索跳转
- jumpSearch() {
- this.$router.push({
- path: "/home/retrieval",
- query: {
- datas: this.input,
- data2: this.type
- },
- });
- // sessionStorage.setItem("suju", this.input);
- },
- //底部左边表格更多跳转
- mores() {
- this.$router.push("/home/page/more");
- },
- //底部右边表格更多跳转
- mores2() {
- this.$router.push("/home/page/more2");
- },
- //底部表格数据
- getList() {
- //左边表格
- delShare1(this.queryParams).then((response) => {
- // console.log(response.rows,'111111111');
- // 给定义的列表空数组赋值
- this.tableData1 = response.rows;
- //改变是否机密的值
- // var newisSecret = this.tableData1.map((item) => item.isSecret);
- // // console.log(a);
- // newisSecret = response.rows.map(
- // (i) => (i.isSecret = i.isSecret == 1 ? "是" : "否")
- // );
- // console.log(newisSecret);
- });
- //右边边表格
- delShare2(this.queryParams).then((response) => {
- // console.log(response.rows,'111111111');
- // 给定义的列表空数组赋值
- this.tableData2 = response.rows;
- // //改变是否机密的值
- // var newisSecret = this.tableData2.map((item) => item.isSecret);
- // // console.log(a);
- // newisSecret = response.rows.map(
- // (i) => (i.isSecret = i.isSecret == 1 ? "是" : "否")
- // );
- // console.log(newisSecret);
- });
- //获取文件级别数据
- listLevel().then((response) => {
- this.levelOptions = response.rows;
- });
- },
- /**处理文档级别数据*/
- fileLevelData(row, col, value) {
- try {
- const obj = this.levelOptions.find((item) => item.levelId == value);
- return obj.levelName;
- } catch (e) {}
- },
- // 滚轮滑动放大缩小
- gunlun(e) {
- const image = this.$refs.imageRef.$el.querySelector("img");
- if (e.deltaY > 0) {
- // console.log("鼠标向下滚动,图片缩小");
- this.scalePercentage -= 0.1;
- image.style.transform = `scale(${this.scalePercentage})`;
- } else {
- // console.log("鼠标向上滚动,图片放大");
- this.scalePercentage += 0.1;
- image.style.transform = `scale(${this.scalePercentage})`;
- }
- },
- //预览图片的缩放
- rotate(angle) {
- this.rotationAngle += angle;
- const image = this.$refs.imageRef.$el.querySelector("img");
- image.style.transform = `rotate(${this.rotationAngle}deg)`;
- },
- //预览图片的旋转
- scale(delta) {
- this.scalePercentage += delta;
- const image = this.$refs.imageRef.$el.querySelector("img");
- image.style.transform = `scale(${this.scalePercentage})`;
- },
- // 预览关闭
- gb() {
- this.preview = false;
- },
- // 检验关闭
- // gb1() {
- // this.check = false;
- // },
- // 是否机密
- // isSecretRole(row) {
- // this.currentRow = row;
- // // console.log(`row=${row}`);
- // if (row.isSecret == "是") {
- // this.check = true;
- // }else{
- // this.handlePreview(row)
- // }
- // },
- //预览
- handlePreview(row) {
- // row = this.currentRow;
- //图片后缀名
- var pictures = ["jpeg", "tiff", "raw", "bmp", "gif", "png", "jpg"];
- //音频后缀名
- var audios = [
- "mid",
- "mp3",
- "wav",
- "wma",
- "ra",
- "ogg",
- "flac",
- "aac",
- "ape",
- ];
- //视频后缀名
- var videos = [
- "asf",
- "avi",
- "mp4",
- "ogm",
- "ifo",
- "mpg",
- "mov",
- "mpeg",
- "mpg",
- "vob",
- "wmv",
- "rm",
- "rmvb",
- ];
- //判断后缀名
- if (videos.some((item) => item == row.docType)) {
- this.preview = true;
- this.vid1 = true;
- this.aud1 = false;
- this.img1 = false;
- this.vid = row.docPath;
- } else if (audios.some((item) => item == row.docType)) {
- this.preview = true;
- this.aud1 = true;
- this.vid1 = false;
- this.img1 = false;
- this.aud = row.docPath;
- } else if (pictures.some((item) => item == row.docType)) {
- this.preview = true;
- this.aud1 = false;
- this.vid1 = false;
- this.img1 = true;
- this.imgg = row.docPath;
- } else if (officeType.some(item => item == row.docType)) {
- row.isEdit = false;
- this.$tab.openPage(
- window.open('/individual/Pre/user/' + row.docId + "?row=" + JSON.stringify(row),
- '_blank'),
- // window.open("/individual/Pre/user/" + row.docId +"/title/"+ row.docName, '_blank'),
- );
- // console.log(111);
- } else {
- this.$modal.msgWarning("该文件不支持预览");
- }
- },
- //验证账号密码
- // getCookie() {
- // const username = Cookies.get("username");
- // const password = Cookies.get("password");
- // const rememberMe = Cookies.get("rememberMe");
- // this.loginForm = {
- // username: username === undefined ? this.loginForm.username : username,
- // password:
- // password === undefined ? this.loginForm.password : decrypt(password),
- // rememberMe: rememberMe === undefined ? false : Boolean(rememberMe),
- // };
- // },
- //验证账号密码
- // submitForm(row) {
- // this.$refs.loginForm.validate((valid) => {
- // if (valid) {
- // if (this.loginForm.rememberMe) {
- // Cookies.set("username", this.loginForm.username, { expires: 30 });
- // Cookies.set("password", encrypt(this.loginForm.password), {
- // expires: 30,
- // });
- // } else {
- // Cookies.remove("username");
- // Cookies.remove("password");
- // }
- // this.$store
- // .dispatch("Login", this.loginForm)
- // .then(() => {
- // // 登录成功
- // this.currentLoginStatus = 1;
- // // 关闭登录界面
- // this.check = false;
- // // console.log("登录成功", "关闭登录界面");
- // // console.log("预览界面");
- // this.handlePreview(row);
- // })
- // .catch(() => {
- // this.currentLoginStatus = 0;
- // });
- // }
- // });
- // },
- },
- };
- </script>
- <style scoped lang='scss'>
- .containe {
- color: #7ea4c8ff;
- /* font-size: 0.14rem; */
- font-family: PingFang SC-Medium, PingFang SC;
- background: url(../../assets/img/background.png);
- background-size: 100% 100%;
- padding-top: calc(100vh * (50 / 1080));
- .top {
- width: 100%;
- height: calc(100vh * (600 / 1080));
- padding-left: calc(100vw * (34 / 1920));
- padding-right: calc(100vw * (30 / 1920));
- display: flex;
- justify-content: space-between;
- .left {
- //滚动条样式
- ::-webkit-scrollbar {
- width: 3.5px;
- }
- ::-webkit-scrollbar-track {
- background-color: rgba(0, 0, 0, 0);
- }
- ::-webkit-scrollbar-thumb {
- background: #2e8aec;
- border-radius: 3px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: #2e8aec;
- }
- width: calc(100vw * (395 / 1920));
- height: calc(100vh * (568 / 1080));
- background: url(../../assets/img/main_BG_left.png);
- background-size: calc(100vw * (395 / 1920)) calc(100vh * (568 / 1080));
- padding-left: 10px;
- padding-top: 5px;
- .left1 {
- width: calc(100vw * (375 / 1920));
- height: calc(100vh * (556 / 1080));
- .left-top {
- width: calc(100vw * (365 / 1920));
- height: calc(100vh * (40 / 1080));
- margin-top: 5px;
- padding-left: calc(100vw * (20 / 1920));
- padding-right: calc(100vw * (20 / 1920));
- background: url(../../assets/img/main_left_decorate.png);
- background-size: calc(100vw * (365 / 1920)) calc(100vh * (40 / 1080));
- display: flex;
- justify-content: space-between;
- align-items: center;
- h3 {
- font-weight: bold;
- font-family: YouSheBiaoTiHei-Regular, YouSheBiaoTiHei;
- color: #ffffff;
- }
- p {
- padding-right: 10px;
- color: #2e8aecff;
- font-family: PingFang SC-Medium;
- &:hover {
- cursor: pointer;
- }
- }
- }
- }
- .left-main {
- width: calc(100vw * (365 / 1920));
- height: calc(100vh * (480 / 1080));
- list-style: none;
- padding: 0;
- margin-top: calc(100vh * (10 / 1080));
- overflow: auto;
- li {
- width: calc(100vw * (360 / 1920));
- height: calc(100vh * (230 / 1080));
- background: rgba(18, 32, 80, 0.4);
- border-radius: 2px 2px 2px 2px;
- opacity: 1;
- margin-bottom: calc(100vh * (10 / 1080));
- div {
- padding-top: 8px;
- padding-left: 20px;
- padding-right: 5px;
- }
- .one {
- padding-top: 12px;
- }
- .three {
- padding-left: calc(100vw * (6 / 1920));
- padding-right: calc(100vw * (6 / 1920));
- }
- .five {
- display: flex;
- justify-content: space-evenly;
- color: #2e8aecff;
- padding-top: calc(100vh * (20 / 1080));
- &:hover {
- cursor: pointer;
- }
- }
- .four {
- display: flex;
- padding-top: calc(100vh * (10 / 1080));
- .four1 {
- width: calc(100vw * (60 / 1920));
- }
- .four2 {
- width: calc(100vw * (250 / 1920));
- height: calc(100vh * (55 / 1080));
- // background: salmon;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 3;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- }
- }
- }
- }
- }
- .right {
- //滚动条样式
- ::-webkit-scrollbar {
- width: 3.5px;
- }
- ::-webkit-scrollbar-track {
- background-color: rgba(0, 0, 0, 0);
- }
- ::-webkit-scrollbar-thumb {
- background: #2e8aec;
- border-radius: 3px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: #2e8aec;
- }
- width: calc(100vw * (395 / 1920));
- height: calc(100vh * (568 / 1080));
- background: url(../../assets/img/main_BG_left.png);
- background-size: calc(100vw * (395 / 1920)) calc(100vh * (568 / 1080));
- padding-left: 10px;
- padding-top: 5px;
- .right1 {
- width: calc(100vw * (375 / 1920));
- height: calc(100vh * (556 / 1080));
- .right-top {
- width: calc(100vw * (365 / 1920));
- height: calc(100vh * (40 / 1080));
- margin-top: 5px;
- padding-left: calc(100vw * (20 / 1920));
- padding-right: calc(100vw * (20 / 1920));
- background: url(../../assets/img/main_left_decorate.png);
- background-size: calc(100vw * (365 / 1920)) calc(100vh * (40 / 1080));
- display: flex;
- justify-content: space-between;
- align-items: center;
- h3 {
- font-weight: bold;
- font-family: YouSheBiaoTiHei-Regular, YouSheBiaoTiHei;
- color: #ffffff;
- }
- p {
- padding-right: 10px;
- color: #2e8aecff;
- font-family: PingFang SC-Medium;
- &:hover {
- cursor: pointer;
- }
- }
- }
- }
- .right-main {
- width: calc(100vw * (365 / 1920));
- height: calc(100vh * (480 / 1080));
- list-style: none;
- padding: 0;
- margin-top: calc(100vh * (10 / 1080));
- overflow: auto;
- li {
- width: calc(100vw * (360 / 1920));
- height: calc(100vh * (230 / 1080));
- background: rgba(18, 32, 80, 0.4);
- border-radius: 2px 2px 2px 2px;
- opacity: 1;
- margin-bottom: calc(100vh * (10 / 1080));
- div {
- padding-top: 8px;
- padding-left: 20px;
- padding-right: 5px;
- }
- .one {
- padding-top: 12px;
- }
- .three {
- padding-left: calc(100vw * (6 / 1920));
- padding-right: calc(100vw * (6 / 1920));
- }
- .five {
- display: flex;
- justify-content: space-evenly;
- color: #2e8aecff;
- padding-top: calc(100vh * (20 / 1080));
- &:hover {
- cursor: pointer;
- }
- }
- .four {
- display: flex;
- padding-top: calc(100vh * (10 / 1080));
- .four1 {
- width: calc(100vw * (60 / 1920));
- }
- .four2 {
- width: calc(100vw * (250 / 1920));
- height: calc(100vh * (55 / 1080));
- // background: salmon;
- overflow: hidden;
- text-overflow: ellipsis;
- -webkit-line-clamp: 3;
- word-break: break-all;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- }
- }
- }
- }
- }
- .cen {
- width: calc(100vw * (804 / 1920));
- height: calc(100vh * (600 / 1080));
- // background: aqua;
- position: relative;
- .cen—top {
- width: calc(100vw * (700 / 1920));
- height: calc(100vh * (40 / 1080));
- // background: salmon;
- // overflow: hidden;
- margin-left: calc(100vw * (61 / 1920));
- display: flex;
- align-items: center;
- .cen—top-left {
- width: calc(100vw * (130 / 1920));
- height: calc(100vh * (36 / 1080));
- // background: seagreen;
- margin-right: calc(100vw * (5 / 1920));
- font-size: 12px;
- color: #2e8aecff;
- display: flex;
- align-items: center;
- ::v-deep .el-input--medium .el-input__inner {
- height: 26px;
- line-height: 26px;
- font-size: 12px;
- }
- ::v-deep .el-input__suffix {
- height: 120%;
- }
- .el-dropdown-link {
- cursor: pointer;
- color: #409eff;
- }
- .el-icon-arrow-down {
- font-size: 12px;
- }
- }
- .cen—top-right {
- width: calc(100vw * (526 / 1920));
- height: calc(100vh * (36 / 1080));
- // margin-left: calc(100vw * (60 / 1920));
- // background: skyblue;
- .cen—top-div {
- position: relative;
- .cen—top-img {
- // background-size: calc(100vw * (24 / 1920)) calc(100vh * (24/ 1080));
- width: calc(100vw * (24 / 1920));
- height: calc(100vh * (24 / 1080));
- position: absolute;
- left: calc(100vw * (15 / 1920));
- top: calc(100vh * (7 / 1080));
- }
- .searchs {
- width: calc(100vw * (420 / 1920));
- ::v-deep .el-input__inner {
- height: calc(100vh * (36 / 1080)) !important;
- padding-left: calc(100vw * (50 / 1920));
- background: #14265e80;
- border: 1px solid #01d1ffff;
- color: #7ea4c8ff;
- }
- }
- .cen—top-but {
- width: calc(100vw * (100 / 1920));
- height: calc(100vh * (36 / 1080));
- display: inline-block;
- text-align: center;
- line-height: calc(100vh * (36 / 1080));
- background: #01d1ff80;
- color: #ffffffcc;
- vertical-align: top;
- &:hover {
- cursor: pointer;
- }
- }
- }
- }
- }
- .cen—bottom {
- width: calc(100vw * (784 / 1920));
- height: calc(100vh * (477 / 1080));
- background: url(../../assets/img/MMB.png);
- background-size: calc(100vw * (784 / 1920)) calc(100vh * (477 / 1080));
- margin-top: calc(100vh * (80 / 1080));
- position: relative;
- /* font-size: 0.18rem; */
- color: #ffffffff;
- font-weight: 400;
- p {
- /* font-size: 0.18rem; */
- font-family: YouSheBiaoTiHei-Regular, YouSheBiaoTiHei;
- font-weight: bold;
- color: #ffffff;
- }
- .one {
- position: absolute;
- display: flex;
- flex-direction: column;
- align-items: center;
- left: calc(100vw * (172 / 1920));
- top: -30px;
- width: calc(100vw * (140 / 1920));
- height: calc(100vh * (153 / 1080));
- img {
- width: 100%;
- height: calc(100vh * (130 / 1080));
- }
- }
- .two {
- position: absolute;
- display: flex;
- flex-direction: column;
- align-items: center;
- left: calc(100vw * (442 / 1920));
- top: -30px;
- width: calc(100vw * (140 / 1920));
- height: calc(100vh * (153 / 1080));
- img {
- width: 100%;
- height: calc(100vh * (130 / 1080));
- }
- }
- .three {
- display: flex;
- flex-direction: column;
- align-items: center;
- position: absolute;
- left: calc(100vw * (36 / 1920));
- top: calc(100vh * (150 / 1080));
- width: calc(100vw * (140 / 1920));
- height: calc(100vh * (153 / 1080));
- img {
- width: 100%;
- height: calc(100vh * (130 / 1080));
- }
- }
- .four {
- display: flex;
- flex-direction: column;
- align-items: center;
- position: absolute;
- right: calc(100vw * (57 / 1920));
- top: calc(100vh * (150 / 1080));
- width: calc(100vw * (140 / 1920));
- height: calc(100vh * (153 / 1080));
- img {
- width: 100%;
- height: calc(100vh * (130 / 1080));
- }
- }
- }
- }
- }
- .bottom {
- width: 100%;
- height: calc(100vh * (304 / 1080));
- background-size: cover;
- margin-top: calc(100vh * (30 / 1080));
- padding-left: calc(100vw * (30 / 1920));
- padding-right: calc(100vw * (34 / 1920));
- display: flex;
- justify-content: space-between;
- .left {
- width: calc(100vw * (920 / 1920));
- height: calc(100vh * (304 / 1080));
- background: url(../../assets/img/footer.png);
- background-size: calc(100vw * (920 / 1920)) calc(100vh * (304 / 1080));
- padding-left: 10px;
- .left-top {
- width: calc(100vw * (880 / 1920));
- height: calc(100vh * (40 / 1080));
- color: #ffffff;
- margin-top: 10px;
- background: url(../../assets/img/main_left_decorate.png);
- background-size: calc(100vw * (880 / 1920)) calc(100vh * (40 / 1080));
- display: flex;
- justify-content: space-between;
- align-items: center;
- h3 {
- padding-left: 10px;
- /* font-size: 0.2rem; */
- font-weight: bold;
- font-family: YouSheBiaoTiHei-Regular, YouSheBiaoTiHei;
- }
- p {
- padding-right: 10px;
- /* font-size: 0.2rem; */
- color: #2e8aecff;
- font-family: PingFang SC-Medium;
- &:hover {
- cursor: pointer;
- }
- }
- }
- .left-main {
- margin-top: calc(100vh * (8 / 1080));
- color: #7ea4c8ff;
- background: transparent;
- height: calc(100vh * (230 / 1080));
- // overflow: auto;
- /* font-size: 0.14rem; */
- }
- //滚动条样式
- ::-webkit-scrollbar {
- width: 3.5px;
- }
- ::-webkit-scrollbar-track {
- background-color: rgba(0, 0, 0, 0);
- }
- ::-webkit-scrollbar-thumb {
- background: #2e8aec;
- border-radius: 3px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: #2e8aec;
- }
- }
- .right {
- width: calc(100vw * (920 / 1920));
- height: calc(100vh * (304 / 1080));
- background: url(../../assets/img/footer.png);
- background-size: calc(100vw * (920 / 1920)) calc(100vh * (304 / 1080));
- padding-left: 10px;
- .right-top {
- width: calc(100vw * (880 / 1920));
- height: calc(100vh * (40 / 1080));
- color: #ffffff;
- margin-top: 10px;
- background: url(../../assets/img/main_left_decorate.png);
- background-size: calc(100vw * (880 / 1920)) calc(100vh * (40 / 1080));
- display: flex;
- justify-content: space-between;
- align-items: center;
- h3 {
- padding-left: 10px;
- /* font-size: 0.2rem; */
- font-weight: bold;
- font-family: YouSheBiaoTiHei-Regular, YouSheBiaoTiHei;
- }
- p {
- padding-right: 10px;
- /* font-size: 0.2rem; */
- color: #2e8aecff;
- font-family: PingFang SC-Medium;
- &:hover {
- cursor: pointer;
- }
- }
- }
- .right-main {
- margin-top: calc(100vh * (8 / 1080));
- color: #7ea4c8ff;
- background: transparent;
- height: calc(100vh * (230 / 1080));
- // overflow: auto;
- /* font-size: 0.14rem; */
- }
- //滚动条样式
- ::-webkit-scrollbar {
- width: 3.5px;
- }
- ::-webkit-scrollbar-track {
- background-color: rgba(0, 0, 0, 0);
- }
- ::-webkit-scrollbar-thumb {
- background: #2e8aec;
- border-radius: 3px;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: #2e8aec;
- }
- }
- }
- //预览弹窗
- .dhk {
- width: calc(100vw * (1200 / 1920));
- height: calc(100vh * (850 / 1080));
- // background: salmon;
- background: #0f1540ff;
- position: absolute;
- top: 10%;
- left: 20%;
- z-index: 99;
- display: flex;
- justify-content: center;
- align-items: center;
- .gb {
- position: absolute;
- top: 0;
- right: 0;
- }
- video {
- width: calc(100vw * (1440 / 1920));
- height: calc(100vh * (810 / 1080));
- }
- .el-image {
- width: calc(100vw * (960 / 1920));
- height: calc(100vh * (720 / 1080));
- }
- .el-button-group {
- position: absolute;
- bottom: 0;
- left: 35%;
- }
- }
- //机密验证界面
- .jm {
- width: calc(100vw * (530 / 1920));
- height: calc(100vh * (370 / 1080));
- // background: salmon;
- background: url(../../assets/img/Group-585.png);
- background-size: calc(100vw * (530 / 1920)) calc(100vh * (370 / 1080));
- padding-top: calc(100vh * (50 / 1080));
- padding-left: calc(100vw * (30 / 1920));
- position: absolute;
- top: 25%;
- left: 35%;
- z-index: 99;
- display: flex;
- // justify-content: center;
- align-items: center;
- .gb1 {
- position: absolute;
- top: 10%;
- right: 8%;
- }
- .el-button-group {
- position: absolute;
- top: 10%;
- right: 1%;
- }
- }
- }
- ::v-deep .el-icon-arrow-down:before {
- display: none;
- }
- //table样式
- ::v-deep .el-table th {
- background: #016c9aa6;
- color: #2e8aecff;
- }
- ::v-deep .el-table tr {
- background: transparent;
- }
- ::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
- background: transparent;
- }
- //table顶部白线消失处理
- ::v-deep .el-table th.el-table__cell.is-leaf {
- border-bottom: 1px solid #006c9aff;
- padding: 0;
- }
- //table底下白线消失处理
- ::v-deep .el-table {
- color: #ffffffff;
- }
- ::v-deep .el-table::before {
- width: 0;
- }
- //tr下面边框
- ::v-deep .el-table td.el-table__cell {
- border-bottom: 1px solid #083b61ff;
- padding: 8px 0;
- }
- ::v-deep .el-table tbody tr:hover>td {
- background-color: #016c9a78 !important;
- }
- //预览弹出框样式
- ::v-deep .el-form-item__label {
- color: #2e8aecff;
- }
- ::v-deep .el-input__inner {
- background-color: transparent;
- border: 1px solid #01d1ffff;
- color: #ffffffcc;
- }
- //底部表格超出显示滚动条
- ::v-deep .el-table--scrollable-x .el-table__body-wrapper {
- overflow: auto;
- }
- //通知内容详细
- ::v-deep .el-dialog6 {
- width: calc(100vw * (800 / 1920)) !important;
- height: calc(100vh * (950 / 1080)) !important;
- background: url(../../assets/img/Group-585.png);
- background-size: calc(100vw * (800 / 1920)) calc(100vh * (950 / 1080));
- .el-dialog__title {
- color: #ffffff;
- }
- .main {
- margin-top: calc(100vh * (40 / 1080));
- width: calc(100vw * (640 / 1920));
- height: calc(100vh * (680 / 1080));
- // background: salmon;
- color: #7ea4c8ff;
- overflow: auto;
- }
- }
- </style>
- <style>
- /* 中间下拉菜单样式 */
- .el-dropdown-menu {
- background-color: #0f1540;
- border: 1px solid #0f1540ff;
- }
- .el-dropdown-menu__item {
- color: #006c9aff;
- }
- .el-dropdown-menu__item:hover {
- background: #01d1ff3b !important;
- }
- </style>
|