12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691 |
- <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
- class="iconfont icon-logout"
- @click="logout"
- style="
- font-size: 24px;
- cursor: pointer;
- position: absolute;
- right: 16px;
- top: 8px;
- "
- ></span>
- <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"
- id="xitong"
- >
- <img src="../images/xtong.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";
- import axios from "axios";
- 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();
- this.xianShang();
- },
- mounted() {
- if (this.$route.params.name) {
- this.$modal.msgSuccess(this.$route.params.name);
- }
- this.getlist();
- this.getworklist();
- // console.log(this.$route.params.name)
- },
- methods: {
- // 退出
- async logout() {
- this.$confirm("确定注销并退出系统吗?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning",
- })
- .then(() => {
- this.$store.dispatch("LogOut").then(() => {
- location.href = "/index";
- });
- })
- .catch(() => {});
- },
- // 手机柜线上地址
- xianShang() {
- axios
- .post("http://114.115.153.156:12090/wl/api/getAccessToken", {
- password: "super123fs456wl",
- username: "admin",
- })
- .then((res) => {
- Cookies.set("accessToken", res.data.accessToken);
- });
- },
- // 获取登录信息
- 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-bottom: 10px; */
- /* 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: 20px;
- 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%;
- /* height: 2px;
- background-color: #06668a;
- border: none;
- margin-bottom: 20px; */
- }
- .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: 3.5px; */
- position: absolute;
- right: 3.5%;
- 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;
- }
- #xitong img {
- margin-top: 44px !important;
- }
- </style>
|