addDialog.vue 71 KB

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