teacherManage.vue 22 KB

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