userManage.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. <template>
  2. <div class="record-warp">
  3. <div class="record-main">
  4. <el-row>
  5. <el-col :span="24">
  6. <div class="search-head" style="padding-bottom: 10px">
  7. <el-input v-model="name" clearable placeholder="请输入姓名"></el-input
  8. >&nbsp;&nbsp;&nbsp;&nbsp;
  9. <el-input
  10. v-model="studentNumber"
  11. clearable
  12. placeholder="请输入学号"
  13. ></el-input
  14. >&nbsp;&nbsp;&nbsp;&nbsp;
  15. <el-cascader
  16. v-show="userInfo.roleType == '3'"
  17. placeholder="请选择组织架构"
  18. v-model="group"
  19. :options="groupData"
  20. :props="{ checkStrictly: true }"
  21. clearable
  22. ></el-cascader>
  23. <!-- :props="{ checkStrictly: true }" -->
  24. <el-cascader
  25. placeholder="请选择组织架构"
  26. v-model="group"
  27. :options="groupData"
  28. clearable
  29. ></el-cascader>
  30. &nbsp;&nbsp;&nbsp;&nbsp;
  31. <!-- <span style="font-size: 16px;">性别:</span>&nbsp;&nbsp; -->
  32. <div style="display: flex; flex-direction: row; align-items: center">
  33. <span
  34. style="
  35. font-size: 16px;
  36. margin-right: 10px;
  37. line-height: 20px;
  38. min-width: 40px;
  39. "
  40. >性别:</span
  41. >
  42. <el-radio v-model="sex" label="1">男</el-radio>
  43. <el-radio v-model="sex" label="0">女</el-radio>
  44. </div>
  45. &nbsp;&nbsp;&nbsp;&nbsp;
  46. <el-button type="primary" round icon="el-icon-search" @click="searchTarget"
  47. >搜索</el-button
  48. >
  49. <el-button type="info" round @click="clearSearch">清空</el-button>
  50. <el-button type="success" round class="add_class" @click="fileVisible = true"
  51. >批量导入</el-button
  52. >
  53. <el-button type="info" round @click="addUser">单独注册</el-button>
  54. </div>
  55. </el-col>
  56. </el-row>
  57. <!-- <el-row class="add_user_class">
  58. <el-col :span="24">
  59. <div class="search-head"></div>
  60. </el-col>
  61. </el-row> -->
  62. <div class="table-content" style="flex: 1; overflow: auto">
  63. <el-table
  64. :data="tableData"
  65. :row-style="{ height: '0px' }"
  66. :cell-style="{ padding: '5px' }"
  67. :header-cell-style="{ background: '#F8F8F8', color: '#606266' }"
  68. >
  69. <!-- <el-table-column prop="name" label="姓名" align="center" width="" show-overflow-tooltip>
  70. </el-table-column> -->
  71. <el-table-column
  72. show-overflow-tooltip
  73. prop="userName"
  74. label="姓名"
  75. align="center"
  76. width=""
  77. >
  78. </el-table-column>
  79. <el-table-column prop="userNo" label="学号" align="center" width="">
  80. </el-table-column>
  81. <el-table-column
  82. prop="gender"
  83. label="性别"
  84. align="center"
  85. width=""
  86. :formatter="genderFun"
  87. >
  88. </el-table-column>
  89. <el-table-column prop="grade" label="届数" align="center" width="" :formatter="gradeFormatter">
  90. </el-table-column>
  91. <el-table-column prop="orgName" label="所属组织架构" align="center" width="">
  92. </el-table-column>
  93. <el-table-column label="操作" width="510px" align="center">
  94. <template slot-scope="scope">
  95. <div class="detail_button_out">
  96. <div class="detail_button" @click="viewUser(scope.row)">
  97. <img src="../../assets/img/table/search.png" />
  98. <span> 查看个人详情 </span>
  99. </div>
  100. <div class="detail_button" @click="editUser(scope.row)">
  101. <img src="../../assets/img/table/edit.png" />
  102. <span>编辑个人详情</span>
  103. </div>
  104. <!-- 弹出提示框 提示是否确认重置-->
  105. <div class="detail_button" @click="resetUser(false, scope.row)">
  106. <img src="../../assets/img/table/reset.png" />
  107. <span> 重置密码 </span>
  108. </div>
  109. <!-- 弹出提示框 提示是否确认删除-->
  110. <div class="detail_button" @click="resetUser(true, scope.row)">
  111. <img src="../../assets/img/table/delete.png" />
  112. <span> 删除 </span>
  113. </div>
  114. </div>
  115. </template>
  116. </el-table-column>
  117. </el-table>
  118. </div>
  119. <!-- small -->
  120. <el-pagination
  121. class="pag_class"
  122. background
  123. @size-change="handleSizeChange"
  124. @current-change="handleCurrentChange"
  125. :current-page.sync="pageNum"
  126. layout="total, sizes, prev, pager, next"
  127. :page-size="pageSize"
  128. :page-sizes="[10, 20, 50, 100]"
  129. :total="total"
  130. >
  131. </el-pagination>
  132. <!-- <el-pagination small background layout="total prev, pager, next" :total="36">
  133. </el-pagination> -->
  134. </div>
  135. <Register ref="register" @search="searchTarget" />
  136. <el-dialog
  137. class="dig_update"
  138. :visible.sync="centerDialogVisible"
  139. width="40%"
  140. center
  141. style="border-radius: 40px"
  142. >
  143. <div slot="title">
  144. <div class="demo-ruleForm">
  145. <p class="dig_title">详情</p>
  146. <div class="user_out">
  147. <div class="user_out_sub">姓名</div>
  148. <div class="user_out_subNext">
  149. {{ view.name }}
  150. </div>
  151. </div>
  152. <div class="user_out">
  153. <div class="user_out_sub">学号</div>
  154. <div class="user_out_subNext">
  155. {{ view.studentNumber }}
  156. </div>
  157. </div>
  158. <div class="user_out">
  159. <div class="user_out_sub">届数</div>
  160. <div class="user_out_subNext">
  161. {{ view.grade }}
  162. </div>
  163. </div>
  164. <div class="user_out">
  165. <div class="user_out_sub">性别</div>
  166. <div class="user_out_subNext">
  167. {{ view.sex }}
  168. </div>
  169. </div>
  170. <div class="user_out">
  171. <div class="user_out_sub">组织架构</div>
  172. <div class="user_out_subNext">
  173. {{ view.orgName }}
  174. </div>
  175. </div>
  176. </div>
  177. </div>
  178. </el-dialog>
  179. <el-dialog
  180. class="dig_update"
  181. :visible.sync="resetVisible"
  182. width="30%"
  183. center
  184. style="border-radius: 40px"
  185. >
  186. <div slot="title">
  187. <div class="demo-ruleForm">
  188. <p v-show="!isDelete" class="dig_title">重置密码</p>
  189. <p v-show="isDelete" class="dig_title">删除用户</p>
  190. <p v-show="!isDelete">重置密码后密码为123456</p>
  191. <p v-show="isDelete">确认将删除{{ userName }}用户?</p>
  192. <div class="dig_button">
  193. <el-button type="info" round @click="cancle()">取消</el-button>
  194. <!-- <el-button type="success" round @click="submitForm('ruleForm')"
  195. >提交</el-button
  196. > -->
  197. <el-button type="success" round @click="submitCom()">确定</el-button>
  198. </div>
  199. </div>
  200. </div>
  201. </el-dialog>
  202. <el-dialog
  203. class="dig_update"
  204. :visible.sync="fileVisible"
  205. width="40%"
  206. center
  207. style="border-radius: 40px"
  208. >
  209. <div slot="title">
  210. <div class="demo-ruleForm">
  211. <p v-show="!isDelete" class="dig_title">批量导入</p>
  212. <!-- 先选择组织架构 -->
  213. <!-- :props="{ checkStrictly: true }" -->
  214. <el-cascader
  215. placeholder="请选择组织架构"
  216. v-model="groupLead"
  217. :options="groupData"
  218. clearable
  219. ></el-cascader>
  220. <el-select
  221. v-model="grade"
  222. clearable
  223. placeholder="请选择所属届"
  224. style="width: 100%; margin-top: 20px"
  225. >
  226. <el-option
  227. v-for="item in gradeOption"
  228. :key="item.value"
  229. :label="item.label"
  230. :value="item.value"
  231. >
  232. </el-option>
  233. </el-select>
  234. <el-upload
  235. class="upload-demo"
  236. style="margin-top: 20px"
  237. drag
  238. :before-upload="beforeUploadFun"
  239. :action="
  240. basePath +
  241. `/user/userImport?orgNo=${groupLead[groupLead.length - 1]}&roleType=1&grade=${grade}`
  242. "
  243. :headers="headers"
  244. :on-success="fileSuccess"
  245. :on-error="fileError"
  246. >
  247. <i class="el-icon-upload"></i>
  248. <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
  249. <div class="el-upload__tip" slot="tip">建议文件不超过500kb</div>
  250. </el-upload>
  251. <a
  252. style="
  253. display: flex;
  254. margin-top: 20px;
  255. margin-bottom: 20px;
  256. color: #409eff;
  257. cursor: pointer;
  258. "
  259. :href="basePath + '/user/templateDownload?roleType=1'"
  260. >
  261. 下载模版
  262. </a>
  263. <!-- <div class="dig_button">
  264. <el-button type="info" round @click="cancle()">取消</el-button>
  265. <el-button type="success" round @click="submitCom()">确定</el-button>
  266. </div> -->
  267. </div>
  268. </div>
  269. </el-dialog>
  270. </div>
  271. </template>
  272. <script>
  273. import { oSessionStorage } from "../../utils/utils";
  274. import register from "../../components/Register.vue";
  275. import { basePath } from "../../utils/http";
  276. export default {
  277. name: "userManage",
  278. components: {
  279. Register: register,
  280. },
  281. data() {
  282. return {
  283. basePath: basePath,
  284. //上传文件的弹出款的标志
  285. fileVisible: false,
  286. //判断点击的是重置密码还是点击删除
  287. isDelete: false,
  288. //重置密码需要调用个userId
  289. userId: "",
  290. //充值密码使用userName
  291. userName: "",
  292. //重置密码弹出框
  293. resetVisible: false,
  294. //根据名称搜索
  295. name: "",
  296. //搜索的用户编号
  297. studentNumber: "",
  298. //搜索的组织架构
  299. // 搜索需要的性别
  300. sex: "",
  301. group: "",
  302. ppData: [],
  303. groupData: [],
  304. //批量上传时的组织架构
  305. groupLead: [],
  306. options: [
  307. {
  308. value: "1",
  309. label: "选项1",
  310. children: [
  311. {
  312. value: "11",
  313. label: "选项11",
  314. children: [{ value: "111", label: "选项111" }],
  315. },
  316. ],
  317. },
  318. ],
  319. centerDialogVisible: false,
  320. editUserFlag: false,
  321. startTime: "",
  322. endTime: "",
  323. value1: null,
  324. total: 0,
  325. pageSize: 10,
  326. pageNum: 1,
  327. keyword: "",
  328. tableData: [],
  329. userInfo: {}, //用户信息
  330. invitationCode: "",
  331. roleType: "0",
  332. type: 0,
  333. view: {
  334. name: "",
  335. studentNumber: "",
  336. sex: "",
  337. orgName: "",
  338. //当前学生的届数
  339. grade:''
  340. },
  341. channel: "",
  342. channelList: [{ name: "渠道天成", id: "1" }],
  343. headers: {},
  344. grade: "",
  345. gradeOption: [],
  346. };
  347. },
  348. created() {},
  349. mounted() {
  350. this.userInfo = JSON.parse(oSessionStorage.getItem("userInfo"));
  351. this.headers = {
  352. Authorization: oSessionStorage.getItem("token")
  353. ? `Bearer ${oSessionStorage.getItem("token")}`
  354. : "",
  355. };
  356. this.getGradeFun();
  357. console.log("this.userInfo");
  358. console.log(this.userInfo);
  359. this.getChannel();
  360. if (!this.userInfo) {
  361. //如果用户信息不存在跳转登陆页
  362. this.$router.push({ path: "/" });
  363. }
  364. this.searchTarget();
  365. },
  366. methods: {
  367. gradeFormatter(row){
  368. //格式化当前届数
  369. return row.grade+'届'
  370. },
  371. //获取当前届数
  372. getGradeFun() {
  373. this.gradeOption = [];
  374. //获取当前届数
  375. //获取当前年份
  376. let date = new Date();
  377. let currentYear = date.getFullYear();
  378. let preYear = currentYear - 12;
  379. let list = [];
  380. for (let i = preYear; i < currentYear + 1; i++) {
  381. //
  382. let obj = {
  383. value: i,
  384. label: i + "届",
  385. };
  386. list.push(obj);
  387. }
  388. this.gradeOption = list.reverse();
  389. },
  390. //文件上传之前
  391. beforeUploadFun(file) {
  392. //查询是否选择了组织架构
  393. if (this.groupLead.length == 0) {
  394. this.$message({
  395. message: "请选择组织架构",
  396. type: "error",
  397. });
  398. return false;
  399. }
  400. if (this.grade == "") {
  401. this.$message({
  402. message: "请选择所属届",
  403. type: "error",
  404. });
  405. return false;
  406. }
  407. },
  408. //文件上传成功
  409. fileSuccess(res) {
  410. if (res.code == 200) {
  411. this.searchTarget();
  412. this.$message({
  413. message: res.msg,
  414. type: "success",
  415. });
  416. } else {
  417. this.$message({
  418. message: res.msg,
  419. type: "error",
  420. });
  421. }
  422. //查询列表
  423. },
  424. //文件上传失败
  425. fileError() {
  426. this.$message({
  427. message: "上传失败",
  428. type: "error",
  429. });
  430. },
  431. cancle() {
  432. this.resetVisible = false;
  433. },
  434. //提交文本
  435. submitCom() {
  436. //判断当前是否是
  437. if (this.isDelete) {
  438. this.deleteUser();
  439. //调用删除方法
  440. } else {
  441. this.resetFun();
  442. // 调用重置密码方法
  443. }
  444. },
  445. //性别---
  446. genderFun(val) {
  447. let sex = val.gender;
  448. if (sex == "1") {
  449. return "男";
  450. } else if (sex == "0") {
  451. return "女";
  452. } else {
  453. return sex;
  454. }
  455. },
  456. //每页多少条
  457. handleSizeChange(val) {
  458. this.pageSize = val;
  459. this.searchTarget();
  460. //将首页重置为1时---且总条数变化
  461. //设置为当前总条数
  462. },
  463. //获取组织架构方法--------------------开始-----------------------
  464. getChannel() {
  465. this.$http.get(
  466. `/org/findAllOrgByPOrgNo?orgNo=${this.userInfo.orgNo}`,
  467. {},
  468. (res) => {
  469. // this.$toast.success({message:'成功'});
  470. if (res && res.code == 200) {
  471. //将值赋值给list
  472. if (res.data.length > 0) {
  473. let resAdd = this.addPro(res.data);
  474. this.ppData = JSON.parse(JSON.stringify(resAdd));
  475. let forRes = this.arrToTree(resAdd);
  476. // console.log('格式化的结构')
  477. // console.log(forRes)
  478. let resultRes = this.deleteChildren(forRes);
  479. console.log("格式化的结构且去掉children");
  480. this.groupData = resultRes[0].children;
  481. } else {
  482. this.groupData = [];
  483. }
  484. // this.channelList = res.data;
  485. } else {
  486. this.$message.error(res.msg);
  487. }
  488. }
  489. );
  490. },
  491. //z增加
  492. addPro(val) {
  493. let data = JSON.parse(JSON.stringify(val));
  494. for (let i = 0; i < val.length; i++) {
  495. data[i].value = val[i].orgNo;
  496. data[i].label = val[i].orgName;
  497. }
  498. return data;
  499. },
  500. //非递归方式:将平铺数据转换为树形结构数据
  501. arrToTree(arr) {
  502. let data = arr.filter((item) => {
  503. item.children = arr.filter((e) => {
  504. return item.orgNo === e.parentOrgNo;
  505. });
  506. // return !item.parentOrgNo;
  507. return item.orgNo == this.userInfo.orgNo;
  508. });
  509. return data;
  510. },
  511. //去除转换树形结构数据后存在的空children
  512. deleteChildren(arr) {
  513. let childs = arr;
  514. for (let i = childs.length; i--; i > 0) {
  515. if (childs[i].children) {
  516. if (childs[i].children.length) {
  517. this.deleteChildren(childs[i].children);
  518. } else {
  519. delete childs[i].children;
  520. }
  521. }
  522. }
  523. return arr;
  524. },
  525. //获取组织架构方法--------------------结束-----------------------
  526. formatterDelete(row) {
  527. if (row.state == 0) {
  528. return "已删除";
  529. } else {
  530. return "正常";
  531. }
  532. },
  533. resetUser(flag, val) {
  534. this.resetVisible = true;
  535. this.isDelete = flag;
  536. this.userId = val.id;
  537. this.userName = val.userName;
  538. },
  539. editUser(row) {
  540. this.editRegisterUser(row);
  541. },
  542. viewUser(row) {
  543. this.view.name = row.userName;
  544. this.view.studentNumber = row.userNo;
  545. this.view.sex = row.gender == "0" ? "女" : "男";
  546. this.view.orgName = row.orgName;
  547. this.view.grade=row.grade+'届'
  548. this.centerDialogVisible = true;
  549. },
  550. addUser() {
  551. this.addRegisterUser(true);
  552. },
  553. clearSearch() {
  554. this.name = "";
  555. //搜索的用户编号
  556. this.studentNumber = "";
  557. //搜索的组织架构
  558. // 搜索需要的性别
  559. this.sex = "";
  560. this.group = "";
  561. this.searchTarget();
  562. },
  563. addRegisterUser(val) {
  564. this.$refs.register.open(val);
  565. },
  566. editRegisterUser(val) {
  567. this.$refs.register.edit(val);
  568. },
  569. resetFun() {
  570. this.$http.get(`/user/resetPassword?userId=${this.userId}`, {}, (res) => {
  571. // this.$toast.success({message:'成功'});
  572. if (res && res.code == 200) {
  573. this.resetVisible = false;
  574. this.$message.success("重置成功");
  575. this.searchTarget();
  576. } else {
  577. this.$message.error(res.msg);
  578. }
  579. });
  580. },
  581. deleteUser() {
  582. this.$http.get(`/user/delete?userId=${this.userId}`, {}, (res) => {
  583. // this.$toast.success({message:'成功'});
  584. if (res && res.code == 200) {
  585. this.$message.success("删除成功");
  586. this.resetVisible = false;
  587. this.searchTarget();
  588. } else {
  589. this.$message.error("删除失败");
  590. }
  591. });
  592. },
  593. handleCurrentChange(val) {
  594. this.pageNum = val;
  595. this.searchList();
  596. },
  597. //根据现有情况进行搜索
  598. searchList() {
  599. let url = `/user/findUserListByPage?pageSize=${this.pageSize}&pageNum=${
  600. this.pageNum
  601. }&roleType=1${this.sex == "" ? "" : `&gender=${this.sex}`}${
  602. this.group.length == 0
  603. ? `&orgNo=${this.userInfo.orgNo}`
  604. : `&orgNo=${this.group[this.group.length - 1]}`
  605. }${this.name == "" ? "" : `&userName=${this.name}`}${
  606. this.studentNumber == "" ? "" : `&userNo=${this.studentNumber}`
  607. }`;
  608. this.$http.get(url, {}, (res) => {
  609. console.log(res);
  610. if (res && res.code == 200) {
  611. this.tableData = res.data.content;
  612. this.total = res.data.totalElements;
  613. } else {
  614. // this.$toast.fail(res.msg);
  615. this.$message.error(res.msg);
  616. }
  617. });
  618. },
  619. searchTarget() {
  620. this.pageNum = 1;
  621. this.searchList();
  622. },
  623. //跳转首页
  624. goHome() {
  625. this.$router.push({ path: "/home" });
  626. },
  627. //跳转记录页
  628. goRecord() {
  629. this.$router.push({ path: "/record" });
  630. },
  631. //退出登陆
  632. logout() {
  633. oSessionStorage.removeItem("userInfo");
  634. oSessionStorage.removeItem("token");
  635. this.$router.push({ path: "/" });
  636. },
  637. //点击获取月出勤次数
  638. getTimes(param) {
  639. this.monthTimes = param;
  640. },
  641. },
  642. };
  643. </script>
  644. <style lang="less" scoped>
  645. @import "../../styles/theme.less";
  646. .pag_class {
  647. text-align: end;
  648. }
  649. .pag_class /deep/.el-input__inner {
  650. width: 100% !important;
  651. }
  652. .pag_class /deep/.el-pagination--small span:not([class*="suffix"]) {
  653. height: 22px;
  654. line-height: 28px !important;
  655. }
  656. .record-warp {
  657. width: 100%;
  658. height: 80vh;
  659. //background: url(../../assets/img/index/19.png) no-repeat center;
  660. //background-size: 100% 100%;
  661. position: relative;
  662. .record-main {
  663. width: 100%;
  664. height: 100%;
  665. box-sizing: border-box;
  666. overflow-y: auto;
  667. display: flex;
  668. flex-direction: column;
  669. .search-head {
  670. width: 100%;
  671. display: flex;
  672. flex-direction: row;
  673. justify-content: flex-start;
  674. align-items: center;
  675. .zc-title {
  676. color: #606266;
  677. font-size: 14px;
  678. }
  679. }
  680. .table-content {
  681. margin: 10px 0;
  682. }
  683. }
  684. }
  685. .add_user_class {
  686. margin-top: 10px;
  687. }
  688. .user_out {
  689. display: flex;
  690. width: 100%;
  691. align-items: center;
  692. border: 1px solid #eeeeef;
  693. line-height: 50px;
  694. margin-top: 10px;
  695. }
  696. .user_out_sub {
  697. flex: 1;
  698. background-color: #fafafa;
  699. text-align: center;
  700. // color:#ffffff
  701. }
  702. .user_out_subNext {
  703. padding-left: 10px;
  704. flex: 3;
  705. }
  706. .detail_button_out {
  707. display: flex;
  708. justify-content: space-around;
  709. .detail_button {
  710. display: flex;
  711. align-items: center;
  712. cursor: pointer;
  713. letter-spacing: 2px;
  714. img {
  715. width: 15px;
  716. margin-right: 5px;
  717. }
  718. span {
  719. color: #00bf78;
  720. // font-weight: 600;
  721. }
  722. }
  723. }
  724. //弹出框样式
  725. .dig_update /deep/.el-cascader {
  726. position: relative;
  727. font-size: 14px;
  728. line-height: 40px;
  729. width: 100%;
  730. }
  731. .dig_update /deep/.el-dialog {
  732. box-shadow: none !important;
  733. background: transparent !important;
  734. }
  735. .demo-ruleForm /deep/ .el-form-item {
  736. margin-right: 10px;
  737. vertical-align: top;
  738. display: flex !important;
  739. flex-direction: column;
  740. }
  741. .demo-ruleForm /deep/.el-dialog__header {
  742. background-color: #ffffff;
  743. padding-left: 140px !important;
  744. }
  745. .demo-ruleForm /deep/.el-form-item__label {
  746. text-align: left;
  747. vertical-align: middle;
  748. float: left;
  749. font-size: 14px;
  750. color: #606266;
  751. line-height: 40px;
  752. padding: 0 12px 0 0;
  753. -webkit-box-sizing: border-box;
  754. box-sizing: border-box;
  755. }
  756. .demo-ruleForm /deep/.el-input {
  757. width: 100% !important;
  758. }
  759. .demo-ruleForm /deep/.el-input__inner {
  760. width: 100% !important;
  761. background-color: #f7f7f7;
  762. border: 0px;
  763. }
  764. .dig_button {
  765. margin-top: 40px;
  766. display: flex;
  767. width: 100%;
  768. justify-content: space-around;
  769. }
  770. .demo-ruleForm {
  771. background-color: #ffffff;
  772. // border-radius: 20px;
  773. margin-right: -10px;
  774. margin-top: -10px;
  775. padding-right: 100px;
  776. padding-left: 100px;
  777. border-radius: 20px;
  778. padding-top: 20px;
  779. padding-bottom: 20px;
  780. .dig_title {
  781. margin-bottom: 30px;
  782. text-align: center;
  783. font-weight: 700;
  784. }
  785. }
  786. </style>