index.vue 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184
  1. <template>
  2. <div class="app-container">
  3. <!-- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
  4. <el-form-item prop="unitName" > -->
  5. <!-- <el-select v-model="queryParams.unitName" placeholder="请选择单位名称" clearable size="small">
  6. <el-option label="请选择字典生成" value="" />
  7. </el-select> -->
  8. <!-- <treeselect
  9. v-model="queryParams.unitName"
  10. :options="userss"
  11. placeholder="请选择到访单位"
  12. class="threeselects waibudaofang"
  13. @select="selectPeo"
  14. />
  15. </el-form-item> -->
  16. <!-- <el-form-item label="单位id" prop="unitId">
  17. <el-input
  18. v-model="queryParams.unitId"
  19. placeholder="请输入单位id"
  20. clearable
  21. size="small"
  22. @keyup.enter.native="handleQuery"
  23. />
  24. </el-form-item> -->
  25. <!-- <el-form-item label="开始时间" prop="startTime">
  26. <el-date-picker clearable size="small"
  27. v-model="queryParams.startTime"
  28. type="date"
  29. value-format="yyyy-MM-dd"
  30. placeholder="选择开始时间">
  31. </el-date-picker>
  32. </el-form-item>
  33. <el-form-item label="结束时间" prop="endTime">
  34. <el-date-picker clearable size="small"
  35. v-model="queryParams.endTime"
  36. type="date"
  37. value-format="yyyy-MM-dd"
  38. placeholder="选择结束时间">
  39. </el-date-picker>
  40. </el-form-item> -->
  41. <!-- <el-form-item prop="createName">
  42. <el-input
  43. v-model="queryParams.createName"
  44. placeholder="请输入创建人姓名"
  45. clearable
  46. size="small"
  47. @keyup.enter.native="handleQuery"
  48. />
  49. </el-form-item> -->
  50. <!-- <el-form-item label="创建人id" prop="createId">
  51. <el-input
  52. v-model="queryParams.createId"
  53. placeholder="请输入创建人id"
  54. clearable
  55. size="small"
  56. @keyup.enter.native="handleQuery"
  57. />
  58. </el-form-item> -->
  59. <!-- <el-form-item prop="filePath">
  60. <el-input
  61. v-model="queryParams.filePath"
  62. placeholder="请输入文件路径"
  63. clearable
  64. size="small"
  65. @keyup.enter.native="handleQuery"
  66. />
  67. </el-form-item> -->
  68. <!-- <el-form-item prop="fileName">
  69. <el-input
  70. v-model="queryParams.fileName"
  71. placeholder="请输入文件名称"
  72. clearable
  73. size="small"
  74. @keyup.enter.native="handleQuery"
  75. />
  76. </el-form-item>
  77. <el-form-item prop="recorder">
  78. <el-input
  79. v-model="queryParams.recorder"
  80. placeholder="请输入记录人"
  81. clearable
  82. size="small"
  83. @keyup.enter.native="handleQuery"
  84. />
  85. </el-form-item> -->
  86. <!-- <el-form-item label="记录人id" prop="recorderId">
  87. <el-input
  88. v-model="queryParams.recorderId"
  89. placeholder="请输入记录人id"
  90. clearable
  91. size="small"
  92. @keyup.enter.native="handleQuery"
  93. />
  94. </el-form-item> -->
  95. <!-- <el-form-item prop="participants">
  96. <el-input
  97. v-model="queryParams.participants"
  98. placeholder="请输入参加人"
  99. clearable
  100. size="small"
  101. @keyup.enter.native="handleQuery"
  102. />
  103. </el-form-item> -->
  104. <!-- <el-form-item label="参加人id" prop="participantsId">
  105. <el-input
  106. v-model="queryParams.participantsId"
  107. placeholder="请输入参加人id"
  108. clearable
  109. size="small"
  110. @keyup.enter.native="handleQuery"
  111. />
  112. </el-form-item> -->
  113. <!-- <el-form-item prop="organizer">
  114. <el-input
  115. v-model="queryParams.organizer"
  116. placeholder="请输入组织人"
  117. clearable
  118. size="small"
  119. @keyup.enter.native="handleQuery"
  120. />
  121. </el-form-item> -->
  122. <!-- <el-form-item label="组织人id" prop="organizerId">
  123. <el-input
  124. v-model="queryParams.organizerId"
  125. placeholder="请输入组织人id"
  126. clearable
  127. size="small"
  128. @keyup.enter.native="handleQuery"
  129. />
  130. </el-form-item> -->
  131. <!-- <el-form-item> -->
  132. <!-- <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> -->
  133. <!-- <el-button icon="el-icon-refresh" size="btr" @click="resetQuery">重置</el-button>
  134. </el-form-item>
  135. </el-form> -->
  136. <el-row :gutter="10" class="mb8">
  137. <el-col :span="1.5">
  138. <el-button
  139. type="primary"
  140. plain
  141. icon="el-icon-plus"
  142. size="mini"
  143. @click="handleAdd"
  144. v-hasPermi="['thought:parliament:add']"
  145. >新增</el-button
  146. >
  147. </el-col>
  148. <el-col :span="1.5">
  149. <el-button
  150. type="success"
  151. plain
  152. icon="el-icon-edit"
  153. size="mini"
  154. :disabled="single"
  155. @click="handleUpdate"
  156. v-hasPermi="['thought:parliament:edit']"
  157. >修改</el-button
  158. >
  159. </el-col>
  160. <el-col :span="1.5">
  161. <el-button
  162. type="danger"
  163. plain
  164. icon="el-icon-delete"
  165. size="mini"
  166. :disabled="multiple"
  167. @click="handleDelete"
  168. v-hasPermi="['thought:parliament:remove']"
  169. >删除</el-button
  170. >
  171. </el-col>
  172. <el-col :span="1.5">
  173. <!-- <el-button
  174. type="warning"
  175. plain
  176. icon="el-icon-download"
  177. size="mini"
  178. :loading="exportLoading"
  179. @click="handleExport"
  180. v-hasPermi="['thought:parliament:export']"
  181. >导出</el-button> -->
  182. </el-col>
  183. <right-toolbar
  184. :showSearch.sync="showSearch"
  185. @queryTable="getList"
  186. ></right-toolbar>
  187. </el-row>
  188. <el-table
  189. v-loading="loading"
  190. :data="parliamentList"
  191. @selection-change="handleSelectionChange"
  192. >
  193. <el-table-column type="selection" width="55" align="center" />
  194. <!-- <el-table-column label="主键id" align="center" prop="id" /> -->
  195. <el-table-column label="序号" type="index" width="50" align="center" />
  196. <!-- <el-table-column label="单位名称" align="center" prop="unitName" /> -->
  197. <!-- <el-table-column label="单位id" align="center" prop="unitId" /> -->
  198. <!-- <el-table-column label="创建人姓名" align="center" prop="createName" /> -->
  199. <!-- <el-table-column label="创建人id" align="center" prop="createId" /> -->
  200. <!-- <el-table-column label="文件路径" align="center" prop="filePath" /> -->
  201. <!-- <el-table-column label="文件名称" align="center" prop="fileName" show-overflow-tooltip/> -->
  202. <el-table-column
  203. label="议会主题"
  204. align="center"
  205. prop="talkTheme"
  206. show-overflow-tooltip
  207. />
  208. <el-table-column
  209. label="会议内容"
  210. align="center"
  211. prop="talkContent"
  212. show-overflow-tooltip
  213. >
  214. <template slot-scope="scope">
  215. <span>{{ onEditor(scope.row.talkContent) }}</span>
  216. </template>
  217. </el-table-column>
  218. <el-table-column
  219. label="开始时间"
  220. align="center"
  221. prop="startTime"
  222. width="180"
  223. >
  224. <template slot-scope="scope">
  225. <span>{{ parseTime(scope.row.startTime, "{y}-{m}-{d}") }}</span>
  226. </template>
  227. </el-table-column>
  228. <el-table-column label="组织人" align="center" prop="organizer" />
  229. <el-table-column
  230. label="参加人"
  231. align="center"
  232. prop="participants"
  233. show-overflow-tooltip
  234. :formatter="unit2Format"
  235. />
  236. <!-- <el-table-column label="参加人id" align="center" prop="participantsId" /> -->
  237. <el-table-column
  238. label="记录人"
  239. align="center"
  240. prop="recorder"
  241. show-overflow-tooltip
  242. />
  243. <!-- <el-table-column label="记录人id" align="center" prop="recorderId" /> -->
  244. <!-- <el-table-column label="组织人id" align="center" prop="organizerId" /> -->
  245. <el-table-column
  246. label="结束时间"
  247. align="center"
  248. prop="endTime"
  249. width="180"
  250. >
  251. <template slot-scope="scope">
  252. <span>{{ parseTime(scope.row.endTime, "{y}-{m}-{d}") }}</span>
  253. </template>
  254. </el-table-column>
  255. <el-table-column
  256. label="操作"
  257. align="center"
  258. class-name="small-padding fixed-width"
  259. >
  260. <template slot-scope="scope">
  261. <el-button
  262. size="btk"
  263. type="text"
  264. @click="handlelook(scope.row)"
  265. v-hasPermi="['thought:parliament:edit']"
  266. >查看</el-button
  267. >
  268. <el-button
  269. size="btu"
  270. type="text"
  271. @click="handleUpdate(scope.row)"
  272. v-hasPermi="['thought:parliament:edit']"
  273. >修改</el-button
  274. >
  275. <el-button
  276. size="btd"
  277. type="text"
  278. @click="handleDelete(scope.row)"
  279. v-hasPermi="['thought:parliament:remove']"
  280. >删除</el-button
  281. >
  282. </template>
  283. </el-table-column>
  284. </el-table>
  285. <pagination
  286. v-show="total > 0"
  287. :total="total"
  288. :page.sync="queryParams.pageNum"
  289. :limit.sync="queryParams.pageSize"
  290. @pagination="getList"
  291. />
  292. <!-- 添加或修改党委议教会对话框 -->
  293. <el-dialog
  294. :title="title"
  295. :visible.sync="open"
  296. width="1080px"
  297. append-to-body
  298. :close-on-click-modal="false"
  299. >
  300. <el-form
  301. ref="form"
  302. :model="form"
  303. :rules="rules"
  304. label-width="100px"
  305. :inline="true"
  306. >
  307. <!-- <el-form-item label="单位名称" prop="unitName">
  308. <el-select v-model="form.unitName" placeholder="请选择单位名称">
  309. <el-option label="请选择字典生成" value="" />
  310. </el-select>
  311. </el-form-item> -->
  312. <div class="jiben">基本信息</div>
  313. <el-form-item prop="talkTheme" label="议会主题">
  314. <el-input v-model="form.talkTheme" placeholder="请输入内容" />
  315. </el-form-item>
  316. <el-form-item label="开始时间" prop="startTime">
  317. <el-date-picker
  318. clearable
  319. size="small"
  320. editable
  321. v-model="form.startTime"
  322. type="date"
  323. value-format="yyyy-MM-dd"
  324. placeholder="选择开始时间"
  325. >
  326. </el-date-picker>
  327. </el-form-item>
  328. <el-form-item label="结束时间" prop="endTime" label-width="115px">
  329. <el-date-picker
  330. editable
  331. clearable
  332. size="small"
  333. v-model="form.endTime"
  334. type="date"
  335. value-format="yyyy-MM-dd"
  336. placeholder="选择结束时间"
  337. >
  338. </el-date-picker>
  339. </el-form-item>
  340. <!-- <el-form-item prop="unitName" label="单位名称"> -->
  341. <!-- <el-input
  342. v-model="queryParams.unitId"
  343. placeholder="请输入单位"
  344. clearable
  345. size="small"
  346. @keyup.enter.native="handleQuery"
  347. /> -->
  348. <!-- <treeselect
  349. v-model="form.unitName"
  350. :options="users"
  351. placeholder="请选择到访单位"
  352. class="threeselects"
  353. @select="selectPeo1"
  354. />
  355. </el-form-item> -->
  356. <!-- <el-form-item label="单位id" prop="unitId">
  357. <el-input v-model="form.unitId" placeholder="请输入单位id" />
  358. </el-form-item> -->
  359. <!-- <el-form-item label="创建人姓名" prop="createName">
  360. <el-input v-model="form.createName" placeholder="请输入创建人姓名" />
  361. </el-form-item> -->
  362. <!-- <el-form-item label="创建人id" prop="createId">
  363. <el-input v-model="form.createId" placeholder="请输入创建人id" />
  364. </el-form-item> -->
  365. <!-- <el-form-item label="文件路径" prop="filePath">
  366. <el-input v-model="form.filePath" placeholder="请输入文件路径" />
  367. </el-form-item>
  368. <el-form-item label="文件名称" prop="fileName">
  369. <el-input v-model="form.fileName" placeholder="请输入文件名称" />
  370. </el-form-item> -->
  371. <el-form-item label="组 织 人" prop="organizer">
  372. <!-- <el-input v-model="form." placeholder="请输入组织人" /> -->
  373. <el-select
  374. filterable
  375. v-model="form.organizer"
  376. ref="createName"
  377. placeholder="请选择组织人"
  378. >
  379. <el-option
  380. v-for="item in executor"
  381. :key="item.id"
  382. :label="item.name"
  383. :value="item.name"
  384. @click.native="zuzhiPeople(item.id)"
  385. />
  386. </el-select>
  387. </el-form-item>
  388. <el-form-item label="记 录 人" prop="recorder">
  389. <!-- <el-input v-model="form.recorder" placeholder="请输入记录人" /> -->
  390. <el-select
  391. v-model="form.recorder"
  392. ref="recorder"
  393. placeholder="请选择记录人"
  394. filterable
  395. >
  396. <el-option
  397. v-for="item in recodeexecutor"
  398. :key="item.id"
  399. :label="item.name"
  400. :value="item.name"
  401. @click.native="jiluPeople(item.id)"
  402. />
  403. </el-select>
  404. </el-form-item>
  405. <!-- <el-form-item label="记录人id" prop="recorderId">
  406. <el-input v-model="form.recorderId" placeholder="请输入记录人id" />
  407. </el-form-item> -->
  408. <!-- <el-form-item label="参加人" prop="participants">
  409. <el-input v-model="form.participants" placeholder="请输入参加人" />
  410. </el-form-item> -->
  411. <el-form-item label="参 加 人" prop="participants" label-width="100px">
  412. <div>
  413. <!-- <el-select
  414. multiple
  415. v-model="form.participants"
  416. placeholder="请选择参加人"
  417. id="execute"
  418. ref="peoplenames"
  419. class="canjiaren"
  420. >
  421. <el-option
  422. v-for="item in executor"
  423. :key="item.deptId"
  424. :label="item.nickName"
  425. :value="item.userId"
  426. @click.native="returnExecutor(item.deptId, item.nickName)"
  427. />
  428. </el-select> -->
  429. <el-select
  430. v-model="form.participants"
  431. ref="participants"
  432. placeholder="请选择参加人"
  433. class="canjiaren"
  434. multiple
  435. filterable
  436. >
  437. <el-option
  438. v-for="item in executor"
  439. :key="item.id"
  440. :label="item.name"
  441. :value="item.id"
  442. @click.native="returnExecutor(item.id, item.name)"
  443. />
  444. </el-select>
  445. </div>
  446. </el-form-item>
  447. <!-- <el-form-item label="参加人id" prop="participantsId">
  448. <el-input v-model="form.participantsId" placeholder="请输入参加人id" />
  449. </el-form-item> -->
  450. <!-- <el-form-item label="组织人id" prop="organizerId">
  451. <el-input v-model="form.organizerId" placeholder="请输入组织人id" />
  452. </el-form-item> -->
  453. <div class="jiben">会议内容</div>
  454. <el-form-item>
  455. <!-- <editor v-model="form.talkContent" :min-height="192"/> -->
  456. <quill-editor
  457. class="quill-editor"
  458. ref="myTextEditor"
  459. v-model="form.talkContent"
  460. style="
  461. height: 150px;
  462. width: 1010px;
  463. margin-left: 0px;
  464. color: white;
  465. margin-bottom: 60px;
  466. "
  467. ></quill-editor>
  468. </el-form-item>
  469. <div class="jiben">附件</div>
  470. <el-form-item>
  471. <FileUpload v-model="form.fileName" />
  472. </el-form-item>
  473. <!-- <a :href="form.filePath" download class="downloadfile">下载附件</a> -->
  474. </el-form>
  475. <div slot="footer" class="dialog-footer">
  476. <el-button type="primary" @click="submitForm">确 定</el-button>
  477. <el-button @click="cancel" size="btn">取 消</el-button>
  478. </div>
  479. </el-dialog>
  480. <!-- 查看按钮操作 -->
  481. <el-dialog
  482. :title="title1"
  483. :visible.sync="open1"
  484. width="1080px"
  485. append-to-body
  486. :close-on-click-modal="false"
  487. >
  488. <el-form
  489. ref="form"
  490. :model="form1"
  491. :rules="rules"
  492. label-width="100px"
  493. :inline="true"
  494. >
  495. <div class="jiben">基本信息</div>
  496. <el-form-item prop="talkTheme" label="议会主题">
  497. <el-input
  498. v-model="form1.talkTheme"
  499. placeholder="请输入内容"
  500. disabled
  501. />
  502. </el-form-item>
  503. <el-form-item label="开始时间" prop="startTime">
  504. <el-date-picker
  505. clearable
  506. size="small"
  507. disabled
  508. editable
  509. v-model="form1.startTime"
  510. type="date"
  511. value-format="yyyy-MM-dd"
  512. placeholder="选择开始时间"
  513. >
  514. </el-date-picker>
  515. </el-form-item>
  516. <el-form-item label="结束时间" prop="endTime" label-width="115px">
  517. <el-date-picker
  518. editable
  519. clearable
  520. size="small"
  521. disabled
  522. v-model="form1.endTime"
  523. type="date"
  524. value-format="yyyy-MM-dd"
  525. placeholder="选择结束时间"
  526. >
  527. </el-date-picker>
  528. </el-form-item>
  529. <el-form-item label="组 织 人" prop="organizer">
  530. <el-select
  531. disabled
  532. filterable
  533. v-model="form1.organizer"
  534. ref="createName"
  535. placeholder="请选择组织人"
  536. >
  537. <el-option
  538. v-for="item in executor"
  539. :key="item.id"
  540. :label="item.name"
  541. :value="item.name"
  542. @click.native="zuzhiPeople(item.id)"
  543. />
  544. </el-select>
  545. </el-form-item>
  546. <el-form-item label="记 录 人" prop="recorder">
  547. <!-- <el-input v-model="form.recorder" placeholder="请输入记录人" /> -->
  548. <el-select
  549. disabled
  550. v-model="form1.recorder"
  551. ref="recorder"
  552. placeholder="请选择记录人"
  553. filterable
  554. >
  555. <el-option
  556. v-for="item in recodeexecutor"
  557. :key="item.id"
  558. :label="item.name"
  559. :value="item.name"
  560. @click.native="jiluPeople(item.id)"
  561. />
  562. </el-select>
  563. </el-form-item>
  564. <el-form-item label="参 加 人" prop="participants" label-width="100px">
  565. <div>
  566. <el-select
  567. v-model="form1.participants"
  568. ref="participants"
  569. placeholder="请选择参加人"
  570. class="canjiaren"
  571. multiple
  572. filterable
  573. disabled
  574. >
  575. <el-option
  576. v-for="item in executor"
  577. :key="item.id"
  578. :label="item.name"
  579. :value="item.id"
  580. @click.native="returnExecutor(item.id, item.name)"
  581. />
  582. </el-select>
  583. </div>
  584. </el-form-item>
  585. <div class="jiben">会议内容</div>
  586. <el-form-item>
  587. <!-- <div class="thistext">{{onEditor(form1.talkContent)}}</div> -->
  588. <quill-editor
  589. class="quill-editor"
  590. ref="myTextEditor"
  591. v-model="form1.talkContent"
  592. style="
  593. height: 150px;
  594. width: 1010px;
  595. margin-left: 0px;
  596. color: white;
  597. margin-bottom: 60px;
  598. "
  599. ></quill-editor>
  600. </el-form-item>
  601. <div class="jiben">附件</div>
  602. <el-form-item>
  603. <span class="filename">{{ form1.fileName }}</span>
  604. <a
  605. :href="form1.filePath"
  606. :download="form1.fileName"
  607. title="下载"
  608. style="color: white; margin-left: 10px"
  609. class="downloadfile"
  610. >下载附件</a
  611. >
  612. <!-- <FileUpload disabled v-model="form1.fileName" /> -->
  613. <!-- <div style="color:white;width:600px;height:30px;border:1px solid white;line-height:30px">{{form1.fileName}}</div> -->
  614. </el-form-item>
  615. </el-form>
  616. <div slot="footer" class="dialog-footer">
  617. <el-button type="primary" @click="open1 = false">关 闭</el-button>
  618. <!-- <el-button @click="open1=false" size="btn">取 消</el-button> -->
  619. </div>
  620. </el-dialog>
  621. </div>
  622. </template>
  623. <script>
  624. import {
  625. listParliament,
  626. getParliament,
  627. delParliament,
  628. addParliament,
  629. updateParliament,
  630. exportParliament,
  631. } from "@/api/thought/parliament";
  632. // 树形
  633. import Treeselect from "@riophae/vue-treeselect";
  634. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  635. // 单位
  636. import { getDept2, getAll } from "@/api/grassrootsregistration/bdglmeeting";
  637. // import { getDept2, getAll,getWeiShu } from "@/api/grassrootsregistration/bdglmeeting";
  638. export default {
  639. name: "Parliament",
  640. components: {
  641. Treeselect,
  642. },
  643. data() {
  644. return {
  645. // 遮罩层
  646. loading: true,
  647. // 导出遮罩层
  648. exportLoading: false,
  649. // 选中数组
  650. ids: [],
  651. // 非单个禁用
  652. single: true,
  653. // 非多个禁用
  654. multiple: true,
  655. // 显示搜索条件
  656. showSearch: true,
  657. // 总条数
  658. total: 0,
  659. // 党委议教会表格数据
  660. parliamentList: [],
  661. // 弹出层标题
  662. title: "",
  663. // 是否显示弹出层
  664. open: false,
  665. // 查询参数
  666. queryParams: {
  667. pageNum: 1,
  668. pageSize: 10,
  669. unitName: null,
  670. unitId: null,
  671. startTime: null,
  672. endTime: null,
  673. createName: null,
  674. createId: null,
  675. filePath: null,
  676. fileName: null,
  677. talkContent: null,
  678. recorder: null,
  679. recorderId: null,
  680. participants: null,
  681. participantsId: null,
  682. organizer: null,
  683. organizerId: null,
  684. talkTheme: null,
  685. },
  686. // 表单参数
  687. form: {},
  688. // 表单校验
  689. rules: {
  690. talkTheme: [
  691. { required: true, message: "议会主题不能为空", trigger: "blur" },
  692. ],
  693. startTime: [
  694. { required: true, message: "开始时间不能为空", trigger: "blur" },
  695. ],
  696. endTime: [
  697. { required: true, message: "结束时间不能为空", trigger: "blur" },
  698. ],
  699. organizer: [
  700. { required: true, message: "组织人不能为空", trigger: "blur" },
  701. ],
  702. recorder: [
  703. { required: true, message: "记录人不能为空", trigger: "blur" },
  704. ],
  705. participants: [
  706. { required: true, message: "参加人不能为空", trigger: "blur" },
  707. ],
  708. },
  709. // 获取单位列表
  710. users: [],
  711. // 获取单位列表
  712. userss: [],
  713. unitName: "",
  714. // 组织人
  715. executor: [],
  716. // 记录人
  717. recodeexecutor: [],
  718. form1: {},
  719. open1: false,
  720. title1: "",
  721. };
  722. },
  723. created() {
  724. this.getList();
  725. getDept2().then((res) => {
  726. // console.log(res,2)
  727. this.userss = res.data;
  728. // console.log(this.userss);
  729. });
  730. this.getSuoYou();
  731. },
  732. methods: {
  733. // 获取执行人
  734. unit2Format(row) {
  735. var deptName = "";
  736. this.recodeexecutor.map((item) => {
  737. // console.log(row.talkPeople)
  738. row.participants.split(",").forEach((items, index) => {
  739. // console.log(item.id,item.name)
  740. if (item.id == items) {
  741. deptName += item.name + " ";
  742. }
  743. });
  744. });
  745. return deptName;
  746. },
  747. zuzhiPeople(id) {
  748. // console.log(id)
  749. this.form.organizerId = id;
  750. },
  751. jiluPeople(id) {
  752. this.form.recorderId = id;
  753. // console.log(id)
  754. },
  755. // 获取所有人员
  756. getSuoYou() {
  757. getAll().then((response) => {
  758. this.executors = response.rows;
  759. // 添加的人员
  760. this.executor = response.rows;
  761. // 记录人
  762. this.recodeexecutor = response.rows;
  763. // console.log(this.executors);
  764. });
  765. },
  766. // 转义视图不加标签
  767. onEditor(str) {
  768. //可以在这里进行对应的操作 quill为富文本对象,html为富文本对象内内容由html标签组成,text为quill内容里面的所有文本内容
  769. if (str) {
  770. var str = str.replace(/<\/?[^>]*>/g, ""); //去除HTML tag
  771. str = str.replace(/[ | ]*\n/g, "\n"); //去除行尾空白
  772. return str;
  773. }
  774. },
  775. selectPeo(val) {
  776. // console.log(val)
  777. this.queryParams.unitName = val.label;
  778. this.getList();
  779. },
  780. // 到访单位选中触发
  781. selectPeo1(val) {
  782. // console.log(val)
  783. this.unitName = val.label;
  784. this.form.unitId = val.id;
  785. // console.log(this.unitName)
  786. // 获取执行单位列表
  787. // getDept2().then((res) => {
  788. // // console.log(res,2)
  789. // this.users = res.data;
  790. // // console.log(this.users);
  791. // });
  792. // this.queryParams.unitId = val.id;
  793. // this.queryParams.peopleName = "";
  794. // this.queryParams.unitName = val.label;
  795. // // console.log(this.queryParams);
  796. // this.getZhuChi(this.queryParams.unitId);
  797. // this.getList();
  798. },
  799. /** 查询党委议教会列表 */
  800. getList() {
  801. this.loading = true;
  802. listParliament(this.queryParams).then((response) => {
  803. this.parliamentList = response.rows;
  804. this.total = response.total;
  805. this.loading = false;
  806. });
  807. },
  808. // 取消按钮
  809. cancel() {
  810. this.open = false;
  811. this.reset();
  812. },
  813. // 表单重置
  814. reset() {
  815. this.form = {
  816. id: null,
  817. unitName: null,
  818. unitId: null,
  819. startTime: null,
  820. endTime: null,
  821. createTime: null,
  822. updateTime: null,
  823. createName: null,
  824. createId: null,
  825. filePath: null,
  826. fileName: null,
  827. talkContent: null,
  828. recorder: null,
  829. recorderId: null,
  830. participants: null,
  831. participantsId: null,
  832. organizer: null,
  833. organizerId: null,
  834. talkTheme: null,
  835. };
  836. this.resetForm("form");
  837. },
  838. /** 搜索按钮操作 */
  839. handleQuery() {
  840. this.queryParams.pageNum = 1;
  841. this.getList();
  842. },
  843. /** 重置按钮操作 */
  844. resetQuery() {
  845. this.queryParams = {};
  846. this.resetForm("queryForm");
  847. this.handleQuery();
  848. this.getList();
  849. },
  850. // 多选框选中数据
  851. handleSelectionChange(selection) {
  852. this.ids = selection.map((item) => item.id);
  853. this.single = selection.length !== 1;
  854. this.multiple = !selection.length;
  855. },
  856. /** 新增按钮操作 */
  857. handleAdd() {
  858. this.reset();
  859. this.open = true;
  860. this.title = "添加党委议教会";
  861. getDept2().then((res) => {
  862. // console.log(res,2)
  863. this.users = res.data;
  864. // console.log(this.users);
  865. });
  866. },
  867. /** 修改按钮操作 */
  868. handleUpdate(row) {
  869. this.reset();
  870. const id = row.id || this.ids;
  871. getParliament(id).then((response) => {
  872. this.form = response.data;
  873. this.form.participants = this.form.participants.split(",").map(Number);
  874. this.open = true;
  875. this.title = "修改党委议教会";
  876. });
  877. },
  878. // 查看按钮操作
  879. handlelook(row) {
  880. console.log(row);
  881. this.reset();
  882. const id = row.id || this.ids;
  883. getParliament(id).then((response) => {
  884. this.form1 = response.data;
  885. this.form1.participants = this.form1.participants
  886. .split(",")
  887. .map(Number);
  888. this.form1.filePath =
  889. process.env.VUE_APP_BASE_API + this.form1.filePath;
  890. console.log(this.form1);
  891. this.open1 = true;
  892. this.title1 = "查看党委议教会";
  893. });
  894. },
  895. /** 提交按钮 */
  896. submitForm() {
  897. if (this.form.fileName) {
  898. this.form.filePath = this.form.fileName[0].url;
  899. this.form.fileName = this.form.fileName[0].name;
  900. }
  901. // console.log(this.form)
  902. this.form.participants = this.form.participants.join(",");
  903. this.form.participantsId = this.form.participants;
  904. // console.log(this.form)
  905. this.form.unitName = this.unitName;
  906. this.$refs["form"].validate((valid) => {
  907. if (valid) {
  908. if (this.form.id != null) {
  909. updateParliament(this.form).then((response) => {
  910. this.$modal.msgSuccess("修改成功");
  911. this.open = false;
  912. this.getList();
  913. });
  914. } else {
  915. addParliament(this.form).then((response) => {
  916. this.$modal.msgSuccess("新增成功");
  917. this.open = false;
  918. this.getList();
  919. });
  920. }
  921. }
  922. });
  923. },
  924. /** 删除按钮操作 */
  925. handleDelete(row) {
  926. const ids = row.id || this.ids;
  927. this.$modal
  928. .confirm("是否确认删除?")
  929. .then(function () {
  930. return delParliament(ids);
  931. })
  932. .then(() => {
  933. this.getList();
  934. this.$modal.msgSuccess("删除成功");
  935. })
  936. .catch(() => {});
  937. },
  938. /** 导出按钮操作 */
  939. handleExport() {
  940. const queryParams = this.queryParams;
  941. this.$modal
  942. .confirm("是否确认导出所有党委议教会数据项?")
  943. .then(() => {
  944. this.exportLoading = true;
  945. return exportParliament(queryParams);
  946. })
  947. .then((response) => {
  948. this.$download.name(response.msg);
  949. this.exportLoading = false;
  950. })
  951. .catch(() => {});
  952. },
  953. },
  954. };
  955. </script>
  956. <style scoped>
  957. /* 备注 */
  958. .thistext {
  959. color: white;
  960. width: 1010px;
  961. border: 1px solid #fff;
  962. border-radius: 4px;
  963. height: auto;
  964. min-height: 35px;
  965. text-indent: 1em;
  966. padding: 2px;
  967. line-height: 35px;
  968. margin-bottom: 20px;
  969. /* margin: auto; */
  970. }
  971. /* 附件名称样式 */
  972. .filename {
  973. display: inline-block;
  974. color: white;
  975. width: 900px;
  976. height: 30px;
  977. border: 1px solid white;
  978. line-height: 30px;
  979. text-indent: 1em;
  980. }
  981. /* 下载按钮 */
  982. .downloadfile {
  983. border: 1px solid white;
  984. display: inline-block;
  985. width: 100px;
  986. height: 33px;
  987. border-radius: 5px;
  988. line-height: 33px;
  989. text-align: center;
  990. }
  991. ::v-deep .el-pagination__sizes .el-input__suffix {
  992. right: 6px;
  993. }
  994. ::v-deep .ql-snow .ql-picker-options .ql-picker-item:focus {
  995. outline: none !important;
  996. }
  997. ::v-deep .ql-snow .ql-picker:focus {
  998. outline: none !important;
  999. }
  1000. ::v-deep .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label:focus {
  1001. outline: none !important;
  1002. }
  1003. ::v-deep .ql-toolbar.ql-snow .ql-picker-label {
  1004. border: none !important;
  1005. }
  1006. ::v-deep .ql-formats:focus {
  1007. outline: none !important;
  1008. }
  1009. ::v-deep .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  1010. border-color: none !important;
  1011. color: black !important;
  1012. }
  1013. /* normal */
  1014. ::v-deep .ql-active {
  1015. outline: none !important;
  1016. }
  1017. ::v-deep .canjiaren .el-input__inner {
  1018. width: 560px !important;
  1019. }
  1020. ::v-deep .el-dialog {
  1021. background-color: #004d86 !important;
  1022. }
  1023. /* 输入框 */
  1024. ::v-deep .el-dialog .el-input__inner {
  1025. background-color: #004d86 !important;
  1026. width: 216px;
  1027. color: white;
  1028. margin-right: 20px;
  1029. border: 1px solid white !important;
  1030. }
  1031. ::v-deep .el-input__inner {
  1032. border: 1px solid white !important;
  1033. }
  1034. /* 表格样式 */
  1035. ::v-deep .el-table .el-table__header-wrapper th {
  1036. background-color: #004d86 !important;
  1037. color: white;
  1038. }
  1039. /* 标题弹框 */
  1040. ::v-deep .el-dialog__title {
  1041. color: white;
  1042. /* border-bottom: 1px solid white; */
  1043. }
  1044. /* 标题下划线 */
  1045. ::v-deep .el-dialog__header {
  1046. border-bottom: 1px solid white;
  1047. }
  1048. /* 日历样式 */
  1049. ::v-deep .el-date-editor .el-input__inner {
  1050. height: 36px !important;
  1051. line-height: 36px;
  1052. }
  1053. ::v-deep .datesend .el-form-item__label {
  1054. width: 115px !important;
  1055. }
  1056. /* 会议文本域样式 */
  1057. ::v-deep .el-form-item__content .el-textarea {
  1058. width: 1010px;
  1059. /* height: 80px !important; */
  1060. }
  1061. ::v-deep .el-form-item__content .el-textarea .el-textarea__inner {
  1062. /* width: 1000px; */
  1063. height: 80px !important;
  1064. }
  1065. ::v-deep .el-dialog__body {
  1066. padding-left: 35px !important;
  1067. padding-right: 0px !important;
  1068. padding-bottom: 0px !important;
  1069. }
  1070. /* 富文本内容 */
  1071. /* ::v-deep .editor{
  1072. width: 1010px;
  1073. color: white;
  1074. } */
  1075. /* 富文本 */
  1076. ::v-deep .ql-snow .ql-fill,
  1077. .ql-snow .ql-stroke.ql-fill {
  1078. fill: #fff !important;
  1079. }
  1080. ::v-deep .ql-snow .ql-stroke {
  1081. stroke: #fff !important;
  1082. }
  1083. ::v-deep .ql-snow .ql-picker {
  1084. color: #fff !important;
  1085. }
  1086. ::v-deep .ql-editor ql-blank {
  1087. color: #fff !important;
  1088. }
  1089. ::v-deep .ql-snow .ql-picker-label {
  1090. position: absolute;
  1091. bottom: 5px;
  1092. }
  1093. ::v-deep .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
  1094. margin-top: -2px;
  1095. }
  1096. ::v-deep .ql-toolbar.ql-snow {
  1097. display: flex;
  1098. justify-content: space-around;
  1099. }
  1100. /* 富文本删除功能 */
  1101. /* 富文本删除功能 */
  1102. ::v-deep .ql-blockquote {
  1103. display: none !important;
  1104. }
  1105. ::v-deep .ql-strike {
  1106. display: none !important;
  1107. }
  1108. ::v-deep .ql-script {
  1109. display: none !important;
  1110. }
  1111. ::v-deep .ql-code-block {
  1112. display: none !important;
  1113. }
  1114. ::v-deep .ql-direction {
  1115. display: none !important;
  1116. }
  1117. .ql-toolbar.ql-snow .ql-formats {
  1118. margin-right: 7px !important;
  1119. }
  1120. ::v-deep .el-input__inner {
  1121. height: 36px !important;
  1122. color: white;
  1123. background-color: #00365f !important;
  1124. }
  1125. /* 文字多余部分省略 */
  1126. ::v-deep .el-table__cell .cell {
  1127. overflow: hidden;
  1128. text-overflow: ellipsis;
  1129. white-space: nowrap;
  1130. }
  1131. ::v-deep .el-input__suffix {
  1132. right: 22px;
  1133. }
  1134. /* 树形样式 */
  1135. ::v-deep .vue-treeselect__control {
  1136. background-color: #004d86;
  1137. width: 216px;
  1138. margin-right: 25px;
  1139. color: white;
  1140. }
  1141. .threeselects {
  1142. width: 216px;
  1143. margin-right: 22px;
  1144. /* color: white; */
  1145. }
  1146. ::v-deep .vue-treeselect__single-value {
  1147. color: white;
  1148. }
  1149. /* 所搜到访单位 */
  1150. ::v-deep .waibudaofang .vue-treeselect__control {
  1151. background-color: #00365f !important;
  1152. }
  1153. /* 计划附件 */
  1154. ::v-deep .el-upload__tip {
  1155. color: white;
  1156. position: absolute;
  1157. top: -5px;
  1158. width: 500px;
  1159. left: 90px;
  1160. color: white;
  1161. }
  1162. ::v-deep .el-link.el-link--default {
  1163. color: white;
  1164. text-indent: 0.5em;
  1165. }
  1166. ::v-deep .el-select__input{
  1167. color: white;
  1168. }
  1169. </style>