index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <template>
  2. <div class="app-container">
  3. <el-form
  4. :model="queryParams"
  5. ref="queryForm"
  6. :inline="true"
  7. v-show="showSearch"
  8. label-width="68px"
  9. >
  10. <!-- <el-form-item label="" prop="unitId">
  11. <el-select
  12. v-model="queryParams.unitId"
  13. placeholder="请输入单位"
  14. @change="company"
  15. >
  16. <el-option
  17. v-for="item in buMeng"
  18. :key="item.deptId"
  19. :label="item.deptName"
  20. :value="item.deptId"
  21. class="input_xiala"
  22. >
  23. </el-option>
  24. </el-select>
  25. </el-form-item> -->
  26. <el-form-item label="" prop="convokeTime">
  27. <el-date-picker
  28. clearable
  29. size="small"
  30. v-model="queryParams.convokeTime"
  31. type="date"
  32. value-format="yyyy-MM-dd"
  33. placeholder="选择召开时间"
  34. @change="tiem"
  35. :editable="false"
  36. >
  37. </el-date-picker>
  38. </el-form-item>
  39. <el-form-item label="" prop="compereId">
  40. <el-select
  41. v-model="queryParams.compereId"
  42. placeholder="请输入主持人"
  43. @change="Renyuan"
  44. >
  45. <el-option
  46. v-for="item in renYuans"
  47. :key="item.id"
  48. :label="item.name"
  49. :value="item.id"
  50. class="input_xiala"
  51. >
  52. </el-option>
  53. </el-select>
  54. </el-form-item>
  55. <el-form-item>
  56. <el-button size="btr" @click="resetQuery">重置</el-button>
  57. </el-form-item>
  58. </el-form>
  59. <el-row :gutter="10" class="mb8">
  60. <el-col :span="1.5">
  61. <el-button
  62. type="primary"
  63. plain
  64. icon="el-icon-plus"
  65. size="mini"
  66. @click="handleAdd"
  67. v-hasPermi="['grassrootsregistration:bdglmeeting:add']"
  68. >新增</el-button
  69. >
  70. </el-col>
  71. <!-- <el-col :span="1.5">
  72. <el-button
  73. type="success"
  74. plain
  75. icon="el-icon-edit"
  76. size="mini"
  77. :disabled="single"
  78. @click="handleUpdate"
  79. v-hasPermi="['grassrootsregistration:bdglmeeting:edit']"
  80. >修改</el-button
  81. >
  82. </el-col>
  83. <el-col :span="1.5">
  84. <el-button
  85. type="danger"
  86. plain
  87. icon="el-icon-delete"
  88. size="mini"
  89. :disabled="multiple"
  90. @click="handleDelete"
  91. v-hasPermi="['grassrootsregistration:bdglmeeting:remove']"
  92. >删除</el-button
  93. >
  94. </el-col>
  95. <el-col :span="1.5">
  96. <el-button
  97. type="warning"
  98. plain
  99. icon="el-icon-download"
  100. size="mini"
  101. :loading="exportLoading"
  102. @click="handleExport"
  103. v-hasPermi="['grassrootsregistration:bdglmeeting:export']"
  104. >导出</el-button
  105. >
  106. </el-col> -->
  107. </el-row>
  108. <el-table
  109. v-loading="loading"
  110. :data="bdglmeetingList"
  111. @selection-change="handleSelectionChange"
  112. :header-cell-style="{ background: '#003C69', color: 'white' }"
  113. >
  114. <el-table-column type="selection" width="55" align="center" />
  115. <el-table-column label="序号" type="index" width="50" align="center">
  116. <template scope="scope">
  117. <span>{{
  118. (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1
  119. }}</span>
  120. </template>
  121. </el-table-column>
  122. <el-table-column label="单位" align="center" prop="deptName" />
  123. <el-table-column
  124. label="召开时间"
  125. align="center"
  126. prop="convokeTime"
  127. width="180"
  128. >
  129. <template slot-scope="scope">
  130. <span>{{ parseTime(scope.row.convokeTime, "{y}-{m}-{d}") }}</span>
  131. </template>
  132. </el-table-column>
  133. <el-table-column label="召开地点" align="center" prop="address" />
  134. <el-table-column label="主持人" align="center" prop="compereRen" />
  135. <el-table-column label="参加人" align="center" prop="joinId" />
  136. <el-table-column label="列席人" align="center" prop="peopleIds" />
  137. <el-table-column label="缺席人" align="center" prop="absentIds" />
  138. <el-table-column label="记录人" align="center" prop="peopleJiLu" />
  139. <!-- <el-table-column
  140. label="会议议题"
  141. align="center"
  142. prop="title"
  143. show-overflow-tooltip
  144. /> -->
  145. <el-table-column label="会议议题" align="center" show-overflow-tooltip>
  146. <template slot-scope="scope">
  147. <span>{{ onEditor(scope.row.title) }}</span>
  148. </template>
  149. </el-table-column>
  150. <el-table-column
  151. label="操作"
  152. align="center"
  153. class-name="small-padding fixed-width"
  154. width="200"
  155. >
  156. <template slot-scope="scope">
  157. <el-button
  158. size="btk"
  159. type="text"
  160. @click="handleChakan(scope.row)"
  161. v-hasPermi="['grassrootsregistration:bdgldiary:edit']"
  162. ><span class="chakan">查看</span></el-button
  163. >
  164. <el-button
  165. size="btu"
  166. type="text"
  167. @click="handleUpdate(scope.row)"
  168. v-hasPermi="['grassrootsregistration:bdglmeeting:edit']"
  169. ><span class="edit">修改</span></el-button
  170. >
  171. <el-button
  172. size="btd"
  173. type="text"
  174. @click="handleDelete(scope.row)"
  175. v-hasPermi="['grassrootsregistration:bdglmeeting:remove']"
  176. ><span class="delete">删除</span></el-button
  177. >
  178. </template>
  179. </el-table-column>
  180. </el-table>
  181. <pagination
  182. v-show="total > 0"
  183. :total="total"
  184. :page.sync="queryParams.pageNum"
  185. :limit.sync="queryParams.pageSize"
  186. @pagination="getList"
  187. />
  188. <!-- 添加或修改团支部会议登记本对话框 -->
  189. <el-dialog
  190. :title="title"
  191. :visible.sync="open"
  192. width="1016px"
  193. append-to-body
  194. :close-on-click-modal="false"
  195. ><div class="userAgree">
  196. <div class="jiben">基本信息</div>
  197. <el-form
  198. ref="form"
  199. :model="form"
  200. :rules="rules"
  201. label-width="80px"
  202. :inline="true"
  203. >
  204. <el-form-item label="单位" prop="unitId">
  205. <treeselect
  206. v-model="form.unitId"
  207. :options="deptOptions"
  208. placeholder="请选择单位"
  209. @select="selectPeo"
  210. @open="blurSelect"
  211. />
  212. </el-form-item>
  213. <el-form-item label="召开时间" prop="convokeTime">
  214. <el-date-picker
  215. clearable
  216. size="small"
  217. v-model="form.convokeTime"
  218. type="date"
  219. value-format="yyyy-MM-dd"
  220. placeholder="选择召开时间"
  221. :editable="false"
  222. >
  223. </el-date-picker>
  224. </el-form-item>
  225. <el-form-item label="召开地点" prop="address" class="address">
  226. <el-input v-model="form.address" placeholder="请输入召开地点" />
  227. </el-form-item>
  228. <el-form-item label="主持人" prop="compereId">
  229. <el-select
  230. v-model="form.compereId"
  231. placeholder="请选择主持人"
  232. ref="headerSearchSelect"
  233. >
  234. <el-option
  235. v-for="(item, i) in renYuan"
  236. :key="i"
  237. :label="item.name"
  238. :value="item.id"
  239. :disabled="item.status == 1"
  240. @click.native="compere(item.name)"
  241. class="input_xiala"
  242. >
  243. </el-option>
  244. </el-select>
  245. </el-form-item>
  246. <el-form-item label="记录人" prop="peopleId">
  247. <el-select v-model="form.peopleId" placeholder="请选择记录人">
  248. <el-option
  249. v-for="(item, i) in renYuan"
  250. :key="i"
  251. :label="item.name"
  252. :value="item.id"
  253. @click.native="people(item.name)"
  254. class="input_xiala"
  255. >
  256. </el-option>
  257. </el-select>
  258. </el-form-item>
  259. <!-- <el-form-item label="会议议题" prop="title">
  260. <el-input v-model="form.title" placeholder="请输入会议议题" />
  261. </el-form-item> -->
  262. <el-form-item label="参加人" prop="joinId" class="joinId">
  263. <el-select
  264. ref="aa"
  265. v-model="form.joinId"
  266. multiple
  267. placeholder="请选择参加人"
  268. >
  269. <el-option
  270. v-for="(item, i) in renYuan"
  271. :key="i"
  272. :label="item.name"
  273. :value="item.name"
  274. class="input_xiala"
  275. >
  276. {{ item.name }}
  277. </el-option>
  278. </el-select>
  279. </el-form-item>
  280. <el-form-item label="列席人" class="joinId">
  281. <el-select
  282. ref="bb"
  283. v-model="form.peopleIds"
  284. multiple
  285. placeholder="请选择列席人"
  286. >
  287. <el-option
  288. v-for="(item, i) in renYuan"
  289. :key="i"
  290. :label="item.name"
  291. :value="item.name"
  292. class="input_xiala"
  293. >
  294. {{ item.name }}
  295. </el-option>
  296. </el-select>
  297. </el-form-item>
  298. <el-form-item label="缺席人" class="joinId">
  299. <el-select
  300. ref="cc"
  301. v-model="form.absentIds"
  302. multiple
  303. placeholder="请选择缺席人"
  304. >
  305. <el-option
  306. v-for="(item, i) in renYuan"
  307. :key="i"
  308. :label="item.name"
  309. :value="item.name"
  310. class="input_xiala"
  311. >
  312. {{ item.name }}
  313. </el-option>
  314. </el-select>
  315. </el-form-item>
  316. <div class="jiben">会议议题</div>
  317. <quill-editor
  318. class="quill-editor"
  319. ref="myTextEditor"
  320. v-model="form.title"
  321. style="height: 150px; width: 920px;
  322. margin-bottom: 60px margin-left: 0px; margin-bottom: 55px;"
  323. ></quill-editor>
  324. <div class="jiben">会议内容</div>
  325. <quill-editor
  326. class="quill-editor"
  327. ref="myTextEditor"
  328. v-model="form.contents"
  329. style="height: 150px; width: 920px;
  330. margin-bottom: 60px margin-left: 0px; margin-bottom: 55px;"
  331. ></quill-editor>
  332. </el-form>
  333. </div>
  334. <div slot="footer" class="dialog-footer">
  335. <el-button type="primary" @click="submitForm(1)">确 定</el-button>
  336. <el-button @click="cancel" size="btn">取消</el-button>
  337. </div>
  338. </el-dialog>
  339. <el-dialog
  340. :visible.sync="menuRoleVisible"
  341. :title="title"
  342. append-to-body
  343. id="chakan"
  344. :close-on-click-modal="false"
  345. >
  346. <bdglmeeting
  347. v-if="menuRoleVisible"
  348. ref="menuRole"
  349. :message="wordInfo"
  350. ></bdglmeeting>
  351. </el-dialog>
  352. </div>
  353. </template>
  354. <script>
  355. //引入查看表格
  356. import bdglmeeting from "@/components/look_word/bdglmeeting.vue";
  357. import { getZhuChiRen } from "@/api/grassrootsregistration/bdglparty";
  358. import {
  359. listBdglmeeting,
  360. getBdglmeeting,
  361. delBdglmeeting,
  362. addBdglmeeting,
  363. updateBdglmeeting,
  364. exportBdglmeeting,
  365. getDept,
  366. getShouBu,
  367. getAll,
  368. } from "@/api/grassrootsregistration/bdglmeeting";
  369. // 富文本
  370. import "quill/dist/quill.core.css";
  371. import "quill/dist/quill.snow.css";
  372. import "quill/dist/quill.bubble.css";
  373. import { quillEditor } from "vue-quill-editor";
  374. // 树形
  375. import Treeselect from "@riophae/vue-treeselect";
  376. import "@riophae/vue-treeselect/dist/vue-treeselect.css";
  377. export default {
  378. name: "Bdglmeeting",
  379. components: {
  380. quillEditor,
  381. Treeselect,
  382. bdglmeeting,
  383. },
  384. data() {
  385. return {
  386. //查看页面
  387. menuRoleVisible: false,
  388. wordInfo: {},
  389. //判断关闭
  390. style: "2",
  391. // 遮罩层
  392. loading: true,
  393. // 导出遮罩层
  394. exportLoading: false,
  395. // 选中数组
  396. ids: [],
  397. // 非单个禁用
  398. single: true,
  399. // 非多个禁用
  400. multiple: true,
  401. // 显示搜索条件
  402. showSearch: true,
  403. // 总条数
  404. total: 0,
  405. // 团支部会议登记本表格数据
  406. bdglmeetingList: [],
  407. // 弹出层标题
  408. title: "",
  409. // 是否显示弹出层
  410. open: false,
  411. // 查询参数
  412. queryParams: {
  413. pageNum: 1,
  414. pageSize: 10,
  415. convokeTime: null,
  416. address: null,
  417. compereId: null,
  418. joinId: null,
  419. peopleIds: null,
  420. absentIds: null,
  421. peopleId: null,
  422. title: null,
  423. contents: null,
  424. createtime: null,
  425. updatetime: null,
  426. unitId: null,
  427. },
  428. // 表单参数
  429. form: {},
  430. // 表单校验
  431. rules: {
  432. unitId: [
  433. { required: true, message: "单位名称不能为空", trigger: "blur" },
  434. ],
  435. convokeTime: [
  436. { required: true, message: "召开时间不能为空", trigger: "blur" },
  437. ],
  438. address: [
  439. { required: true, message: "召开地点不能为空", trigger: "blur" },
  440. ],
  441. compereId: [
  442. { required: true, message: "主持人不能为空", trigger: "blur" },
  443. ],
  444. peopleId: [
  445. { required: true, message: "记录人不能为空", trigger: "blur" },
  446. ],
  447. title: [
  448. { required: true, message: "会议议题不能为空", trigger: "blur" },
  449. ],
  450. joinId: [
  451. { required: true, message: "参加人不能为空", trigger: "blur" },
  452. ],
  453. peopleIds: [
  454. { required: true, message: "列席人不能为空", trigger: "blur" },
  455. ],
  456. absentIds: [
  457. { required: true, message: "缺席人不能为空", trigger: "blur" },
  458. ],
  459. },
  460. //下拉菜单
  461. options: [],
  462. // 外面的部门
  463. buMeng: [],
  464. // 主持人 人员
  465. renYuan: [],
  466. // 外面的人员
  467. renYuans: [],
  468. // 单位
  469. unitArr: [],
  470. // 部门列表
  471. deptOptions: [],
  472. // 树形配置对象
  473. defaultProps: {
  474. children: "children",
  475. label: "label",
  476. },
  477. // 修改拿到的数据
  478. result: {},
  479. };
  480. },
  481. created() {
  482. this.getList();
  483. this.getBuMen();
  484. this.getSuo();
  485. this.onEditor();
  486. },
  487. methods: {
  488. // 获取搜索所有人
  489. getSuo() {
  490. getAll().then((res) => {
  491. this.renYuans = res.rows;
  492. });
  493. },
  494. // 转义视图不加标签
  495. onEditor(str) {
  496. var str = str.replace(/<\/?[^>]*>/g, "");
  497. str = str.replace(/[ | ]*\n/g, "\n");
  498. str = str.replace(/ /gi, "");
  499. return str;
  500. },
  501. // 获取搜索下拉部门
  502. getBuMen() {
  503. getShouBu().then((res) => {
  504. this.buMeng = res.data;
  505. });
  506. },
  507. // 重置表单人员
  508. ChongZhiRen() {
  509. // 主持人
  510. (this.form.compereId = null),
  511. // (this.form.compereRen = null),
  512. // 记录人
  513. (this.form.peopleId = null),
  514. // (this.form.peopleJiLu = null),
  515. // 参加人
  516. (this.form.joinId = null);
  517. // 列席人
  518. (this.form.peopleIds = null),
  519. // 缺席人
  520. (this.form.absentIds = null);
  521. },
  522. // 获取主持人
  523. getZhuChi(id) {
  524. getZhuChiRen(id).then((res) => {
  525. this.renYuan = res.data;
  526. });
  527. },
  528. // 单位选择触发
  529. selectPeo(val) {
  530. this.ChongZhiRen();
  531. this.form.unitId = val.id;
  532. this.getZhuChi(this.form.unitId);
  533. },
  534. /** 查询部门下拉树结构 */
  535. getTreeselect() {
  536. getDept().then((response) => {
  537. this.deptOptions = response.data;
  538. });
  539. },
  540. // 搜索时间选择触发
  541. tiem() {
  542. this.getList();
  543. },
  544. // 搜索主持人选中触发
  545. Renyuan() {
  546. this.getList();
  547. },
  548. // 主持人选中触发
  549. compere(name) {
  550. this.form.compereRen = name;
  551. },
  552. // 记录人选中触发
  553. people(name) {
  554. this.form.peopleJiLu = name;
  555. },
  556. /** 查询团支部会议登记本列表 */
  557. getList() {
  558. this.loading = true;
  559. listBdglmeeting(this.queryParams).then((response) => {
  560. this.bdglmeetingList = response.rows;
  561. this.total = response.total;
  562. this.loading = false;
  563. });
  564. },
  565. // 搜索单位触发
  566. company() {
  567. this.getList();
  568. // 联动人员
  569. getZhuChiRen(this.queryParams.unitId).then((res) => {
  570. this.renYuans = res.data;
  571. });
  572. },
  573. // 取消按钮
  574. cancel() {
  575. this.open = false;
  576. this.reset();
  577. },
  578. // 表单重置
  579. reset() {
  580. this.form = {
  581. id: null,
  582. convokeTime: null,
  583. address: null,
  584. compereId: null,
  585. joinId: null,
  586. peopleIds: null,
  587. absentIds: null,
  588. peopleId: null,
  589. title: null,
  590. contents: null,
  591. createtime: null,
  592. updatetime: null,
  593. unitId: null,
  594. };
  595. this.resetForm("form");
  596. },
  597. /** 搜索按钮操作 */
  598. handleQuery() {
  599. this.queryParams.pageNum = 1;
  600. this.getList();
  601. },
  602. /** 重置按钮操作 */
  603. resetQuery() {
  604. this.getSuo();
  605. this.reset();
  606. this.resetForm("queryForm");
  607. this.handleQuery();
  608. },
  609. /** 对话框重置按钮操作 */
  610. resertwo() {
  611. this.reset();
  612. },
  613. // 让select失去焦点
  614. blurSelect() {
  615. this.$refs.headerSearchSelect.blur();
  616. this.$refs.aa.blur();
  617. this.$refs.bb.blur();
  618. this.$refs.cc.blur();
  619. },
  620. // 多选框选中数据
  621. handleSelectionChange(selection) {
  622. this.ids = selection.map((item) => item.id);
  623. this.single = selection.length !== 1;
  624. this.multiple = !selection.length;
  625. },
  626. /** 新增按钮操作 */
  627. handleAdd() {
  628. // 主持人 人员
  629. (this.renYuan = []), this.reset();
  630. this.style = 2;
  631. this.getTreeselect();
  632. this.open = true;
  633. this.title = "添加团支部会议登记本";
  634. },
  635. /** 修改按钮操作 */
  636. handleUpdate(row) {
  637. this.reset();
  638. this.getTreeselect();
  639. const id = row.id || this.ids;
  640. getBdglmeeting(id).then((response) => {
  641. this.result = response.data;
  642. for (var k in this.result) {
  643. if (k === "deptName") {
  644. delete this.result[k];
  645. }
  646. }
  647. if (this.result.joinId !== "") {
  648. this.result.joinId = response.data.joinId.split(",");
  649. }
  650. if (this.result.peopleIds !== "") {
  651. this.result.peopleIds = response.data.peopleIds.split(",");
  652. }
  653. if (this.result.absentIds !== "") {
  654. this.result.absentIds = response.data.absentIds.split(",");
  655. }
  656. this.form = this.result;
  657. this.form.unitId = row.unitId;
  658. this.getZhuChi(this.form.unitId);
  659. this.open = true;
  660. this.title = "修改团支部会议登记本";
  661. });
  662. },
  663. //查看按钮操作
  664. handleChakan(row) {
  665. // 是否隐藏按钮
  666. this.opens = false;
  667. const id = row.id || this.ids;
  668. getBdglmeeting(id).then((response) => {
  669. this.wordInfo = response.data;
  670. this.title = "查看团支部会议登记本";
  671. this.menuRoleVisible = true;
  672. });
  673. },
  674. /** 提交按钮 */
  675. submitForm(style) {
  676. this.style = style;
  677. this.$refs["form"].validate((valid) => {
  678. if (valid) {
  679. if (this.form.id != null) {
  680. if (this.form.joinId !== undefined) {
  681. this.form.joinId = this.form.joinId.join(",");
  682. }
  683. if (this.form.peopleIds !== undefined) {
  684. this.form.peopleIds = this.form.peopleIds.join(",");
  685. }
  686. if (this.form.absentIds !== undefined) {
  687. this.form.absentIds = this.form.absentIds.join(",");
  688. }
  689. updateBdglmeeting(this.form).then((response) => {
  690. this.$modal.msgSuccess("修改成功");
  691. this.open = false;
  692. this.getList();
  693. });
  694. } else {
  695. (this.form.joinId = this.form.joinId.join(",")),
  696. (this.form.peopleIds = this.form.peopleIds.join(",")),
  697. (this.form.absentIds = this.form.absentIds.join(",")),
  698. addBdglmeeting(this.form).then((response) => {
  699. this.$modal.msgSuccess("新增成功");
  700. this.open = false;
  701. this.getList();
  702. });
  703. }
  704. }
  705. });
  706. },
  707. /** 删除按钮操作 */
  708. handleDelete(row) {
  709. const ids = row.id || this.ids;
  710. this.$modal
  711. // .confirm('是否确认删除团支部会议登记本编号为"' + ids + '"的数据项?')
  712. .confirm("是否确认删除该数据?")
  713. .then(function () {
  714. return delBdglmeeting(ids);
  715. })
  716. .then(() => {
  717. this.getList();
  718. this.$modal.msgSuccess("删除成功");
  719. })
  720. .catch(() => {});
  721. },
  722. /** 导出按钮操作 */
  723. handleExport() {
  724. const queryParams = this.queryParams;
  725. this.$modal
  726. .confirm("是否确认导出所有团支部会议登记本数据项?")
  727. .then(() => {
  728. this.exportLoading = true;
  729. return exportBdglmeeting(queryParams);
  730. })
  731. .then((response) => {
  732. this.$download.name(response.msg);
  733. this.exportLoading = false;
  734. })
  735. .catch(() => {});
  736. },
  737. },
  738. };
  739. </script>
  740. <style scoped>
  741. /* 对话框背景颜色 */
  742. ::v-deep .el-dialog {
  743. background: #004d86 !important;
  744. }
  745. ::v-deep .el-textarea__inner {
  746. width: 884px;
  747. height: 104px;
  748. }
  749. ::v-deep .el-dialog__header {
  750. border-bottom: 1px solid #718a9d;
  751. }
  752. ::v-deep .el-dialog__title {
  753. color: #fff;
  754. font: 18px;
  755. }
  756. ::v-deep .el-dialog__headerbtn .el-dialog__close {
  757. color: #fff;
  758. }
  759. ::v-deep .el-form-item__label {
  760. font: 16px;
  761. color: #fff;
  762. width: 100px !important;
  763. }
  764. ::v-deep .el-input__inner {
  765. /* width: 200px !important;
  766. height: 36px; */
  767. background: transparent;
  768. color: #fff;
  769. border: 1px solid white !important;
  770. border-color: #fff !important;
  771. }
  772. /* 基本信息背景 */
  773. .jiben {
  774. width: 920px;
  775. height: 32px;
  776. background-image: url(../../../images/小标题底.png);
  777. margin-bottom: 25px;
  778. color: #fff;
  779. padding-left: 16px;
  780. line-height: 32px;
  781. }
  782. ::v-deep .el-dialog__body {
  783. box-sizing: border-box;
  784. padding: 30px 0px 30px 42px;
  785. }
  786. /* 调整表单间距 */
  787. ::v-deep .el-form-item__content {
  788. width: 200px;
  789. }
  790. .contents {
  791. padding: 0px 40px !important;
  792. }
  793. /* 下拉菜单字体/背景颜色 */
  794. .el-select-dropdown__item.hover,
  795. .el-select-dropdown__item:hover {
  796. background-color: #196299;
  797. color: #fff;
  798. }
  799. .el-select-dropdown__item {
  800. color: #fff;
  801. }
  802. /* 刷新图标 */
  803. /* .el-icon-refresh {
  804. width: 76px;
  805. height: 36px;
  806. color: #fff;
  807. background-color: #1d96ff !important;
  808. border-radius: 4px;
  809. border: none;
  810. margin-left: 20px;
  811. font-size: 14px;
  812. } */
  813. /* 时间选择 */
  814. ::v-deep .el-input--small .el-input__inner {
  815. width: 200px;
  816. height: 36px;
  817. line-height: 36px;
  818. }
  819. .el-date-editor.el-input {
  820. width: 200px;
  821. height: 36px;
  822. line-height: 36px;
  823. }
  824. ::v-deep .el-date-editor.el-input .el-input__inner {
  825. height: 36px;
  826. line-height: 36px;
  827. }
  828. /* 富文本 */
  829. ::v-deep .ql-snow .ql-fill,
  830. .ql-snow .ql-stroke.ql-fill {
  831. fill: #fff !important;
  832. }
  833. ::v-deep .ql-snow .ql-stroke {
  834. stroke: #fff !important;
  835. }
  836. ::v-deep .ql-snow .ql-picker {
  837. color: #fff !important;
  838. }
  839. /* 单位框背景颜色 */
  840. ::v-deep .vue-treeselect__control {
  841. background: #004d86 !important;
  842. }
  843. /* 单位下拉菜单选中字体颜色 */
  844. ::v-deep .vue-treeselect__single-value {
  845. color: #fff !important;
  846. }
  847. /* 出席人 */
  848. ::v-deep .joinId {
  849. width: 650px !important;
  850. }
  851. ::v-deep .joinId .el-input__inner {
  852. width: 510px !important;
  853. }
  854. /* 分页按钮 */
  855. ::v-deep .el-pagination.is-background .el-pager li {
  856. background-color: #004d86;
  857. color: #fff;
  858. }
  859. ::v-deep .el-pagination.is-background .btn-next {
  860. background-color: #004d86;
  861. color: #fff;
  862. }
  863. /* 富文本删除功能 */
  864. ::v-deep .ql-blockquote {
  865. display: none !important;
  866. }
  867. ::v-deep .ql-strike {
  868. display: none !important;
  869. }
  870. ::v-deep .ql-script {
  871. display: none !important;
  872. }
  873. ::v-deep .ql-code-block {
  874. display: none !important;
  875. }
  876. ::v-deep .ql-direction {
  877. display: none !important;
  878. }
  879. ::v-deep .el-input__inner {
  880. cursor: pointer !important;
  881. }
  882. ::v-deep .ql-toolbar.ql-snow .ql-formats {
  883. margin-right: 7px;
  884. }
  885. /* 底部确定取消按钮 */
  886. ::v-deep .el-dialog__footer {
  887. padding: 30px 55px;
  888. }
  889. /* 调整输入框提示文字颜色 */
  890. ::v-deep .vue-treeselect__placeholder {
  891. color: #bdbdbd4f !important;
  892. }
  893. ::v-deep input::-webkit-input-placeholder {
  894. color: #bdbdbd4f !important;
  895. }
  896. ::v-deep input:-moz-placeholder {
  897. color: #bdbdbd4f !important;
  898. }
  899. </style>