index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766
  1. <template>
  2. <div class="action" v-loading="loading">
  3. <div
  4. class="action_show_box"
  5. v-if=" powers.some((i) => i == '001') && currentCompany"
  6. >
  7. <ul class="role-list fl">
  8. <p class="role-list__title">角色列表</p>
  9. <p
  10. v-if="roleList.length == 0"
  11. style="line-height: 60px; text-align: center; color: #909399"
  12. >
  13. 暂无数据
  14. </p>
  15. <li
  16. v-for="(item, index) in roleList"
  17. :key="'role' + index"
  18. class="role-list__item"
  19. :class="{ active: item.id == roleActive.id }"
  20. @click="!isBtnDisabled && switchRoleHandle(item)"
  21. >
  22. {{ item.role_name }}
  23. <i v-if="isBtnDisabled && item.id == roleActive.id" class="el-icon-loading" />
  24. </li>
  25. </ul>
  26. <div class="rule-view fr">
  27. <div class="rule-list" v-if="roleList.length > 0">
  28. <el-row v-for="(item, index) in actionList" :key="'menu' + item.id + index">
  29. <el-col v-if="item.child && item.child.length > 0" class="ffff" :span="24">
  30. <div class="ftitle">
  31. <span>{{ item.menu_name }}</span>
  32. </div>
  33. <div class="fbody">
  34. <div
  35. class="fbody-item"
  36. v-for="(subItem, subIndex) in item.child"
  37. :key="'yemian' + subItem.id + subIndex"
  38. >
  39. <template
  40. v-if="
  41. !(
  42. subItem.action &&
  43. subItem.action.length === 0 &&
  44. subItem.action_data &&
  45. subItem.action_data.length === 0
  46. )
  47. "
  48. >
  49. <div class="stitle">
  50. <span class="_h2">{{ subItem.menu_name }}</span>
  51. <el-radio-group
  52. style="margin: 0 0 0 20px"
  53. size="mini"
  54. v-if="subItem && subItem.private && subItem.private.length === 2"
  55. v-model="subItem.is_private_change"
  56. >
  57. <el-radio-button
  58. v-for="(radioN, ri) in subItem.private"
  59. :key="radioN.label + ri"
  60. :label="String(radioN.id)"
  61. >{{ radioN.label }}</el-radio-button
  62. >
  63. </el-radio-group>
  64. </div>
  65. <div
  66. class="scheck"
  67. v-if="subItem.action && subItem.action.length > 0"
  68. >
  69. <div class="checkAll">
  70. <el-checkbox
  71. v-model="subItem.checkAll"
  72. :disabled="!powers.some((i) => i == '008')"
  73. :indeterminate="indeterminateCheck(subItem)"
  74. @change="handleCheckAllChange($event, index, item, subIndex)"
  75. >功能全选</el-checkbox
  76. >
  77. </div>
  78. <div class="checkItem">
  79. <el-checkbox-group
  80. v-model="subItem.checkList"
  81. :disabled="!powers.some((i) => i == '008')"
  82. @change="
  83. handleCheckedGroupChange($event, index, item, subIndex)
  84. "
  85. >
  86. <template v-for="children in subItem.action">
  87. <el-checkbox
  88. :disabled="!powers.some((i) => i == '008')"
  89. :key="'checkItem' + children.id"
  90. :label="String(children.id)"
  91. @change="
  92. handleCheckedChange(
  93. $event,
  94. String(children.id),
  95. index,
  96. subIndex,
  97. item
  98. )
  99. "
  100. >{{ children.action_name }}</el-checkbox
  101. >
  102. </template>
  103. </el-checkbox-group>
  104. </div>
  105. </div>
  106. <div
  107. class="sfield"
  108. v-if="subItem.action_data && subItem.action_data.length > 0"
  109. >
  110. <div class="checkAll">
  111. <el-checkbox
  112. v-model="subItem.fieldAll"
  113. :disabled="!powers.some((i) => i == '008')"
  114. :indeterminate="indeterminateField(subItem)"
  115. @change="handleFieldAllChange($event, index, item, subIndex)"
  116. >字段全选</el-checkbox
  117. >
  118. </div>
  119. <div class="checkItem">
  120. <el-checkbox-group
  121. v-model="subItem.fieldList"
  122. :disabled="!powers.some((i) => i == '008')"
  123. @change="handleFieldGroupChange($event, index, item, subIndex)"
  124. >
  125. <template v-for="children in subItem.action_data">
  126. <el-checkbox
  127. :key="'FieldItem' + children.id"
  128. :label="String(children.id)"
  129. :disabled="!powers.some((i) => i == '008')"
  130. @change="
  131. handleFieldChange(
  132. $event,
  133. String(children.id),
  134. index,
  135. subIndex,
  136. item
  137. )
  138. "
  139. >{{ children.field_name }}</el-checkbox
  140. >
  141. </template>
  142. </el-checkbox-group>
  143. </div>
  144. </div>
  145. </template>
  146. </div>
  147. </div>
  148. </el-col>
  149. </el-row>
  150. </div>
  151. <p
  152. v-else
  153. style="line-height: 60px;margin-top: 50px ;text-align: center; color: #909399"
  154. >
  155. 暂无数据
  156. </p>
  157. </div>
  158. <div class="rule-bottom fr" v-if="roleList.length > 0">
  159. <el-button
  160. size="small"
  161. type="primary"
  162. v-if="powers.some((i) => i == '008')"
  163. :disabled="isBtnDisabled"
  164. @click="save()"
  165. >提 交</el-button
  166. >
  167. </div>
  168. </div>
  169. <div class="select-wrapper" v-else-if="!currentCompany">
  170. <i class="el-icon-warning" />
  171. 请在右上角选择一家公司
  172. </div>
  173. <div v-else>
  174. <no-auth></no-auth>
  175. </div>
  176. </div>
  177. </template>
  178. <script>
  179. import asyncRequest from "@/apis/service/interest/action";
  180. import companyHelper from "@/mixins/companyHelper.js";
  181. import resToken from "@/mixins/resToken";
  182. export default {
  183. name: "Action",
  184. mixins: [resToken, companyHelper],
  185. data() {
  186. return {
  187. ruleForm: {},
  188. // 按钮是否可点击
  189. isBtnDisabled: true,
  190. // 当前角色
  191. roleActive: {},
  192. actionChange: [],
  193. // 角色列表
  194. roleList: [],
  195. rules: [],
  196. // 功能权限列表
  197. actionList: [],
  198. action_data: [], // 字段数据
  199. action: [], // 功能数据
  200. private_data: [], //私有数据菜单ID
  201. private_field: [],
  202. loading:false
  203. };
  204. },
  205. computed: {
  206. powers() {
  207. const tran =
  208. this.$store.getters.btnList.find((i) => i.menu_route == "action") || {};
  209. const { action } = tran ?? {};
  210. return action ?? [];
  211. },
  212. indeterminateCheck() {
  213. return (item) => {
  214. // 选中子节点的数量
  215. const selectItemLength = item.action.filter(
  216. (filitem) =>
  217. item.checkList.findIndex((finditem) => finditem === filitem.id) > -1
  218. ).length;
  219. // 未选中子节点的数量
  220. const noSlectItemLength = item.action.filter(
  221. (filitem) =>
  222. item.checkList.findIndex((finditem) => finditem === filitem.id) == -1
  223. ).length;
  224. // // 当前节点的index
  225. // 存在选中子节点且存在未选中子节点为中间态
  226. return selectItemLength > 0 && noSlectItemLength > 0;
  227. };
  228. },
  229. indeterminateField() {
  230. return (item) => {
  231. // 选中子节点的数量
  232. const selectItemLength = item.action_data.filter(
  233. (filitem) =>
  234. item.fieldList.findIndex((finditem) => finditem === filitem.id) > -1
  235. ).length;
  236. // 未选中子节点的数量
  237. const noSlectItemLength = item.action_data.filter(
  238. (filitem) =>
  239. item.fieldList.findIndex((finditem) => finditem === filitem.id) == -1
  240. ).length;
  241. // // 当前节点的index
  242. // 存在选中子节点且存在未选中子节点为中间态
  243. return selectItemLength > 0 && noSlectItemLength > 0;
  244. };
  245. },
  246. },
  247. mounted() {
  248. this.initactionList();
  249. },
  250. methods: {
  251. onCompanyChange(){
  252. this.initactionList();
  253. },
  254. recursionFilterActionList(list) {
  255. const _list = []
  256. for (let i = 0; i < list.length; i++) {
  257. const item = list[i]
  258. if (item.level !== 1) _list.push(item)
  259. if (item.child && item.child.length > 0) item.child = this.recursionFilterActionList(item.child)
  260. }
  261. return _list
  262. },
  263. // 全选/全不选
  264. handleCheckAllChange(checkAll, index, item, subIndex) {
  265. this.actionList[index].child[subIndex].checkAll = checkAll;
  266. this.$set(this.actionList, index, item);
  267. this.actionList[index].child[subIndex].action.forEach((element) => {
  268. const findindex = this.actionList[index].child[subIndex].checkList.findIndex(
  269. (findItem) => findItem === String(element.id)
  270. );
  271. if (checkAll && findindex == -1) {
  272. this.actionList[index].child[subIndex].checkList.push(String(element.id));
  273. } else if (!checkAll && findindex > -1) {
  274. this.actionList[index].child[subIndex].checkList.splice(findindex, 1);
  275. }
  276. });
  277. },
  278. // 全选/全不选
  279. handleFieldAllChange(fieldAll, index, item, subIndex) {
  280. this.actionList[index].child[subIndex].fieldAll = fieldAll;
  281. this.$set(this.actionList, index, item);
  282. this.actionList[index].child[subIndex].action_data.forEach((element) => {
  283. const findindex = this.actionList[index].child[subIndex].fieldList.findIndex(
  284. (findItem) => findItem === String(element.id)
  285. );
  286. if (fieldAll && findindex == -1) {
  287. this.actionList[index].child[subIndex].fieldList.push(String(element.id));
  288. } else if (!fieldAll && findindex > -1) {
  289. this.actionList[index].child[subIndex].fieldList.splice(findindex, 1);
  290. }
  291. });
  292. },
  293. // 复选框组内的选中/不选中
  294. handleCheckedGroupChange(event, index, item, subIndex) {
  295. // console.log(event, index, subIndex);
  296. this.actionList[index].child[subIndex].checkAll = this.actionList[index].child[
  297. subIndex
  298. ].action.every(
  299. (evitem) =>
  300. this.actionList[index].child[subIndex].checkList.findIndex(
  301. (finditem) => finditem === String(evitem.id)
  302. ) > -1
  303. );
  304. this.$set(this.actionList, index, item);
  305. },
  306. // 复选框组内的选中/不选中
  307. handleFieldGroupChange(event, index, item, subIndex) {
  308. this.actionList[index].child[subIndex].fieldAll = this.actionList[index].child[
  309. subIndex
  310. ].action_data.every(
  311. (evitem) =>
  312. this.actionList[index].child[subIndex].fieldList.findIndex(
  313. (finditem) => finditem === String(evitem.id)
  314. ) > -1
  315. );
  316. this.$set(this.actionList, index, item);
  317. },
  318. // 单项复选框选中/不选中
  319. handleCheckedChange(checked, id, index, subIndex, item) {
  320. // console.log(checked, id, index, subIndex);
  321. if (checked) {
  322. // 选中时检查pid的选中状态
  323. this.actionList[index].child[subIndex].checkList.indexOf(String(id)) == -1 &&
  324. this.actionList[index].child[subIndex].checkList.push(String(id));
  325. } else {
  326. const find = this.actionList[index].child[subIndex].checkList.findIndex(
  327. (e) => e == id
  328. );
  329. if (find > -1) {
  330. this.actionList[index].child[subIndex].checkList.splice(find, 1);
  331. }
  332. this.actionList[index].child[subIndex].checkAll = false;
  333. }
  334. this.$set(this.actionList, index, item);
  335. // console.log(this.actionList[index].child[subIndex]);
  336. },
  337. // 单项复选框选中/不选中
  338. handleFieldChange(checked, id, index, subIndex, item) {
  339. // console.log(checked, id, index, subIndex);
  340. if (checked) {
  341. // 选中时检查pid的选中状态
  342. this.actionList[index].child[subIndex].fieldList.indexOf(String(id)) == -1 &&
  343. this.actionList[index].child[subIndex].fieldList.push(String(id));
  344. } else {
  345. const find = this.actionList[index].child[subIndex].fieldList.findIndex(
  346. (e) => e == id
  347. );
  348. if (find > -1) {
  349. this.actionList[index].child[subIndex].fieldList.splice(find, 1);
  350. }
  351. this.actionList[index].child[subIndex].fieldAll = false;
  352. }
  353. this.$set(this.actionList, index, item);
  354. // console.log(this.actionList[index].child[subIndex]);
  355. },
  356. // 切换角色
  357. switchRoleHandle(item) {
  358. this.roleActive = Object.assign({}, item);
  359. this.$nextTick(async () => {
  360. await this.refreshRoleDetail(String(item.id));
  361. });
  362. },
  363. // 保存
  364. async save() {
  365. this.action_data = []; // 字段数据
  366. this.action = []; // 功能数据
  367. let arr = [];
  368. this.actionList.forEach((x) => {
  369. x.child.forEach((y) => {
  370. this.action_data.push(...y.fieldList);
  371. this.action.push(...y.checkList);
  372. if (String(y.is_private_change) === "1") {
  373. arr.push(String(y.id));
  374. }
  375. });
  376. });
  377. // this.action_data.length === 0 || 和字段
  378. if (this.action.length === 0) {
  379. this.$message.warning("请选择功能!");
  380. } else {
  381. const model = {
  382. roleid: this.roleActive.id,
  383. role_name: this.ruleForm.role_name,
  384. level: this.ruleForm.level,
  385. action: this.action,
  386. action_data: this.action_data,
  387. private_data: arr,
  388. private_field: this.private_field.split(','),
  389. is_allow_see_price: this.ruleForm.is_allow_see_price
  390. };
  391. const loadding = this.$loading();
  392. const res = await asyncRequest.update(model);
  393. if (res && res.code === 0 && res.data) {
  394. this.$notify.success({
  395. title: "保存成功!",
  396. message: "",
  397. });
  398. } else if (res && res.code >= 100 && res.code <= 104) {
  399. await this.logout();
  400. } else {
  401. this.$message.warning(res.message);
  402. }
  403. loadding.close();
  404. }
  405. },
  406. // 刷新角色详情
  407. async refreshRoleDetail(roleid) {
  408. this.isBtnDisabled = true;
  409. const res = await asyncRequest.detail({ roleid: roleid });
  410. if (res && res.code === 0 && res.data) {
  411. this.ruleForm.is_allow_see_price = res.data.is_allow_see_price
  412. let resD = res.data;
  413. this.ruleForm = resD;
  414. if (resD.action && resD.action.length > 0) {
  415. this.action = resD.action;
  416. } else {
  417. this.action = [];
  418. }
  419. if (resD.action_data && resD.action_data.length > 0) {
  420. this.action_data = resD.action_data;
  421. } else {
  422. this.action_data = [];
  423. }
  424. if (resD.private_data === "") {
  425. resD.private_data = [];
  426. }
  427. if (resD.private_data && resD.private_data.length > 0) {
  428. this.private_data = resD.private_data;
  429. } else {
  430. this.private_data = [];
  431. }
  432. this.private_field = resD.private_field;
  433. this.refreshRoleCheckAllStatus();
  434. } else if (res && res.code >= 100 && res.code <= 104) {
  435. await this.logout();
  436. } else {
  437. this.$message.warning(res.message);
  438. }
  439. this.isBtnDisabled = false;
  440. },
  441. // 初始化功能权限列表
  442. async initactionList() {
  443. this.loading = true
  444. if(!this.currentCompany){
  445. this.$message.warning("请在右上角选择一家公司");
  446. return
  447. }
  448. const res = await asyncRequest.actionList({});
  449. if (res && res.code === 0 && res.data) {
  450. this.rules = this.recursionFilterActionList(res.data);
  451. console.dir(this.rules)
  452. await this.initRoleList();
  453. } else if (res && res.code >= 100 && res.code <= 104) {
  454. await this.logout();
  455. } else {
  456. this.$message.warning(res.message);
  457. }
  458. this.loading = false;
  459. },
  460. // 初始化角色列表
  461. async initRoleList() {
  462. const res = await asyncRequest.getRole({companyNo: this.currentCompany});
  463. if (res && res.code === 0 && res.data) {
  464. this.roleList = [].concat(res.data);
  465. if (this.roleList.length > 0) {
  466. await this.switchRoleHandle(this.roleList[0]);
  467. } else if (res && res.code >= 100 && res.code <= 104) {
  468. await this.logout();
  469. } else {
  470. this.$message.warning(res.message);
  471. }
  472. }
  473. },
  474. // 刷新选择状态
  475. refreshRoleCheckAllStatus() {
  476. const list = JSON.parse(JSON.stringify(this.rules));
  477. let arr = list.filter((item) => item.child && item.child.length > 0);
  478. arr = arr.map((x) => {
  479. x.child.map((y) => {
  480. y.checkAll = false;
  481. y.checkList = [];
  482. y.fieldAll = false;
  483. y.fieldList = [];
  484. y.is_private_change = "0";
  485. if (String(y.is_private) === "0") {
  486. y.private = [];
  487. } else {
  488. y.private = [
  489. {
  490. id: "0",
  491. label: "公有数据",
  492. },
  493. {
  494. id: "1",
  495. label: "私有数据",
  496. },
  497. ];
  498. }
  499. return y;
  500. });
  501. return x;
  502. });
  503. this.actionList = arr;
  504. this.actionList.forEach((x, xi) => {
  505. if (x.child && x.child.length > 0) {
  506. x.child.forEach((y, yi) => {
  507. let id = y.id;
  508. if (y.action && y.action.length > 0) {
  509. y.action.forEach((z) => {
  510. const Aindex = this.action.findIndex((a) => String(a) === String(z.id));
  511. if (Aindex !== -1) {
  512. y.checkList.push(this.action[Aindex]);
  513. }
  514. if (y.action.length === y.checkList.length) {
  515. y.checkAll = true;
  516. }
  517. });
  518. }
  519. if (y.action_data && y.action_data.length > 0) {
  520. y.action_data.map((z) => {
  521. const Bindex = this.action_data.findIndex((a) => String(a) === String(z.id));
  522. if (Bindex !== -1) {
  523. y.fieldList.push(this.action_data[Bindex]);
  524. }
  525. });
  526. if (y.action_data.length === y.fieldList.length) {
  527. y.fieldAll = true;
  528. }
  529. }
  530. if (y.private && y.private.length === 2) {
  531. let Cindex = this.private_data.findIndex((a) => String(a) === String(y.id));
  532. if (Cindex !== -1) {
  533. y.is_private_change = "1";
  534. } else {
  535. y.is_private_change = "0";
  536. }
  537. } else {
  538. y.is_private_change = "0";
  539. }
  540. });
  541. }
  542. this.$set(this.actionList, xi, x);
  543. });
  544. },
  545. },
  546. };
  547. </script>
  548. <style lang="scss" scoped>
  549. @import "~@/styles/mixin.scss";
  550. .action {
  551. position: relative;
  552. width: 100%;
  553. height: 100%;
  554. overflow: hidden;
  555. .action_show_box {
  556. // position: relative;
  557. // height: calc(100% - 50px);
  558. // min-height: calc(100% - 50px);
  559. display: relative;
  560. width: 100%;
  561. height: calc(100vh - 50px);
  562. overflow: hidden;
  563. text-align: left;
  564. //左侧
  565. .role-list {
  566. height: 100%;
  567. overflow-y: auto;
  568. width: 200px;
  569. padding: 8px 16px;
  570. min-height: 100%;
  571. flex-shrink: 0;
  572. border-right: 2px solid #dfe6ec;
  573. @include scrollBar();
  574. &::after {
  575. content: "";
  576. position: absolute;
  577. top: 0;
  578. right: 0;
  579. height: 100%;
  580. width: 2px;
  581. background-color: #e4e7ed;
  582. z-index: 1;
  583. }
  584. .role-list__title {
  585. color: #b4b6c0;
  586. line-height: 32px;
  587. }
  588. .role-list__item {
  589. position: relative;
  590. white-space: nowrap;
  591. text-overflow: ellipsis;
  592. overflow: hidden;
  593. height: 32px;
  594. line-height: 32px;
  595. padding-left: 8px;
  596. color: rgb(48, 49, 51);
  597. cursor: pointer;
  598. i {
  599. position: absolute;
  600. right: 0;
  601. line-height: 32px;
  602. }
  603. }
  604. .role-list__item.active {
  605. color: #6954f0;
  606. background: #f7f7f7;
  607. }
  608. }
  609. //右侧
  610. .rule-view {
  611. height: calc(100% - 50px);
  612. width: calc(100% - 200px);
  613. overflow-y: auto;
  614. @include scrollBar();
  615. // padding: 0 0 0 16px;
  616. .ffff {
  617. width: 100%;
  618. display: flex;
  619. align-items: stretch;
  620. .ftitle {
  621. width: 110px;
  622. text-align: center;
  623. border-right: 1px solid #dfe6ec;
  624. border-bottom: 1px solid #dfe6ec;
  625. padding: 12px 14px;
  626. display: flex;
  627. align-items: center;
  628. span {
  629. display: inline-block;
  630. width: 100%;
  631. font-size: 17px;
  632. text-align: center;
  633. color: #97a8be;
  634. }
  635. }
  636. .fbody {
  637. width: calc(100% - 110px);
  638. .fbody-item {
  639. border-right: 1px solid #dfe6ec;
  640. border-bottom: 1px solid #dfe6ec;
  641. .stitle {
  642. padding: 18px 18px 12px 18px;
  643. border-bottom: 1px dashed #dfe6ec;
  644. font-size: 14px;
  645. color: #97a8be;
  646. ._h2 {
  647. display: inline-block;
  648. // width: 100px;
  649. }
  650. }
  651. .scheck {
  652. padding: 15px 0 10px 0;
  653. display: flex;
  654. width: 100%;
  655. .checkAll {
  656. width: 140px;
  657. text-align: right;
  658. padding: 0 35px 0 0;
  659. }
  660. .checkItem {
  661. width: calc(100% - 140px);
  662. }
  663. }
  664. .sfield {
  665. padding: 0 0 10px 0;
  666. display: flex;
  667. width: 100%;
  668. .checkAll {
  669. width: 140px;
  670. text-align: right;
  671. padding: 0 35px 0 0;
  672. }
  673. .checkItem {
  674. width: calc(100% - 140px);
  675. }
  676. }
  677. }
  678. }
  679. // .rule-list {
  680. // height: 100%;
  681. // overflow-y: auto;
  682. // padding: 0 0 80px 0;
  683. // .rule-title {
  684. // .title {
  685. // font-size: 20px;
  686. // color: #333;
  687. // }
  688. // .desc {
  689. // margin: 10px 0;
  690. // font-size: 12px;
  691. // color: #999;
  692. // }
  693. // }
  694. // .rule-item {
  695. // .title {
  696. // margin: 30px 30px 10px 0;
  697. // font-size: 18px;
  698. // padding-bottom: 12px;
  699. // border-bottom: 1px solid #eee;
  700. // color: #333;
  701. // .el-checkbox {
  702. // margin-left: 10px;
  703. // }
  704. // }
  705. // .el-checkbox-group {
  706. // margin: 10px 30px 30px 0;
  707. // .el-checkbox {
  708. // line-height: 30px;
  709. // }
  710. // .children-checkbox-hr {
  711. // margin: 8px 0;
  712. // border: none;
  713. // border-top: 2px dotted #eee;
  714. // }
  715. // }
  716. // }
  717. // }
  718. }
  719. }
  720. .rule-bottom {
  721. padding: 10px 18px 8px 0;
  722. background: #fff;
  723. width: calc(100% - 200px);
  724. position: absolute;
  725. text-align: right;
  726. bottom: 0;
  727. right: 0;
  728. &::before {
  729. content: "";
  730. position: absolute;
  731. top: 0;
  732. right: 0;
  733. height: 2px;
  734. width: 100%;
  735. background-color: #e4e7ed;
  736. z-index: 1;
  737. }
  738. }
  739. }
  740. }
  741. </style>