index.vue 24 KB

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