index.vue 24 KB

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