index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. <!-- 查看团支部记录本领导 -->
  2. <template>
  3. <div class="arr_conten">
  4. <el-form
  5. :model="form"
  6. ref="form"
  7. :inline="true"
  8. label-width="68px"
  9. style="padding-left: 30px"
  10. >
  11. <el-form-item prop="year">
  12. <el-date-picker
  13. v-model="form.year"
  14. type="year"
  15. placeholder="选择年"
  16. @change="getSoulist"
  17. value-format="yyyy"
  18. :editable="false"
  19. >
  20. </el-date-picker>
  21. </el-form-item>
  22. <el-form-item>
  23. <el-button size="btr" @click="resetQuery">重置</el-button>
  24. </el-form-item>
  25. </el-form>
  26. <div v-if="status == 1">
  27. <ul v-for="(item, i) in lieList" :key="i">
  28. <li v-for="(item1, i) in item" :key="i + ' '">
  29. <div class="names">{{ item1.deptName }}</div>
  30. <div class="btn">
  31. <el-button size="btJS" @click="chaKan(item1)">查看</el-button>
  32. </div>
  33. </li>
  34. </ul>
  35. </div>
  36. <div v-if="status == 0">
  37. <ul>
  38. <li v-for="(item, i) in lieList" :key="i">
  39. <div class="names">{{ item.deptName }}</div>
  40. <div class="btn">
  41. <el-button size="btJS" @click="chaKan(item)">查看</el-button>
  42. </div>
  43. </li>
  44. </ul>
  45. </div>
  46. <!-- 查看第一次 -->
  47. <el-dialog
  48. :visible.sync="tableStatus"
  49. :title="title"
  50. append-to-body
  51. id="list"
  52. :close-on-click-modal="false"
  53. custom-class="lieBiao"
  54. >
  55. <el-table
  56. v-loading="loading"
  57. :data="bdglpartyList"
  58. :header-cell-style="{ background: '#003C69', color: 'white' }"
  59. >
  60. <el-table-column label="序号" type="index" width="50" align="center">
  61. <template scope="scope">
  62. <span>{{
  63. (queryParams.pageNum - 1) * queryParams.pageSize +
  64. scope.$index +
  65. 1
  66. }}</span>
  67. </template>
  68. </el-table-column>
  69. <el-table-column label="单位" align="center" prop="deptName" />
  70. <el-table-column
  71. label="召开时间"
  72. align="center"
  73. prop="convokeTime"
  74. width="120"
  75. >
  76. <template slot-scope="scope">
  77. <span>{{ parseTime(scope.row.convokeTime, "{y}-{m}-{d}") }}</span>
  78. </template>
  79. </el-table-column>
  80. <el-table-column label="召开地点" align="center" prop="address" />
  81. <el-table-column label="主持人" align="center" prop="compereRen" />
  82. <el-table-column
  83. label="参加人"
  84. align="center"
  85. prop="joinId"
  86. show-overflow-tooltip
  87. />
  88. <el-table-column
  89. label="列席人"
  90. align="center"
  91. prop="peopleIds"
  92. show-overflow-tooltip
  93. />
  94. <el-table-column
  95. label="缺席人"
  96. align="center"
  97. prop="absentIds"
  98. show-overflow-tooltip
  99. />
  100. <el-table-column label="记录人" align="center" prop="peopleJiLu" />
  101. <el-table-column label="会议议题" align="center" show-overflow-tooltip>
  102. <template slot-scope="scope">
  103. <span>{{ onEditor(scope.row.title) }}</span>
  104. </template>
  105. </el-table-column>
  106. <el-table-column
  107. label="操作"
  108. align="center"
  109. class-name="small-padding fixed-width"
  110. width="100"
  111. >
  112. <template slot-scope="scope">
  113. <el-button
  114. size="btk"
  115. type="text"
  116. @click="handleChakan(scope.row)"
  117. v-hasPermi="['grassrootsregistration:bdglmeetings:query']"
  118. ><span class="chakan">查看</span></el-button
  119. >
  120. </template>
  121. </el-table-column>
  122. </el-table>
  123. <pagination
  124. v-show="total > 0"
  125. :total="total"
  126. :page.sync="queryParams.pageNum"
  127. :limit.sync="queryParams.pageSize"
  128. @pagination="chaKan1"
  129. />
  130. </el-dialog>
  131. <!-- 查看 -->
  132. <!-- <el-dialog
  133. :visible.sync="menuRoleVisible"
  134. :title="title"
  135. append-to-body
  136. id="chakan"
  137. :close-on-click-modal="false"
  138. :before-close="closes"
  139. >
  140. <bdglmeeting
  141. v-if="menuRoleVisible"
  142. ref="menuRole"
  143. :message="wordInfo"
  144. ></bdglmeeting>
  145. </el-dialog> -->
  146. <el-dialog
  147. :visible.sync="menuRoleVisible"
  148. :title="title"
  149. append-to-body
  150. id="chakan"
  151. :close-on-click-modal="false"
  152. :before-close="closes"
  153. >
  154. <div
  155. style="
  156. margin-bottom: 20px;
  157. margin-left: 28%;
  158. font-size: 16px;
  159. font-weight: 700;
  160. "
  161. >
  162. 会议形式:<span style="margin-right: 30px">{{ names }}</span>
  163. 会议时间:<span>{{ tiemse }}</span>
  164. </div>
  165. <div v-for="item in arr" :key="item" class="divbox">
  166. <img :src="baseUrl + item" alt="" />
  167. </div>
  168. </el-dialog>
  169. </div>
  170. </template>
  171. <script>
  172. import {
  173. getMeetingList,
  174. getBdglmeeting,
  175. getMeetingOnUnitList,
  176. } from "@/api/grassrootsregistration/bdglmeeting";
  177. //引入查看表格
  178. import bdglmeeting from "@/components/look_word/bdglmeeting.vue";
  179. export default {
  180. dicts: ["sys_huiyi"],
  181. data() {
  182. return {
  183. lieList: [],
  184. //查看页面
  185. menuRoleVisible: false,
  186. title: null,
  187. tableStatus: false,
  188. queryParams: {
  189. pageNum: 1,
  190. pageSize: 10,
  191. },
  192. // 党支部记录本表格数据
  193. bdglpartyList: [],
  194. loading: false,
  195. total: 0,
  196. unitId: undefined,
  197. form: {},
  198. year: null,
  199. status: null,
  200. baseUrl: process.env.VUE_APP_BASE_API,
  201. arr: [],
  202. // 会议形式
  203. huiYiList: [],
  204. names: null,
  205. tiemse: null,
  206. };
  207. },
  208. created() {
  209. this.getSoulist();
  210. //会议形式
  211. this.getDicts("sys_huiyi").then((response) => {
  212. this.huiYiList = response.data;
  213. });
  214. },
  215. methods: {
  216. resetQuery() {
  217. this.form.year = null;
  218. getMeetingList().then((res) => {
  219. res.rows.forEach((item) => {
  220. this.status = 1;
  221. });
  222. this.lieList = res.rows;
  223. });
  224. },
  225. getSoulist() {
  226. if (this.form.year == null || this.form.year == "") {
  227. getMeetingList().then((res) => {
  228. res.rows.forEach((item) => {
  229. this.status = 1;
  230. });
  231. this.lieList = res.rows;
  232. });
  233. } else {
  234. getMeetingList(this.form.year).then((res) => {
  235. res.rows.forEach((item) => {
  236. this.status = 0;
  237. });
  238. this.lieList = res.rows;
  239. });
  240. }
  241. },
  242. chaKan(row) {
  243. this.queryParams.unitId = row.deptId;
  244. this.unitId = row.deptId;
  245. getMeetingOnUnitList(this.queryParams).then((response) => {
  246. this.bdglpartyList = response.rows;
  247. this.title = "查看团支部记录本";
  248. this.tableStatus = true;
  249. this.total = response.total;
  250. });
  251. },
  252. chaKan1(row) {
  253. getMeetingOnUnitList(this.queryParams).then((response) => {
  254. this.bdglpartyList = response.rows;
  255. this.title = "查看团支部记录本";
  256. this.tableStatus = true;
  257. this.total = response.total;
  258. });
  259. },
  260. handleChakan(row) {
  261. const id = row.id || this.ids;
  262. getBdglmeeting(id).then((response) => {
  263. if (response.data.fileUrl != null) {
  264. if (response.data.fileUrl != "") {
  265. this.arr = response.data.fileUrl.split(",");
  266. this.tiemse = response.data.convokeTime;
  267. this.huiYiList.map((item) => {
  268. if (item.dictValue == response.data.meetingForm) {
  269. this.names = item.dictLabel;
  270. }
  271. });
  272. this.title = "查看团支部会议登记本";
  273. this.menuRoleVisible = true;
  274. this.tableStatus = false;
  275. return this.names;
  276. }
  277. }
  278. // this.wordInfo = response.data;
  279. });
  280. },
  281. // 转义视图不加标签
  282. onEditor(str) {
  283. //可以在这里进行对应的操作 quill为富文本对象,html为富文本对象内内容由html标签组成,text为quill内容里面的所有文本内容
  284. if (str) {
  285. var str = str.replace(/<\/?[^>]*>/g, ""); //去除HTML tag
  286. str = str.replace(/[ | ]*\n/g, "\n"); //去除行尾空白
  287. return str;
  288. }
  289. },
  290. closes() {
  291. this.menuRoleVisible = false;
  292. this.tableStatus = true;
  293. },
  294. },
  295. components: {
  296. bdglmeeting,
  297. },
  298. computed: {},
  299. mounted() {},
  300. watch: {},
  301. };
  302. </script>
  303. <style scoped>
  304. ::v-deep .el-dialog {
  305. width: 1070px !important;
  306. }
  307. ::v-deep .el-dialog__body {
  308. margin: 10px 30px 20px 44px;
  309. padding-top: 20px !important;
  310. box-sizing: border-box;
  311. }
  312. ::v-deep .el-dialog__header {
  313. border-bottom: 1px solid #718a9d;
  314. }
  315. .arr_conten {
  316. padding-top: 20px;
  317. }
  318. ul {
  319. display: flex;
  320. /* justify-content: space-between; */
  321. padding: 0 22px;
  322. flex-wrap: wrap;
  323. }
  324. li {
  325. list-style: none;
  326. background: url("../../../assets/images/book.png") no-repeat;
  327. height: 140px;
  328. width: 222px;
  329. /* margin: 20px 0; */
  330. margin-bottom: 20px;
  331. background-size: 100% 100%;
  332. flex: 0 0 16%;
  333. margin-right: 10px;
  334. }
  335. .names {
  336. color: #fff;
  337. font-size: 14px;
  338. text-align: center;
  339. padding: 26px 26px 38px 26px;
  340. letter-spacing: 1px;
  341. }
  342. .btn {
  343. text-align: center;
  344. }
  345. ::v-deep .lieBiao {
  346. background: #004d86 !important;
  347. min-height: 42vh !important;
  348. }
  349. ::v-deep .el-dialog__title {
  350. color: #fff;
  351. font: 18px;
  352. }
  353. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  354. color: #fff;
  355. }
  356. ::v-deep .pagination-container {
  357. /* display: none; */
  358. position: relative;
  359. height: 49px;
  360. margin-bottom: 10px;
  361. margin-top: 6vh;
  362. padding: 10px 20px !important;
  363. background: transparent !important;
  364. }
  365. ::v-deep .el-pagination .el-select .el-input .el-input__inner {
  366. background: #00365f !important;
  367. }
  368. ::v-deep .el-pagination.is-background .btn-prev,
  369. .el-pagination.is-background .btn-next {
  370. background: #00365f !important;
  371. }
  372. ::v-deep .el-pagination__editor.el-input .el-input__inner {
  373. background: #00365f !important;
  374. }
  375. ::v-deep .el-pagination.is-background .btn-next {
  376. background: #00365f !important;
  377. }
  378. ::v-deep .el-pagination.is-background .el-pager li {
  379. background: #00365f;
  380. }
  381. ::v-deep .el-table__body tr:hover > td {
  382. background-color: #3c749d !important;
  383. }
  384. ::v-deep .el-table tr:nth-child(even) {
  385. background: #00365f;
  386. }
  387. ::v-deep .el-input__inner {
  388. cursor: pointer !important;
  389. }
  390. ::v-deep .el-input__inner {
  391. background: transparent;
  392. color: #fff;
  393. border: 1px solid white !important;
  394. border-color: #fff !important;
  395. }
  396. ::v-deep .el-input--medium .el-input__inner {
  397. height: 36px;
  398. line-height: 37px;
  399. }
  400. #chakan ::v-deep .el-dialog {
  401. min-height: 700px;
  402. background: #fff !important;
  403. }
  404. #chakan /deep/ .el-dialog__body {
  405. padding: 30px 30px 30px 132px;
  406. }
  407. ::v-deep img {
  408. object-fit: cover;
  409. }
  410. .divbox {
  411. width: 1016px !important;
  412. min-height: 540px;
  413. }
  414. .divbox img {
  415. width: 700px;
  416. height: 500px;
  417. border-radius: 10px;
  418. }
  419. </style>