index.vue 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538
  1. <template>
  2. <div class="app-container workTask">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="120px"
  9. >
  10. <!-- <el-form-item prop="type">
  11. <el-select v-model="queryParams.type">
  12. <el-option label="周计划" value="week"></el-option>
  13. <el-option label="月计划" value="month"></el-option>
  14. <el-option label="年计划" value="year"></el-option>
  15. </el-select>
  16. </el-form-item>
  17. <el-form-item prop="executableUnit">
  18. <el-select
  19. v-model="queryParams.executableUnit"
  20. placeholder="请选择执行单位"
  21. >
  22. <el-option label="大队" value="productionBrigade"></el-option>
  23. <el-option label="发射一营" value="launch1"></el-option>
  24. <el-option label="发射二营" value="launch2"></el-option>
  25. <el-option label="发射三营" value="launch3"></el-option>
  26. <el-option label="发射四营" value="launch4"></el-option>
  27. <el-option label="技术部" value="technology"></el-option>
  28. <el-option label="后勤部" value="logistics"></el-option>
  29. <el-option label="后勤营一连" value="logistics1"></el-option>
  30. <el-option label="后勤营二连" value="logistics2"></el-option>
  31. <el-option label="后勤营三连" value="logistics3"></el-option>
  32. <el-option label="参谋部" value="adviser"></el-option>
  33. <el-option label="保障部" value="safeguard"></el-option>
  34. </el-select>
  35. </el-form-item>
  36. <el-form-item prop="unitId">
  37. <el-select v-model="queryParams.unitId" placeholder="请选择发布单位">
  38. <el-option label="大队" value="productionBrigade"></el-option>
  39. <el-option label="发射一营" value="launch1"></el-option>
  40. <el-option label="发射二营" value="launch2"></el-option>
  41. <el-option label="发射三营" value="launch3"></el-option>
  42. <el-option label="发射四营" value="launch4"></el-option>
  43. <el-option label="技术部" value="technology"></el-option>
  44. <el-option label="后勤部" value="logistics"></el-option>
  45. <el-option label="后勤营一连" value="logistics1"></el-option>
  46. <el-option label="后勤营二连" value="logistics2"></el-option>
  47. <el-option label="后勤营三连" value="logistics3"></el-option>
  48. <el-option label="参谋部" value="adviser"></el-option>
  49. <el-option label="保障部" value="safeguard"></el-option>
  50. </el-select>
  51. </el-form-item> -->
  52. <el-form-item prop="type" class="plantypes" label-width="80px">
  53. <el-select v-model="queryParams.types" placeholder="请选择任务类型">
  54. <el-option
  55. v-for="(item, i) in ziDian"
  56. :key="i"
  57. :label="item.dictLabel"
  58. :value="item.dictLabel"
  59. @click.native="zidainType(item)"
  60. >
  61. </el-option>
  62. </el-select>
  63. </el-form-item>
  64. <el-form-item prop="adminId" class="plantypes" label-width="80px">
  65. <treeselect
  66. v-model="queryParams.adminId"
  67. :options="users"
  68. placeholder="请选择发布单位"
  69. class="threeselects"
  70. @select="selectPeo3"
  71. />
  72. </el-form-item>
  73. <el-form-item>
  74. <!-- <el-button
  75. type="primary"
  76. icon="el-icon-search"
  77. size="btn"
  78. @click="handleQuery"
  79. >搜索</el-button
  80. > -->
  81. <el-button
  82. type="btr"
  83. icon="el-icon-refresh"
  84. size="mini"
  85. @click="resetQuery"
  86. >重置</el-button
  87. >
  88. </el-form-item>
  89. </el-form>
  90. <el-row :gutter="10" class="mb8">
  91. <el-col :span="1.5">
  92. <el-button
  93. type="primary"
  94. plain
  95. icon="el-icon-plus"
  96. size="mini"
  97. @click="handleAdd"
  98. v-hasPermi="['workingArrangements:workTask:add']"
  99. >新增</el-button
  100. >
  101. </el-col>
  102. <!-- <el-col :span="1.5">
  103. <el-button
  104. type="success"
  105. plain
  106. icon="el-icon-edit"
  107. size="mini"
  108. :disabled="single"
  109. @click="handleUpdate"
  110. v-hasPermi="['workingArrangements:workTask:edit']"
  111. >修改</el-button
  112. >
  113. </el-col>
  114. <el-col :span="1.5">
  115. <el-button
  116. type="danger"
  117. plain
  118. icon="el-icon-delete"
  119. size="mini"
  120. :disabled="multiple"
  121. @click="handleDelete"
  122. v-hasPermi="['workingArrangements:workTask:remove']"
  123. >删除</el-button
  124. >
  125. </el-col> -->
  126. <!-- <el-col :span="1.5">
  127. <el-button
  128. type="warning"
  129. plain
  130. icon="el-icon-download"
  131. size="mini"
  132. :loading="exportLoading"
  133. @click="handleExport"
  134. v-hasPermi="['workingArrangements:workTask:export']"
  135. >导出</el-button
  136. >
  137. </el-col> -->
  138. <!-- <right-toolbar
  139. :showSearch.sync="showSearch"
  140. @queryTable="getList"
  141. ></right-toolbar> -->
  142. </el-row>
  143. <el-table
  144. v-loading="loading"
  145. :data="workTaskList"
  146. @selection-change="handleSelectionChange"
  147. :header-cell-style="{ background: '#003C69', color: 'white' }"
  148. >
  149. <el-table-column type="selection" width="55" align="center" />
  150. <el-table-column label="名称" align="center" prop="name" />
  151. <!-- <el-table-column
  152. label="发布单位"
  153. align="center"
  154. prop="adminId"
  155. :formatter="unit3Format"
  156. /> -->
  157. <el-table-column label="发布人" align="center" prop="username" />
  158. <el-table-column
  159. label="任务类型"
  160. align="center"
  161. prop="type"
  162. :formatter="unit4Format"
  163. />
  164. <el-table-column
  165. label="执行人"
  166. align="center"
  167. prop="peopleId"
  168. :formatter="unit2Format"
  169. />
  170. <!-- <el-table-column label="编号" align="center" prop="number" /> -->
  171. <el-table-column
  172. label="任务开始时间"
  173. align="center"
  174. prop="startTime"
  175. width="180"
  176. >
  177. <template slot-scope="scope">
  178. <span>{{
  179. parseTime(scope.row.startTime)
  180. }}</span>
  181. </template>
  182. </el-table-column>
  183. <el-table-column
  184. label="任务结束时间"
  185. align="center"
  186. prop="endTime"
  187. width="180"
  188. >
  189. <template slot-scope="scope">
  190. <span>{{
  191. parseTime(scope.row.endTime)
  192. }}</span>
  193. </template>
  194. </el-table-column>
  195. <el-table-column
  196. label="描述"
  197. align="center"
  198. prop="contents"
  199. show-overflow-tooltip
  200. />
  201. <el-table-column
  202. label="操作"
  203. align="center"
  204. class-name="small-padding fixed-width"
  205. >
  206. <template slot-scope="scope">
  207. <el-button
  208. size="btlook"
  209. type="text"
  210. @click="ViewProgress(scope.row)"
  211. v-if="scope.row.common == 1"
  212. >
  213. <span>进度录入</span>
  214. </el-button>
  215. <el-button
  216. size="btlook"
  217. type="text"
  218. @click="handleChakan(scope.row)"
  219. v-if="scope.row.common == 1"
  220. >
  221. <!-- 单人进度查看 -->
  222. <span class="chakan">查看</span>
  223. </el-button>
  224. <el-button
  225. size="btlook"
  226. type="text"
  227. @click="handleChakan1(scope.row)"
  228. v-if="scope.row.common == 2 || scope.row.common == 0"
  229. >
  230. <!-- 多人进度查看 -->
  231. <span class="chakan">进度查看</span>
  232. </el-button>
  233. <el-button
  234. size="btu"
  235. type="text"
  236. @click="handleUpdate(scope.row)"
  237. v-hasPermi="['workingArrangements:planTask:edit']"
  238. v-if="scope.row.common == 2"
  239. >修改</el-button
  240. >
  241. <el-button
  242. size="btd"
  243. type="text"
  244. @click="handleDelete(scope.row)"
  245. v-if="scope.row.common == 2"
  246. v-hasPermi="['workingArrangements:planTask:remove']"
  247. >删除</el-button
  248. >
  249. </template>
  250. </el-table-column>
  251. </el-table>
  252. <pagination
  253. v-show="total > 0"
  254. :total="total"
  255. :page.sync="queryParams.pageNum"
  256. :limit.sync="queryParams.pageSize"
  257. @pagination="getList"
  258. />
  259. <!-- 添加或修改工作任务对话框 -->
  260. <el-dialog
  261. :title="title"
  262. :visible.sync="open"
  263. width="980px"
  264. append-to-body
  265. :close-on-click-modal="false"
  266. >
  267. <el-form
  268. ref="form"
  269. :model="form"
  270. :rules="rules"
  271. label-width="100px"
  272. :inline="true"
  273. >
  274. <div class="jiben">基本信息</div>
  275. <el-form-item label="任务名称" prop="name">
  276. <el-input
  277. placeholder="请选择任务名称"
  278. v-model="form.name"
  279. @click.native="planName"
  280. />
  281. </el-form-item>
  282. <el-form-item label="任务编号" prop="number">
  283. <el-input
  284. placeholder="请选择任务编号"
  285. label="任务编号"
  286. v-model="form.number"
  287. :disabled="true"
  288. class="ipt"
  289. >
  290. </el-input>
  291. </el-form-item>
  292. <el-form-item label="发布单位" prop="adminId">
  293. <treeselect
  294. v-model="form.adminId"
  295. :options="part"
  296. @select="selectPeo"
  297. class="threeselects"
  298. disabled
  299. placeholder="请选择发布单位"
  300. />
  301. </el-form-item>
  302. <el-form-item label="执行单位" prop="unitId">
  303. <treeselect
  304. v-model="form.unitId"
  305. :options="users"
  306. class="threeselects"
  307. @select="selectPeo1"
  308. placeholder="请选择执行单位"
  309. />
  310. </el-form-item>
  311. <el-form-item label="任务类型" prop="type">
  312. <el-select
  313. v-model="form.type"
  314. style="width: 200px"
  315. clearable
  316. placeholder="请选择任务类型"
  317. size="small"
  318. >
  319. <el-option
  320. v-for="(item, i) in ziDian"
  321. :key="i"
  322. :label="item.dictLabel"
  323. :value="parseInt(item.dictSort)"
  324. >
  325. </el-option>
  326. </el-select>
  327. </el-form-item>
  328. <el-form-item label="发布人" prop="username">
  329. <el-input
  330. placeholder="请输入发布人"
  331. v-model="form.username"
  332. :disabled="true"
  333. class="ipt"
  334. >
  335. </el-input>
  336. </el-form-item>
  337. <div>
  338. <el-form-item label="执行人" prop="peopleName" label-width="100px">
  339. <div>
  340. <el-select
  341. multiple
  342. v-model="form.peopleName"
  343. id="execute"
  344. ref="peoplenames"
  345. placeholder="请选择执行人"
  346. >
  347. <el-option
  348. v-for="item in executor"
  349. :key="item.deptId"
  350. :label="item.nickName"
  351. :value="item.userId"
  352. id="execute"
  353. @click.native="returnExecutor(item.deptId, item.nickName)"
  354. />
  355. </el-select>
  356. </div>
  357. </el-form-item>
  358. </div>
  359. <el-form-item label="开始时间" prop="startTime">
  360. <el-date-picker
  361. placeholder="请选择开始时间"
  362. clearable
  363. size="small"
  364. v-model="form.startTime"
  365. type="datetime"
  366. style="width: 200px"
  367. >
  368. </el-date-picker>
  369. </el-form-item>
  370. <el-form-item label="结束时间" label-width="100px" prop="endTime">
  371. <el-date-picker
  372. placeholder="请选择结束时间"
  373. clearable
  374. size="small"
  375. v-model="form.endTime"
  376. type="datetime"
  377. default-time="00:00:00"
  378. >
  379. </el-date-picker>
  380. </el-form-item>
  381. <div class="jiben">任务附件</div>
  382. <el-form-item style="margin-left: 30px">
  383. <fileUpload v-model="form.file" />
  384. </el-form-item>
  385. <div class="jiben">任务描述</div>
  386. <el-form-item prop="contents">
  387. <el-input
  388. v-model="form.contents"
  389. type="textarea"
  390. placeholder="请输入内容"
  391. style="width: 950px"
  392. />
  393. </el-form-item>
  394. <div class="jiben">备注</div>
  395. <el-form-item prop="remark">
  396. <el-input
  397. v-model="form.remark"
  398. type="textarea"
  399. placeholder="请输入内容"
  400. style="width: 950px"
  401. />
  402. </el-form-item>
  403. </el-form>
  404. <div slot="footer" class="dialog-footer">
  405. <el-button type="primary" @click="submitForm">确 定</el-button>
  406. <el-button @click="cancel">取 消</el-button>
  407. </div>
  408. </el-dialog>
  409. <!-- 进度录入弹框 -->
  410. <el-dialog
  411. :title="title"
  412. :visible.sync="open1"
  413. width="980px"
  414. append-to-body
  415. class="el-dialog__header"
  416. :close-on-click-modal="false"
  417. >
  418. <el-form
  419. ref="Progress"
  420. :model="Progress"
  421. :rules="rules1"
  422. label-width="100px"
  423. :inline="true"
  424. >
  425. <div class="jiben">完成进度</div>
  426. <el-form-item prop="planProgress">
  427. <div>
  428. <el-input-number
  429. v-model="Progress.planProgress"
  430. controls-position="right"
  431. :min="0"
  432. :max="100"
  433. ></el-input-number>
  434. <el-progress
  435. :text-inside="true"
  436. :stroke-width="24"
  437. :percentage="Progress.planProgress"
  438. color="rgba(41, 231, 205, 1)"
  439. class="jinduProgress"
  440. ></el-progress>
  441. </div>
  442. </el-form-item>
  443. <div class="jiben">附件</div>
  444. <el-form-item>
  445. <fileUpload v-model="Progress.file" />
  446. </el-form-item>
  447. <div class="jiben">备注</div>
  448. <el-form-item prop="remark">
  449. <el-input
  450. v-model="Progress.remark"
  451. type="textarea"
  452. placeholder="请输入内容"
  453. />
  454. </el-form-item>
  455. <div class="jiben">完成时间</div>
  456. <el-form-item prop="accomplishTime">
  457. <el-date-picker
  458. class="comtimer"
  459. clearable
  460. size="small"
  461. v-model="Progress.accomplishTime"
  462. type="date"
  463. value-format="yyyy-MM-dd"
  464. placeholder="选择完成时间"
  465. >
  466. </el-date-picker>
  467. </el-form-item>
  468. </el-form>
  469. <div slot="footer" class="dialog-footer">
  470. <el-button type="primary" @click="submitForm1">确 定</el-button>
  471. <el-button @click="cancel">取 消</el-button>
  472. </div>
  473. </el-dialog>
  474. <!-- 单人进度查看弹框 -->
  475. <el-dialog
  476. :title="title"
  477. :visible.sync="open2"
  478. width="980px"
  479. append-to-body
  480. class="el-dialog__header"
  481. :close-on-click-modal="false"
  482. >
  483. <el-form
  484. ref="singleTable"
  485. :model="singleTable"
  486. :rules="rules"
  487. label-width="100px"
  488. :inline="true"
  489. >
  490. <div class="jiben">完成进度</div>
  491. <!-- <el-form-item prop="comPlan"> -->
  492. <!-- <el-input
  493. label="计划名称"
  494. v-model="ProgressLook.comPlan"
  495. class="big"
  496. /> -->
  497. <!-- </el-form-item> -->
  498. <el-progress
  499. :text-inside="true"
  500. :stroke-width="24"
  501. :percentage="singleTable.planProgresses"
  502. style="margin-bottom: 20px"
  503. color="rgba(41, 231, 205, 1)"
  504. ></el-progress>
  505. <div class="jiben">任务周期</div>
  506. <el-form-item prop="comWeek">
  507. <!-- <el-input
  508. v-model="singleTable."
  509. class="big"
  510. /> -->
  511. <div class="thistext">
  512. {{ singleTable.startTime }} 至 {{ singleTable.endTime }}
  513. </div>
  514. </el-form-item>
  515. <!-- <div class="thistext"></div> -->
  516. <div class="jiben">附件文档</div>
  517. <el-form-item prop="file">
  518. <el-input
  519. label="附件名称"
  520. v-model="singleTable.fileName"
  521. style="width: 820px"
  522. />
  523. <!-- <div>{{singleTableb.fileName}}</div> -->
  524. <a
  525. :href="singleTable.file"
  526. download
  527. title="下载"
  528. style="color: white; margin-left: 10px"
  529. class="downloadfile"
  530. >下载附件</a
  531. >
  532. </el-form-item>
  533. <div class="jiben">备注</div>
  534. <div class="thistext">{{ singleTable.remark }}</div>
  535. <div class="jiben">任务描述</div>
  536. <div class="thistext">{{ singleTable.contents }}</div>
  537. </el-form>
  538. <div slot="footer" class="dialog-footer">
  539. <el-button type="primary" @click="submitForm2">确 定</el-button>
  540. <el-button @click="cancel">取 消</el-button>
  541. </div>
  542. </el-dialog>
  543. <!-- 多人进度查看弹框 -->
  544. <el-dialog
  545. :title="title"
  546. :visible.sync="open3"
  547. width="980px"
  548. append-to-body
  549. class="el-dialog__header jinduchakan"
  550. :close-on-click-modal="false"
  551. >
  552. <el-form
  553. ref="moreTable"
  554. :model="moreTable"
  555. :rules="rules"
  556. label-width="100px"
  557. :inline="true"
  558. >
  559. <div class="jiben">完成进度</div>
  560. <el-progress
  561. :text-inside="true"
  562. :stroke-width="24"
  563. :percentage="comstatus"
  564. style="margin-bottom: 20px"
  565. color="rgba(41, 231, 205, 1)"
  566. ></el-progress>
  567. <div class="jiben">任务周期</div>
  568. <div class="thistext">
  569. {{ moreTable.startTime }} 至 {{ moreTable.endTime }}
  570. </div>
  571. <!-- <div class="thistext"></div> -->
  572. <div class="jiben">附件文档</div>
  573. <el-form-item prop="file">
  574. <!-- <el-input label="计划名称" v-model="ProgressLook.file" class="big" /> -->
  575. <!-- <a :href="moreTable.file" download title="下载" style="color:white;margin-left:10px">下载附件</a> -->
  576. <el-input
  577. label="附件名称"
  578. v-model="moreTable.fileName"
  579. style="width: 820px"
  580. />
  581. <!-- <div>{{singleTableb.fileName}}</div> -->
  582. <a
  583. :href="moreTable.file"
  584. download
  585. title="下载"
  586. style="color: white; margin-left: 10px"
  587. class="downloadfile"
  588. >下载附件</a
  589. >
  590. </el-form-item>
  591. <div class="jiben">备注</div>
  592. <div class="thistext">{{ moreTable.remark }}</div>
  593. <div class="jiben">任务描述</div>
  594. <div class="thistext">{{ moreTable.contents }}</div>
  595. <div class="jiben">执行人信息</div>
  596. <el-table
  597. :data="moreTable.workProgresses"
  598. border
  599. style="width: 100%; background: #004d86"
  600. class="tabless"
  601. >
  602. <el-table-column prop="peopleName" label="执行人" width="180">
  603. </el-table-column>
  604. <el-table-column label="任务周期" width="190">
  605. <template slot-scope="scope">
  606. <div>{{ scope.row.taskCycle }}</div>
  607. </template>
  608. </el-table-column>
  609. <el-table-column prop="schedule" label="进度">
  610. <template slot-scope="scope">
  611. <el-progress
  612. :text-inside="true"
  613. :stroke-width="24"
  614. :percentage="scope.row.schedule"
  615. style="margin-bottom: 20px"
  616. color="rgba(41, 231, 205, 1)"
  617. ></el-progress>
  618. </template>
  619. </el-table-column>
  620. <el-table-column prop="accomplishTime" label="完成时间" width="180">
  621. </el-table-column>
  622. <el-table-column label="状态" width="180">
  623. <template slot-scope="scope">
  624. <div>{{ scope.row.schedule == 100 ? "完成" : "未完成" }}</div>
  625. </template>
  626. </el-table-column>
  627. <el-table-column prop="address" label="下载">
  628. <template slot-scope="scope">
  629. <a :href="scope.row.file" download>下载附件</a>
  630. </template>
  631. </el-table-column>
  632. </el-table>
  633. </el-form>
  634. <div slot="footer" class="dialog-footer">
  635. <el-button type="primary" @click="submitForm2">确 定</el-button>
  636. <el-button @click="cancel">取 消</el-button>
  637. </div>
  638. </el-dialog>
  639. </div>
  640. </template>
  641. <script>
  642. import {
  643. listWorkTask,
  644. getWorkTask,
  645. delWorkTask,
  646. addWorkTask,
  647. updateWorkTask,
  648. exportWorkTask,
  649. singProgress,
  650. moreProgress,
  651. uploadProgress,
  652. } from "@/api/workingArrangements/workTask";
  653. import {
  654. deptUser,
  655. allUser,
  656. getDept,
  657. getDeptList,
  658. } from "@/api/workingArrangements/workTask";
  659. import { getDicts } from "@/api/system/dict/data";
  660. import Treeselect from "@riophae/vue-treeselect";
  661. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  662. import { getDept2 } from "@/api/grassrootsregistration/bdglmeeting";
  663. import Cookies from "js-cookie";
  664. export default {
  665. name: "WorkTask",
  666. dicts: ["work_type"],
  667. components: { Treeselect },
  668. data() {
  669. return {
  670. // 遮罩层
  671. loading: true,
  672. // 导出遮罩层
  673. exportLoading: false,
  674. // 选中数组
  675. ids: [],
  676. // 非单个禁用
  677. single: true,
  678. // 非多个禁用
  679. multiple: true,
  680. // 显示搜索条件
  681. showSearch: true,
  682. // 总条数
  683. total: 0,
  684. // 工作任务表格数据
  685. workTaskList: [],
  686. // 弹出层标题
  687. title: "",
  688. // 是否显示弹出层
  689. open: false,
  690. // 显示进度录入框
  691. open1: false,
  692. // 显示进度查看框
  693. open2: false,
  694. // 显示多人进度查看框
  695. open3: false,
  696. // 查询参数
  697. queryParams: {
  698. pageNum: 1,
  699. pageSize: 10,
  700. name: null,
  701. peopleId: null,
  702. number: null,
  703. type: null,
  704. startTime: null,
  705. endTime: null,
  706. file: null,
  707. fileName: null,
  708. contents: null,
  709. adminId: null,
  710. unitId: null,
  711. unitName: null,
  712. createtime: null,
  713. updatetime: null,
  714. peopleName: null,
  715. unitName2: null,
  716. taskProgress: null,
  717. releaseUnit: null,
  718. executableUnit: null,
  719. },
  720. // 表单参数
  721. form: {},
  722. // 表单校验
  723. rules: {
  724. name: [
  725. { required: true, message: "任务名称不能为空", trigger: "blur" },
  726. ],
  727. number: [{ required: true, message: "编号不能为空", trigger: "blur" }],
  728. peopleName: [
  729. { required: true, message: "执行人不能为空", trigger: "blur" },
  730. ],
  731. // name: [{ required: true, message: "不能为空", trigger: "blur" }],
  732. adminId: {
  733. required: true,
  734. message: "发布单位不能为空",
  735. trigger: "blur",
  736. },
  737. unitId: {
  738. required: true,
  739. message: "执行单位不能为空",
  740. trigger: "blur",
  741. },
  742. type: { required: true, message: "计划类型不能为空", trigger: "blur" },
  743. startTime: {
  744. required: true,
  745. message: "开始时间不能为空",
  746. trigger: "blur",
  747. },
  748. endTime: {
  749. required: true,
  750. message: "结束时间不能为空",
  751. trigger: "blur",
  752. },
  753. },
  754. rules1: {
  755. // planProgress: [
  756. // { required: true, message: "请输入完成进度", trigger: "blur" },
  757. // ],
  758. },
  759. // 发布单位
  760. part: [],
  761. // 执行单位
  762. users: [],
  763. // 执行人
  764. executor: [],
  765. rylist: [],
  766. // 查询字典
  767. dictType: {
  768. dictType: "work_type",
  769. },
  770. ziDian: [],
  771. // 部门列表
  772. getdeptList: [],
  773. // 单人进度查看框
  774. singleTable: [],
  775. // 多人进度查看框
  776. moreTable: [],
  777. comstatus: 0,
  778. // 进度录入参数
  779. Progress: {
  780. schedule: "",
  781. file: "",
  782. remark: "",
  783. accomplishTime: "",
  784. taskId: "",
  785. id: "",
  786. },
  787. defaultTime: null,
  788. };
  789. },
  790. created() {
  791. this.getList();
  792. this.getdept();
  793. allUser().then((res) => {
  794. this.rylist = res.rows;
  795. });
  796. getDeptList().then((res) => {
  797. this.getdeptList = res.data;
  798. });
  799. this.getdict();
  800. this.chooseplan();
  801. this.selectPeo3();
  802. // this.defaultTime(){
  803. // }
  804. // this.startTime();
  805. },
  806. methods: {
  807. // startTime() {
  808. // this.timer = setInterval(() => {
  809. // var today = new Date();
  810. // var y = today.getFullYear();
  811. // var M = today.getMonth() + 1;
  812. // var d = today.getDate();
  813. // var h = today.getHours();
  814. // var m = today.getMinutes();
  815. // var s = today.getSeconds();
  816. // var w = today.getDay();
  817. // if (h < 10) {
  818. // h = "0" + h;
  819. // }
  820. // if (m < 10) {
  821. // m = "0" + m;
  822. // }
  823. // if (s < 10) {
  824. // s = "0" + s;
  825. // }
  826. // this.defaultTime = h + ":" + m + ":" + s;
  827. // }, 500); /* 每500毫秒执行一次,实现动态显示时间效果 */
  828. // },
  829. /** 进度录入按钮操作 */
  830. ViewProgress(row) {
  831. // this.reset();
  832. this.open1 = true;
  833. this.title = "进度录入";
  834. this.jinduId = row.id;
  835. singProgress(this.jinduId).then((res) => {
  836. console.log(res.data);
  837. this.Progress.id = res.data.workProgress.id;
  838. this.Progress.taskId = res.data.id;
  839. this.Progress.planProgress = res.data.workProgress.schedule;
  840. });
  841. },
  842. // 进度查看单人进度
  843. handleChakan(row) {
  844. this.reset();
  845. this.open2 = true;
  846. this.title = "进度查看";
  847. // 获取当前行的id
  848. // console.log(row.id);
  849. singProgress(row.id).then((res) => {
  850. console.log(res);
  851. this.singleTable = res.data;
  852. this.singleTable.planProgresses =
  853. this.singleTable.workProgress.schedule;
  854. this.Progress.id = this.singleTable.workProgress.id;
  855. this.singleTable.fileName = this.singleTable.workProgress.fileName;
  856. console.log(this.singleTable.fileName);
  857. // console.log(this.Progress.id);
  858. // this.singleTable.jindu=singleTable.planProgress.schedule
  859. // console.log(this.singleTable)
  860. });
  861. },
  862. // 多人进度查看
  863. handleChakan1(row) {
  864. this.reset();
  865. this.open3 = true;
  866. this.title = "进度查看";
  867. // 获取当前行的id
  868. moreProgress(row.id).then((res) => {
  869. // console.log(res)
  870. this.comstatus = 0;
  871. this.moreTable = res.data;
  872. console.log(this.moreTable);
  873. this.moreTable.workProgresses.forEach((item) => {
  874. this.comstatus +=
  875. item.schedule / this.moreTable.workProgresses.length;
  876. });
  877. });
  878. },
  879. /** 查询工作任务列表 */
  880. getList() {
  881. this.loading = true;
  882. listWorkTask(this.queryParams).then((response) => {
  883. this.workTaskList = response.rows;
  884. console.log(this.workTaskList);
  885. this.total = response.total;
  886. this.loading = false;
  887. });
  888. },
  889. // 取消按钮
  890. cancel() {
  891. this.open = false;
  892. this.comstatus = 0;
  893. this.reset();
  894. this.open1 = false;
  895. this.open2 = false;
  896. this.open3 = false;
  897. },
  898. // 表单重置
  899. reset() {
  900. this.form = {
  901. id: null,
  902. name: null,
  903. peopleId: null,
  904. number: null,
  905. type: null,
  906. startTime: null,
  907. endTime: null,
  908. file: null,
  909. fileName: null,
  910. remark: null,
  911. contents: null,
  912. adminId: null,
  913. unitId: null,
  914. unitName: null,
  915. createtime: null,
  916. updatetime: null,
  917. peopleName: null,
  918. unitName2: null,
  919. taskProgress: null,
  920. releaseUnit: null,
  921. executableUnit: null,
  922. };
  923. this.resetForm("form");
  924. },
  925. zidainType(item) {
  926. this.queryParams.type = item.dictValue;
  927. this.getList();
  928. // console.log(item)
  929. },
  930. // 发布单位选中触发
  931. selectPeo3(val) {
  932. getDept2().then((res) => {
  933. this.users = res.data;
  934. console.log(this.users);
  935. });
  936. this.queryParams.adminId = val.id;
  937. this.getZhuChi(this.queryParams.adminId);
  938. this.getList();
  939. },
  940. /** 搜索按钮操作 */
  941. handleQuery() {
  942. this.queryParams.pageNum = 1;
  943. this.getList();
  944. },
  945. /** 重置按钮操作 */
  946. resetQuery() {
  947. this.queryParams = {};
  948. this.resetForm("queryForm");
  949. this.handleQuery();
  950. this.getList();
  951. },
  952. // 多选框选中数据
  953. handleSelectionChange(selection) {
  954. this.ids = selection.map((item) => item.id);
  955. this.single = selection.length !== 1;
  956. this.multiple = !selection.length;
  957. },
  958. // 获取执行人
  959. getZhuChi(id) {
  960. deptUser(id).then((res) => {
  961. // this.renYuan = res.data;
  962. this.executor = res.data;
  963. console.log(this.executor);
  964. });
  965. },
  966. // 发布单位选中触发
  967. selectPeo(val) {
  968. this.form.adminId = val.id;
  969. // this.getZhuChi(this.form.adminId);
  970. },
  971. // 执行单位选中触发
  972. selectPeo1(val) {
  973. this.form.unitId = val.id;
  974. this.form.peopleName = "";
  975. this.getZhuChi(this.form.unitId);
  976. },
  977. // 查询计划类型
  978. getdict() {
  979. getDicts(this.dictType.dictType).then((res) => {
  980. this.ziDian = res.data;
  981. });
  982. },
  983. /** 新增按钮操作 */
  984. handleAdd() {
  985. this.reset();
  986. this.open = true;
  987. this.title = "添加工作任务";
  988. this.form.adminId = Cookies.get("deptId");
  989. this.form.username = Cookies.get("nickName");
  990. this.form.userId = Cookies.get("userId");
  991. var today = new Date();
  992. var y = today.getFullYear();
  993. var M = today.getMonth() + 1;
  994. var d = today.getDate();
  995. var h = today.getHours();
  996. var m = today.getMinutes();
  997. var s = today.getSeconds();
  998. var w = today.getDay();
  999. if (M < 10) {
  1000. M = "0" + M;
  1001. }
  1002. if (d < 10) {
  1003. d = "0" + d;
  1004. }
  1005. if (h < 10) {
  1006. h = "0" + h;
  1007. }
  1008. if (m < 10) {
  1009. m = "0" + m;
  1010. }
  1011. if (s < 10) {
  1012. s = "0" + s;
  1013. }
  1014. this.form.startTime = y + "-" + M + "-" + d + " " + h + ":" + m + ":" + s;
  1015. // 获取执行单位列表
  1016. getDept2().then((res) => {
  1017. // console.log(res,2)
  1018. this.users = res.data;
  1019. console.log(this.users);
  1020. });
  1021. },
  1022. /** 修改按钮操作 */
  1023. handleUpdate(row) {
  1024. this.reset();
  1025. getDept2().then((res) => {
  1026. // console.log(res,2)
  1027. this.users = res.data;
  1028. console.log(this.users);
  1029. });
  1030. const id = row.id || this.ids;
  1031. getWorkTask(id).then((response) => {
  1032. this.form = response.data;
  1033. this.form.type = parseInt(this.form.type);
  1034. // this.getDept2()
  1035. this.getZhuChi(this.form.unitId);
  1036. this.form.peopleName = this.form.peopleName.split(",").map(Number);
  1037. this.open = true;
  1038. this.title = "修改工作计划";
  1039. });
  1040. },
  1041. unit2Format(row, column) {
  1042. var deptName = "";
  1043. if (
  1044. parseInt(this.workTaskList[0].common) == 1 ||
  1045. this.workTaskList[0].common == 2
  1046. ) {
  1047. this.rylist.map((item) => {
  1048. row.peopleName.split(",").forEach((items, index) => {
  1049. console.log(items);
  1050. if (item.userId == items) {
  1051. // console.log(item.nickName)
  1052. deptName += item.nickName + " ";
  1053. }
  1054. });
  1055. });
  1056. } else if (parseInt(this.workTaskList[0].common) == 0) {
  1057. this.rylist.map((item) => {
  1058. row.peopleName.split(",").forEach((items, index) => {
  1059. if (item.userId == items) {
  1060. // console.log(item.nickName)
  1061. deptName += item.nickName + " ";
  1062. }
  1063. });
  1064. });
  1065. }
  1066. return deptName;
  1067. },
  1068. unit3Format(row, column) {
  1069. var deptName = "";
  1070. if (
  1071. parseInt(this.workTaskList[0].common) == 1 ||
  1072. this.workTaskList[0].common == 2
  1073. ) {
  1074. this.getdeptList.map((item) => {
  1075. if (item.deptId == row.adminId) {
  1076. deptName = item.deptName;
  1077. }
  1078. });
  1079. } else if (parseInt(this.workTaskList[0].common) == 0) {
  1080. this.getdeptList.map((item) => {
  1081. if (item.deptId == row.adminId) {
  1082. deptName = item.deptName;
  1083. }
  1084. });
  1085. }
  1086. return deptName;
  1087. },
  1088. unit4Format(row, column) {
  1089. var deptName = "";
  1090. this.ziDian.map((item) => {
  1091. if (item.dictSort == row.type) {
  1092. deptName = item.dictLabel;
  1093. }
  1094. });
  1095. return deptName;
  1096. },
  1097. // 选择计划
  1098. chooseplan() {
  1099. this.form.type = this.queryParams.type;
  1100. },
  1101. /** 提交按钮 */
  1102. submitForm() {
  1103. if (this.form.file) {
  1104. this.form.fileName = this.form.file[0].name;
  1105. this.form.file = this.form.file[0].url;
  1106. }
  1107. this.$refs["form"].validate((valid) => {
  1108. if (valid) {
  1109. if (this.form.adminId === this.form.unitId) {
  1110. alert("发布单位和执行单位不能相同");
  1111. } else {
  1112. this.form.peopleName = this.form.peopleName.join(",");
  1113. this.form.peopleId = this.form.peopleName;
  1114. console.log(this.form);
  1115. if (this.form.id != null) {
  1116. updateWorkTask(this.form).then((response) => {
  1117. this.$modal.msgSuccess("修改成功");
  1118. this.queryParams.type = "";
  1119. this.open = false;
  1120. this.getList();
  1121. });
  1122. } else {
  1123. addWorkTask(this.form).then((response) => {
  1124. this.$modal.msgSuccess("新增成功");
  1125. this.open = false;
  1126. this.getList();
  1127. });
  1128. }
  1129. }
  1130. }
  1131. });
  1132. // this.$refs["form"].validate((valid) => {
  1133. // if (valid) {
  1134. // this.form.peopleName = this.form.peopleName.join(",");
  1135. // this.form.peopleId = this.form.peopleName;
  1136. // console.log(this.form);
  1137. // if (this.form.id != null) {
  1138. // updateWorkTask(this.form).then((response) => {
  1139. // this.$modal.msgSuccess("修改成功");
  1140. // this.open = false;
  1141. // this.getList();
  1142. // });
  1143. // } else {
  1144. // addWorkTask(this.form).then((response) => {
  1145. // this.$modal.msgSuccess("新增成功");
  1146. // this.open = false;
  1147. // this.getList();
  1148. // });
  1149. // }
  1150. // }
  1151. // });
  1152. },
  1153. submitForm1() {
  1154. // console.log(this.Progress)
  1155. this.$refs["Progress"].validate((valid) => {
  1156. if (valid) {
  1157. this.Progress.taskId = this.jinduId;
  1158. this.Progress.schedule = this.Progress.planProgress;
  1159. if (this.Progress.file) {
  1160. this.Progress.fileName = this.Progress.file[0].name;
  1161. this.Progress.file = this.Progress.file[0].url;
  1162. }
  1163. console.log(this.Progress);
  1164. uploadProgress(this.Progress).then((res1) => {
  1165. this.$modal.msgSuccess("上传成功");
  1166. // this.Progress
  1167. this.reset();
  1168. this.open1 = false;
  1169. this.getList();
  1170. });
  1171. }
  1172. });
  1173. },
  1174. submitForm2() {
  1175. this.comstatus = 0;
  1176. this.open2 = false;
  1177. this.open3 = false;
  1178. },
  1179. /** 删除按钮操作 */
  1180. handleDelete(row) {
  1181. const ids = row.id || this.ids;
  1182. this.$modal
  1183. .confirm("是否确认删除?")
  1184. .then(function () {
  1185. return delWorkTask(ids);
  1186. })
  1187. .then(() => {
  1188. this.getList();
  1189. this.$modal.msgSuccess("删除成功");
  1190. })
  1191. .catch(() => {});
  1192. },
  1193. /** 导出按钮操作 */
  1194. handleExport() {
  1195. const queryParams = this.queryParams;
  1196. this.$modal
  1197. .confirm("是否确认导出所有工作任务数据项?")
  1198. .then(() => {
  1199. this.exportLoading = true;
  1200. return exportWorkTask(queryParams);
  1201. })
  1202. .then((response) => {
  1203. this.$download.name(response.msg);
  1204. this.exportLoading = false;
  1205. })
  1206. .catch(() => {});
  1207. },
  1208. // 发布单位接口
  1209. getdept() {
  1210. getDept().then((res) => {
  1211. this.part = res.data;
  1212. });
  1213. },
  1214. // 获取执行单位列表
  1215. getdeptlist() {
  1216. getDeptList().then((res) => {
  1217. this.ExecutableUnit = res.data;
  1218. console.log(this.ExecutableUnit);
  1219. });
  1220. },
  1221. // 选中执行人id
  1222. // choosedeptid(id) {
  1223. // console.log(id)
  1224. // this.form.unitId = id;
  1225. // deptUser(id).then((res) => {
  1226. // this.executor = res.data;
  1227. // });
  1228. // },
  1229. // 计划编号
  1230. planName() {
  1231. let date = new Date();
  1232. let year = date.getFullYear();
  1233. let month =
  1234. date.getMonth() + 1 <= 9
  1235. ? "0" + (date.getMonth() + 1)
  1236. : date.getMonth() + 1;
  1237. let day = date.getDate();
  1238. let hour = date.getHours() <= 9 ? "0" + date.getHours() : date.getHours();
  1239. let minute =
  1240. date.getMinutes <= 9 ? "0" + date.getMinutes() : date.getMinutes();
  1241. this.form.number = year + month + day + hour + minute;
  1242. console.log(111);
  1243. console.log(this.form.number);
  1244. },
  1245. // 获取发布单位id
  1246. issueunit(id) {
  1247. this.form.adminId = id;
  1248. },
  1249. },
  1250. };
  1251. </script>
  1252. <style>
  1253. .el-input__inner {
  1254. height: 36px;
  1255. background-color: #00365f;
  1256. color: #fff;
  1257. border: 1px solid white !important;
  1258. }
  1259. .el-select-dropdown {
  1260. background-color: white;
  1261. }
  1262. .el-dialog__wrapper .el-form-item__label {
  1263. color: white !important;
  1264. }
  1265. .el-dialog {
  1266. background-color: #004d86 !important;
  1267. }
  1268. .el-form-item__label {
  1269. width: 30%;
  1270. }
  1271. .el-textarea {
  1272. width: 70%;
  1273. }
  1274. .el-dialog__title {
  1275. color: white;
  1276. }
  1277. .el-dialog__header {
  1278. border-bottom: 1px solid #718a9d;
  1279. }
  1280. .el-textarea__inner {
  1281. width: 945px;
  1282. height: 104px;
  1283. }
  1284. .el-textarea__inner {
  1285. width: 940px;
  1286. height: 104px;
  1287. }
  1288. /* 表宽度 */
  1289. .el-input {
  1290. width: 200px;
  1291. }
  1292. .el-date-editor.el-input,
  1293. .el-date-editor.el-input__inner {
  1294. width: 200px;
  1295. }
  1296. /* 执行 */
  1297. #execute {
  1298. width: 510px;
  1299. /* width: auto; */
  1300. }
  1301. .el-input--suffix {
  1302. width: auto;
  1303. }
  1304. /* 上传附件样式 */
  1305. .el-icon-document {
  1306. padding: 3px 5px;
  1307. color: white;
  1308. }
  1309. .el-upload-list__item:hover {
  1310. background-color: #00365f;
  1311. }
  1312. /* 上传附件的删除按钮样式 */
  1313. .el-link--inner {
  1314. margin-left: 3px;
  1315. }
  1316. /* 弹框背景 */
  1317. .el-dialog {
  1318. background: #00365f;
  1319. }
  1320. .el-dialog__title {
  1321. color: white;
  1322. }
  1323. .el-input .el-input__inner {
  1324. background: rgba(0, 0, 0, 0);
  1325. }
  1326. /* 下拉框样式 */
  1327. .el-select-dropdown__wrap .el-scrollbar__view {
  1328. background-color: white;
  1329. }
  1330. /* 计划附件 */
  1331. .el-upload__tip {
  1332. position: absolute;
  1333. top: -5px;
  1334. width: 500px;
  1335. left: 100px;
  1336. color: white;
  1337. }
  1338. /* 上传附件样式 */
  1339. .el-icon-document {
  1340. padding: 3px 5px;
  1341. color: white;
  1342. }
  1343. .el-upload-list__item:hover {
  1344. background-color: #00365f;
  1345. }
  1346. /* 修改编号样式 */
  1347. .ipt .el-input__inner {
  1348. background-color: #004d86 !important;
  1349. }
  1350. /* 进度查看 */
  1351. .el-button--btlook.is-active,
  1352. .el-button--btlook:active {
  1353. background: #32a5d3;
  1354. border-color: #32a5d3;
  1355. color: #ffffff;
  1356. }
  1357. .el-button--btlook:focus,
  1358. .el-button--btlook:hover {
  1359. background: #32a5d3;
  1360. border-color: #32a5d3;
  1361. color: #ffffff;
  1362. }
  1363. .el-button--btlook {
  1364. width: 70px !important;
  1365. border: 1px solid transparent;
  1366. padding: 3px 8px;
  1367. font-size: 14px;
  1368. line-height: 1.5;
  1369. border-radius: 3px;
  1370. color: #fff;
  1371. background-color: #32a5d3;
  1372. }
  1373. .big .el-input__inner {
  1374. width: 940px;
  1375. }
  1376. /* 树形 */
  1377. .threeselects {
  1378. width: 200px;
  1379. }
  1380. .threeselects .vue-treeselect__input {
  1381. background-color: #004d86;
  1382. /* color: white; */
  1383. }
  1384. .el-form-item__content {
  1385. /* color: white; */
  1386. border-bottom: 1px solid #004d86;
  1387. }
  1388. .vue-treeselect__control {
  1389. background-color: #004d86;
  1390. border-bottom: 1px solid white;
  1391. /* color: whi; */
  1392. /* color: white; */
  1393. }
  1394. .vue-treeselect__placeholder {
  1395. color: white;
  1396. }
  1397. .change_plan_type .el-input__inner {
  1398. width: 200px;
  1399. }
  1400. /* 表格样式 */
  1401. .el-table__empty-block {
  1402. background-color: #004d86;
  1403. }
  1404. .el-table {
  1405. background-color: #004d86;
  1406. }
  1407. .comtimer .el-input__inner {
  1408. width: 940px;
  1409. }
  1410. /* 备注 */
  1411. .thistext {
  1412. color: white;
  1413. width: 940px;
  1414. border: 1px solid #fff;
  1415. border-radius: 4px;
  1416. min-height: 35px;
  1417. height: auto !important;
  1418. line-height: 35px;
  1419. text-indent: 1em;
  1420. margin-bottom: 20px;
  1421. }
  1422. /* 完成进度 */
  1423. .complue .el-input__inner {
  1424. width: 940px;
  1425. }
  1426. .complue {
  1427. width: 940px;
  1428. }
  1429. /* 进度 */
  1430. .jinduProgress {
  1431. width: 740px;
  1432. position: absolute;
  1433. left: 210px;
  1434. top: 5px;
  1435. }
  1436. /* 表格 */
  1437. .tabless .el-table__row {
  1438. background-color: #004d86;
  1439. }
  1440. .has-gutter {
  1441. background-color: #004d86;
  1442. }
  1443. .el-dialog__body .el-table tr:nth-child(odd) {
  1444. background-color: #004d86 !important;
  1445. }
  1446. .el-dialog__body .el-table tr:nth-child(even) {
  1447. background-color: #004d86 !important;
  1448. }
  1449. .el-dialog__body table td {
  1450. border-bottom: 1px solid white !important;
  1451. }
  1452. .el-dialog__body .el-table th.is-leaf {
  1453. border: 1px solid white !important;
  1454. }
  1455. /* 下载按钮 */
  1456. .downloadfile {
  1457. border: 1px solid white;
  1458. display: inline-block;
  1459. width: 100px;
  1460. height: 33px;
  1461. border-radius: 5px;
  1462. line-height: 33px;
  1463. text-align: center;
  1464. }
  1465. .el-table__row {
  1466. border-bottom: 1px solid white;
  1467. }
  1468. .el-input-number__increase {
  1469. background-color: #004d86;
  1470. }
  1471. .el-input-number__decrease {
  1472. background-color: #004d86;
  1473. }
  1474. /* 进度条百分比 */
  1475. .el-progress-bar__innerText {
  1476. color: #004d86;
  1477. /* font-weight: 200; */
  1478. }
  1479. .el-progress-bar__outer {
  1480. background-color: rgba(25, 98, 153, 1);
  1481. }
  1482. /* 上下箭头 */
  1483. .el-icon-arrow-up,
  1484. .el-icon-arrow-down {
  1485. color: white;
  1486. }
  1487. .vue-treeselect__single-value {
  1488. color: white;
  1489. }
  1490. /* 文字多余部分省略 */
  1491. .el-table_1_column_8 .cell {
  1492. overflow: hidden;
  1493. text-overflow: ellipsis;
  1494. white-space: nowrap;
  1495. }
  1496. .el-table__empty-block {
  1497. border-bottom: 1px solid white;
  1498. }
  1499. .vue-treeselect__control {
  1500. background-color: transparent !important;
  1501. }
  1502. .threeselects .vue-treeselect__input {
  1503. background-color: transparent !important;
  1504. }
  1505. .el-table__body-wrapper .el-table__empty-block {
  1506. border: none !important;
  1507. }
  1508. .vue-treeselect__placeholder {
  1509. color: #ccc;
  1510. }
  1511. .el-form-item__content {
  1512. border-bottom: none !important;
  1513. }
  1514. ::v-deep .el-input__inner {
  1515. border: 1px solid white !important;
  1516. }
  1517. .el-select-dropdown__item.selected {
  1518. color: #000;
  1519. font-weight: bold;
  1520. }
  1521. .vue-treeselect__menu {
  1522. color: #606266;
  1523. }
  1524. </style>