index.vue 24 KB

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