index.vue 24 KB

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