addDialog.vue 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945
  1. <template>
  2. <el-dialog class="inspectionPlan-dialog-box"
  3. v-loading="loading"
  4. :title="addDialogTitle" :visible.sync="addDialogType" v-if="addDialogType"
  5. @close="addDialogAllOff" width="1303px" append-to-body>
  6. <div class="inspectionPlan-dialog-add-box" v-show="addDialogBoxType==1">
  7. <div class="left-max-box" v-if="!lookInfoType">
  8. <div class="left-max-title-box">
  9. <img src="@/assets/ZDimages/safetyCheck/icon_jhbt.png">
  10. <p>计划标题快选</p>
  11. </div>
  12. <div class="left-max-list-box scrollbar-box">
  13. <div v-for="(item,index) in quickSelectionList" :key="index" @click="checkTitle(item)">
  14. <p class="left-max-list-for-p">{{item.title}}</p>
  15. <p v-if="item.type" class="el-icon-error left-max-list-for-icon" @click="delTitleObj(item)"></p>
  16. </div>
  17. </div>
  18. </div>
  19. <div class="right-max-box scrollbar-box">
  20. <el-form ref="addDialogForm" :model="dialogForm" :rules="rules" label-width="140px">
  21. <el-form-item label="计划标题:" prop="title">
  22. <el-input :disabled="lookInfoType" v-model="dialogForm.title" placeholder="请输入计划标题" maxLength="30" style="width:450px;"/>
  23. </el-form-item>
  24. <el-form-item label="检查类型:">
  25. <p style="width:450px;background:#f5f5f5;border-radius:4px;padding:0 15px;">校级巡查</p>
  26. </el-form-item>
  27. <el-form-item label="检查周期:" prop="dateRange">
  28. <div class="date-range-box">
  29. <div class="date-range-left-box">
  30. <el-date-picker
  31. :disabled="lookInfoType"
  32. :clearable="false"
  33. v-model="dialogForm.dateRange"
  34. style="width:450px;"
  35. value-format="yyyy-MM-dd"
  36. type="daterange"
  37. range-separator="-"
  38. :picker-options="pickerOptions"
  39. start-placeholder="开始日期"
  40. end-placeholder="结束日期"
  41. ></el-date-picker>
  42. </div>
  43. <div class="date-range-right-box" v-if="!lookInfoType">
  44. <p @click="checkTime(1)">本月</p>
  45. <p @click="checkTime(2)">本季度</p>
  46. <p @click="checkTime(3)">全年</p>
  47. </div>
  48. </div>
  49. </el-form-item>
  50. <el-form-item label="检查范围:" prop="checkRange">
  51. <div class="dialog-range-max-box">
  52. <div class="dialog-range-select-box">
  53. <el-select :disabled="lookInfoType" @change="rangeChange"
  54. v-model="dialogForm.checkRange" placeholder="请选择检查范围" style="width:450px;">
  55. <el-option
  56. v-for="item in dialogRangeOptions"
  57. :key="item.value"
  58. :label="item.label"
  59. :value="item.value">
  60. </el-option>
  61. </el-select>
  62. </div>
  63. <div class="dialog-range-text-box">
  64. <p class="inquire-button-one button-p" v-if="dialogForm.checkRange == 2" @click="dialogClickType(2)">{{lookInfoType?'查看':'选择学院'}}</p>
  65. <p class="inquire-button-one button-p" v-if="dialogForm.checkRange == 3" @click="dialogClickType(3)">{{lookInfoType?'查看':'选择实验室'}}</p>
  66. <p class="text-p" v-if="dialogForm.checkRange ==1 && dialogForm.schoolSubCheckNum>0">已选择{{dialogForm.schoolSubCheckNum}}间实验室</p>
  67. <p class="text-p" v-if="dialogForm.checkRange == 2 && dialogForm.collegeNum>0">已选择{{dialogForm.collegeNum}}个学院,共{{dialogForm.collegeSubNum}}间实验室</p>
  68. <p class="text-p" v-if="dialogForm.checkRange ==3 && dialogForm.subCheckNum>0">已选择{{dialogForm.subCheckNum}}间实验室</p>
  69. </div>
  70. </div>
  71. </el-form-item>
  72. <el-form-item label="检查要求:" prop="checkDemand">
  73. <el-input
  74. :disabled="lookInfoType"
  75. type="textarea"
  76. :autosize="{ minRows: 4, maxRows: 4}"
  77. :placeholder="lookInfoType?'未输入':'请输入检查检查要点:'"
  78. v-model="dialogForm.checkDemand"
  79. maxlength="100"
  80. resize="none"
  81. show-word-limit
  82. style="width:450px;">
  83. </el-input>
  84. </el-form-item>
  85. <el-form-item label="检查材料:">
  86. <div class="dialog-material-max-box">
  87. <div class="dialog-material-button-box" v-if="!lookInfoType">
  88. <el-upload
  89. class="avatar-uploader"
  90. :action="uploadImgUrl"
  91. :show-file-list="false"
  92. :on-success="(res)=>handleAvatarSuccess(res)"
  93. :headers="headers"
  94. :before-upload="beforeAvatarUpload">
  95. <p class="add-button-one-120">+ 选择文件</p>
  96. </el-upload>
  97. <p class="dialog-material-text">支持doc/docx/xls/xlsx/pdf格式文件</p>
  98. </div>
  99. <div class="dialog-material-list-box">
  100. <div v-for="(item,index) in dialogForm.uploadDtoList" :key="index">
  101. <img src="@/assets/ZDimages/safetyCheck/icon_dr_wj.png">
  102. <p>{{item.fileName}}</p>
  103. <p @click="dialogClickType(5,item)">查看</p>
  104. <p @click="delUpData(index)" v-if="!lookInfoType">删除</p>
  105. <p v-if="lookInfoType">下载</p>
  106. </div>
  107. <p class="dialog-material-list-null" v-if="!dialogForm.uploadDtoList[0]">未上传</p>
  108. </div>
  109. </div>
  110. </el-form-item>
  111. <el-form-item label="巡察组:">
  112. <div class="dialog-table-max-box">
  113. <div v-if="!lookInfoType">
  114. <el-select v-model="groupData" placeholder="请选择" @change="groupChange">
  115. <el-option
  116. v-for="item in dialogOptions"
  117. :key="item.id"
  118. :label="item.groupName"
  119. :value="item.id">
  120. </el-option>
  121. </el-select>
  122. </div>
  123. <div class="dialog-table-box">
  124. <div class="dialog-table-title-box">
  125. <img src="@/assets/ZDimages/safetyCheck/icon_xyxc_cy.png">
  126. <p class="dialog-table-title-p">巡查成员</p>
  127. <p v-if="!lookInfoType" class="inquire-button-one dialog-table-title-button" @click="dialogClickType(4)">+ 添加</p>
  128. </div>
  129. <el-table border :data="dialogTableList">
  130. <el-table-column label="序号" align="center" type="index" width="140"/>
  131. <el-table-column label="工号" align="center" prop="jobNum" show-overflow-tooltip/>
  132. <el-table-column label="姓名" align="center" prop="name" show-overflow-tooltip width="150"/>
  133. <el-table-column label="所在部门" align="center" prop="deptName" show-overflow-tooltip width="150"/>
  134. <el-table-column label="操作" align="center" prop="deptName" width="150" v-if="!lookInfoType">
  135. <template slot-scope="scope">
  136. <div class="table-button-box">
  137. <p class="table-button-null"></p>
  138. <p class="table-button-p" @click="delTable(scope.row)">删除</p>
  139. <p class="table-button-null"></p>
  140. </div>
  141. </template>
  142. </el-table-column>
  143. </el-table>
  144. </div>
  145. </div>
  146. </el-form-item>
  147. </el-form>
  148. </div>
  149. </div>
  150. <div class="inspectionPlan-dialog-dept-box" v-show="addDialogBoxType==2">
  151. <div class="left-max-box">
  152. <div class="dept-table-title-box">
  153. <p>已选学院</p>
  154. <p v-if="!lookInfoType">{{deptNumLeft}}/{{deptTotalLeft}}</p>
  155. <p v-if="lookInfoType">{{deptNumLeft}}</p>
  156. </div>
  157. <div class="dept-table-max-box">
  158. <el-form v-if="!lookInfoType" :model="deptQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  159. <el-form-item label="" prop="searchValue" class="form-index">
  160. <el-input
  161. maxLength="30"
  162. v-model="deptQueryParamsLeft.searchValue"
  163. placeholder="搜索学院"
  164. clearable
  165. style="width: 240px">
  166. <p class="el-icon-search" slot="append" @click="deptGetListLeft"></p>
  167. </el-input>
  168. </el-form-item>
  169. <el-form-item style="margin-right:0;">
  170. <p class="inquire-button-one" @click="deptResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
  171. </el-form-item>
  172. </el-form>
  173. <el-table ref="leftDeptTable" border :data="deptTableListLeft" @selection-change="deptChange" :row-key="getDeptRowKeys">
  174. <el-table-column v-if="!lookInfoType" type="selection" width="50" :reserve-selection="true" align="center"/>
  175. <el-table-column label="学院" align="center" prop="deptName" show-overflow-tooltip/>
  176. </el-table>
  177. </div>
  178. </div>
  179. <div class="right-max-box">
  180. <div class="dept-table-title-box">
  181. <p>已选实验室{{deptCheckData.subNum}}间</p>
  182. <p></p>
  183. </div>
  184. <div class="dept-table-max-box">
  185. <el-form v-if="!lookInfoType" :model="deptQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  186. <el-form-item label="" prop="typeId">
  187. <el-select v-model="deptQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 120px">
  188. <el-option
  189. v-for="item in classTypeList"
  190. :key="item.id"
  191. :label="item.typeName"
  192. :value="item.id">
  193. </el-option>
  194. </el-select>
  195. </el-form-item>
  196. <el-form-item label="" prop="level">
  197. <el-select v-model="deptQueryParamsRight.level" clearable placeholder="选择分级" style="width: 120px">
  198. <el-option
  199. v-for="item in classifiedList"
  200. :key="item.id"
  201. :label="item.classifiedName"
  202. :value="item.id">
  203. </el-option>
  204. </el-select>
  205. </el-form-item>
  206. <el-form-item label="" prop="deptId">
  207. <el-select v-model="deptQueryParamsRight.deptId" clearable placeholder="选择学院" style="width: 120px">
  208. <el-option
  209. v-for="item in changeDeptSelectList"
  210. :key="item.deptId"
  211. :label="item.deptName"
  212. :value="item.deptId">
  213. </el-option>
  214. </el-select>
  215. </el-form-item>
  216. <el-form-item label="" prop="searchValue" class="form-index">
  217. <el-input
  218. maxLength="30"
  219. v-model="deptQueryParamsRight.searchValue"
  220. placeholder="实验室/房间号"
  221. clearable
  222. style="width: 190px">
  223. <p class="el-icon-search" slot="append" @click="deptHandleQueryRight"></p>
  224. </el-input>
  225. </el-form-item>
  226. <el-form-item style="margin-right:0;">
  227. <p class="inquire-button-one" @click="deptResetQueryRight" style="width:60px;margin-right:0;">重置</p>
  228. </el-form-item>
  229. </el-form>
  230. <el-table border :data="deptTableListRight">
  231. <el-table-column label="序号" align="center" type="index" width="60"/>
  232. <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip/>
  233. <el-table-column label="楼栋楼层" align="center" prop="buildName" show-overflow-tooltip width="150"/>
  234. <el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="150">
  235. <template slot-scope="scope">
  236. <span v-for="item in classTypeList" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
  237. <span style="border-right:1px solid #E0E0E0;margin:0 10px;"></span>
  238. <span v-for="item in classifiedList" v-if="item.id == scope.row.level" :style="'color:'+item.classifiedColor+';'">{{item.classifiedName}}</span>
  239. </template>
  240. </el-table-column>
  241. <el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="140"/>
  242. </el-table>
  243. <pagination layout="total, prev, pager, next, jumper"
  244. v-show="deptTotalRight>0"
  245. :total="deptTotalRight"
  246. :page.sync="deptQueryParamsRight.pageNum"
  247. :limit.sync="deptQueryParamsRight.pageSize"
  248. @pagination="deptGetListRight"
  249. />
  250. </div>
  251. </div>
  252. </div>
  253. <div class="inspectionPlan-dialog-sub-box" v-show="addDialogBoxType==3">
  254. <div v-if="!lookInfoType" class="left-max-box">
  255. <div class="dept-table-title-box">
  256. <p>待选实验室</p>
  257. <p>{{subNumLeft}}/{{subTotalLeft}}</p>
  258. </div>
  259. <div class="dept-table-max-box">
  260. <el-form :model="subQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  261. <el-form-item label="" prop="typeId">
  262. <el-select v-model="subQueryParamsLeft.typeId" clearable placeholder="选择分类" style="width: 110px">
  263. <el-option
  264. v-for="item in classTypeList"
  265. :key="item.key"
  266. :label="item.typeName"
  267. :value="item.key">
  268. </el-option>
  269. </el-select>
  270. </el-form-item>
  271. <el-form-item label="" prop="level">
  272. <el-select v-model="subQueryParamsLeft.level" clearable placeholder="选择分级" style="width: 110px">
  273. <el-option
  274. v-for="item in classifiedList"
  275. :key="item.key"
  276. :label="item.classifiedName"
  277. :value="item.key">
  278. </el-option>
  279. </el-select>
  280. </el-form-item>
  281. <el-form-item label="" prop="deptId">
  282. <el-select v-model="subQueryParamsLeft.deptId" clearable placeholder="学院" style="width: 80px">
  283. <el-option
  284. v-for="item in deptSelectList"
  285. :key="item.deptId"
  286. :label="item.deptName"
  287. :value="item.deptId">
  288. </el-option>
  289. </el-select>
  290. </el-form-item>
  291. <el-form-item label="" prop="searchValue" class="form-index">
  292. <el-input
  293. maxLength="30"
  294. v-model="subQueryParamsLeft.searchValue"
  295. placeholder="实验室/房间号"
  296. clearable
  297. style="width: 140px">
  298. <p class="el-icon-search" slot="append" @click="subHandleQueryLeft"></p>
  299. </el-input>
  300. </el-form-item>
  301. <el-form-item style="margin-right:0;">
  302. <p class="inquire-button-one" @click="subResetQueryLeft" style="width:60px;margin-right:0;">重置</p>
  303. </el-form-item>
  304. </el-form>
  305. <el-table ref="leftSubTable" border :data="subTableListLeft" @selection-change="subChangeLeft" :row-key="getSubRowKeys">
  306. <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
  307. <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip/>
  308. <el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
  309. <template slot-scope="scope">
  310. <span v-for="item in classTypeList" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
  311. <span style="border-right:1px solid #E0E0E0;margin:0 10px;"></span>
  312. <span v-for="item in classifiedList" v-if="item.id == scope.row.level" :style="'color:'+item.classifiedColor+';'">{{item.classifiedName}}</span>
  313. </template>
  314. </el-table-column>
  315. <el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="150"/>
  316. </el-table>
  317. <pagination layout="total, prev, pager, next, jumper"
  318. v-show="subTotalLeft>0"
  319. :total="subTotalLeft"
  320. :page.sync="subQueryParamsLeft.pageNum"
  321. :limit.sync="subQueryParamsLeft.pageSize"
  322. @pagination="subGetListLeft"/>
  323. </div>
  324. </div>
  325. <div v-if="!lookInfoType" class="center-box">
  326. <p class="el-icon-arrow-left" @click="subArrowButton(1)"></p>
  327. <p class="el-icon-arrow-right" @click="subArrowButton(2)"></p>
  328. </div>
  329. <div class="right-max-box">
  330. <div class="dept-table-title-box">
  331. <p>已选实验室</p>
  332. <p v-if="!lookInfoType">{{subNumRight}}/{{subTotalRight}}</p>
  333. <p v-if="lookInfoType">{{subTotalRight}}</p>
  334. </div>
  335. <div class="dept-table-max-box">
  336. <el-form v-if="!lookInfoType" :model="subQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  337. <el-form-item label="" prop="typeId">
  338. <el-select v-model="subQueryParamsRight.typeId" clearable placeholder="选择分类" style="width: 110px">
  339. <el-option
  340. v-for="item in classTypeList"
  341. :key="item.key"
  342. :label="item.typeName"
  343. :value="item.key">
  344. </el-option>
  345. </el-select>
  346. </el-form-item>
  347. <el-form-item label="" prop="level">
  348. <el-select v-model="subQueryParamsRight.level" clearable placeholder="选择分级" style="width: 110px">
  349. <el-option
  350. v-for="item in classifiedList"
  351. :key="item.key"
  352. :label="item.classifiedName"
  353. :value="item.key">
  354. </el-option>
  355. </el-select>
  356. </el-form-item>
  357. <el-form-item label="" prop="deptId">
  358. <el-select v-model="subQueryParamsRight.deptId" clearable placeholder="学院" style="width: 80px">
  359. <el-option
  360. v-for="item in deptSelectList"
  361. :key="item.deptId"
  362. :label="item.deptName"
  363. :value="item.deptId">
  364. </el-option>
  365. </el-select>
  366. </el-form-item>
  367. <el-form-item label="" prop="searchValue" class="form-index">
  368. <el-input
  369. maxLength="30"
  370. v-model="subQueryParamsRight.searchValue"
  371. placeholder="实验室/房间号"
  372. clearable
  373. style="width: 140px">
  374. <p class="el-icon-search" slot="append" @click="subHandleQueryRight"></p>
  375. </el-input>
  376. </el-form-item>
  377. <el-form-item style="margin-right:0;">
  378. <p class="inquire-button-one" @click="subResetQueryRight" style="width:60px;margin-right:0;">重置</p>
  379. </el-form-item>
  380. </el-form>
  381. <el-table ref="rightSubTable" border :data="subTableListRight" @selection-change="subChangeRight" :row-key="getSubRowKeys">
  382. <el-table-column v-if="!lookInfoType" type="selection" width="50" :reserve-selection="true" align="center"/>
  383. <el-table-column label="实验室" align="center" prop="subjectName" show-overflow-tooltip/>
  384. <el-table-column label="分类分级" align="center" prop="deptName" show-overflow-tooltip width="140">
  385. <template slot-scope="scope">
  386. <span v-for="item in classTypeList" v-if="item.id == scope.row.typeId">{{item.typeName}}</span>
  387. <span style="border-right:1px solid #E0E0E0;margin:0 10px;"></span>
  388. <span v-for="item in classifiedList" v-if="item.id == scope.row.level" :style="'color:'+item.classifiedColor+';'">{{item.classifiedName}}</span>
  389. </template>
  390. </el-table-column>
  391. <el-table-column label="学院" align="center" prop="collegeName" show-overflow-tooltip width="150"/>
  392. </el-table>
  393. <pagination layout="total, prev, pager, next, jumper"
  394. v-show="subTotalRight>0"
  395. :total="subTotalRight"
  396. :page.sync="subQueryParamsRight.pageNum"
  397. :limit.sync="subQueryParamsRight.pageSize"
  398. @pagination="subGetListRight"/>
  399. </div>
  400. </div>
  401. </div>
  402. <div class="inspectionPlan-dialog-user-box" v-show="addDialogBoxType==4">
  403. <div class="left-max-box">
  404. <div class="dept-table-title-box">
  405. <p>待选人员</p>
  406. <p>{{userNumLeft}}/{{userTotalLeft}}</p>
  407. </div>
  408. <div class="dept-table-max-box">
  409. <el-form :model="userQueryParamsLeft" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  410. <el-form-item label="" prop="deptId">
  411. <el-select v-model="userQueryParamsLeft.deptId" clearable placeholder="选择部门" style="width: 110px">
  412. <el-option
  413. v-for="item in deptSelectList"
  414. :key="item.deptId"
  415. :label="item.deptName"
  416. :value="item.deptId">
  417. </el-option>
  418. </el-select>
  419. </el-form-item>
  420. <el-form-item label="" prop="searchValue" class="form-index">
  421. <el-input
  422. maxLength="20"
  423. v-model="userQueryParamsLeft.searchValue"
  424. placeholder="搜索姓名/工号"
  425. clearable
  426. style="width: 240px">
  427. <p class="el-icon-search" slot="append" @click="userHandleQueryLeft"></p>
  428. </el-input>
  429. </el-form-item>
  430. <el-form-item style="margin-right:0;">
  431. <p class="reset-button-one" @click="userResetQueryLeft" style="width:60px;">重置</p>
  432. </el-form-item>
  433. </el-form>
  434. <el-table ref="leftUserTable" border :data="userTableListLeft" @selection-change="userChangeLeft" :row-key="getRowKeys">
  435. <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
  436. <el-table-column label="姓名" align="center" prop="nickName" show-overflow-tooltip/>
  437. <el-table-column label="工号" align="center" prop="userName" show-overflow-tooltip width="150"/>
  438. <el-table-column label="所在部门" align="center" prop="deptName" show-overflow-tooltip width="168"/>
  439. </el-table>
  440. <pagination layout="total, prev, pager, next, jumper"
  441. v-show="userTotalLeft>0"
  442. :total="userTotalLeft"
  443. :pager-count="5"
  444. :page.sync="userQueryParamsLeft.pageNum"
  445. :limit.sync="userQueryParamsLeft.pageSize"
  446. @pagination="userGetListLeft"/>
  447. </div>
  448. </div>
  449. <div class="center-box">
  450. <p class="el-icon-arrow-left" @click="userArrowButton(1)"></p>
  451. <p class="el-icon-arrow-right" @click="userArrowButton(2)"></p>
  452. </div>
  453. <div class="right-max-box">
  454. <div class="dept-table-title-box">
  455. <p>已选成员</p>
  456. <p>{{userNumRight}}/{{userTotalRight}}</p>
  457. </div>
  458. <div class="dept-table-max-box">
  459. <el-form :model="userQueryParamsRight" class="form-box" ref="queryForm" :inline="true" label-width="50px">
  460. <el-form-item label="" prop="deptId">
  461. <el-select v-model="userQueryParamsRight.deptId" clearable placeholder="选择部门" style="width: 110px">
  462. <el-option
  463. v-for="item in deptSelectList"
  464. :key="item.deptId"
  465. :label="item.deptName"
  466. :value="item.deptId">
  467. </el-option>
  468. </el-select>
  469. </el-form-item>
  470. <el-form-item label="" prop="searchValue" class="form-index">
  471. <el-input
  472. maxLength="20"
  473. v-model="userQueryParamsRight.searchValue"
  474. placeholder="搜索姓名/工号"
  475. clearable
  476. style="width: 240px">
  477. <p class="el-icon-search" slot="append" @click="userHandleQueryRight"></p>
  478. </el-input>
  479. </el-form-item>
  480. <el-form-item style="margin-right:0;">
  481. <p class="reset-button-one" @click="userResetQueryRight" style="width:60px;">重置</p>
  482. </el-form-item>
  483. </el-form>
  484. <el-table ref="rightUserTable" border :data="userTableListRight" @selection-change="userChangeRight" :row-key="getRowKeys">
  485. <el-table-column type="selection" width="50" :reserve-selection="true" align="center"/>
  486. <el-table-column label="姓名" align="center" prop="nickName" show-overflow-tooltip/>
  487. <el-table-column label="工号" align="center" prop="userName" show-overflow-tooltip width="150"/>
  488. <el-table-column label="所在部门" align="center" prop="deptName" show-overflow-tooltip width="168"/>
  489. </el-table>
  490. <pagination layout="total, prev, pager, next, jumper"
  491. v-show="userTotalRight>0"
  492. :total="userTotalRight"
  493. :pager-count="5"
  494. :page.sync="userQueryParamsRight.pageNum"
  495. :limit.sync="userQueryParamsRight.pageSize"
  496. @pagination="userGetListRight"/>
  497. </div>
  498. </div>
  499. </div>
  500. <div class="inspectionPlan-dialog-look-box" v-show="addDialogBoxType==5">
  501. <iframe
  502. class="iframe-box"
  503. :src="iframeSrc" scrolling="auto" frameborder="0">
  504. </iframe>
  505. </div>
  506. <div slot="footer" class="dialog-footer dialog-footer-box" style="display: flex">
  507. <p class="dialog-footer-button-null"></p>
  508. <p class="dialog-footer-button-info" @click="addDialogOff">{{addDialogBoxType==1?'取消':'返回'}}</p>
  509. <p class="dialog-footer-button-primary" v-if="!lookInfoType" @click="addUserButton">确定</p>
  510. <p class="dialog-footer-button-null"></p>
  511. </div>
  512. </el-dialog>
  513. </template>
  514. <script>
  515. import { getToken } from "@/utils/auth";
  516. import { listDepartments } from "@/api/system/dept";
  517. import { listClassifiedAll } from "@/api/laboratory/classified";
  518. import { listClasstypeAll } from "@/api/laboratory/classtype";
  519. import { getHistoryPlanTitles,findGroupList,checkGroupFind,findUserList,
  520. getAllSubNum,isSCollege,conditionCollegeInfo,findSubInfoByDeptIds,
  521. checkPlanAdd,conditionSubjectInfo,findCheckPlan,checkPlanUpdate,
  522. hideHistoryPlanTitle } from '@/api/safetyCheck/index'
  523. export default {
  524. name: 'addDialog',
  525. props:{
  526. addDialogData:{},
  527. },
  528. data(){
  529. return{
  530. loading:false,
  531. uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
  532. headers: {
  533. Authorization: "Bearer " + getToken(),
  534. },
  535. addDialogTitle:"",
  536. addDialogType:true,
  537. //弹窗内容状态
  538. addDialogBoxType:1,
  539. // 设置只能选择当前日期及之后的日期
  540. pickerOptions: {
  541. disabledDate(time) {
  542. return time.getTime() < Date.now() - 8.64e7;//如果没有后面的-8.64e7就是不可以选择今天的
  543. }
  544. },
  545. //标题快选数据
  546. quickSelectionList:[],
  547. //巡察组列表
  548. dialogOptions:[],
  549. //上传文件名称暂存
  550. upDataName:"",
  551. //巡察组
  552. groupData:"",
  553. //巡察组状态 院级/校级
  554. groupDataType:"",
  555. //选中巡查人员列表
  556. dialogTableList:[],
  557. //巡查范围列表
  558. dialogRangeOptions:[],
  559. //学院数量
  560. collegeNum:0,
  561. //学院实验室数量
  562. collegeSubNum:0,
  563. //学院选择页面已选数据
  564. deptCheckData:{
  565. deptIds:[],
  566. deptNum:0,
  567. subNum:0
  568. },
  569. //实验室选择页面已选数据
  570. subCheckData:{
  571. subIds:[]
  572. },
  573. //巡查院系列表
  574. deptList:[],
  575. //巡查实验室列表
  576. subList:[],
  577. //提交数据
  578. dialogForm:{
  579. title:"",//奥体
  580. checkType:"1",//检查类型
  581. dateRange:[],//时间
  582. checkRange:"",//检查范围
  583. checkDemand:"",//检查要点
  584. schoolSubCheckNum:0,//学校实验室数量
  585. collegeNum:0,//学院数量
  586. collegeSubNum:0,//学院实验室数量
  587. subCheckNum:0,//实验室数量
  588. subjectNum:0,
  589. collegeIds:[],
  590. uploadDtoList:[],
  591. },
  592. // 表单校验
  593. rules: {
  594. title: [
  595. { required: true, message: "请输入计划标题", trigger: "change" },
  596. { required: true, message: "请输入计划标题", validator: this.spaceJudgment, trigger: "change" },
  597. ],
  598. dateRange: [
  599. { required: true, message: "请选择检查周期", trigger: "change" },
  600. ],
  601. checkRange: [
  602. { required: true, message: "请选择检查范围", trigger: "change" },
  603. ],
  604. },
  605. classTypeList:[],
  606. classifiedList:[],
  607. deptSelectList:[],
  608. //查看状态
  609. lookInfoType:false,
  610. /*===================================学院选择相关===================================*/
  611. changeDeptSelectList:[],
  612. deptQueryParamsLeft:{
  613. searchValue:"",
  614. },
  615. deptTableListLeft:[],
  616. deptTotalLeft:0,
  617. deptNumLeft:0,
  618. deptIdsLeft:[],
  619. deptQueryParamsRight:{
  620. pageNum:1,
  621. pageSize:20,
  622. searchValue:"",
  623. deptId:"",
  624. deptIds:"",
  625. level:"",
  626. typeId:"",
  627. },
  628. deptTableListRight:[],
  629. deptTotalRight:0,
  630. /*===================================实验室选择相关===================================*/
  631. subQueryParamsLeft:{
  632. pageNum:1,
  633. pageSize:20,
  634. typeId:"",
  635. level:"",
  636. deptId:"",
  637. searchValue:"",
  638. filtType:1
  639. },
  640. subTableListLeft:[],
  641. subTotalLeft:0,
  642. subNumLeft:0,
  643. subIdsLeft:[],
  644. subQueryParamsRight:{
  645. pageNum:1,
  646. pageSize:20,
  647. typeId:"",
  648. level:"",
  649. deptId:"",
  650. searchValue:"",
  651. filtType:2
  652. },
  653. subTableListRight:[],
  654. subTotalRight:0,
  655. subNumRight:0,
  656. subIdsRight:[],
  657. dialogTableSubList:[],
  658. dialogTableSubDataList:[],
  659. /*===================================人员选择相关===================================*/
  660. userQueryParamsLeft:{
  661. pageNum: 1,
  662. pageSize: 20,
  663. deptId:"",
  664. searchValue:"",
  665. filtType:1
  666. },
  667. userTableListLeft:[],
  668. userTotalLeft:0,
  669. userNumLeft:0,
  670. userIdsLeft:[],
  671. userQueryParamsRight:{
  672. pageNum: 1,
  673. pageSize: 20,
  674. deptId:"",
  675. searchValue:"",
  676. filtType:2
  677. },
  678. userTableListRight:[],
  679. userTotalRight:0,
  680. userNumRight:0,
  681. userIdsRight:[],
  682. dialogTableDataList:[],
  683. /*===================================文档预览===================================*/
  684. iframeSrc:"",
  685. /*===================================弹窗相关结束===================================*/
  686. }
  687. },
  688. created(){
  689. this.$set(this,'addDialogTitle',this.addDialogData.title);
  690. this.$set(this,'lookInfoType',this.addDialogData.lookInfoType);
  691. },
  692. mounted(){
  693. this.initializationInterface();
  694. },
  695. methods:{
  696. //初始化接口
  697. initializationInterface(){
  698. //获取历史标题
  699. this.getHistoryPlanTitles();
  700. //获取学院列表
  701. listDepartments().then(response => {
  702. this.deptSelectList = response.data;
  703. });
  704. /**获取分级*/
  705. listClassifiedAll().then(response=>{
  706. this.classifiedList = response.data
  707. })
  708. /**获取分类*/
  709. listClasstypeAll().then(response=>{
  710. this.classTypeList = response.data;
  711. });
  712. //查询当前用户是否是院级
  713. isSCollege().then(response=>{
  714. if(response.data.userFlg){
  715. // 院级
  716. this.$set(this,'dialogRangeOptions',[{label:"学院",value:2},{label:"实验室",value:3}]);
  717. this.$set(this,'groupDataType',2);
  718. }else{
  719. // 校级
  720. this.$set(this,'dialogRangeOptions',[{label:"全校",value:1},{label:"学院",value:2},{label:"实验室",value:3}]);
  721. this.$set(this,'groupDataType',0);
  722. }
  723. //获取巡察组 checkLevel: 0全部 1校级 2院级
  724. findGroupList({checkLevel:this.groupDataType}).then(response => {
  725. this.$set(this,'dialogOptions',response.data);
  726. });
  727. });
  728. if(!this.addDialogData.addType){
  729. //编辑-详情查询
  730. findCheckPlan({id:this.addDialogData.id}).then(response => {
  731. //处理基础数据
  732. let obj = {
  733. id:response.data.id,
  734. title:response.data.title,
  735. checkType:response.data.checkType,
  736. dateRange:[response.data.cycleStartTime,response.data.cycleEndTime],
  737. checkRange:response.data.checkRange,
  738. schoolSubCheckNum:response.data.checkRange == 1?response.data.subjectNum:0,
  739. collegeSubNum:response.data.checkRange == 2?response.data.subjectNum:0,
  740. collegeNum:response.data.checkRange == 2?response.data.collegeNum:0,
  741. subCheckNum:response.data.checkRange == 3?response.data.subjectNum:0,
  742. collegeIds:response.data.collegeIds?response.data.collegeIds.split(','):[],
  743. checkDemand:response.data.checkDemand,
  744. uploadDtoList:response.data.uploadDtoList,
  745. checkMemberDtoList:response.data.checkMemberDtoList,
  746. }
  747. this.$set(this,'dialogForm',obj);
  748. //处理人员数据
  749. let userData = [];
  750. for(let i=0;i<response.data.checkMemberDtoList.length;i++){
  751. userData.push({
  752. userId:response.data.checkMemberDtoList[i].userId,
  753. name:response.data.checkMemberDtoList[i].name,
  754. jobNum:response.data.checkMemberDtoList[i].jobNum,
  755. deptName:response.data.checkMemberDtoList[i].deptName,
  756. deptId:response.data.checkMemberDtoList[i].deptId,
  757. userType:response.data.checkMemberDtoList[i].userType,
  758. enable:response.data.checkMemberDtoList[i].enable,
  759. })
  760. }
  761. this.$set(this,'dialogTableList',userData);
  762. //处理实验室数据
  763. let subList = response.data.subIds?response.data.subIds.split(','):[];
  764. let subDataList = [];
  765. for(let i=0;i<subList.length;i++){
  766. subList[i] = parseInt(subList[i]);
  767. let obj = {
  768. subId:subList[i],
  769. }
  770. subDataList.push(obj);
  771. }
  772. this.$set(this,'dialogTableSubList',subDataList);
  773. this.$set(this.subCheckData,'subIds',subList);
  774. });
  775. }
  776. },
  777. //选中检查范围
  778. rangeChange(val){
  779. if(val == 1){
  780. //全校
  781. getAllSubNum().then(response => {
  782. this.$set(this.dialogForm,'schoolSubCheckNum',response.data.subCount);
  783. })
  784. }
  785. },
  786. //选中巡察组
  787. groupChange(val){
  788. checkGroupFind({id:val,selectEnable:1}).then(response => {
  789. this.$set(this,'dialogTableList',response.data.checkGroupMemberList);
  790. });
  791. },
  792. //确定按钮
  793. addUserButton(){
  794. let self = this;
  795. if(this.addDialogBoxType == 1){
  796. //提交
  797. this.$refs["addDialogForm"].validate(valid => {
  798. if (valid) {
  799. //检查范围内是否选择实验室获学院
  800. if(this.dialogForm.checkRange == 2){
  801. if(!this.dialogForm.collegeIds[0]){
  802. this.msgError('请选择学院')
  803. return
  804. }
  805. }else if(this.dialogForm.checkRange == 3){
  806. if(!this.subCheckData.subIds[0]){
  807. this.msgError('请选择实验室')
  808. return
  809. }
  810. }
  811. if(!this.dialogTableList[0]){
  812. this.msgError('请添加至少一名巡查成员')
  813. return
  814. }
  815. let obj = {
  816. title:this.dialogForm.title,
  817. checkType:this.dialogForm.checkType,
  818. cycleStartTime:this.dialogForm.dateRange[0],
  819. cycleEndTime:this.dialogForm.dateRange[1],
  820. checkRange:this.dialogForm.checkRange,//检查范围
  821. subjectNum:this.dialogForm.checkRange == 1?this.dialogForm.schoolSubCheckNum:(
  822. this.dialogForm.checkRange == 2?this.dialogForm.collegeSubNum:(
  823. this.dialogForm.checkRange == 3?this.dialogForm.subCheckNum:0)),//实验室数量
  824. collegeIds:this.dialogForm.checkRange==2?this.dialogForm.collegeIds+'':'',//学院ID转换字符串
  825. collegeNum:this.dialogForm.checkRange==2?this.dialogForm.collegeNum:0,//学院数量
  826. subIds:this.dialogForm.checkRange == 3?this.subCheckData.subIds+'':'',//实验室ID
  827. checkDemand:this.dialogForm.checkDemand,//检查要求
  828. uploadDtoList:this.dialogForm.uploadDtoList,//检查要求
  829. checkMemberDtoList:[],//成员
  830. };
  831. let userList = [];
  832. //过滤多余字段
  833. for(let i=0;i<self.dialogTableList.length;i++){
  834. let obj = {
  835. deptId: self.dialogTableList[i].deptId,
  836. deptName: self.dialogTableList[i].deptName,
  837. enable: self.dialogTableList[i].enable,
  838. jobNum: self.dialogTableList[i].jobNum,
  839. name: self.dialogTableList[i].name,
  840. userId: self.dialogTableList[i].userId,
  841. userType: self.dialogTableList[i].userType,
  842. };
  843. //编辑时需要带上父类ID
  844. if(this.addDialogData.id){
  845. obj.checkPlanId = this.addDialogData.id
  846. }
  847. userList.push(obj);
  848. }
  849. obj.checkMemberDtoList = userList
  850. if(this.addDialogData.id){
  851. //编辑
  852. for(let i=0;i<obj.uploadDtoList.length;i++){
  853. obj.uploadDtoList[i].keyId = this.addDialogData.id;
  854. }
  855. obj.id = this.addDialogData.id;
  856. checkPlanUpdate(obj).then(response => {
  857. this.msgSuccess(response.msg)
  858. this.$parent.addDialogOpen(5)
  859. })
  860. }else{
  861. //新增
  862. checkPlanAdd(obj).then(response => {
  863. this.msgSuccess(response.msg)
  864. this.$parent.addDialogOpen(5)
  865. })
  866. }
  867. }
  868. })
  869. }else if(this.addDialogBoxType == 2){
  870. // 学院选择页面确定
  871. this.$set(this.dialogForm,'collegeNum',this.deptCheckData.deptNum);
  872. this.$set(this.dialogForm,'collegeSubNum',this.deptCheckData.subNum);
  873. this.$set(this.dialogForm,'collegeIds',this.deptCheckData.deptIds);
  874. this.dialogClickType(1);
  875. }else if(this.addDialogBoxType == 3){
  876. //实验室选择页面确定
  877. let list = [];
  878. let ids = [];
  879. for(let o=0;o<self.dialogTableSubDataList.length;o++){
  880. ids.push(self.dialogTableSubDataList[o].subId)
  881. let obj = {
  882. subId:self.dialogTableSubDataList[o].subId,
  883. subjectName:self.dialogTableSubDataList[o].subjectName,
  884. typeId:self.dialogTableSubDataList[o].typeId,
  885. level:self.dialogTableSubDataList[o].level,
  886. collegeName:self.dialogTableSubDataList[o].collegeName,
  887. };
  888. list.push(obj)
  889. }
  890. this.$set(this.subCheckData,'subIds',ids);
  891. this.$set(this.dialogForm,'subCheckNum',list.length);
  892. this.$set(this,'dialogTableSubList',list);
  893. this.dialogClickType(1);
  894. }else if(this.addDialogBoxType == 4){
  895. //人员选择页面确定
  896. let list = [];
  897. for(let o=0;o<self.dialogTableDataList.length;o++){
  898. let obj = {
  899. userId:self.dialogTableDataList[o].userId,
  900. name:self.dialogTableDataList[o].name,
  901. jobNum:self.dialogTableDataList[o].jobNum,
  902. deptName:self.dialogTableDataList[o].deptName,
  903. deptId:self.dialogTableDataList[o].deptId,
  904. userType:self.dialogTableDataList[o].userType,
  905. enable:1,
  906. };
  907. list.push(obj)
  908. }
  909. this.$set(this,'dialogTableList',list);
  910. this.dialogClickType(1);
  911. }
  912. },
  913. /*===================================弹窗相关===================================*/
  914. //弹窗关闭
  915. addDialogAllOff(){
  916. this.$parent.addDialogOpen(4)
  917. },
  918. addDialogOff(){
  919. if(this.addDialogBoxType == 1){
  920. this.$parent.addDialogOpen(4)
  921. }else{
  922. this.dialogClickType(1);
  923. }
  924. },
  925. //弹窗状态切换
  926. dialogClickType(type,item){
  927. let self = this;
  928. if(type == 5){
  929. this.$set(this,'iframeSrc',this.urlJudge(item.fileUrl));
  930. this.$set(this,'addDialogBoxType',type);
  931. }else if(type == 4){
  932. //添加成员
  933. this.$set(self,'dialogTableDataList',JSON.parse(JSON.stringify(this.dialogTableList)));
  934. this.userResetQueryLeft();
  935. this.userResetQueryRight();
  936. this.$set(this,'addDialogBoxType',type);
  937. }else if(type == 2){
  938. //选择学院
  939. this.$set(this,'addDialogBoxType',type);
  940. this.deptResetQueryLeft();
  941. if(this.dialogForm.collegeIds[0]){
  942. this.$nextTick(() => {
  943. conditionCollegeInfo(self.deptQueryParamsLeft).then(response => {
  944. if(this.lookInfoType){
  945. //查看时
  946. let list = [];
  947. for(let i=0;i<response.data.length;i++){
  948. let num = 0;
  949. for(let o=0;o<self.dialogForm.collegeIds.length;o++){
  950. if(response.data[i].deptId == self.dialogForm.collegeIds[o]){
  951. num++
  952. }
  953. }
  954. if(num == 0){
  955. response.data.splice(i,1);
  956. i--
  957. }
  958. }
  959. self.$set(self,'deptTableListLeft',response.data);
  960. self.$set(self,'deptTotalLeft',response.data.length);
  961. let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
  962. obj.deptIds = self.dialogForm.collegeIds;
  963. findSubInfoByDeptIds(obj).then(response => {
  964. this.deptTotalRight = response.total;
  965. this.deptTableListRight = response.rows;
  966. this.$set(this.deptCheckData,'subNum',response.total);
  967. this.$set(this,'deptNumLeft',self.dialogForm.collegeIds.length);
  968. });
  969. }else{
  970. //新增-编辑时
  971. self.$set(self,'deptTableListLeft',response.data);
  972. self.$set(self,'deptTotalLeft',response.data.length);
  973. for(let i=0;i<self.dialogForm.collegeIds.length;i++){
  974. for(let o=0;o<self.deptTableListLeft.length;o++){
  975. if(self.dialogForm.collegeIds[i] == self.deptTableListLeft[o].deptId){
  976. self.$refs.leftDeptTable.toggleRowSelection(self.deptTableListLeft[o]);
  977. }
  978. }
  979. }
  980. }
  981. })
  982. })
  983. }
  984. }else if(type == 3){
  985. //选择实验室
  986. this.$set(self,'dialogTableSubDataList',JSON.parse(JSON.stringify(this.dialogTableSubList)));
  987. this.subResetQueryLeft();
  988. this.subResetQueryRight();
  989. this.$set(this,'addDialogBoxType',type);
  990. }else{
  991. this.$set(this,'addDialogBoxType',type);
  992. }
  993. },
  994. //选中对应周期
  995. checkTime(type){
  996. let myDate = new Date();
  997. let year = myDate.getFullYear();
  998. let month = myDate.getMonth()+1;
  999. let day = myDate.getDate();
  1000. let minTime = year + '-' + month + '-' + day
  1001. let maxTime = '';
  1002. if(type==1){
  1003. maxTime = this.getMonthFinalDay(year,month);
  1004. }else if(type==2){
  1005. if(month>0 && month<4){
  1006. maxTime = this.getMonthFinalDay(year,3);
  1007. }else if(month>3 && month<7){
  1008. maxTime = this.getMonthFinalDay(year,6);
  1009. }else if(month>6 && month<10){
  1010. maxTime = this.getMonthFinalDay(year,9);
  1011. }else if(month>9 && month<13){
  1012. maxTime = this.getMonthFinalDay(year,12);
  1013. }
  1014. }else if(type==3){
  1015. maxTime = this.getMonthFinalDay(year,12);
  1016. }
  1017. let timeListA = minTime.split('-')
  1018. minTime = timeListA[0]+'-'+(timeListA[1]<10?'0'+timeListA[1]:timeListA[1])+'-'+(timeListA[2]<10?'0'+timeListA[1]:timeListA[2])
  1019. let timeListB = maxTime.split('-')
  1020. maxTime = timeListB[0]+'-'+(timeListB[1]<10?'0'+timeListB[1]:timeListB[1])+'-'+(timeListB[2]<10?'0'+timeListB[1]:timeListB[2])
  1021. this.$set(this.dialogForm,'dateRange',[minTime,maxTime]);
  1022. },
  1023. //返回指定月份最后一天
  1024. getMonthFinalDay(year,month){
  1025. var day='';
  1026. if(year==null || year==undefined || year==''){
  1027. year = new Date().getFullYear();
  1028. }
  1029. if(month==null || month==undefined || month==''){
  1030. month = new Date().getMonth()+1;
  1031. }
  1032. day = new Date(new Date(year,month).setDate(0)).getDate();
  1033. return year+"-"+month+"-"+day;
  1034. },
  1035. //删除弹窗上传文件
  1036. delUpData(index){
  1037. this.dialogForm.uploadDtoList.splice(index,1)
  1038. },
  1039. //删除弹窗列表
  1040. delTable(row){
  1041. let self = this;
  1042. for(let i=0;i<self.dialogTableList.length;i++){
  1043. if(row.userId == self.dialogTableList[i].userId){
  1044. this.dialogTableList.splice(i,1)
  1045. }
  1046. }
  1047. },
  1048. //快捷选中标题
  1049. checkTitle(item){
  1050. this.$set(this.dialogForm,'title',item.title);
  1051. },
  1052. /*===================================学院选择相关===================================*/
  1053. //重置
  1054. deptResetQueryLeft(){
  1055. this.$set(this,'deptQueryParamsLeft',{ searchValue:"", });
  1056. this.$set(this,'deptNumLeft',0);
  1057. this.$set(this,'deptIdsLeft',[]);
  1058. this.$refs.leftDeptTable.clearSelection();
  1059. this.deptGetListLeft();
  1060. },
  1061. //查询接口
  1062. deptGetListLeft(){
  1063. conditionCollegeInfo(this.deptQueryParamsLeft).then(response => {
  1064. this.$set(this,'deptTableListLeft',response.data);
  1065. this.$set(this,'deptTotalLeft',response.data.length);
  1066. })
  1067. },
  1068. //查询
  1069. deptHandleQueryRight(){
  1070. this.deptGetListRight();
  1071. },
  1072. //重置
  1073. deptResetQueryRight(){
  1074. this.$set(this,'deptQueryParamsRight',{
  1075. pageNum:1,
  1076. pageSize:20,
  1077. searchValue:"",
  1078. deptId:"",
  1079. deptIds:"",
  1080. level:"",
  1081. typeId:"",
  1082. });
  1083. this.deptHandleQueryRight();
  1084. },
  1085. //查询接口
  1086. deptGetListRight(){
  1087. let obj = JSON.parse(JSON.stringify(this.deptQueryParamsRight));
  1088. if(this.lookInfoType){
  1089. obj.deptIds = this.dialogForm.collegeIds;
  1090. }else{
  1091. obj.deptIds = this.deptIdsLeft;
  1092. }
  1093. findSubInfoByDeptIds(obj).then(response => {
  1094. this.deptTotalRight = response.total;
  1095. this.deptTableListRight = response.rows;
  1096. });
  1097. },
  1098. /*===================================实验室选择相关===================================*/
  1099. //查询
  1100. subHandleQueryLeft(){
  1101. this.$set(this.subQueryParamsLeft,'pageNum',1);
  1102. this.subGetListLeft();
  1103. },
  1104. //重置
  1105. subResetQueryLeft(){
  1106. this.$set(this,'subQueryParamsLeft',{
  1107. pageNum:1,
  1108. pageSize:20,
  1109. typeId:"",
  1110. level:"",
  1111. deptId:"",
  1112. searchValue:"",
  1113. filtType:1
  1114. });
  1115. this.subHandleQueryLeft();
  1116. },
  1117. //查询接口
  1118. subGetListLeft(){
  1119. let self = this;
  1120. let leftObj = JSON.parse(JSON.stringify(this.subQueryParamsLeft));
  1121. leftObj.selectedSubIds = [];
  1122. for(let i=0;i<self.dialogTableSubDataList.length;i++){
  1123. leftObj.selectedSubIds.push(self.dialogTableSubDataList[i].subId);
  1124. }
  1125. conditionSubjectInfo(leftObj).then(response => {
  1126. this.subTotalLeft = response.total;
  1127. this.subTableListLeft = response.rows;
  1128. });
  1129. },
  1130. //查询
  1131. subHandleQueryRight(){
  1132. this.$set(this.subQueryParamsRight,'pageNum',1);
  1133. this.subGetListRight();
  1134. },
  1135. //重置
  1136. subResetQueryRight(){
  1137. this.$set(this,'subQueryParamsRight',{
  1138. pageNum:1,
  1139. pageSize:20,
  1140. typeId:"",
  1141. level:"",
  1142. deptId:"",
  1143. searchValue:"",
  1144. filtType:2
  1145. });
  1146. this.subHandleQueryRight();
  1147. },
  1148. //查询接口
  1149. subGetListRight(){
  1150. let self = this;
  1151. let rightObj = JSON.parse(JSON.stringify(this.subQueryParamsRight));
  1152. rightObj.subIds = [];
  1153. for(let i=0;i<self.dialogTableSubDataList.length;i++){
  1154. rightObj.subIds.push(self.dialogTableSubDataList[i].subId);
  1155. }
  1156. conditionSubjectInfo(rightObj).then(response => {
  1157. this.subTotalRight = response.total;
  1158. this.subTableListRight = response.rows;
  1159. });
  1160. },
  1161. //实验室穿梭按钮
  1162. subArrowButton(type){
  1163. if(type == 1){
  1164. if(this.$refs.rightSubTable.selection[0]){
  1165. let list = JSON.parse(JSON.stringify(this.dialogTableSubDataList));
  1166. let subIdsRight = JSON.parse(JSON.stringify(this.$refs.rightSubTable.selection))
  1167. for(let i=0;i<subIdsRight.length;i++){
  1168. for(let s=0;s<list.length;s++){
  1169. if(subIdsRight[i].subId == list[s].subId){
  1170. list.splice(s,1);
  1171. s--
  1172. }
  1173. }
  1174. }
  1175. this.$set(this,'dialogTableSubDataList',list);
  1176. this.$refs.rightSubTable.clearSelection();
  1177. this.subGetListLeft();
  1178. this.subGetListRight();
  1179. }else{
  1180. this.msgError('请先勾选右侧列表')
  1181. }
  1182. }else if(type == 2){
  1183. if(this.$refs.leftSubTable.selection[0]){
  1184. let list = JSON.parse(JSON.stringify(this.dialogTableSubDataList));
  1185. let subIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftSubTable.selection))
  1186. for(let i=0;i<subIdsLeft.length;i++){
  1187. let obj = {
  1188. subId:subIdsLeft[i].subId,
  1189. subjectName:subIdsLeft[i].subjectName,
  1190. typeId:subIdsLeft[i].typeId,
  1191. level:subIdsLeft[i].level,
  1192. collegeName:subIdsLeft[i].collegeName,
  1193. }
  1194. list.push(obj);
  1195. }
  1196. this.$set(this,'dialogTableSubDataList',list);
  1197. this.$refs.leftSubTable.clearSelection();
  1198. this.subGetListLeft();
  1199. this.subGetListRight();
  1200. }else{
  1201. this.msgError('请先勾选左侧列表')
  1202. }
  1203. }
  1204. },
  1205. /*===================================人员选择相关===================================*/
  1206. //查询
  1207. userHandleQueryLeft(){
  1208. this.$set(this.userQueryParamsLeft,'pageNum',1);
  1209. this.$set(this,'userNumLeft',0);
  1210. this.$set(this,'userIdsLeft',[]);
  1211. this.$refs.leftUserTable.clearSelection();
  1212. this.userGetListLeft();
  1213. },
  1214. //重置
  1215. userResetQueryLeft(){
  1216. this.$set(this,'userQueryParamsLeft',{
  1217. pageNum: 1,
  1218. pageSize: 20,
  1219. deptId:"",
  1220. searchValue:"",
  1221. filtType:1
  1222. });
  1223. this.userHandleQueryLeft();
  1224. },
  1225. //查询接口
  1226. userGetListLeft(){
  1227. let self = this;
  1228. let leftObj = JSON.parse(JSON.stringify(this.userQueryParamsLeft));
  1229. leftObj.selectedUserIds = [];
  1230. for(let i=0;i<self.dialogTableDataList.length;i++){
  1231. leftObj.selectedUserIds.push(self.dialogTableDataList[i].userId);
  1232. }
  1233. findUserList(leftObj).then(response => {
  1234. this.userTotalLeft = response.total;
  1235. this.userTableListLeft = response.rows;
  1236. });
  1237. },
  1238. //查询
  1239. userHandleQueryRight(){
  1240. this.$set(this.userQueryParamsRight,'pageNum',1);
  1241. this.$set(this,'userNumRight',0);
  1242. this.$set(this,'userIdsRight',[]);
  1243. this.$refs.rightUserTable.clearSelection();
  1244. this.userGetListRight();
  1245. },
  1246. //重置
  1247. userResetQueryRight(){
  1248. this.$set(this,'userQueryParamsRight',{
  1249. pageNum: 1,
  1250. pageSize: 20,
  1251. deptId:"",
  1252. searchValue:"",
  1253. filtType:2
  1254. });
  1255. this.userHandleQueryRight();
  1256. },
  1257. //查询接口
  1258. userGetListRight(){
  1259. let self = this;
  1260. let rightObj = JSON.parse(JSON.stringify(this.userQueryParamsRight));
  1261. rightObj.userIds = [];
  1262. for(let i=0;i<self.dialogTableDataList.length;i++){
  1263. rightObj.userIds.push(self.dialogTableDataList[i].userId);
  1264. }
  1265. findUserList(rightObj).then(response => {
  1266. this.userTotalRight = response.total;
  1267. this.userTableListRight = response.rows;
  1268. });
  1269. },
  1270. //人员穿梭按钮
  1271. userArrowButton(type){
  1272. let self = this;
  1273. if(type == 1){
  1274. //右至左
  1275. if(this.$refs.rightUserTable.selection[0]){
  1276. let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
  1277. let userIdsRight = JSON.parse(JSON.stringify(this.$refs.rightUserTable.selection))
  1278. for(let i=0;i<userIdsRight.length;i++){
  1279. for(let s=0;s<list.length;s++){
  1280. if(userIdsRight[i].userId == list[s].userId){
  1281. list.splice(s,1);
  1282. s--
  1283. }
  1284. }
  1285. }
  1286. this.$set(this,'dialogTableDataList',list);
  1287. this.$refs.rightUserTable.clearSelection();
  1288. this.userGetListLeft();
  1289. this.userGetListRight();
  1290. }else{
  1291. this.msgError('请先勾选右侧列表')
  1292. }
  1293. }else if(type == 2){
  1294. //左至右
  1295. if(this.userIdsLeft[0]){
  1296. let list = JSON.parse(JSON.stringify(this.dialogTableDataList));
  1297. let userIdsLeft = JSON.parse(JSON.stringify(this.$refs.leftUserTable.selection))
  1298. for(let i=0;i<userIdsLeft.length;i++){
  1299. let obj = {
  1300. userId:userIdsLeft[i].userId,
  1301. name:userIdsLeft[i].nickName,
  1302. jobNum:userIdsLeft[i].userName,
  1303. deptName:userIdsLeft[i].deptName,
  1304. deptId:userIdsLeft[i].deptId,
  1305. userType:userIdsLeft[i].userType,
  1306. }
  1307. list.push(obj);
  1308. }
  1309. if(list.length>50){
  1310. this.msgError('巡查成员最多50人')
  1311. return
  1312. }
  1313. this.$set(this,'dialogTableDataList',list);
  1314. this.$refs.leftUserTable.clearSelection();
  1315. this.userGetListLeft();
  1316. this.userGetListRight();
  1317. }else{
  1318. this.msgError('请先勾选左侧列表')
  1319. }
  1320. }
  1321. },
  1322. /*===================================弹窗相关结束===================================*/
  1323. /*==========上传相关==========*/
  1324. handleAvatarSuccess(res) {
  1325. this.$set(this,'loading',false);
  1326. if(this.dialogForm.uploadDtoList.length>9){
  1327. this.msgError('已到达上传数量上限')
  1328. return
  1329. }
  1330. let suffixName= this.upDataName.split('.')[this.upDataName.split('.').length - 2]
  1331. //判断文件名中是否有逗号和分号
  1332. if(suffixName.indexOf(',')==-1 && suffixName.indexOf(';')==-1){
  1333. }else{
  1334. this.$message.info('文件名里包含逗号或分号,请修改后重新上传!')
  1335. return
  1336. }
  1337. let obj ={
  1338. fileName:this.upDataName,
  1339. fileUrl:res.data.url,
  1340. fileType:1,
  1341. source:1,
  1342. };
  1343. this.dialogForm.uploadDtoList.push(obj);
  1344. this.$forceUpdate()
  1345. },
  1346. beforeAvatarUpload(file) {
  1347. this.$set(this,'loading',true);
  1348. let type = false;
  1349. if (file.type == 'application/pdf' || file.type == 'application/msword' || file.type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'|| file.type == 'application/vnd.ms-excel' || file.type == 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
  1350. this.upDataName = file.name;
  1351. type = true;
  1352. }else{
  1353. this.$set(this,'loading',false);
  1354. this.$message.error('只能上传doc/docx/xls/xlsx/pdf格式');
  1355. type = false;
  1356. }
  1357. return type;
  1358. },
  1359. /*===记录勾选数据===
  1360. 需要再el-table 添加 :row-key="getRowKeys"
  1361. 需要在selection 添加 :reserve-selection="true"
  1362. */
  1363. getRowKeys(row) {
  1364. return row.userId
  1365. },
  1366. getDeptRowKeys(row) {
  1367. return row.deptId
  1368. },
  1369. getSubRowKeys(row) {
  1370. return row.subId
  1371. },
  1372. deptChange(selection){
  1373. let self = this;
  1374. this.deptNumLeft = selection.length;
  1375. this.deptIdsLeft = selection.map(item => item.deptId);
  1376. let num = 0;
  1377. let list = [];
  1378. for(let i=0;i<self.deptIdsLeft.length;i++){
  1379. for(let o=0;o<self.deptTableListLeft.length;o++){
  1380. if(self.deptIdsLeft[i] == self.deptTableListLeft[o].deptId){
  1381. num = self.accAdd(num,self.deptTableListLeft[o].subNum)
  1382. let obj = {
  1383. deptId:self.deptTableListLeft[o].deptId,
  1384. deptName:self.deptTableListLeft[o].deptName,
  1385. }
  1386. list.push(obj)
  1387. }
  1388. }
  1389. }
  1390. this.$set(this,'changeDeptSelectList',list);
  1391. this.$set(this.subQueryParamsRight,'deptId','');
  1392. let obj = {
  1393. deptIds:this.deptIdsLeft,
  1394. deptNum:this.deptNumLeft,
  1395. subNum:num
  1396. }
  1397. this.$set(this,'deptCheckData',JSON.parse(JSON.stringify(obj)));
  1398. this.deptResetQueryRight();
  1399. },
  1400. subChangeLeft(selection){
  1401. this.subNumLeft = selection.length;
  1402. this.subIdsLeft = selection.map(item => item.subId);
  1403. },
  1404. subChangeRight(selection){
  1405. this.subNumRight = selection.length;
  1406. this.subIdsRight = selection.map(item => item.subId);
  1407. },
  1408. userChangeLeft(selection){
  1409. this.userNumLeft = selection.length;
  1410. this.userIdsLeft = selection.map(item => item.userId);
  1411. },
  1412. userChangeRight(selection){
  1413. this.userNumRight = selection.length;
  1414. this.userIdsRight = selection.map(item => item.userId);
  1415. },
  1416. //加法
  1417. accAdd(arg1,arg2){
  1418. var r1,r2,m;
  1419. try{r1=arg1.toString().split(".")[1].length}catch(e){r1=0}
  1420. try{r2=arg2.toString().split(".")[1].length}catch(e){r2=0}
  1421. m=Math.pow(10,Math.max(r1,r2))
  1422. return ((arg1*m+arg2*m)/m).toFixed(0);
  1423. },
  1424. //获取历史标题
  1425. getHistoryPlanTitles(){
  1426. getHistoryPlanTitles().then(response => {
  1427. let list = [
  1428. {title:"校院春季开学检查",type:false,},
  1429. {title:"校院秋季开学检查",type:false,},
  1430. {title:"日常安全检查",type:false,},
  1431. {title:"年度安全检查",type:false,},
  1432. {title:"季度安全检查",type:false,},
  1433. {title:"月度安全检查",type:false,},
  1434. {title:"专项检查",type:false,},
  1435. ];
  1436. for(let i=0;i<response.data.length;i++){
  1437. list.push({title:response.data[i].title,type:true,id:response.data[i].id});
  1438. }
  1439. this.$set(this,'quickSelectionList',list);
  1440. });
  1441. },
  1442. //删除历史标题
  1443. delTitleObj(item){
  1444. let self = this;
  1445. this.$confirm('是否确认删除?', "警告", {
  1446. confirmButtonText: "确定",
  1447. cancelButtonText: "取消",
  1448. type: "warning"
  1449. }).then(function() {
  1450. hideHistoryPlanTitle({checkPlanId:item.id}).then(response => {
  1451. self.msgSuccess(response.msg)
  1452. self.getHistoryPlanTitles();
  1453. });
  1454. }).then(() => {
  1455. }).catch(() => {});
  1456. },
  1457. }
  1458. }
  1459. </script>
  1460. <style lang="scss">
  1461. .inspectionPlan-dialog-box{
  1462. .el-dialog__body{
  1463. padding:20px 0 20px 30px;
  1464. }
  1465. .is-disabled{
  1466. background-color: #f5f5f5;
  1467. color: #333;
  1468. border-color: #f5f5f5;
  1469. cursor:auto;
  1470. border-radius: 4px;
  1471. .el-input__icon{
  1472. display: none;
  1473. }
  1474. .el-input__inner{
  1475. background-color: #f5f5f5;
  1476. color: #333;
  1477. border-color: #f5f5f5;
  1478. cursor:auto!important;
  1479. border-radius: 4px;
  1480. }
  1481. .el-range-input{
  1482. background-color: #f5f5f5;
  1483. color: #333;
  1484. border-color: #f5f5f5;
  1485. cursor:auto;
  1486. border-radius: 4px;
  1487. }
  1488. .el-textarea__inner{
  1489. background-color: #f5f5f5;
  1490. color: #333;
  1491. border-color: #f5f5f5;
  1492. cursor:auto;
  1493. border-radius: 4px;
  1494. }
  1495. }
  1496. .inspectionPlan-dialog-add-box{
  1497. display: flex;
  1498. overflow: hidden;
  1499. height:610px;
  1500. .left-max-box{
  1501. width:270px;
  1502. border-right:1px dashed #D8D8D8;
  1503. display: flex;
  1504. flex-direction: column;
  1505. .left-max-title-box{
  1506. width:230px;
  1507. display: flex;
  1508. border-bottom:1px solid #E0E0E0;
  1509. img{
  1510. width:14px;
  1511. height:11px;
  1512. margin:33px 18px 33px 0;
  1513. }
  1514. p{
  1515. line-height:78px;
  1516. color:#0183FA;
  1517. font-size:16px;
  1518. }
  1519. }
  1520. .left-max-list-box{
  1521. flex:1;
  1522. width:230px;
  1523. overflow-x: hidden;
  1524. div{
  1525. width:230px;
  1526. height:40px;
  1527. line-height:40px;
  1528. padding:0 10px;
  1529. margin-top: 10px;
  1530. cursor: pointer;
  1531. font-size:16px;
  1532. color:#333333;
  1533. overflow:hidden;
  1534. display: flex;
  1535. .left-max-list-for-p{
  1536. flex:1;
  1537. display:block;
  1538. overflow:hidden;
  1539. text-overflow:ellipsis;
  1540. white-space:nowrap;
  1541. }
  1542. .left-max-list-for-icon{
  1543. color:#999;
  1544. width:32px;
  1545. line-height: 40px;
  1546. text-align: center;
  1547. font-size:16px;
  1548. }
  1549. }
  1550. div:hover{
  1551. background: rgba(1,131,250,0.2);
  1552. color:#0183FA;
  1553. .left-max-list-for-icon{
  1554. color:#0183FA!important;
  1555. }
  1556. }
  1557. }
  1558. }
  1559. .right-max-box{
  1560. flex:1;
  1561. padding-right:10px;
  1562. .date-range-box{
  1563. display: flex;
  1564. .date-range-left-box{
  1565. margin-right:15px;
  1566. }
  1567. .date-range-right-box{
  1568. display: flex;
  1569. border-radius:4px;
  1570. overflow: hidden;
  1571. border:1px solid #E0E0E0;
  1572. p{
  1573. width: 70px;
  1574. height:34px;
  1575. line-height:34px;
  1576. color:#333;
  1577. font-size:14px;
  1578. text-align: center;
  1579. cursor: pointer;
  1580. }
  1581. p:hover{
  1582. color:#fff;
  1583. background: #0045AF;
  1584. }
  1585. p:nth-child(2){
  1586. border-left:1px solid #E0E0E0;
  1587. border-right:1px solid #E0E0E0;
  1588. }
  1589. }
  1590. }
  1591. .dialog-range-max-box{
  1592. display: flex;
  1593. .dialog-range-select-box{
  1594. }
  1595. .dialog-range-text-box{
  1596. display: flex;
  1597. .button-p{
  1598. margin-left:15px;
  1599. width:100px;
  1600. margin-right:0;
  1601. }
  1602. .text-p{
  1603. line-height:40px;
  1604. color:#0183FA;
  1605. font-size:14px;
  1606. margin-left:15px;
  1607. }
  1608. }
  1609. }
  1610. .dialog-material-max-box{
  1611. .dialog-material-button-box{
  1612. display: flex;
  1613. .dialog-material-text{
  1614. margin-left:20px;
  1615. color:#333333;
  1616. font-size:14px;
  1617. line-height:40px;
  1618. }
  1619. }
  1620. .dialog-material-list-box:nth-child(1){
  1621. margin-top:0;
  1622. }
  1623. .dialog-material-list-box{
  1624. margin-top:20px;
  1625. div{
  1626. height:40px;
  1627. width:550px;
  1628. display: flex;
  1629. img{
  1630. width:16px;
  1631. height:14px;
  1632. margin:11px 23px 13px 0;
  1633. }
  1634. p:nth-child(2){
  1635. flex:1;
  1636. display:block;
  1637. overflow:hidden;
  1638. text-overflow:ellipsis;
  1639. white-space:nowrap;
  1640. }
  1641. p:nth-child(3){
  1642. color:#0183FA;
  1643. font-size:14px;
  1644. cursor: pointer;
  1645. margin-left:40px;
  1646. }
  1647. p:nth-child(4){
  1648. color:#0183FA;
  1649. font-size:14px;
  1650. cursor: pointer;
  1651. margin-left:40px;
  1652. }
  1653. }
  1654. .dialog-material-list-null{
  1655. text-align: center;
  1656. color:#999;
  1657. font-size:14px;
  1658. }
  1659. }
  1660. }
  1661. .dialog-table-max-box{
  1662. width:747px;
  1663. height:357px;
  1664. display: flex;
  1665. flex-direction: column;
  1666. flex:1;
  1667. /*background: #A11DDF;*/
  1668. overflow: hidden;
  1669. .dialog-table-box{
  1670. margin-top:20px;
  1671. display: flex;
  1672. flex-direction: column;
  1673. flex:1;
  1674. overflow: hidden;
  1675. .dialog-table-title-box{
  1676. display: flex;
  1677. border:1px solid #e0e0e0;
  1678. border-bottom:none;
  1679. img{
  1680. width:14px;
  1681. height:14px;
  1682. margin:18px 12px 18px 12px;
  1683. }
  1684. .dialog-table-title-p{
  1685. line-height:50px;
  1686. flex:1;
  1687. font-size:16px;
  1688. }
  1689. .dialog-table-title-button{
  1690. width:70px;
  1691. height:30px;
  1692. line-height:28px;
  1693. margin:10px 26px;
  1694. }
  1695. }
  1696. }
  1697. }
  1698. }
  1699. }
  1700. .inspectionPlan-dialog-dept-box{
  1701. display: flex;
  1702. overflow: hidden;
  1703. height:610px;
  1704. margin-right:30px;
  1705. .dept-table-title-box{
  1706. display: flex;
  1707. padding:0 20px;
  1708. background: rgba(1,131,250,0.1);
  1709. p{
  1710. flex:1;
  1711. color:#0183FA;
  1712. font-size:16px;
  1713. line-height:40px;
  1714. }
  1715. p:nth-child(1){
  1716. text-align: left;
  1717. }
  1718. p:nth-child(2){
  1719. text-align: right;
  1720. }
  1721. }
  1722. .dept-table-max-box{
  1723. border: 1px solid #e0e0e0;
  1724. flex:1;
  1725. display: flex;
  1726. flex-direction: column;
  1727. overflow: hidden;
  1728. padding:20px;
  1729. .form-index{
  1730. .el-input__inner{
  1731. border-right:none;
  1732. padding-right:0;
  1733. }
  1734. .el-input-group__append{
  1735. background: #fff;
  1736. cursor: pointer;
  1737. padding:0 10px;
  1738. }
  1739. }
  1740. input{
  1741. border: 1px solid #DCDFE6;
  1742. }
  1743. }
  1744. .left-max-box{
  1745. height:610px;
  1746. display: flex;
  1747. flex-direction: column;
  1748. overflow: hidden;
  1749. width:475px;
  1750. margin-right:20px;
  1751. }
  1752. .right-max-box{
  1753. height:610px;
  1754. display: flex;
  1755. flex-direction: column;
  1756. overflow: hidden;
  1757. width:755px;
  1758. }
  1759. }
  1760. .inspectionPlan-dialog-sub-box{
  1761. display: flex;
  1762. overflow: hidden;
  1763. height:610px;
  1764. margin-right:30px;
  1765. .dept-table-title-box{
  1766. display: flex;
  1767. padding:0 20px;
  1768. background: rgba(1,131,250,0.1);
  1769. p{
  1770. flex:1;
  1771. color:#0183FA;
  1772. font-size:16px;
  1773. line-height:40px;
  1774. }
  1775. p:nth-child(1){
  1776. text-align: left;
  1777. }
  1778. p:nth-child(2){
  1779. text-align: right;
  1780. }
  1781. }
  1782. .dept-table-max-box{
  1783. border: 1px solid #e0e0e0;
  1784. flex:1;
  1785. display: flex;
  1786. flex-direction: column;
  1787. overflow: hidden;
  1788. padding:20px;
  1789. .form-index{
  1790. .el-input__inner{
  1791. border-right:none;
  1792. padding-right:0;
  1793. }
  1794. .el-input-group__append{
  1795. background: #fff;
  1796. cursor: pointer;
  1797. padding:0 10px;
  1798. }
  1799. }
  1800. input{
  1801. border: 1px solid #DCDFE6;
  1802. }
  1803. }
  1804. .left-max-box{
  1805. height:610px;
  1806. display: flex;
  1807. flex-direction: column;
  1808. overflow: hidden;
  1809. width:588px;
  1810. }
  1811. .right-max-box{
  1812. height:610px;
  1813. display: flex;
  1814. flex-direction: column;
  1815. overflow: hidden;
  1816. width:588px;
  1817. flex:1;
  1818. }
  1819. .center-box{
  1820. width:68px;
  1821. p{
  1822. display: block;
  1823. border-radius:50%;
  1824. width:30px;
  1825. height:30px;
  1826. line-height:30px;
  1827. text-align: center;
  1828. background: rgba(245,245,245,1);
  1829. color:rgba(62,62,62,1);
  1830. cursor: pointer;
  1831. font-size:16px;
  1832. }
  1833. p:nth-child(1){
  1834. margin:270px 19px 0;
  1835. }
  1836. p:nth-child(2){
  1837. margin:14px 19px 0;
  1838. }
  1839. p:hover{
  1840. color:#fff;
  1841. background: #0183fa;
  1842. }
  1843. }
  1844. }
  1845. .inspectionPlan-dialog-user-box{
  1846. display: flex;
  1847. overflow: hidden;
  1848. height:610px;
  1849. margin-right:30px;
  1850. .dept-table-title-box{
  1851. display: flex;
  1852. padding:0 20px;
  1853. background: rgba(1,131,250,0.1);
  1854. p{
  1855. flex:1;
  1856. color:#0183FA;
  1857. font-size:16px;
  1858. line-height:40px;
  1859. }
  1860. p:nth-child(1){
  1861. text-align: left;
  1862. }
  1863. p:nth-child(2){
  1864. text-align: right;
  1865. }
  1866. }
  1867. .dept-table-max-box{
  1868. border: 1px solid #e0e0e0;
  1869. flex:1;
  1870. display: flex;
  1871. flex-direction: column;
  1872. overflow: hidden;
  1873. padding:20px;
  1874. .form-index{
  1875. .el-input__inner{
  1876. border-right:none;
  1877. padding-right:0;
  1878. }
  1879. .el-input-group__append{
  1880. background: #fff;
  1881. cursor: pointer;
  1882. padding:0 10px;
  1883. }
  1884. }
  1885. input{
  1886. border: 1px solid #DCDFE6;
  1887. }
  1888. }
  1889. .left-max-box{
  1890. height:610px;
  1891. display: flex;
  1892. flex-direction: column;
  1893. overflow: hidden;
  1894. width:588px;
  1895. }
  1896. .right-max-box{
  1897. height:610px;
  1898. display: flex;
  1899. flex-direction: column;
  1900. overflow: hidden;
  1901. width:588px;
  1902. flex:1;
  1903. }
  1904. .center-box{
  1905. width:68px;
  1906. p{
  1907. display: block;
  1908. border-radius:50%;
  1909. width:30px;
  1910. height:30px;
  1911. line-height:30px;
  1912. text-align: center;
  1913. background: rgba(245,245,245,1);
  1914. color:rgba(62,62,62,1);
  1915. cursor: pointer;
  1916. font-size:16px;
  1917. }
  1918. p:nth-child(1){
  1919. margin:270px 19px 0;
  1920. }
  1921. p:nth-child(2){
  1922. margin:14px 19px 0;
  1923. }
  1924. p:hover{
  1925. color:#fff;
  1926. background: #0183fa;
  1927. }
  1928. }
  1929. }
  1930. .inspectionPlan-dialog-look-box{
  1931. display: flex;
  1932. overflow: hidden;
  1933. height:610px;
  1934. margin-right:30px;
  1935. .iframe-box{
  1936. flex:1;
  1937. }
  1938. }
  1939. }
  1940. </style>