123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644 |
- <template>
- <div class="header">
- <!-- 大盒子 -->
- <div class="box">
- <!-- 头部区域 -->
- <div class="tou">
- <div class="yong_hu">
- <!-- <span style="color: ">单位 :</span> -->
- <span class="span" style="padding-left: 4px">{{ danWie }}</span>
- <span style="color: #00f6ff">用户名 :</span>
- <span style="padding-left: 4px; color: #00f6ff">{{ yongHu }}</span>
- </div>
- <span style="color: #00f6ff; font-size: 1vw" class="tiem">{{
- times
- }}</span>
- <!-- <img class="liuxian" src="../assets/images/流线.gif" alt />
- <img class="img-left" src="../assets/images/闪烁GIF-慢.gif" alt /> -->
- </div>
- <!-- 主体区域 -->
- <div class="centen">
- <!-- 左面盒子 -->
- <div class="boxx">
- <ul class="ul">
- <li>
- <div class="demo-box">
- <div class="demo active" v-on:click="doThis">
- <img src="../images/dj.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">基 层 登 记</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- id="a1"
- v-on:click="wenyinfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/dy.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">集 中 文 印</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="gongzuofun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/gz.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">工 作 安 排</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="guizhangfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/zd.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">规 章 制 度</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="taishifun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/fx.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">态 势 分 析</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- id="q1"
- class="demo active"
- v-on:click="tongzhifun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../assets/images/通知公告1.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">通 知 公 告</a>
- </div>
- </li>
- <img src="../assets/images/椭圆 513 (2).png" class="li-img" alt />
- </ul>
- <hr />
- <ul class="ul">
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="zhanbeifun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/zb.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">战备值班</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="jianchafun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/jc.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">检查督导</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="renyuanfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/ry.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">人员进出</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="anfangfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/af.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">安防监控</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="mengangfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/ag.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">门岗管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div class="demo active" id="a2" data-url="/diary?ref=addtabs">
- <img src="../images/mj.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">门禁管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="zhinengfun"
- data-url="/diary?ref=addtabs"
- >
- <img
- src="../assets/images/智能手机柜.png"
- alt
- class="phone"
- />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">智能手机柜</a>
- </div>
- </li>
- <img src="../assets/images/椭圆 513 (2).png" class="li-img" alt />
- </ul>
- <hr />
- <ul class="ul">
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="sixiangfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/sx.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">思想政治教育</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="renlifun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/rl.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">人力资源</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="xitongfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/xt.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">系统管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="gongju"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/xt.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">系统工具</a>
- </div>
- </li>
- <img src="../assets/images/椭圆 513 (2).png" class="li-img" alt />
- </ul>
- <hr />
- <ul class="ul">
- <li>
- <div class="demo-box">
- <div class="demo active" id="a3" v-on:click="junchefun">
- <img src="../images/cart.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">车辆管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="yingfangfun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/git.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">营房管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="yingjufun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/gl.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">营具管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="yiliaofun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../images/yl.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">医疗卫生管理</a>
- </div>
- </li>
- <li>
- <div class="demo-box">
- <div
- class="demo active"
- v-on:click="baomifun"
- data-url="/diary?ref=addtabs"
- >
- <img src="../assets/images/保密协议.png" alt />
- </div>
- </div>
- <div class="demo-a">
- <a href="#" class="a">涉密载体</a>
- </div>
- </li>
- </ul>
- </div>
- <!-- 右面盒子 -->
- <div class="rigin">
- <div class="num1">
- <div class="num2">
- <img src="../images/db.png" alt />
- <span>待办事项</span>
- </div>
- <ul class="num1-ul">
- <div class="num2-ul-title">
- <div class="num2-ul-title-l">代办事项</div>
- <div class="num2-ul-title-c">分类</div>
- <div class="num2-ul-title-r">执行人</div>
- </div>
- <li
- class="num2-ul-li"
- v-for="item in worklist"
- :key="item.id"
- @click="dbsxfun"
- >
- <div class="num2-ul-li-l">{{ item.taskName }}</div>
- <div class="num2-ul-li-c">工作</div>
- <div class="num2-ul-li-r">{{ item.peopleName }}</div>
- </li>
- </ul>
- </div>
- <div class="num1">
- <div class="num2">
- <img src="../assets/images/通知公告.png" alt />
- <span>通知公告</span>
- </div>
- <span class="addspan" @click="tiaddfun">更多</span>
- <div class="num1-box">
- <div
- class="num1-box-div"
- v-for="item in noticeList"
- :key="item.noticeId"
- @click="tzggfun(item)"
- >
- <div class="num1-box-l">{{ item.noticeTitle }}</div>
- <div class="num1-box-r">
- <img
- src="../assets/images/通知.png"
- v-if="item.start == 1"
- alt
- />
- <img
- src="../assets/images/通知 拷贝 3.png"
- v-if="item.start == 0"
- alt
- />
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="tkbox2" v-if="open2">
- <div class="tkbox-title">
- <div class="tkbox-title-left">
- <img src="../assets/images/八一.png" alt />
- <span>重要消息</span>
- </div>
- <div class="tkbox-title-right">
- <img src="../assets/images/关闭.png" alt @click="showfun2" />
- </div>
- </div>
- <div class="tkbox-main">
- <p>
- <img src="../assets/images/警示.png" alt />
- <span>{{ title2 }}</span>
- </p>
- </div>
- <div class="tkbox-footer">
- <button @click="quchulifun2">去处理</button>
- </div>
- </div>
- <div class="tkbox" v-if="open">
- <div class="tkbox-title">
- <div class="tkbox-title-left">
- <img src="../assets/images/八一.png" alt />
- <span>重要消息</span>
- </div>
- <div class="tkbox-title-right">
- <img src="../assets/images/关闭.png" alt @click="showfun" />
- </div>
- </div>
- <div class="tkbox-main">
- <p>
- <img src="../assets/images/警示.png" alt />
- <span>{{ title }}</span>
- </p>
- </div>
- <div class="tkbox-footer">
- <button @click="quchulifun">去处理</button>
- </div>
- </div>
- <div class="tkbox3" v-if="open3">
- <div class="tkbox-title">
- <div class="tkbox-title-left">
- <img src="../assets/images/八一.png" alt />
- <span>重要消息</span>
- </div>
- <div class="tkbox-title-right">
- <img src="../assets/images/关闭.png" alt @click="showfun3" />
- </div>
- </div>
- <div class="tkbox-main">
- <p>
- <img src="../assets/images/警示.png" alt />
- <span>{{ title3 }}</span>
- </p>
- </div>
- <div class="tkbox-footer">
- <button @click="quchulifun3">去处理</button>
- </div>
- </div>
- <div class="tkbox4" v-if="open4">
- <div class="tkbox-title">
- <div class="tkbox-title-left">
- <img src="../assets/images/八一.png" alt />
- <span>重要消息</span>
- </div>
- <div class="tkbox-title-right">
- <img src="../assets/images/关闭.png" alt @click="showfun4" />
- </div>
- </div>
- <div class="tkbox-main">
- <p>
- <img src="../assets/images/警示.png" alt />
- <span>{{ title4 }}</span>
- </p>
- </div>
- <div class="tkbox-footer">
- <button @click="quchulifun4">去处理</button>
- </div>
- </div>
- <!-- 添加或修改集中文印记录对话框 -->
- <!-- <el-dialog :title="title" style="margin-top: 200px;" :visible.sync="open5" width="565px" append-to-body>
- <el-form ref="form" :model="form" :inline="true" :rules="rules" label-width="120px">
- <el-form-item label="通知公告标题" prop>
- <el-input value placeholder="请输入通知公告标题" />
- </el-form-item>
- <el-form-item label="通知公告内容">
- <el-input value type="textarea" placeholder="请输入通知公告内容" />
- <el-input value type="textarea" placeholder="请输入通知公告内容" />
- </el-form-item>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <el-button type="primary" style="width:55px;height:25px;" @click="submitForm">确 定</el-button>
- <button @click="cancel" style="width:55px;height:25px;margin-left:10px;" >取 消</button>
- </div>
- </el-dialog>-->
- <el-dialog
- title="查看通知公告"
- :visible.sync="open5"
- width="800px"
- append-to-body
- >
- <div class="jiben">基本信息</div>
- <el-form ref="form" :model="form" :rules="rules" :inline="true">
- <el-row>
- <el-col :span="12">
- <p
- style="
- width: 100%;
- height: 30px;
- line-height: 30px;
- color: #fff;
- fontsize: 16px;
- "
- v-if="!ggflg"
- >
- 公告标题:<span style="margin-left: 10px; fontsize: 14px">{{
- form.noticeTitle
- }}</span>
- </p>
- <el-form-item label="公告标题" v-if="ggflg" prop="noticeTitle">
- <el-input
- v-model="form.noticeTitle"
- placeholder="请输入公告标题"
- />
- </el-form-item>
- <!-- <el-form-item label="公告标题" prop="noticeTitle">
- <el-input
- v-model="form.noticeTitle"
- placeholder="请输入公告标题"
- style="width: 300px"
- />
- </el-form-item> -->
- </el-col>
- <el-col :span="12" v-if="ggflg">
- <el-form-item label="公告类型" prop="noticeType">
- <el-select v-model="form.noticeType" placeholder="请选择">
- <el-option
- v-for="dict in dict.type.sys_notice_type"
- :key="dict.value"
- :label="dict.label"
- :value="dict.value"
- ></el-option>
- </el-select>
- </el-form-item>
- </el-col>
- <el-col
- :span="24"
- style="margin-top: 15px; margin-bottom: 10px"
- v-if="ggflg"
- >
- <el-form-item label="状态">
- <el-radio-group v-model="form.status">
- <el-radio
- v-for="dict in dict.type.sys_notice_status"
- :key="dict.value"
- :label="dict.value"
- style="margin-right: 20px"
- >{{ dict.label }}</el-radio
- >
- </el-radio-group>
- </el-form-item>
- </el-col>
- </el-row>
- <el-row style="margin-top: 10px">
- <el-col :span="12" v-if="!ggflg">
- <el-form-item label="发布人" prop="createBy" label-width="0">
- <el-input
- v-model="form.createBy"
- disabled
- placeholder="请输入发布人"
- />
- </el-form-item>
- </el-col>
- <el-col :span="12" v-if="!ggflg">
- <el-form-item label="附件" label-width="0px" prop="filename">
- <a
- :href="url + form.filename"
- target="_blank"
- download
- style="
- display: inline-block;
- width: 90px;
- height: 30px;
- background-color: #409eff;
- border: none;
- border-radus: 3px;
- color: #fff;
- line-height: 30px;
- text-align: center;
- "
- >下载附件</a
- >
- <!-- <fileUpload v-model="form.filename" class="m-l-20" /> -->
- </el-form-item>
- </el-col>
- </el-row>
- <div class="jiben">内容</div>
- <el-col :span="24">
- <el-form-item
- label
- prop="remark"
- class="textareas"
- style="width: 100%"
- >
- <el-input
- v-model="form.remark"
- type="textarea"
- placeholder="请输入内容"
- />
- </el-form-item>
- </el-col>
- </el-form>
- <div slot="footer" class="dialog-footer">
- <button class="button1" v-if="ggflg" @click="submitForm">确 定</button>
- <button @click="cancel">取 消</button>
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- printTrigger,
- printTriggerClear,
- printPeople,
- printEachTrigger,
- } from "@/api/PrintsManage/manage";
- import {
- workEachTrigger,
- workTrigger,
- addNotice,
- listNotice,
- updateNotice,
- getWorkTask,
- } from "@/api/pt";
- import { getUserProfile } from "@/api/system/user";
- import Cookies from "js-cookie";
- export default {
- dicts: ["sys_notice_status", "sys_notice_type"],
- data() {
- return {
- times: null,
- timer: null,
- open: false,
- open2: false,
- open3: false,
- open4: false,
- timer2: null,
- open5: false,
- ggflg: false,
- form: "",
- rules: "",
- title: "",
- title2: "",
- title3: "",
- title4: "",
- url: process.env.VUE_APP_BASE_API,
- rules: {
- noticeTitle: [
- { required: true, message: "公告标题不能为空", trigger: "blur" },
- ],
- noticeType: [
- { required: true, message: "公告类型不能为空", trigger: "change" },
- ],
- },
- // 表单参数
- form: {},
- noticeList: [],
- worklist: [],
- // 用户信息
- user: {},
- danWie: "",
- yongHu: "",
- };
- },
- created() {
- this.getUser();
- this.timer = null;
- this.startTime();
- this.timer2 = null;
- this.startTime2();
- },
- mounted() {
- if (this.$route.params.name) {
- this.$modal.msgSuccess(this.$route.params.name);
- }
- this.getlist();
- this.getworklist();
- // console.log(this.$route.params.name)
- },
- methods: {
- // 获取登录信息
- getUser() {
- getUserProfile().then((response) => {
- this.user = response.data;
- this.danWie = response.data.dept.deptName;
- this.yongHu = response.data.nickName;
- });
- },
- getlist() {
- listNotice().then((res) => {
- this.noticeList = res.data;
- });
- },
- getworklist() {
- getWorkTask().then((res) => {
- console.log(res);
- this.worklist = res.data;
- });
- },
- // 表单重置
- reset() {
- this.form = {
- noticeId: undefined,
- noticeTitle: undefined,
- noticeType: undefined,
- noticeContent: undefined,
- status: "0",
- };
- this.resetForm("form");
- },
- startTime() {
- this.timer = setInterval(() => {
- var today = new Date();
- var y = today.getFullYear();
- var M = today.getMonth() + 1;
- var d = today.getDate();
- var h = today.getHours();
- var m = today.getMinutes();
- var s = today.getSeconds();
- var w = today.getDay();
- if (M < 10) {
- M = "0" + M;
- }
- if (d < 10) {
- d = "0" + d;
- }
- if (h < 10) {
- h = "0" + h;
- }
- if (m < 10) {
- m = "0" + m;
- }
- if (s < 10) {
- s = "0" + s;
- }
- this.times = y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
- }, 500); /* 每500毫秒执行一次,实现动态显示时间效果 */
- },
- doThis() {
- this.$router
- .push({ path: "/index", query: { name: "/grassrootsregistration" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- zhanbeifun() {
- this.$router
- .push({ path: "/index", query: { name: "/combatduty" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- renlifun() {
- this.$router
- .push({ path: "/index", query: { name: "/peopleManage" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- renyuanfun() {
- this.$router
- .push({ path: "/index", query: { name: "/peopleChuRu" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- yingfangfun() {
- this.$router
- .push({ path: "/index", query: { name: "/barracksManagement" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- junchefun() {
- this.$router
- .push({ path: "/index", query: { name: "/militaryvehicleManagement" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- gongzuofun() {
- this.$router
- .push({ path: "/index", query: { name: "/workingArrangements" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- guizhangfun() {
- this.$router
- .push({ path: "/index", query: { name: "/regulations" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- yiliaofun() {
- this.$router
- .push({ path: "/index", query: { name: "/medicalhealth" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- jianchafun() {
- this.$router
- .push({ path: "/index", query: { name: "/bdglregular" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- anfangfun() {
- this.$router
- .push({ path: "/index", query: { name: "/monitoring" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- mengangfun() {
- this.$router
- .push({ path: "/index", query: { name: "/doormanManage" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- yingjufun() {
- this.$router
- .push({ path: "/index", query: { name: "/materialManagement" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- xitongfun() {
- this.$router
- .push({ path: "/index", query: { name: "/system" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- gongju() {
- this.$router
- .push({ path: "/index", query: { name: "/tool" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- wenyinfun() {
- this.$router
- .push({ path: "/index", query: { name: "/print" } })
- .catch(() => {});
- Cookies.set("shuaxin", "false");
- },
- taishifun() {
- this.$router.push({ path: "/taishi" }).catch(() => {});
- Cookies.set("shuaxin", "false");
- // window.open(`/taishi`,'_self');
- },
- baomifun() {
- this.$router
- .push({ path: "/index", query: { name: "/bdglSecret" } })
- .catch(() => {});
- },
- sixiangfun() {
- this.$router
- .push({ path: "/index", query: { name: "/thought" } })
- .catch(() => {});
- },
- zhinengfun() {
- this.$router
- .push({ path: "/index", query: { name: "/phone" } })
- .catch(() => {});
- },
- showfun() {
- this.open = false;
- printTriggerClear().then((res) => {
- // console.log(res)
- });
- },
- showfun2() {
- this.open2 = false;
- printTriggerClear().then((res) => {
- // console.log(res)
- });
- },
- showfun3() {
- this.open3 = false;
- printTriggerClear().then((res) => {
- // console.log(res)
- });
- },
- showfun4() {
- this.open4 = false;
- printTriggerClear().then((res) => {
- // console.log(res)
- });
- },
- quchulifun() {
- printTriggerClear().then((res) => {
- if (res.code == 200) {
- this.open = true;
- window.open(`/print/manage`, "_self");
- }
- });
- },
- quchulifun2() {
- printTriggerClear().then((res) => {
- if (res.code == 200) {
- this.open = false;
- window.open(`/print/manage`, "_self");
- }
- });
- },
- quchulifun3() {
- printTriggerClear().then((res) => {
- if (res.code == 200) {
- this.open3 = false;
- window.open(`/workingArrangements/workTask`, "_self");
- }
- });
- },
- quchulifun4() {
- printTriggerClear().then((res) => {
- if (res.code == 200) {
- this.open4 = false;
- window.open(`/workingArrangements/workTask`, "_self");
- }
- });
- },
- startTime2() {
- this.timer = setInterval(() => {
- // printTrigger().then((res) => {
- // if (res.code == 200) {
- // if (res.print == "print") {
- // if (res.numb != 0) {
- // this.title2 = "您有打印文件需要处理,请尽快处理";
- // this.open2 = true;
- // }
- // }
- // }
- // });
- printEachTrigger().then((res) => {
- if (res.code == 200) {
- if (res.print == "printUserInfo") {
- var sendId = Cookies.get("userId");
- if (res.printUserInfo == sendId) {
- if (res.numb != 0) {
- this.title = res.msg;
- this.open = true;
- }
- }
- }
- }
- });
- workEachTrigger().then((res) => {
- var sendId = Cookies.get("userId");
- if (res.code == 200) {
- if (res.workEach != 0) {
- if (res.workUserid == sendId) {
- this.title3 = res.msg;
- this.open3 = true;
- }
- }
- }
- });
- workTrigger().then((res) => {
- // var sendId = Cookies.get("userId");
- if (res.code == 200) {
- if (res.workRequest != 0) {
- this.title4 = res.msg;
- this.open4 = true;
- }
- }
- });
- }, 10000); /* 每500毫秒执行一次,实现动态显示时间效果 */
- },
- tongzhifun() {
- // this.title = "添加通知通告";
- // this.open5 = true;
- // this.ggflg = true;
- // this.reset();
- // window.open(`/system/notice`, "_self");
- this.$router.push({ path: "/system/notice" }).catch(() => {});
- },
- submitForm() {
- // addNotice(this.form).then((response) => {
- // this.$modal.msgSuccess("新增成功");
- // this.open5 = false;
- // this.ggflg = false;
- // this.getlist();
- // });
- },
- cancel() {
- this.open5 = false;
- this.ggflg = false;
- this.getlist();
- },
- tiaddfun() {
- this.$router.push({ path: "/system/notice" }).catch(() => {});
- },
- tzggfun(item) {
- // console.log(item);
- // item.start = 1;
- this.reset();
- this.form = item;
- updateNotice({
- noticeId: item.noticeId,
- start: 1,
- noticeTitle: item.noticeTitle,
- }).then((res) => {
- if (res.code == 200) {
- this.getlist();
- }
- });
- this.open5 = true;
- this.ggflg = false;
- },
- dbsxfun() {
- this.$router
- .push({ path: "/workingArrangements/workTask" })
- .catch(() => {});
- },
- },
- destroyed() {
- clearInterval(this.timer); // 清除定时器
- this.timer = null;
- clearInterval(this.timer2); // 清除定时器
- this.timer2 = null;
- },
- };
- </script>
- <style scoped>
- .el-dialog {
- margin-top: 500px;
- }
- * {
- margin: 0;
- padding: 0;
- }
- body,
- html {
- height: 100%;
- width: 100%;
- }
- li {
- list-style: none;
- }
- .header {
- height: 100%;
- width: 100%;
- overflow: auto;
- background: url("../images/背景1.png") no-repeat center;
- background-size: 100% 100%;
- position: relative;
- }
- .tou {
- color: #fff;
- position: relative;
- height: 120px;
- background: url("../assets/images/首页顶部.gif") no-repeat center;
- background-size: cover;
- }
- .tou .yong_hu {
- position: absolute;
- right: 24px;
- top: 33px;
- min-width: 320px;
- font-size: 16px;
- box-sizing: border-box;
- }
- .tou .tiem {
- position: absolute;
- /* right: 24px; */
- left: 124px;
- top: 33px;
- min-width: 320px;
- font-size: 15px;
- box-sizing: border-box;
- }
- .tou .span {
- margin-right: 20px;
- }
- .liuxian {
- position: absolute;
- top: -7px;
- }
- .in1 {
- padding: 0 84px;
- }
- .demo {
- color: #fff;
- width: 107px;
- height: 90%;
- background: url("../images/tx.png") no-repeat;
- text-align: center;
- margin-top: 10%;
- /* margin: 0 80px; */
- }
- .demo img {
- margin-top: 35px;
- }
- #q1 img {
- margin-top: 42px;
- }
- .demo-box {
- width: 100%;
- height: 70%;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .demo-a {
- width: 100%;
- height: 30%;
- font-size: 1rem;
- color: #fff;
- display: flex;
- justify-content: center;
- align-items: center;
- }
- .ul {
- /* margin-bottom: 7vh; */
- height: 23%;
- display: flex;
- flex-flow: wrap;
- }
- .ul li {
- /* margin: 0 48px; */
- cursor: pointer;
- width: 14.1%;
- height: 100%;
- display: inline-block;
- }
- .li-img {
- width: 100%;
- }
- .boxx {
- padding: 0 0 0 80px;
- flex: 2.2;
- }
- .img-left {
- position: absolute;
- top: -8px;
- }
- hr {
- height: 2px;
- background-color: #06668a;
- border: none;
- margin-bottom: 20px;
- }
- .centen {
- display: flex;
- height: 85vh;
- }
- .num1 {
- color: #fff;
- width: 529px;
- height: 41.5vh;
- background: url("../images/rd.png") no-repeat;
- margin-bottom: 20px;
- padding: 30px 20px 0px 20px;
- background-size: 100% 100%;
- }
- .num1 img {
- /* width: 20px;
- height: 20px; */
- vertical-align: bottom;
- margin-right: 10px;
- }
- .rigin {
- flex: 1;
- margin-left: 52px;
- }
- .table {
- margin-top: 20px;
- width: 492px;
- height: 80%;
- /* height: 182px; */
- /* 去除中间的线 */
- border-collapse: collapse;
- border-spacing: 0;
- }
- .table tr td {
- height: 28px;
- text-align: center;
- }
- .table tr:nth-child(even) {
- background-color: rgba(39, 104, 136, 0.2);
- }
- .table tr:hover {
- background: rgba(0, 246, 255, 0.3);
- }
- #a2 img {
- margin-top: 40px;
- }
- #a1 img {
- margin-top: 40px;
- }
- #a3 img {
- margin-top: 43px;
- }
- .num1-box {
- width: 100%;
- height: 86%;
- margin-top: 10%;
- }
- .num1-box .num1-box-div {
- width: 100%;
- height: 36px;
- display: flex;
- flex-direction: row;
- font-size: 14px;
- color: #fff;
- line-height: 36px;
- }
- .num1-box-div:nth-child(odd) {
- background-color: rgba(39, 104, 136, 0.2);
- }
- .num1-box-div:hover {
- background: rgba(0, 246, 255, 0.3);
- }
- .num1-box-l {
- flex: 7;
- height: 100%;
- text-align: left;
- margin-left: 10px;
- text-overflow: ellipsis;
- }
- .num1-box-r {
- flex: 3;
- height: 100%;
- text-align: right;
- margin-right: 10px;
- line-height: 30px;
- }
- .num1-ul {
- width: 100%;
- height: 86%;
- margin-top: 5%;
- }
- .num1-ul-li {
- width: 100%;
- height: 36px;
- display: flex;
- flex-direction: row;
- font-size: 14px;
- color: #fff;
- line-height: 36px;
- }
- .num1-ul-li:nth-child(even) {
- background-color: rgba(39, 104, 136, 0.2);
- }
- .num1-ul-li:hover {
- background: rgba(0, 246, 255, 0.3);
- }
- .num1-ul-li-l {
- flex: 7;
- height: 100%;
- text-align: center;
- }
- .num1-ul-li-r {
- flex: 3;
- height: 100%;
- text-align: center;
- }
- .num2-ul-li {
- width: 100%;
- height: 36px;
- display: flex;
- flex-direction: row;
- font-size: 14px;
- color: #fff;
- line-height: 36px;
- }
- .num2-ul-li:nth-child(even) {
- background-color: rgba(39, 104, 136, 0.2);
- }
- .num2-ul-li:hover {
- background: rgba(0, 246, 255, 0.3);
- }
- .num2-ul-li-l {
- flex: 6;
- height: 100%;
- text-align: left;
- margin-left: 10px;
- }
- .num2-ul-li-c {
- flex: 3;
- height: 100%;
- text-align: center;
- }
- .num2-ul-li-r {
- flex: 3;
- height: 100%;
- text-align: center;
- }
- .num1-ul-title {
- width: 100%;
- height: 45px;
- display: flex;
- flex-direction: row;
- font-size: 16px;
- color: #fff;
- line-height: 45px;
- }
- .num1-ul-title-l {
- flex: 7;
- height: 100%;
- text-align: center;
- }
- .num1-ul-title-r {
- flex: 3;
- height: 100%;
- text-align: center;
- }
- .num2-ul-title {
- width: 100%;
- height: 45px;
- display: flex;
- flex-direction: row;
- font-size: 16px;
- color: #fff;
- line-height: 45px;
- }
- .num2-ul-title-l {
- flex: 6;
- height: 100%;
- text-align: left;
- margin-left: 10px;
- }
- .num2-ul-title-c {
- flex: 3;
- height: 100%;
- text-align: center;
- }
- .num2-ul-title-r {
- flex: 3;
- height: 100%;
- text-align: center;
- }
- .num1 {
- position: relative;
- }
- .num1 .addspan {
- width: 50px;
- height: 25px;
- display: inline-block;
- background-color: #1c86e1;
- line-height: 25px;
- text-align: center;
- font-size: 16px;
- cursor: pointer;
- /* margin-left: 851px; */
- position: absolute;
- right: 4%;
- top: 9%;
- }
- ::v-deep .el-dialog {
- background-color: #004d86;
- }
- ::v-deep .el-dialog__header {
- border-bottom: 1px solid #718a9d;
- }
- ::v-deep .el-dialog__title {
- color: #fff;
- font: 18px;
- }
- ::v-deep .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- .el-form-item ::v-deep .el-input__inner {
- width: 355px;
- height: 36px;
- background: #004d86;
- color: #fff;
- border: 1px solid #fff !important;
- }
- ::v-deep .el-textarea__inner {
- width: 450px;
- height: 104px;
- margin-left: 25px;
- }
- /* 通知 */
- ::v-deep .el-tag.el-tag--success {
- background-color: #e7faf0;
- border-color: #d0f5e0;
- color: #13ce66;
- }
- /* 公告 */
- ::v-deep .el-tag.el-tag--warning {
- background-color: #fff8e6;
- border-color: #fff1cc;
- color: #ffba00;
- }
- /* 对话框背景颜色 */
- ::v-deep .el-dialog {
- background: #004d86 !important;
- }
- ::v-deep .el-textarea__inner {
- width: 760px;
- height: 104px;
- margin: auto !important;
- }
- ::v-deep .el-dialog__header {
- border-bottom: 1px solid #718a9d;
- }
- ::v-deep .el-dialog__title {
- color: #fff;
- font: 18px;
- }
- ::v-deep .el-dialog__headerbtn .el-dialog__close {
- color: #fff;
- }
- ::v-deep .el-form-item__label {
- font: 16px;
- color: #fff;
- width: auto !important;
- }
- ::v-deep .el-input__inner {
- width: 250px !important;
- height: 36px;
- background: transparent;
- color: #fff;
- }
- /* 单位框背景颜色 */
- ::v-deep .vue-treeselect__control {
- background: #004d86 !important;
- }
- /* 基本信息背景 */
- .jiben {
- width: 760px;
- height: 32px;
- background-image: url("../images/小标题底.png");
- margin-bottom: 25px;
- color: #fff;
- padding-left: 16px;
- line-height: 32px;
- margin-top: 10px;
- }
- /*调整表单间距 */
- ::v-deep .el-form-item__content {
- width: 200px;
- }
- .contents {
- padding: 0px 40px !important;
- }
- /* 单位框背景颜色 */
- ::v-deep .vue-treeselect__control {
- background: #004d86 !important;
- color: #fff;
- }
- /* 备注输入框 */
- .textareas ::v-deep .el-form-item__content {
- width: 100%;
- }
- /* 状态 */
- .el-radio {
- color: rgb(204, 198, 198);
- }
- /* 备注输入框 */
- .textareas ::v-deep .el-form-item__content {
- width: 100%;
- }
- /* 富文本 */
- ::v-deep .ql-snow .ql-fill,
- .ql-snow .ql-stroke.ql-fill {
- fill: #fff !important;
- }
- ::v-deep .ql-snow .ql-stroke {
- stroke: #fff !important;
- }
- ::v-deep .ql-snow .ql-picker {
- color: #fff !important;
- }
- ::v-deep .ql-editor ql-blank {
- color: #fff !important;
- }
- /* 分页按钮 */
- ::v-deep .el-pagination.is-background .el-pager li {
- background-color: #004d86;
- color: #fff;
- }
- ::v-deep .el-pagination.is-background .btn-next {
- background-color: #004d86;
- color: #fff;
- }
- ::v-deep .el-pagination.is-background .btn-prev,
- .el-pagination.is-background .btn-next,
- .el-pagination.is-background .el-pager li {
- background: #004d86 !important;
- color: #fff !important;
- }
- .el-select-dropdown__item {
- left: 10px !important;
- }
- ::v-deep .el-upload__tip {
- display: none;
- }
- </style>
- <style lang="scss" scoped>
- .tkbox {
- width: 500px;
- height: 220px;
- background-image: url("../assets/images/框.png");
- background-size: 100% 100%;
- background-repeat: no-repeat;
- position: absolute;
- left: 20%;
- top: 30%;
- }
- .tkbox2 {
- width: 500px;
- height: 220px;
- background-image: url("../assets/images/框.png");
- background-size: 100% 100%;
- background-repeat: no-repeat;
- position: absolute;
- right: 26%;
- top: 30%;
- }
- .tkbox3 {
- width: 500px;
- height: 220px;
- background-image: url("../assets/images/框.png");
- background-size: 100% 100%;
- background-repeat: no-repeat;
- position: absolute;
- left: 20%;
- top: 38%;
- }
- .tkbox4 {
- width: 500px;
- height: 220px;
- background-image: url("../assets/images/框.png");
- background-size: 100% 100%;
- background-repeat: no-repeat;
- position: absolute;
- right: 26%;
- top: 38%;
- }
- .tkbox-title {
- width: 100%;
- height: 90px;
- }
- .tkbox-title-left {
- width: 90%;
- display: inline-block;
- line-height: 90px;
- position: relative;
- }
- .tkbox-title-left img {
- position: absolute;
- left: 35px;
- top: 30px;
- }
- .tkbox-title-left span {
- color: #fff;
- line-height: 95px;
- margin-left: 75px;
- }
- .tkbox-title-right {
- width: 10%;
- text-align: right;
- display: inline-block;
- }
- .tkbox-title-right img {
- text-align: right;
- margin-right: 30px;
- }
- .tkbox-main {
- width: 100%;
- height: 60px;
- }
- .tkbox-main p {
- width: 90%;
- height: auto;
- margin: 0 auto;
- color: #fff;
- font-size: 14px;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .tkbox-main p span {
- margin-left: 10px;
- }
- .tkbox-footer {
- width: 100%;
- height: 30px;
- margin-bottom: 30px;
- text-align: center;
- }
- .fixed-header + .app-main {
- padding-top: 50px;
- }
- .hasTagsView {
- .app-main {
- /* 84 = navbar + tags-view = 50 + 34 */
- min-height: calc(100vh - 84px);
- }
- .fixed-header + .app-main {
- padding-top: 84px;
- }
- }
- .tkbox-footer button {
- width: 60px;
- height: 25px;
- text-align: center;
- line-height: 21px;
- background-color: #409eff;
- color: #fff;
- border-radius: 6px;
- border: none;
- }
- .dialog-footer button {
- width: 60px;
- height: 30px;
- text-align: center;
- line-height: 21px;
- color: #fff;
- border-radius: 3px;
- border: none;
- background-color: #196299;
- margin-top: 20px;
- }
- .dialog-footer .button1 {
- background-color: #409eff;
- margin-right: 10px;
- }
- .phone {
- margin-top: 40px !important;
- }
- </style>
|