index.vue 22 KB

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