index.vue 24 KB

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