index_20220314101335.vue 24 KB

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