12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153 |
- <template>
- <el-dialog class="inspectionPlan-dialog-box"
- :close-on-click-modal="false"
- v-loading="loading"
- :title="addDialogTitle" :visible.sync="addDialogType" v-if="addDialogType"
- @close="addDialogAllOff" width="1303px" append-to-body>
- <div class="inspectionPlan-dialog-add-box" v-show="addDialogBoxType==1">
- <div class="left-max-box" v-if="!lookInfoType">
- <div class="left-max-title-box">
- <img src="@/assets/ZDimages/safetyCheck/icon_jhbt.png">
- <p>计划标题快选</p>
- </div>
- <div class="left-max-list-box scrollbar-box">
- <div v-for="(item,index) in quickSelectionList" :key="index" @click="checkTitle(item)">
- <p class="left-max-list-for-p">{{item.title}}</p>
- <p v-if="item.type" class="el-icon-error left-max-list-for-icon" @click="delTitleObj(item)"></p>
- </div>
- </div>
- </div>
- <div class="right-max-box scrollbar-box">
- <el-form ref="addDialogForm" :model="dialogForm" :rules="rules" label-width="140px">
- <el-form-item label="计划标题:" prop="title">
- <el-input :disabled="lookInfoType" v-model="dialogForm.title" placeholder="请输入计划标题" maxLength="30" style="width:450px;"/>
- </el-form-item>
- <el-form-item label="检查组织:">
- <p style="width:450px;background:#f5f5f5;border-radius:4px;padding:0 15px;">实验室自查</p>
- </el-form-item>
- <el-form-item label="任务周期:" prop="dateRange">
- <div class="date-range-box">
- <div class="date-range-left-box">
- <el-date-picker
- :disabled="lookInfoType"
- :clearable="false"
- v-model="dialogForm.dateRange"
- style="width:450px;"
- value-format="yyyy-MM-dd"
- type="daterange"
- range-separator="-"
- :picker-options="pickerOptions"
- start-placeholder="开始日期"
- end-placeholder="结束日期"
- ></el-date-picker>
- </div>
- <div class="date-range-right-box" v-if="!lookInfoType">
- <p @click="checkTime(1)">本月</p>
- <p @click="checkTime(2)">本季度</p>
- <p @click="checkTime(3)">全年</p>
- </div>
- </div>
- </el-form-item>
- <el-form-item label="检查范围:" prop="checkRange">
- <div class="dialog-range-max-box">
- <div class="dialog-range-select-box">
- <el-select :disabled="lookInfoType" @change="rangeChange"
- v-model="dialogForm.checkRange" placeholder="请选择检查范围" style="width:450px;">
- <el-option
- v-for="item in dialogRangeOptions"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </div>
- <div class="dialog-range-text-box">
- <p class="page-submit-common-style-button button-p" :style="lookInfoType?'background:#0183FA;border:1px solid #0183FA;':''" v-if="dialogForm.checkRange == 2" @click="dialogClickType(2)">{{lookInfoType?'查看':'选择学院'}}</p>
- <p class="page-submit-common-style-button button-p" :style="lookInfoType?'background:#0183FA;border:1px solid #0183FA;':''" v-if="dialogForm.checkRange == 3" @click="dialogClickType(3)">{{lookInfoType?'查看':'选择实验室'}}</p>
- <p class="text-p" v-if="dialogForm.checkRange ==1 && dialogForm.schoolSubCheckNum>0">已选择{{dialogForm.schoolSubCheckNum}}间实验室</p>
- <p class="text-p" v-if="dialogForm.checkRange == 2 && dialogForm.collegeNum>0">已选择{{dialogForm.collegeNum}}个学院,共{{dialogForm.collegeSubNum}}间实验室</p>
- <p class="text-p" v-if="dialogForm.checkRange ==3 && dialogForm.subCheckNum>0">已选择{{dialogForm.subCheckNum}}间实验室</p>
- </div>
- </div>
- </el-form-item>
- <el-form-item label="检查类型:" prop="inspectCategory">
- <div class="dialog-range-max-box">
- <div class="dialog-range-select-box">
- <el-select :disabled="lookInfoType" @change="inspectCategoryChange"
- v-model="dialogForm.checkCategory" placeholder="请选择检查类型" style="width:450px;">
- <el-option
- v-for="item in inspectCategoryList"
- :key="item.id"
- :label="item.name"
- :value="item.id">
- </el-option>
- </el-select>
- </div>
- <div class="dialog-range-text-box" v-if="dialogForm.checkCategory==2">
- <p class="page-submit-common-style-button button-p" @click="dialogClickType(6)">选择检查内容</p>
- <p class="text-p">已选择{{dialogForm.hazardNum}}种</p>
- </div>
- </div>
- </el-form-item>
- <el-form-item label="检查要求:" prop="checkDemand">
- <el-input
- :disabled="lookInfoType"
- type="textarea"
- :autosize="{ minRows: 4, maxRows: 4}"
- :placeholder="lookInfoType?'未输入':'请输入检查要求'"
- v-model="dialogForm.checkDemand"
- maxlength="100"
- resize="none"
- show-word-limit
- :style="!lookInfoType?'width:450px;':'width:1040px;'">
- </el-input>
- </el-form-item>
- <el-form-item label="材料附件:">
- <div class="dialog-material-max-box">
- <div class="dialog-material-button-box" v-if="!lookInfoType&&dialogForm.uploadDtoList.length<10">
- <el-upload
- class="avatar-uploader"
- :action="uploadImgUrl"
- :show-file-list="false"
- :on-success="(res)=>handleAvatarSuccess(res)"
- :headers="headers"
- :before-upload="beforeAvatarUpload">
- <p class="page-add-common-style-button">+ 选择文件</p>
- </el-upload>
- <p class="dialog-material-text">支持docx/xlsx/pdf格式文件</p>
- </div>
- <div class="dialog-material-list-box">
- <div v-for="(item,index) in dialogForm.uploadDtoList" :key="index">
- <img src="@/assets/ZDimages/safetyCheck/icon_dr_wj.png">
- <p>{{item.fileName}}</p>
- <p @click="dialogClickType(5,item)">查看</p>
- <p @click="delUpData(index)" v-if="!lookInfoType">删除</p>
- <p v-if="lookInfoType" @click="downloadButton(item)">下载</p>
- </div>
- <p class="dialog-material-list-null" v-if="!dialogForm.uploadDtoList[0]">未上传</p>
- </div>
- </div>
- </el-form-item>
- </el-form>
- </div>
- </div>
- <div class="inspectionPlan-dialog-dept-box" v-show="addDialogBoxType==2">
- <div class="left-max-box">
- <div class="dept-table-title-box">
- <p>已选学院</p>
- <p v-if="!lookInfoType">{{deptNumLeft}}/{{deptTotalLeft}}</p>
- <p v-if="lookInfoType">{{deptNumLeft}}</p>
- </div>
- <div class="dept-table-max-box">
- <el-form :model="deptQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
- <el-form-item label="" prop="searchValue" class="form-index">
- <el-input
- maxLength="30"
- v-model="deptQueryParamsLeft.searchValue"
- placeholder="搜索学院"
- clearable
- style="width: 240px">
- <p v-if="!lookInfoType" class="el-icon-search" slot="append" @click="deptGetListLeft"></p>
- <p v-if="lookInfoType" class="el-icon-search" slot="append" @click="lookDeptLeftSearch"></p>
- </el-input>
- </el-form-item>
- <el-form-item style="margin-right:0;">
- <p v-if="!lookInfoType" class="page-submit-common-style-button" @click="deptResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
- <p v-if="lookInfoType" class="page-submit-common-style-button" @click="lookDeptLeftReset" style="width:60px;margin-right:0;">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" ref="leftDeptTable" border :data="deptTableListLeft" @select-all="deptChange" @select="deptChange" :row-key="getDeptRowKeys">
- <el-table-column v-if="!lookInfoType" type="selection" width="50" :reserve-selection="true" align="center"/>
- <el-table-column label="学院" align="center" prop="deptName" show-overflow-tooltip>
- <template slot-scope="scope">
- <div style="display: flex;">
- <p style="flex:1;">{{scope.row.deptName}}</p>
- <p style="width:80px;text-align: center">共{{scope.row.subNum}}间</p>
- </div>
- </template>
- </el-table-column>
- </el-table>
- </div>
- </div>
- <div class="right-max-box">
- <div class="dept-table-title-box">
- <p>已选实验室{{deptCheckData.subNum}}间</p>
- <p></p>
- </div>
- <div class="dept-table-max-box">
- <el-form :model="deptQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
- <el-form-item label="" prop="typeId">
- <el-select v-model="deptQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 120px">
- <el-option
- v-for="item in classTypeList"
- :key="item.typeId"
- :label="item.typeName"
- :value="item.typeId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="levelId">
- <el-select v-model="deptQueryParamsRight.levelId" clearable placeholder="选择分级" style="width: 120px">
- <el-option
- v-for="item in classifiedList"
- :key="item.levelId"
- :label="item.levelName"
- :value="item.levelId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="deptId">
- <el-select v-model="deptQueryParamsRight.deptId" clearable placeholder="选择学院" style="width: 120px">
- <el-option
- v-for="item in changeDeptSelectList"
- :key="item.deptId"
- :label="item.deptName"
- :value="item.deptId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="searchValue" class="form-index">
- <el-input
- maxLength="30"
- v-model="deptQueryParamsRight.searchValue"
- placeholder="实验室/房间号"
- clearable
- style="width: 190px">
- <p v-if="!lookInfoType" class="el-icon-search" slot="append" @click="deptHandleQueryRight"></p>
- <p v-if="lookInfoType" class="el-icon-search" slot="append" @click="lookDeptRightSearch"></p>
- </el-input>
- </el-form-item>
- <el-form-item style="margin-right:0;">
- <p v-if="!lookInfoType" class="page-submit-common-style-button" @click="deptResetQueryRight" style="width:60px;margin-right:0;">重置</p>
- <p v-if="lookInfoType" class="page-submit-common-style-button" @click="lookDeptRightReset" style="width:60px;margin-right:0;">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" border :data="deptTableListRight">
- <el-table-column label="序号" align="center" type="index" width="60"/>
- <el-table-column label="实验室" align="center" prop="subName" show-overflow-tooltip>
- <template slot-scope="scope">{{scope.row.roomNum?scope.row.subName+'-'+scope.row.roomNum:scope.row.subName}}</template>
- </el-table-column>
- <el-table-column label="楼栋楼层" align="center" prop="buildName" show-overflow-tooltip width="150">
- <template slot-scope="scope">{{scope.row.buildName}}{{scope.row.floorName}}</template>
- </el-table-column>
- <el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="150">
- <template slot-scope="scope">
- <span>{{scope.row.classTypeNames}}</span>
- <span>-</span>
- <span :style="'color:'+scope.row.classLevelColor+';'">{{scope.row.classLevelName}}</span>
- </template>
- </el-table-column>
- <el-table-column label="学院" align="center" prop="deptName" show-overflow-tooltip width="140"/>
- </el-table>
- <pagination layout="total, prev, pager, next, jumper"
- v-show="deptTotalRight>0"
- :total="deptTotalRight"
- :page.sync="deptQueryParamsRight.page"
- :limit.sync="deptQueryParamsRight.pageSize"
- @pagination="deptGetListRight"
- />
- </div>
- </div>
- </div>
- <div class="inspectionPlan-dialog-sub-box" v-show="addDialogBoxType==3">
- <div v-if="!lookInfoType" class="left-max-box">
- <div class="dept-table-title-box">
- <p>待选实验室</p>
- <p>{{subNumLeft}}/{{subTotalLeft}}</p>
- </div>
- <div class="dept-table-max-box">
- <el-form :model="subQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
- <el-form-item label="" prop="typeId">
- <el-select v-model="subQueryParamsLeft.typeId" clearable placeholder="选择分类" style="width: 110px">
- <el-option
- v-for="item in classTypeList"
- :key="item.typeId"
- :label="item.typeName"
- :value="item.typeId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="levelId">
- <el-select v-model="subQueryParamsLeft.levelId" clearable placeholder="选择分级" style="width: 110px">
- <el-option
- v-for="item in classifiedList"
- :key="item.levelId"
- :label="item.levelName"
- :value="item.levelId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="deptId">
- <el-select v-model="subQueryParamsLeft.deptId" clearable placeholder="学院" style="width: 80px">
- <el-option
- v-for="item in deptSelectList"
- :key="item.deptId"
- :label="item.deptName"
- :value="item.deptId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="searchValue" class="form-index">
- <el-input
- maxLength="30"
- v-model="subQueryParamsLeft.searchValue"
- placeholder="实验室/房间号"
- clearable
- style="width: 140px">
- <p class="el-icon-search" slot="append" @click="subHandleQueryLeft"></p>
- </el-input>
- </el-form-item>
- <el-form-item style="margin-right:0;">
- <p class="page-submit-common-style-button" @click="subResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" ref="leftSubTable" border :data="subTableListLeft" @selection-change="subChangeLeft" :row-key="getSubRowKeys">
- <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
- <el-table-column label="实验室" align="center" prop="subName" show-overflow-tooltip>
- <template slot-scope="scope">{{scope.row.roomNum?scope.row.subName+'-'+scope.row.roomNum:scope.row.subName}}</template>
- </el-table-column>
- <el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
- <template slot-scope="scope">
- <span>{{scope.row.classTypeNames}}</span>
- <span>-</span>
- <span :style="'color:'+scope.row.classLevelColor+';'">{{scope.row.classLevelName}}</span>
- </template>
- </el-table-column>
- <el-table-column label="学院" align="center" prop="deptName" show-overflow-tooltip width="150"/>
- </el-table>
- <pagination layout="total, prev, pager, next, jumper"
- v-show="subTotalLeft>0"
- :total="subTotalLeft"
- :page.sync="subQueryParamsLeft.page"
- :limit.sync="subQueryParamsLeft.pageSize"
- @pagination="subGetListLeft"/>
- </div>
- </div>
- <div v-if="!lookInfoType" class="center-box">
- <p class="el-icon-arrow-left" @click="subArrowButton(1)"></p>
- <p class="el-icon-arrow-right" @click="subArrowButton(2)"></p>
- </div>
- <div class="right-max-box">
- <div class="dept-table-title-box">
- <p>已选实验室</p>
- <p v-if="!lookInfoType">{{subNumRight}}/{{subTotalRight}}</p>
- <p v-if="lookInfoType">{{subTotalRight}}</p>
- </div>
- <div class="dept-table-max-box">
- <el-form :model="subQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
- <el-form-item label="" prop="typeId">
- <el-select v-model="subQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 110px">
- <el-option
- v-for="item in classTypeList"
- :key="item.typeId"
- :label="item.typeName"
- :value="item.typeId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="levelId">
- <el-select v-model="subQueryParamsRight.levelId" clearable placeholder="选择分级" style="width: 110px">
- <el-option
- v-for="item in classifiedList"
- :key="item.levelId"
- :label="item.levelName"
- :value="item.levelId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="deptId">
- <el-select v-model="subQueryParamsRight.deptId" clearable placeholder="学院" style="width: 80px">
- <el-option
- v-for="item in deptSelectList"
- :key="item.deptId"
- :label="item.deptName"
- :value="item.deptId">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="searchValue" class="form-index">
- <el-input
- maxLength="30"
- v-model="subQueryParamsRight.searchValue"
- placeholder="实验室/房间号"
- clearable
- style="width: 140px">
- <p class="el-icon-search" slot="append" @click="subHandleQueryRight"></p>
- </el-input>
- </el-form-item>
- <el-form-item style="margin-right:0;">
- <p class="page-submit-common-style-button" @click="subResetQueryRight" style="width:60px;margin-right:0;">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" ref="rightSubTable" border :data="subTableListRight" @selection-change="subChangeRight" :row-key="getSubRowKeys">
- <el-table-column v-if="!lookInfoType" type="selection" width="50" :reserve-selection="true" align="center"/>
- <el-table-column label="实验室" align="center" prop="subName" show-overflow-tooltip>
- <template slot-scope="scope">{{scope.row.roomNum?scope.row.subName+'-'+scope.row.roomNum:scope.row.subName}}</template>
- </el-table-column>
- <el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
- <template slot-scope="scope">
- <span>{{scope.row.classTypeNames}}</span>
- <span>-</span>
- <span :style="'color:'+scope.row.classLevelColor+';'">{{scope.row.classLevelName}}</span>
- </template>
- </el-table-column>
- <el-table-column label="学院" align="center" prop="deptName" show-overflow-tooltip width="150"/>
- </el-table>
- <pagination layout="total, prev, pager, next, jumper"
- v-show="subTotalRight>0"
- :total="subTotalRight"
- :page.sync="subQueryParamsRight.page"
- :limit.sync="subQueryParamsRight.pageSize"
- @pagination="subGetListRight"/>
- </div>
- </div>
- </div>
- <div class="inspectionPlan-dialog-look-box" v-if="addDialogBoxType==5">
- <iframe
- class="iframe-box"
- :src="iframeSrc" scrolling="auto" frameborder="0">
- </iframe>
- </div>
- <div class="inspectionPlan-dialog-user-box" v-show="addDialogBoxType==6">
- <div class="left-max-box">
- <div class="dept-table-title-box">
- <p>待选</p>
- <p>{{deviceNumLeft}}/{{deviceTotalLeft}}</p>
- </div>
- <div class="dept-table-max-box">
- <el-form :model="deviceQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
- <el-form-item label="" prop="deptId">
- <el-select v-model="deviceQueryParamsLeft.hazardTypeMode" clearable placeholder="选择类型" style="width: 110px">
- <el-option
- v-for="item in dangerArr"
- :key="item.dictValue"
- :label="item.dictLabel"
- :value="item.dictValue">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="searchValue" class="form-index">
- <el-input
- maxLength="20"
- v-model="deviceQueryParamsLeft.searchValue"
- placeholder="搜索设备名称"
- clearable
- style="width: 240px">
- <p class="el-icon-search" slot="append" @click="deviceHandleQueryLeft"></p>
- </el-input>
- </el-form-item>
- <el-form-item style="margin-right:0;">
- <p class="page-submit-common-style-button" @click="deviceResetQueryLeft" style="width:60px;">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" ref="leftDeviceTable" border :data="deviceTableListLeft" @selection-change="deviceChangeLeft" :row-key="getDeviceRowKeys">
- <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
- <el-table-column label="名称" align="center" prop="chName" show-overflow-tooltip/>
- <el-table-column label="型号" align="center" prop="code" show-overflow-tooltip width="150"/>
- <el-table-column label="类型" align="center" prop="hazardTypeModeName" show-overflow-tooltip width="168"/>
- </el-table>
- <pagination layout="total, prev, pager, next, jumper"
- v-show="deviceTotalLeft>0"
- :total="deviceTotalLeft"
- :pager-count="5"
- :page.sync="deviceQueryParamsLeft.page"
- :limit.sync="deviceQueryParamsLeft.pageSize"
- @pagination="deviceGetListLeft"/>
- </div>
- </div>
- <div class="center-box">
- <p class="el-icon-arrow-left" @click="deviceArrowButton(1)"></p>
- <p class="el-icon-arrow-right" @click="deviceArrowButton(2)"></p>
- </div>
- <div class="right-max-box">
- <div class="dept-table-title-box">
- <p>已选</p>
- <p>{{deviceNumRight}}/{{deviceTotalRight}}</p>
- </div>
- <div class="dept-table-max-box">
- <el-form :model="deviceQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
- <el-form-item label="" prop="deptId">
- <el-select v-model="deviceQueryParamsRight.hazardTypeMode" clearable placeholder="选择类型" style="width: 110px">
- <el-option
- v-for="item in dangerArr"
- :key="item.dictValue"
- :label="item.dictLabel"
- :value="item.dictValue">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="" prop="searchValue" class="form-index">
- <el-input
- maxLength="20"
- v-model="deviceQueryParamsRight.searchValue"
- placeholder="搜索设备名称"
- clearable
- style="width: 240px">
- <p class="el-icon-search" slot="append" @click="deviceHandleQueryRight"></p>
- </el-input>
- </el-form-item>
- <el-form-item style="margin-right:0;">
- <p class="page-submit-common-style-button" @click="deviceResetQueryRight" style="width:60px;">重置</p>
- </el-form-item>
- </el-form>
- <el-table class="table-box" ref="rightDeviceTable" border :data="deviceTableListRight" @selection-change="deviceChangeRight" :row-key="getDeviceRowKeys">
- <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
- <el-table-column label="名称" align="center" prop="chName" show-overflow-tooltip/>
- <el-table-column label="型号" align="center" prop="code" show-overflow-tooltip width="150"/>
- <el-table-column label="类型" align="center" prop="hazardTypeModeName" show-overflow-tooltip width="168"/>
- </el-table>
- <pagination layout="total, prev, pager, next, jumper"
- v-show="deviceTotalRight>0"
- :total="deviceTotalRight"
- :pager-count="5"
- :page.sync="deviceQueryParamsRight.page"
- :limit.sync="deviceQueryParamsRight.pageSize"
- @pagination="deviceGetListRight"/>
- </div>
- </div>
- </div>
- <div slot="footer" class="dialog-footer dialog-footer-box" style="display: flex">
- <p class="dialog-footer-button-null"></p>
- <p class="dialog-footer-button-info" @click="addDialogOff">{{addDialogBoxType==1?'取消':'返回'}}</p>
- <p class="dialog-footer-button-primary" v-if="!lookInfoType && addDialogBoxType!=5" @click="addUserButton">确定</p>
- <p class="dialog-footer-button-null"></p>
- </div>
- <fullScreenFileLook ref="fullScreenFileLook"></fullScreenFileLook>
- </el-dialog>
- </template>
- <script>
- // V3
- import fullScreenFileLook from "@/components/fullScreenFileLook/fullScreenFileLook.vue";
- import { getToken } from "@/utils/auth";
- import {
- getDeptDropList,
- laboratoryClassTypeGetList,
- laboratoryClassLevelGetList,
- } from '@/api/commonality/permission'
- import { getDicts } from '@/api/commonality/noPermission'
- import {
- laboratorySubRelInfoGetAllSubNum,
- laboratorySubRelInfoConditionCollegeInfo,
- getHistoryPlanTitles,isSCollege,
- laboratorySubRelInfoGetRelListByCondition,
- laboratorySubRelInfoConditionSubjectInfo,
- laboratoryHazardQueryHazardList,
- checkPlanAdd,findCheckPlan,
- checkPlanUpdate, hideHistoryPlanTitle,
- haveHazardInSub,
- } from '@/api/safetyCheck/indexTow'
- export default {
- name: 'addDialog',
- props:{
- addDialogData:{},
- },
- components: {
- fullScreenFileLook,
- },
- data(){
- return{
- loading:false,
- uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
- headers: {
- Authorization: getToken(),
- },
- addDialogTitle:"",
- addDialogType:true,
- //弹窗内容状态
- addDialogBoxType:1,
- // 设置只能选择当前日期及之后的日期
- pickerOptions: {
- disabledDate(time) {
- return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
- }
- },
- //标题快选数据
- quickSelectionList:[],
- //上传文件名称暂存
- upDataName:"",
- //巡查范围列表
- dialogRangeOptions:[],
- //学院数量
- collegeNum:0,
- //学院实验室数量
- collegeSubNum:0,
- //学院选择页面已选数据
- deptCheckData:{
- deptIds:[],
- deptNum:0,
- subNum:0
- },
- //实验室选择页面已选数据
- subCheckData:{
- subIds:[]
- },
- //巡查院系列表
- deptList:[],
- //巡查实验室列表
- subList:[],
- //提交数据
- dialogForm:{
- title:"",//奥体
- checkType:"2",//检查组织
- dateRange:[],//时间
- checkCategory:'1',//检查类型
- hazardIds:'',//危险源ids
- hazardNum:'0',// 危险源数量
- checkRange:"",//检查范围
- checkDemand:"",//检查要点
- schoolSubCheckNum:0,//学校实验室数量
- collegeNum:0,//学院数量
- collegeSubNum:0,//学院实验室数量
- subCheckNum:0,//实验室数量
- subjectNum:0,
- collegeIds:[],
- uploadDtoList:[],
- },
- // 表单校验
- rules: {
- title: [
- { required: true, message: "请输入计划标题", trigger: "change" },
- { required: true, message: "请输入计划标题", validator: this.spaceJudgment, trigger: "change" },
- ],
- checkCategory: [
- { required: true, message: "请选择检查类型", trigger: "change" },
- ],
- dateRange: [
- { required: true, message: "请选择任务周期", trigger: "change" },
- ],
- checkRange: [
- { required: true, message: "请选择检查范围", trigger: "change" },
- ],
- },
- classTypeList:[],
- classifiedList:[],
- deptSelectList:[],
- //查看状态
- lookInfoType:false,
- /*===================================学院选择相关===================================*/
- changeDeptSelectList:[],
- deptQueryParamsLeft:{
- searchValue:"",
- },
- deptTableListLeft:[],
- deptTotalLeft:0,
- deptNumLeft:0,
- deptIdsLeft:[],
- deptQueryParamsRight:{
- page:1,
- pageSize:20,
- searchValue:"",
- deptId:"",
- deptIds:"",
- levelId:"",
- typeId:"",
- },
- deptTableListRight:[],
- deptTotalRight:0,
- /*===================================实验室选择相关===================================*/
- subQueryParamsLeft:{
- page:1,
- pageSize:20,
- typeId:"",
- levelId:"",
- deptId:"",
- searchValue:"",
- filtType:1
- },
- subTableListLeft:[],
- subTotalLeft:0,
- subNumLeft:0,
- subIdsLeft:[],
- subQueryParamsRight:{
- page:1,
- pageSize:20,
- typeId:"",
- levelId:"",
- deptId:"",
- searchValue:"",
- filtType:2
- },
- subTableListRight:[],
- subTotalRight:0,
- subNumRight:0,
- subIdsRight:[],
- dialogTableSubList:[],
- dialogTableSubDataList:[],
- /*===================================设备相关===================================*/
- //检查类型
- inspectCategoryList:[{id:'1',name:'综合检查'},{id:'2',name:'专项检查'}],
- deviceQueryParamsLeft:{
- page: 1,
- pageSize: 20,
- searchValue:"",
- hazardTypeMode:"",
- filtType:1//1是过滤,2是不过滤
- },
- deviceTableListLeft:[],
- deviceTotalLeft:0,
- deviceNumLeft:0,
- deviceIdsLeft:[],
- deviceQueryParamsRight:{
- page: 1,
- pageSize: 20,
- searchValue:"",
- hazardTypeMode:"",
- filtType:2
- },
- deviceTableListRight:[],
- deviceTotalRight:0,
- deviceNumRight:0,
- deviceIdsRight:[],
- deviceDialogTableDataList:[],
- deviceDialogList:[],//存储所有的设备
- dangerArr:[],
- deviceIsEmpty:false,//如果是专项检查-判断是否选择检查范围和检查内容
- /*===================================文档预览===================================*/
- iframeSrc:"",
- /*===================================弹窗相关结束===================================*/
- }
- },
- created(){
- this.$set(this,'addDialogTitle',this.addDialogData.title);
- this.$set(this,'lookInfoType',this.addDialogData.lookInfoType);
- },
- mounted(){
- this.initializationInterface();
- this.dangerList();
- this.deviceGetList();//查询所有设备
- },
- methods:{
- //初始化接口
- initializationInterface(){
- //获取历史标题
- this.getHistoryPlanTitles();
- //获取学院列表
- getDeptDropList({ deptName: '', level: 2, deptType: 1 }).then(response => {
- this.$set(this, 'deptSelectList', response.data)
- })
- /**获取分级*/
- laboratoryClassLevelGetList({}).then(response => {
- this.$set(this, 'classifiedList', response.data)
- })
- /**获取分类*/
- laboratoryClassTypeGetList({}).then(response => {
- this.$set(this, 'classTypeList', response.data)
- })
- //查询当前用户是否是院级
- isSCollege().then(response=>{
- if(response.data.userFlg){
- // 院级
- this.$set(this,'dialogRangeOptions',[{label:"学院",value:2},{label:"实验室",value:3}]);
- }else{
- // 校级
- this.$set(this,'dialogRangeOptions',[{label:"全校",value:1},{label:"学院",value:2},{label:"实验室",value:3}]);
- }
- });
- if(!this.addDialogData.addType){
- //编辑-详情查询
- findCheckPlan({id:this.addDialogData.id}).then(response => {
- //处理基础数据
- let obj = {
- id:response.data.id,
- title:response.data.title,
- checkType:response.data.checkType,
- checkCategory:response.data.checkCategory+'',
- hazardIds:response.data.hazardIds,
- hazardNum:response.data.hazardNum,
- dateRange:[response.data.cycleStartTime,response.data.cycleEndTime],
- checkRange:response.data.checkRange,
- schoolSubCheckNum:response.data.checkRange == 1?response.data.subjectNum:0,
- collegeSubNum:response.data.checkRange == 2?response.data.subjectNum:0,
- collegeNum:response.data.checkRange == 2?response.data.collegeNum:0,
- subCheckNum:response.data.checkRange == 3?response.data.subjectNum:0,
- collegeIds:response.data.collegeIds?response.data.collegeIds.split(','):[],
- checkDemand:response.data.checkDemand,
- uploadDtoList:response.data.uploadDtoList,
- }
- this.$set(this,'dialogForm',obj);
- //处理实验室数据
- let subList = response.data.subIds?response.data.subIds.split(','):[];
- let subDataList = [];
- for(let i=0;i<subList.length;i++){
- let obj = {
- subId:subList[i],
- }
- subDataList.push(obj);
- }
- this.$set(this,'dialogTableSubList',subDataList);
- this.$set(this.subCheckData,'subIds',subList);
- });
- }
- },
- //选中检查类型
- inspectCategoryChange(val){
- },
- //选中检查范围
- rangeChange(val){
- if(val == 1){
- //全校
- laboratorySubRelInfoGetAllSubNum().then(response => {
- this.$set(this.dialogForm,'schoolSubCheckNum',response.data.subCount);
- })
- }
- },
- //确定按钮
- addUserButton(){
- let self = this;
- if(this.addDialogBoxType == 1){
- //提交
- this.$refs["addDialogForm"].validate(valid => {
- if (valid) {
- //检查范围内是否选择实验室获学院
- if(this.dialogForm.checkRange == 2){
- if(!this.dialogForm.collegeIds[0]){
- this.msgError('请选择学院')
- return
- }
- if(this.dialogForm.collegeSubNum<1){
- this.msgError('所选学院下实验室数量不足')
- return
- }
- }else if(this.dialogForm.checkRange == 3){
- if(!this.subCheckData.subIds[0]){
- this.msgError('请选择实验室')
- return
- }
- }
- if(this.dialogForm.checkCategory==2){
- if(this.dialogForm.hazardNum==0){
- this.msgError('请选择检查内容')
- return
- }
- }
- let obj = {
- title:this.dialogForm.title,
- checkType:this.dialogForm.checkType,
- cycleStartTime:this.dialogForm.dateRange[0],
- cycleEndTime:this.dialogForm.dateRange[1],
- checkCategory:this.dialogForm.checkCategory,//检查类型
- hazardIds:this.dialogForm.hazardIds,//危险源ids
- hazardNum:this.dialogForm.hazardNum,// 危险源数量
- checkRange:this.dialogForm.checkRange,//检查范围
- subjectNum:this.dialogForm.checkRange == 1?this.dialogForm.schoolSubCheckNum:(
- this.dialogForm.checkRange == 2?this.dialogForm.collegeSubNum:(
- this.dialogForm.checkRange == 3?this.dialogForm.subCheckNum:0)),//实验室数量
- collegeIds:this.dialogForm.checkRange==2?this.dialogForm.collegeIds+'':'',//学院ID转换字符串
- collegeNum:this.dialogForm.checkRange==2?this.dialogForm.collegeNum:0,//学院数量
- subIds:this.dialogForm.checkRange == 3?this.subCheckData.subIds+'':'',//实验室ID
- checkDemand:this.dialogForm.checkDemand,//检查要求
- uploadDtoList:this.dialogForm.uploadDtoList,//检查要求
- };
- if(this.addDialogData.id){
- //编辑
- for(let i=0;i<obj.uploadDtoList.length;i++){
- obj.uploadDtoList[i].keyId = this.addDialogData.id;
- }
- obj.id = this.addDialogData.id;
- checkPlanUpdate(obj).then(response => {
- this.msgSuccess(response.message)
- this.$parent.addDialogOpen(5)
- })
- }else{
- //新增
- checkPlanAdd(obj).then(response => {
- this.msgSuccess(response.message)
- this.$parent.addDialogOpen(5)
- })
- }
- }
- })
- }else if(this.addDialogBoxType == 2){
- // 学院选择页面确定
- this.$set(this.dialogForm,'collegeNum',this.deptCheckData.deptNum);
- this.$set(this.dialogForm,'collegeSubNum',this.deptCheckData.subNum);
- this.$set(this.dialogForm,'collegeIds',this.deptCheckData.deptIds);
- this.dialogClickType(1);
- }else if(this.addDialogBoxType == 3){
- //实验室选择页面确定
- let list = [];
- let ids = [];
- for(let o=0;o<self.dialogTableSubDataList.length;o++){
- ids.push(self.dialogTableSubDataList[o].subId)
- let obj = {
- subId:self.dialogTableSubDataList[o].subId,
- subjectName:self.dialogTableSubDataList[o].subjectName,
- typeId:self.dialogTableSubDataList[o].typeId,
- levelId:self.dialogTableSubDataList[o].levelId,
- collegeName:self.dialogTableSubDataList[o].collegeName,
- };
- list.push(obj)
- }
- this.$set(this.subCheckData,'subIds',ids);
- this.$set(this.dialogForm,'subCheckNum',list.length);
- this.$set(this,'dialogTableSubList',list);
- this.dialogClickType(1);
- }else if(this.addDialogBoxType == 6){
- let list=[]
- for(let i=0;i<self.deviceDialogTableDataList.length;i++){
- list.push(self.deviceDialogTableDataList[i].hazardId)
- }
- this.$set(this.dialogForm,'hazardIds',list.join(','));
- this.$set(this.dialogForm,'hazardNum',list.length);
- //实验室是否有当前设备
- let obj={
- "checkRange":this.dialogForm.checkRange,
- "collegeIds":this.dialogForm.checkRange==2?this.dialogForm.collegeIds+'':'',//学院ID转换字符串
- "subIds":this.dialogForm.checkRange == 3?this.subCheckData.subIds+'':'',//实验室ID
- "hazardIds":this.dialogForm.hazardIds,
- }
- haveHazardInSub(obj).then(response => {
- if(response.code==200){
- this.dialogClickType(1);
- }else{
- this.$set(this.dialogForm,'hazardIds','');
- this.$set(this.dialogForm,'hazardNum',0);
- }
- });
- }
- },
- /*===================================弹窗相关===================================*/
- //弹窗关闭
- addDialogAllOff(){
- this.$parent.addDialogOpen(4)
- },
- addDialogOff(){
- if(this.addDialogBoxType == 1){
- this.$parent.addDialogOpen(4)
- }else{
- this.dialogClickType(1);
- }
- },
- //弹窗状态切换
- dialogClickType(type,item){
- let self = this;
- if(type == 5){
- //判断类型
- let type = '';
- if(item.fileUrl.split('.')[1] == 'docx'){
- type = 'docx'
- }else if(item.fileUrl.split('.')[1] == 'xlsx'){
- type = 'excel'
- }else if(item.fileUrl.split('.')[1] == 'pdf'){
- type = 'pdf'
- }
- let url = localStorage.getItem('fileBrowseEnvironment')+item.fileUrl;
- this.$refs['fullScreenFileLook'].initialize(item.fileName,url,type);
- }else if(type == 6){//检查设备
- if(!this.dialogForm.checkRange){
- this.msgError('请选择检查范围')
- return
- }
- if(this.dialogForm.checkRange == 1){
- if(this.dialogForm.schoolSubCheckNum<1){
- this.msgError('该校区没有实验室')
- return
- }
- }
- if(this.dialogForm.checkRange == 2){
- if(this.dialogForm.collegeSubNum<1){
- this.msgError('未检测到学院下的实验室')
- return
- }
- }
- if(this.dialogForm.checkRange == 3 ){
- if(this.dialogForm.subCheckNum<1){
- this.msgError('请选择实验室实验室')
- return
- }
- }
- //设备
- let list=[];
- let list2=[];
- if(this.dialogForm.hazardIds){
- list=this.dialogForm.hazardIds.split(',')
- for(let i=0;i<this.deviceDialogList.length;i++){
- for(let b=0;b<list.length;b++){
- if(list[b]==this.deviceDialogList[i].hazardId){
- list2.push(this.deviceDialogList[i])
- }
- }
- }
- }
- this.$set(self,'deviceDialogTableDataList',list2);
- this.deviceResetQueryLeft();
- this.deviceResetQueryRight();
- this.$set(this,'addDialogBoxType',type);
- }else if(type == 2){
- //选择学院
- this.$set(this,'addDialogBoxType',type);
- this.deptResetQueryLeft();
- if(this.dialogForm.collegeIds[0]){
- this.$nextTick(() => {
- laboratorySubRelInfoConditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
- if(this.lookInfoType){
- //查看时
- let list = [];
- for(let i=0;i<response.data.length;i++){
- let num = 0;
- for(let o=0;o<self.dialogForm.collegeIds.length;o++){
- if(response.data[i].deptId == self.dialogForm.collegeIds[o]){
- num++
- }
- }
- if(num == 0){
- response.data.splice(i,1);
- i--
- }
- }
- self.$set(self,'deptTableListLeft',response.data);
- self.$set(self,'deptTotalLeft',response.data.length);
- self.$set(self,'changeDeptSelectList',response.data);
- this.$set(this,'deptQueryParamsRight',{
- page:1,
- pageSize:20,
- searchValue:"",
- deptId:"",
- levelId:"",
- typeId:"",
- });
- let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
- obj.deptIds = self.dialogForm.collegeIds;
- laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
- this.deptTotalRight = response.data.total;
- this.deptTableListRight = response.data.records;
- this.$set(this.deptCheckData,'subNum',response.data.total);
- this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
- });
- }else{
- //新增-编辑时
- self.$set(self,'deptTableListLeft',response.data);
- self.$set(self,'deptTotalLeft',response.data.length);
- let list = [];
- for(let i=0;i<self.dialogForm.collegeIds.length;i++){
- for(let o=0;o<self.deptTableListLeft.length;o++){
- if(self.dialogForm.collegeIds[i] == self.deptTableListLeft[o].deptId){
- list.push(self.deptTableListLeft[o])
- self.$refs.leftDeptTable.toggleRowSelection(self.deptTableListLeft[o]);
- }
- }
- }
- self.deptChange(list);
- }
- })
- })
- }
- }else if(type == 3){
- //选择实验室
- this.$set(self,'dialogTableSubDataList',JSON.parse(JSON.stringify(this.dialogTableSubList)));
- this.subResetQueryLeft();
- this.subResetQueryRight();
- this.$set(this,'addDialogBoxType',type);
- }else{
- this.$set(this,'addDialogBoxType',type);
- }
- },
- //选中对应周期
- checkTime(type){
- let myDate = new Date();
- let year = myDate.getFullYear();
- let month = myDate.getMonth()+1;
- let day = myDate.getDate();
- let minTime = year + '-' + month + '-' + day
- let maxTime = '';
- if(type==1){
- maxTime = this.getMonthFinalDay(year,month);
- }else if(type==2){
- if(month>0 && month<4){
- maxTime = this.getMonthFinalDay(year,3);
- }else if(month>3 && month<7){
- maxTime = this.getMonthFinalDay(year,6);
- }else if(month>6 && month<10){
- maxTime = this.getMonthFinalDay(year,9);
- }else if(month>9 && month<13){
- maxTime = this.getMonthFinalDay(year,12);
- }
- }else if(type==3){
- maxTime = this.getMonthFinalDay(year,12);
- }
- let timeListA = minTime.split('-')
- minTime = timeListA[0]+'-'+(timeListA[1]<10?'0'+timeListA[1]:timeListA[1])+'-'+(timeListA[2]<10?'0'+timeListA[2]:timeListA[2])
- let timeListB = maxTime.split('-')
- maxTime = timeListB[0]+'-'+(timeListB[1]<10?'0'+timeListB[1]:timeListB[1])+'-'+(timeListB[2]<10?'0'+timeListB[2]:timeListB[2])
- this.$set(this.dialogForm,'dateRange',[minTime,maxTime]);
- },
- //返回指定月份最后一天
- getMonthFinalDay(year,month){
- var day='';
- if(year==null || year==undefined || year==''){
- year = new Date().getFullYear();
- }
- if(month==null || month==undefined || month==''){
- month = new Date().getMonth()+1;
- }
- day = new Date(new Date(year,month).setDate(0)).getDate();
- return year+"-"+month+"-"+day;
- },
- //删除弹窗上传文件
- delUpData(index){
- this.dialogForm.uploadDtoList.splice(index,1)
- },
- //快捷选中标题
- checkTitle(item){
- this.$set(this.dialogForm,'title',item.title);
- },
- /*===================================学院选择相关===================================*/
- //重置
- deptResetQueryLeft(){
- this.$set(this,'deptQueryParamsLeft',{ searchValue:"", });
- this.$set(this,'deptNumLeft',0);
- this.$set(this,'deptIdsLeft',[]);
- this.$refs.leftDeptTable.clearSelection();
- this.deptGetListLeft();
- },
- //查询接口
- deptGetListLeft(){
- laboratorySubRelInfoConditionCollegeInfo(this.deptQueryParamsLeft).then(response => {
- this.$set(this,'deptTableListLeft',response.data);
- this.$set(this,'deptTotalLeft',response.data.length);
- })
- },
- //查询
- deptHandleQueryRight(){
- this.deptGetListRight();
- },
- //重置
- deptResetQueryRight(){
- this.$set(this,'deptQueryParamsRight',{
- page:1,
- pageSize:20,
- searchValue:"",
- deptId:"",
- deptIds:"",
- levelId:"",
- typeId:"",
- });
- this.deptHandleQueryRight();
- },
- //查询接口
- deptGetListRight(){
- let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
- if(this.lookInfoType){
- obj.deptIds = this.dialogForm.collegeIds;
- }else{
- obj.deptIds = this.deptIdsLeft;
- }
- laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
- this.deptTotalRight = response.data.total;
- this.deptTableListRight = response.data.records;
- });
- },
- /*===================================实验室选择相关===================================*/
- //查询
- subHandleQueryLeft(){
- this.$set(this.subQueryParamsLeft,'page',1);
- this.subGetListLeft();
- },
- //重置
- subResetQueryLeft(){
- this.$set(this,'subQueryParamsLeft',{
- page:1,
- pageSize:20,
- typeId:"",
- levelId:"",
- deptId:"",
- searchValue:"",
- filtType:1
- });
- this.subHandleQueryLeft();
- },
- //查询接口
- subGetListLeft(){
- let self = this;
- let leftObj = JSON.parse(JSON.stringify(this.subQueryParamsLeft));
- leftObj.selectedSubIds = [];
- for(let i=0;i<self.dialogTableSubDataList.length;i++){
- leftObj.selectedSubIds.push(self.dialogTableSubDataList[i].subId);
- }
- laboratorySubRelInfoConditionSubjectInfo(leftObj).then(response => {
- this.subTotalLeft = response.data.total;
- this.subTableListLeft = response.data.records;
- });
- },
- //查询
- subHandleQueryRight(){
- this.$set(this.subQueryParamsRight,'page',1);
- this.subGetListRight();
- },
- //重置
- subResetQueryRight(){
- this.$set(this,'subQueryParamsRight',{
- page:1,
- pageSize:20,
- typeId:"",
- levelId:"",
- deptId:"",
- searchValue:"",
- filtType:2
- });
- this.subHandleQueryRight();
- },
- //查询接口
- subGetListRight(){
- let self = this;
- let rightObj = JSON.parse(JSON.stringify(this.subQueryParamsRight));
- rightObj.subIds = [];
- for(let i=0;i<self.dialogTableSubDataList.length;i++){
- rightObj.subIds.push(self.dialogTableSubDataList[i].subId);
- }
- laboratorySubRelInfoConditionSubjectInfo(rightObj).then(response => {
- this.subTotalRight = response.data.total;
- this.subTableListRight = response.data.records;
- });
- },
- //实验室穿梭按钮
- subArrowButton(type){
- if(type == 1){
- if(this.$refs.rightSubTable.selection[0]){
- let list = JSON.parse(JSON.stringify(this.dialogTableSubDataList));
- let subIdsRight = JSON.parse(JSON.stringify(this.$refs.rightSubTable.selection))
- for(let i=0;i<subIdsRight.length;i++){
- for(let s=0;s<list.length;s++){
- if(subIdsRight[i].subId == list[s].subId){
- list.splice(s,1);
- s--
- }
- }
- }
- this.$set(this,'dialogTableSubDataList',list);
- this.$refs.rightSubTable.clearSelection();
- this.subHandleQueryLeft();
- this.subHandleQueryRight();
- }else{
- this.msgError('请先勾选右侧列表')
- }
- }else if(type == 2){
- if(this.$refs.leftSubTable.selection[0]){
- let list = JSON.parse(JSON.stringify(this.dialogTableSubDataList));
- let subIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftSubTable.selection))
- for(let i=0;i<subIdsLeft.length;i++){
- let obj = {
- subId:subIdsLeft[i].subId,
- subjectName:subIdsLeft[i].subName,
- typeId:subIdsLeft[i].typeId,
- levelId:subIdsLeft[i].levelId,
- collegeName:subIdsLeft[i].deptName,
- }
- list.push(obj);
- }
- this.$set(this,'dialogTableSubDataList',list);
- this.$refs.leftSubTable.clearSelection();
- this.subHandleQueryLeft();
- this.subHandleQueryRight();
- }else{
- this.msgError('请先勾选左侧列表')
- }
- }
- },
- /*===================================设备相关相关===================================*/
- //获取危险源类型
- dangerList(){
- getDicts('classify_dictionaries_all').then(response => {
- let list = response.data;
- getDicts('level_dictionaries_all').then(response => {
- list = list.concat(response.data)
- this.$set(this,'dangerArr',list);
- });
- });
- },
- //查询
- deviceHandleQueryLeft(){
- this.$set(this.deviceQueryParamsLeft,'page',1);
- this.$set(this,'deviceNumLeft',0);
- this.$set(this,'deviceIdsLeft',[]);
- this.$refs.leftDeviceTable.clearSelection();
- this.deviceGetListLeft();
- },
- //重置
- deviceResetQueryLeft(){
- this.$set(this,'deviceQueryParamsLeft',{
- page: 1,
- pageSize: 20,
- hazardTypeMode:"",
- searchValue:"",
- filtType:1
- });
- this.deviceHandleQueryLeft();
- },
- //查询接口
- deviceGetListLeft(){
- let self = this;
- let leftObj = JSON.parse(JSON.stringify(this.deviceQueryParamsLeft));
- leftObj.selectedHazardIds = [];
- for(let i=0;i<self.deviceDialogTableDataList.length;i++){
- leftObj.selectedHazardIds.push(self.deviceDialogTableDataList[i].hazardId);
- }
- laboratoryHazardQueryHazardList(leftObj).then(response => {
- this.deviceTotalLeft = response.data.total;
- this.deviceTableListLeft = response.data.records;
- });
- },
- //查询
- deviceHandleQueryRight(){
- this.$set(this.deviceQueryParamsRight,'page',1);
- this.$set(this,'deviceNumRight',0);
- this.$set(this,'deviceIdsRight',[]);
- this.$refs.rightDeviceTable.clearSelection();
- this.deviceGetListRight();
- },
- //重置
- deviceResetQueryRight(){
- this.$set(this,'deviceQueryParamsRight',{
- page: 1,
- pageSize: 20,
- hazardTypeMode:"",
- searchValue:"",
- filtType:2
- });
- this.deviceHandleQueryRight();
- },
- //查询所有的设备
- deviceGetList(){
- let obj={
- page: 1,
- pageSize: 200,
- hazardTypeMode:"",
- searchValue:"",
- filtType:""
- }
- laboratoryHazardQueryHazardList(obj).then(response => {
- this.deviceDialogList=response.data.records
- });
- },
- //查询接口
- deviceGetListRight(){
- let self = this;
- let rightObj = JSON.parse(JSON.stringify(this.deviceQueryParamsRight));
- rightObj.hazardIds = [];
- for(let i=0;i<self.deviceDialogTableDataList.length;i++){
- rightObj.hazardIds.push(self.deviceDialogTableDataList[i].hazardId);
- }
- laboratoryHazardQueryHazardList(rightObj).then(response => {
- this.deviceTotalRight = response.data.total;
- this.deviceTableListRight = response.data.records;
- });
- },
- //设备穿梭按钮
- deviceArrowButton(type){
- let self = this;
- if(type == 1){
- //右至左
- if(this.$refs.rightDeviceTable.selection[0]){
- let list = JSON.parse(JSON.stringify(this.deviceDialogTableDataList));
- let deviceIdsRight = JSON.parse(JSON.stringify(this.$refs.rightDeviceTable.selection))
- for(let i=0;i<deviceIdsRight.length;i++){
- for(let s=0;s<list.length;s++){
- if(deviceIdsRight[i].hazardId == list[s].hazardId){
- list.splice(s,1);
- s--
- }
- }
- }
- this.$set(this,'deviceDialogTableDataList',list);
- this.$refs.rightDeviceTable.clearSelection();
- this.deviceHandleQueryLeft();
- this.deviceHandleQueryRight();
- }else{
- this.msgError('请先勾选右侧列表')
- }
- }else if(type == 2){
- //左至右
- if(this.deviceIdsLeft[0]){
- let list = JSON.parse(JSON.stringify(this.deviceDialogTableDataList));
- let deviceIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftDeviceTable.selection))
- for(let i=0;i<deviceIdsLeft.length;i++){
- let obj = {
- chName:deviceIdsLeft[i].chName,
- code:deviceIdsLeft[i].hazardCode,
- bigTypeValue:deviceIdsLeft[i].bigTypeValue,
- hazardId:deviceIdsLeft[i].hazardId,
- }
- list.push(obj);
- }
- this.$set(this,'deviceDialogTableDataList',list);
- this.$refs.leftDeviceTable.clearSelection();
- this.deviceHandleQueryLeft();
- this.deviceHandleQueryRight();
- }else{
- this.msgError('请先勾选左侧列表')
- }
- }
- },
- /*===================================弹窗相关结束===================================*/
- // 单个下载按钮
- downloadButton(item){
- this.downloadUrl(item.fileUrl,item.fileName);
- },
- /*==========上传相关==========*/
- handleAvatarSuccess(res) {
- this.$set(this,'loading',false);
- if(this.dialogForm.uploadDtoList.length>9){
- this.msgError('已到达上传数量上限')
- return
- }
- let suffixName= this.upDataName.split('.')[this.upDataName.split('.').length - 2]
- //判断文件名中是否有逗号和分号
- if(suffixName.indexOf(',')==-1 && suffixName.indexOf(';')==-1){
- }else{
- this.msgError('文件名里包含逗号或分号,请修改后重新上传!')
- return
- }
- let obj ={
- fileName:this.upDataName,
- fileUrl:res.data.url,
- fileType:1,
- source:1,
- };
- this.dialogForm.uploadDtoList.push(obj);
- this.$forceUpdate()
- },
- beforeAvatarUpload(file) {
- let type = false;
- let num = 0;
- for(let i=0;i<file.name.length;i++){
- if(file.name[i] == '.'){
- num++
- }
- }
- if(num != 1){
- this.msgError('文件名称不能包含 " . "')
- return false
- }
- if (file.type == 'application/pdf' || file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' || file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
- if(file.size> 5250000){
- this.msgError('上传大小不能超过5M')
- return false
- }
- this.$set(this,'loading',true);
- this.upDataName = file.name;
- type = true;
- }else{
- this.msgError('只能上传docx/xlsx/pdf格式');
- type = false;
- }
- return type;
- },
- /*===记录勾选数据===
- 需要再el-table 添加 :row-key="getRowKeys"
- 需要在selection 添加 :reserve-selection="true"
- */
- getRowKeys(row) {
- return row.userId
- },
- getDeptRowKeys(row) {
- return row.deptId
- },
- getSubRowKeys(row) {
- return row.subId
- },
- getDeviceRowKeys(row) {
- return row.hazardId
- },
- deptChange(selection){
- let self = this;
- this.deptNumLeft = selection.length;
- this.deptIdsLeft = selection.map(item => item.deptId);
- let num = 0;
- let list = [];
- for(let i=0;i<self.deptIdsLeft.length;i++){
- for(let o=0;o<self.deptTableListLeft.length;o++){
- if(self.deptIdsLeft[i] == self.deptTableListLeft[o].deptId){
- num = self.accAdd(num,self.deptTableListLeft[o].subNum)
- let obj = {
- deptId:self.deptTableListLeft[o].deptId,
- deptName:self.deptTableListLeft[o].deptName,
- }
- list.push(obj)
- }
- }
- }
- this.$set(this,'changeDeptSelectList',list);
- this.$set(this.subQueryParamsRight,'deptId','');
- let obj = {
- deptIds:this.deptIdsLeft,
- deptNum:this.deptNumLeft,
- subNum:num
- }
- this.$set(this,'deptCheckData',JSON.parse(JSON.stringify(obj)));
- this.deptResetQueryRight();
- },
- subChangeLeft(selection){
- this.subNumLeft = selection.length;
- this.subIdsLeft = selection.map(item => item.subId);
- },
- subChangeRight(selection){
- this.subNumRight = selection.length;
- this.subIdsRight = selection.map(item => item.subId);
- },
- deviceChangeLeft(selection){
- this.deviceNumLeft = selection.length;
- this.deviceIdsLeft = selection.map(item => item.hazardId);
- },
- deviceChangeRight(selection){
- this.deviceNumRight = selection.length;
- this.deviceIdsRight = selection.map(item => item.hazardId);
- },
- //加法
- accAdd(arg1,arg2){
- var r1,r2,m;
- try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
- try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
- m=Math.pow(10,Math.max(r1,r2))
- return ((arg1*m+arg2*m)/m).toFixed(0);
- },
- //获取历史标题
- getHistoryPlanTitles(){
- getHistoryPlanTitles().then(response => {
- let list = [
- {title:"校院春季开学检查",type:false,},
- {title:"校院秋季开学检查",type:false,},
- {title:"日常安全检查",type:false,},
- {title:"年度安全检查",type:false,},
- {title:"季度安全检查",type:false,},
- {title:"月度安全检查",type:false,},
- {title:"专项检查",type:false,},
- ];
- for(let i=0;i<response.data.length;i++){
- list.push({title:response.data[i].title,type:true,id:response.data[i].id});
- }
- this.$set(this,'quickSelectionList',list);
- });
- },
- //删除历史标题
- delTitleObj(item){
- let self = this;
- this.$confirm('是否确认删除?', "警告", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
- type: "warning"
- }).then(function() {
- hideHistoryPlanTitle({checkPlanId:item.id}).then(response => {
- self.msgSuccess(response.message)
- self.getHistoryPlanTitles();
- });
- }).then(() => {
- }).catch(() => {});
- },
- //查看时学院左侧搜索
- lookDeptLeftSearch(){
- let self = this;
- laboratorySubRelInfoConditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
- let list = [];
- for(let i=0;i<response.data.length;i++){
- for(let o=0;o<self.dialogForm.collegeIds.length;o++){
- if(response.data[i].deptId == self.dialogForm.collegeIds[o] && response.data[i].deptName.indexOf(this.deptQueryParamsLeft.searchValue)!= -1){
- list.push(response.data[i]);
- }
- }
- }
- self.$set(self,'deptTableListLeft',list);
- self.$set(self,'deptTotalLeft',list.length);
- self.$set(self,'changeDeptSelectList',list);
- this.$set(this,'deptQueryParamsRight',{
- page:1,
- pageSize:20,
- searchValue:"",
- deptId:"",
- levelId:"",
- typeId:"",
- });
- let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
- let ids = [];
- for(let o=0;o<list.length;o++){
- ids.push(list[o].deptId)
- }
- obj.deptIds = ids;
- laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
- this.deptTotalRight = response.data.total;
- this.deptTableListRight = response.data.records;
- this.$set(this.deptCheckData,'subNum',response.data.total);
- this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
- });
- })
- },
- //查看时学院左侧重置
- lookDeptLeftReset(){
- let self = this;
- this.$set(this,'deptQueryParamsLeft',{ searchValue:"", });
- laboratorySubRelInfoConditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
- //查看时
- for(let i=0;i<response.data.length;i++){
- let num = 0;
- for(let o=0;o<self.dialogForm.collegeIds.length;o++){
- if(response.data[i].deptId == self.dialogForm.collegeIds[o]){
- num++
- }
- }
- if(num == 0){
- response.data.splice(i,1);
- i--
- }
- }
- self.$set(self,'deptTableListLeft',response.data);
- self.$set(self,'deptTotalLeft',response.data.length);
- self.$set(self,'changeDeptSelectList',response.data);
- this.$set(this,'deptQueryParamsRight',{
- page:1,
- pageSize:20,
- searchValue:"",
- deptId:"",
- levelId:"",
- typeId:"",
- });
- let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
- obj.deptIds = self.dialogForm.collegeIds;
- laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
- this.deptTotalRight = response.data.total;
- this.deptTableListRight = response.data.records;
- this.$set(this.deptCheckData,'subNum',response.data.total);
- this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
- });
- })
- },
- //查看时学院右侧搜索
- lookDeptRightSearch(){
- let self = this;
- let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
- let ids = [];
- for(let o=0;o<self.deptTableListLeft.length;o++){
- ids.push(self.deptTableListLeft[o].deptId)
- }
- obj.deptIds = ids;
- laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
- this.deptTotalRight = response.data.total;
- this.deptTableListRight = response.data.records;
- });
- },
- //查看时学院右侧重置
- lookDeptRightReset(){
- let self = this;
- this.$set(this,'deptQueryParamsRight',{
- page:1,
- pageSize:20,
- searchValue:"",
- deptId:"",
- levelId:"",
- typeId:"",
- });
- let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
- let ids = [];
- for(let o=0;o<self.deptTableListLeft.length;o++){
- ids.push(self.deptTableListLeft[o].deptId)
- }
- obj.deptIds = ids;
- laboratorySubRelInfoGetRelListByCondition(obj).then(response => {
- this.deptTotalRight = response.data.total;
- this.deptTableListRight = response.data.records;
- });
- },
- }
- }
- </script>
- <style lang="scss">
- .inspectionPlan-dialog-box{
- .el-dialog__body{
- padding:20px 0 20px 30px;
- }
- .is-disabled{
- background-color: #f5f5f5;
- color: #333;
- border-color: #f5f5f5;
- cursor:auto;
- border-radius: 4px;
- .el-input__icon{
- display: none;
- }
- .el-input__inner{
- background-color: #f5f5f5;
- color: #333;
- border-color: #f5f5f5;
- cursor:auto!important;
- border-radius: 4px;
- }
- .el-range-input{
- background-color: #f5f5f5;
- color: #333;
- border-color: #f5f5f5;
- cursor:auto;
- border-radius: 4px;
- }
- .el-textarea__inner{
- background-color: #f5f5f5;
- color: #333;
- border-color: #f5f5f5;
- cursor:auto;
- border-radius: 4px;
- }
- }
- .inspectionPlan-dialog-add-box{
- display: flex;
- overflow: hidden;
- height:610px;
- .el-table__empty-text{
- background-size: 20%!important;
- }
- .left-max-box{
- width:270px;
- border-right:1px dashed #D8D8D8;
- display: flex;
- flex-direction: column;
- .left-max-title-box{
- width:230px;
- display: flex;
- border-bottom:1px solid #E0E0E0;
- img{
- width:14px;
- height:11px;
- margin:33px 18px 33px 0;
- }
- p{
- line-height:78px;
- color:#0183FA;
- font-size:16px;
- }
- }
- .left-max-list-box{
- flex:1;
- width:230px;
- overflow-x: hidden;
- div{
- width:230px;
- height:40px;
- line-height:40px;
- padding:0 10px;
- margin-top: 10px;
- cursor: pointer;
- font-size:16px;
- color:#333333;
- overflow:hidden;
- display: flex;
- .left-max-list-for-p{
- flex:1;
- display:block;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- }
- .left-max-list-for-icon{
- color:#999;
- width:32px;
- line-height: 40px;
- text-align: center;
- font-size:16px;
- }
- }
- div:hover{
- background: rgba(1,131,250,0.2);
- color:#0183FA;
- .left-max-list-for-icon{
- color:#0183FA!important;
- }
- }
- }
- }
- .right-max-box{
- flex:1;
- padding-right:10px;
- .date-range-box{
- display: flex;
- .date-range-left-box{
- margin-right:15px;
- }
- .date-range-right-box{
- display: flex;
- border-radius:4px;
- overflow: hidden;
- border:1px solid #E0E0E0;
- p{
- width: 70px;
- height:34px;
- line-height:34px;
- color:#333;
- font-size:14px;
- text-align: center;
- cursor: pointer;
- }
- p:hover{
- color:#fff;
- background: #0045AF;
- }
- p:nth-child(2){
- border-left:1px solid #E0E0E0;
- border-right:1px solid #E0E0E0;
- }
- }
- }
- .dialog-range-max-box{
- display: flex;
- .dialog-range-select-box{
- }
- .dialog-range-text-box{
- display: flex;
- .button-p{
- margin-left:15px;
- width:100px;
- margin-right:0;
- }
- .text-p{
- line-height:40px;
- color:#0183FA;
- font-size:14px;
- margin-left:15px;
- }
- }
- }
- .dialog-material-max-box{
- .dialog-material-button-box{
- display: flex;
- .dialog-material-text{
- margin-left:20px;
- color:#333333;
- font-size:14px;
- line-height:40px;
- }
- }
- .dialog-material-list-box:nth-child(1){
- margin-top:0;
- }
- .dialog-material-list-box{
- margin-top:20px;
- div{
- height:40px;
- width:550px;
- display: flex;
- img{
- width:16px;
- height:14px;
- margin:11px 23px 13px 0;
- }
- p:nth-child(2){
- flex:1;
- display:block;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- }
- p:nth-child(3){
- color:#0183FA;
- font-size:14px;
- cursor: pointer;
- margin-left:40px;
- }
- p:nth-child(4){
- color:#0183FA;
- font-size:14px;
- cursor: pointer;
- margin-left:40px;
- }
- }
- .dialog-material-list-null{
- width:450px;
- text-align: center;
- color:#999;
- font-size:14px;
- }
- }
- }
- .dialog-table-max-box{
- width:747px;
- height:357px;
- display: flex;
- flex-direction: column;
- flex:1;
- /*background: #A11DDF;*/
- overflow: hidden;
- .dialog-table-box{
- margin-top:20px;
- display: flex;
- flex-direction: column;
- flex:1;
- overflow: hidden;
- .dialog-table-title-box{
- display: flex;
- border:1px solid #e0e0e0;
- border-bottom:none;
- img{
- width:14px;
- height:14px;
- margin:18px 12px 18px 12px;
- }
- .dialog-table-title-p{
- line-height:50px;
- flex:1;
- font-size:16px;
- }
- .dialog-table-title-button{
- width:70px;
- height:30px;
- line-height:28px;
- margin:10px 26px;
- }
- }
- }
- }
- }
- }
- .inspectionPlan-dialog-dept-box{
- display: flex;
- overflow: hidden;
- height:610px;
- margin-right:30px;
- .el-table__empty-text{
- background-size: 24%!important;
- }
- .dept-table-title-box{
- display: flex;
- padding:0 20px;
- background: rgba(1,131,250,0.1);
- p{
- flex:1;
- color:#0183FA;
- font-size:16px;
- line-height:40px;
- }
- p:nth-child(1){
- text-align: left;
- }
- p:nth-child(2){
- text-align: right;
- }
- }
- .dept-table-max-box{
- border: 1px solid #e0e0e0;
- flex:1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- padding:20px;
- .form-index{
- .el-input__inner{
- border-right:none;
- padding-right:0;
- }
- .el-input-group__append{
- background: #fff;
- cursor: pointer;
- padding:0 10px;
- }
- }
- input{
- border: 1px solid #DCDFE6;
- }
- }
- .left-max-box{
- height:610px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- width:475px;
- margin-right:20px;
- }
- .right-max-box{
- height:610px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- width:755px;
- }
- }
- .inspectionPlan-dialog-sub-box{
- display: flex;
- overflow: hidden;
- height:610px;
- margin-right:30px;
- .el-table__empty-text{
- background-size: 30%!important;
- }
- .dept-table-title-box{
- display: flex;
- padding:0 20px;
- background: rgba(1,131,250,0.1);
- p{
- flex:1;
- color:#0183FA;
- font-size:16px;
- line-height:40px;
- }
- p:nth-child(1){
- text-align: left;
- }
- p:nth-child(2){
- text-align: right;
- }
- }
- .dept-table-max-box{
- border: 1px solid #e0e0e0;
- flex:1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- padding:20px;
- .form-index{
- .el-input__inner{
- border-right:none;
- padding-right:0;
- }
- .el-input-group__append{
- background: #fff;
- cursor: pointer;
- padding:0 10px;
- }
- }
- input{
- border: 1px solid #DCDFE6;
- }
- }
- .left-max-box{
- height:610px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- width:588px;
- }
- .right-max-box{
- height:610px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- width:588px;
- flex:1;
- }
- .center-box{
- width:68px;
- p{
- display: block;
- border-radius:50%;
- width:30px;
- height:30px;
- line-height:30px;
- text-align: center;
- background: rgba(245,245,245,1);
- color:rgba(62,62,62,1);
- cursor: pointer;
- font-size:16px;
- }
- p:nth-child(1){
- margin:270px 19px 0;
- }
- p:nth-child(2){
- margin:14px 19px 0;
- }
- p:hover{
- color:#fff;
- background: #0183fa;
- }
- }
- }
- .inspectionPlan-dialog-user-box{
- display: flex;
- overflow: hidden;
- height:610px;
- margin-right:30px;
- .el-table__empty-text{
- background-size: 30%!important;
- }
- .dept-table-title-box{
- display: flex;
- padding:0 20px;
- background: rgba(1,131,250,0.1);
- p{
- flex:1;
- color:#0183FA;
- font-size:16px;
- line-height:40px;
- }
- p:nth-child(1){
- text-align: left;
- }
- p:nth-child(2){
- text-align: right;
- }
- }
- .dept-table-max-box{
- border: 1px solid #e0e0e0;
- flex:1;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- padding:20px;
- .form-index{
- .el-input__inner{
- border-right:none;
- padding-right:0;
- }
- .el-input-group__append{
- background: #fff;
- cursor: pointer;
- padding:0 10px;
- }
- }
- input{
- border: 1px solid #DCDFE6;
- }
- }
- .left-max-box{
- height:610px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- width:588px;
- }
- .right-max-box{
- height:610px;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- width:588px;
- flex:1;
- }
- .center-box{
- width:68px;
- p{
- display: block;
- border-radius:50%;
- width:30px;
- height:30px;
- line-height:30px;
- text-align: center;
- background: rgba(245,245,245,1);
- color:rgba(62,62,62,1);
- cursor: pointer;
- font-size:16px;
- }
- p:nth-child(1){
- margin:270px 19px 0;
- }
- p:nth-child(2){
- margin:14px 19px 0;
- }
- p:hover{
- color:#fff;
- background: #0183fa;
- }
- }
- }
- .inspectionPlan-dialog-look-box{
- display: flex;
- overflow: hidden;
- height:610px;
- margin-right:30px;
- .iframe-box{
- flex:1;
- }
- }
- }
- </style>
|