authorityHome.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750
  1. <!--
  2. * @Author: your name
  3. * @Date: 2021-11-29 09:27:43
  4. * @LastEditTime: 2022-03-01 10:30:44
  5. * @LastEditors: Please set LastEditors
  6. * @Description: 权限管理
  7. * @FilePath: \Foshan4A2.0\src\views\authorityManagement\components\home.vue
  8. -->
  9. <template>
  10. <div class="authority-home">
  11. <!--状态和搜索-->
  12. <div class="authority-head flex">
  13. <div class="status flex-wrap">
  14. <div class="status1"><span class="icon"></span>应用权限项</div>
  15. <div class="status2"><span class="icon"></span>普通权限项</div>
  16. </div>
  17. <Search @getSearchData="getSearchData" @clearSearchData="clearSearchData" />
  18. </div>
  19. <!--权限树-->
  20. <!-- <div class="authority-content">
  21. <OrgTree :dataList="dataList" :renderContent="renderContent" />
  22. </div> -->
  23. <div class="authority-content">
  24. <!-- <OrgTree :dataList="dataList" :renderContent="renderContent" /> -->
  25. <el-row :gutter="24" class="bodyContent">
  26. <el-col :span="6" class="bodyPart">
  27. <div class="grid-content">
  28. <div class="title">权限树</div>
  29. <div class="contentTree">
  30. <el-tree ref="tree" :data="dataListTree" :props="defaultProps" node-key="AuthId" :filter-node-method="filterNode" highlight-current :default-expanded-keys="[currentKey]" @node-click="handleNodeClick">
  31. </el-tree>
  32. </div>
  33. </div>
  34. </el-col>
  35. <el-col :span="18" class="bodyPart">
  36. <div class="grid-contentTop">
  37. <div class="title">当前</div>
  38. <div class="content">
  39. <template v-if="currDataArr.length">
  40. <el-row>
  41. <el-col :span="6" v-for="(data,index) in currDataArr" :key="data.AuthId">
  42. <div class="account-left-content-teams">
  43. <div class="team">
  44. <div class="bg" :class="data.Type == 1 || data.Type == 0 ? 'status1' : 'status2'"></div>
  45. <div class="list" :class="data.QueryTarget == 1 ? 'activeStatus' : ''">
  46. <div class="flex info">
  47. <div :title="data.AuthName" class="name">{{data.AuthName}}</div>
  48. <div class="icon">
  49. <el-tooltip effect="dark" content="新增应用" placement="bottom">
  50. <span v-if="data.Type === 0" title="新增应用" @click="renderAdd()" class="cap cap-plus"></span>
  51. </el-tooltip>
  52. <el-tooltip effect="dark" content="修改应用" placement="bottom">
  53. <span v-if="data.Type === 1" title="修改应用" @click="renderEdit(data)" class="cap cap-edit"></span>
  54. </el-tooltip>
  55. <el-tooltip v-is="['authtree_btn_add_auth']" effect="dark" content="新增权限项" placement="bottom">
  56. <span v-if="data.Type === 2" title="新增权限项" @click="renderSub(data)" class="cap cap-sub"></span>
  57. </el-tooltip>
  58. <el-tooltip v-is="['authtree_btn_update_auth']" effect="dark" content="编辑权限项" placement="bottom">
  59. <span v-if="data.Type > 2" title="编辑权限项" @click="renderEdit(data)" class="cap cap-edit"></span>
  60. </el-tooltip>
  61. <el-tooltip v-is="['authtree_btn_add_auth']" effect="dark" content="新增权限项" placement="bottom">
  62. <span v-if="data.Type > 2" title="新增权限项" @click="renderSub(data)" class="cap cap-sub"></span>
  63. </el-tooltip>
  64. </div>
  65. </div>
  66. <div v-if="data.Type > 0" class="flex details">
  67. <div class="details-msg">状态:<span :class="data.Status === 1 ? 'success' : 'error'">{{data.Status === 1 ? '启用' : '禁用'}}</span></div>
  68. <div v-is="['authtree_btn_state_swatch']" class="details-info">
  69. <el-switch v-model="data.flag" @change="renderChange(data,index)" active-color="#6F81BC">
  70. </el-switch>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. <div v-is="['authtree_btn_del_auth']">
  76. <div v-if="data.Type !== 0 && data.Type !== 2" @click="onNodeClick(data)" class="info-close">
  77. <i class="icon el-icon-close" :class="data.Type === 1 ? 'close1' : data.Type > 2 ? 'close2' : ''"></i>
  78. </div>
  79. </div>
  80. </div>
  81. </el-col>
  82. </el-row>
  83. </template>
  84. <template v-else>
  85. <el-empty :image-size="80" description="暂无数据"></el-empty>
  86. </template>
  87. </div>
  88. </div>
  89. <div class="grid-contentBottom">
  90. <div class="title">拥有权限</div>
  91. <div class="content">
  92. <template v-if="childrenData.length">
  93. <el-row :gutter="24">
  94. <el-col :span="6" v-for="(data,index) in childrenData" :key="data.AuthId">
  95. <div @click.stop="childrenClick(data)" class="account-left-content-teams">
  96. <div class="team">
  97. <div class="bg" :class="data.Type == 1 ? 'status1' : 'status2'"></div>
  98. <div class="list" :class="data.QueryTarget == 1 ? 'activeStatus' : ''">
  99. <div class="flex info">
  100. <div :title="data.AuthName" class="name">{{data.AuthName}}</div>
  101. <div class="icon">
  102. <el-tooltip effect="dark" content="新增应用" placement="bottom">
  103. <span v-if="data.Type === 0" title="新增应用" @click="renderAdd()" class="cap cap-plus"></span>
  104. </el-tooltip>
  105. <el-tooltip effect="dark" content="修改应用" placement="bottom">
  106. <span v-if="data.Type === 1" title="修改应用" @click="renderEdit(data)" class="cap cap-edit"></span>
  107. </el-tooltip>
  108. <el-tooltip v-is="['authtree_btn_add_auth']" effect="dark" content="新增权限项" placement="bottom">
  109. <span v-if="data.Type === 2" title="新增权限项" @click="renderSub(data)" class="cap cap-sub"></span>
  110. </el-tooltip>
  111. <el-tooltip v-is="['authtree_btn_update_auth']" effect="dark" content="编辑权限项" placement="bottom">
  112. <span v-if="data.Type > 2" title="编辑权限项" @click="renderEdit(data)" class="cap cap-edit"></span>
  113. </el-tooltip>
  114. <el-tooltip v-is="['authtree_btn_add_auth']" effect="dark" content="新增权限项" placement="bottom">
  115. <span v-if="data.Type > 2" title="新增权限项" @click="renderSub(data)" class="cap cap-sub"></span>
  116. </el-tooltip>
  117. </div>
  118. </div>
  119. <div v-if="data.Type > 0" class="flex details">
  120. <div class="details-msg">状态:<span :class="data.Status === 1 ? 'success' : 'error'">{{data.Status === 1 ? '启用' : '禁用'}}</span></div>
  121. <div v-is="['authtree_btn_state_swatch']" class="details-info">
  122. <el-switch v-model="data.flag" @click.stop.native @change="renderChange(data,index)" active-color="#6F81BC">
  123. </el-switch>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div v-is="['authtree_btn_del_auth']">
  129. <div v-if="data.Type !== 0 && data.Type !== 2" @click="onNodeClick(data)" class="info-close">
  130. <i class="icon el-icon-close" :class="data.Type === 1 ? 'close1' : data.Type > 2 ? 'close2' : ''"></i>
  131. </div>
  132. </div>
  133. <!-- <div v-if="data.Type !== 0 && data.Type !== 2" @click="onNodeClick(data)" class="info-close">
  134. <i class="icon el-icon-close" :class="data.Type === 1 ? 'close1' : data.Type > 2 ? 'close2' : ''"></i>
  135. </div> -->
  136. </div>
  137. </el-col>
  138. </el-row>
  139. </template>
  140. <template v-else>
  141. <el-empty :image-size="80" description="暂无数据"></el-empty>
  142. </template>
  143. </div>
  144. </div>
  145. </el-col>
  146. </el-row>
  147. </div>
  148. <!--删除弹框-->
  149. <Dialog :flag="flag">
  150. <div class="airportInfoDialog">
  151. <div class="title">删除{{ title }}</div>
  152. <div class="content">是否确认删除{{ title }}?</div>
  153. <div class="foot right t30">
  154. <el-button size="medium" class="r24" @click="remove" type="danger">删除</el-button>
  155. <el-button size="medium" @click="flag = false">取消</el-button>
  156. </div>
  157. </div>
  158. </Dialog>
  159. </div>
  160. </template>
  161. <script>
  162. import OrgTree from '@/layout/components/OrgTree'
  163. import Search from '@/layout/components/Search'
  164. import Dialog from '@/layout/components/Dialog'
  165. import { UpdateAppStatus, UpdateAuthStatus, DeleteApp, DeleteAuth } from '@/api/apiAuthority'
  166. import treeData from '../minixs/treeData'
  167. export default {
  168. name: 'Authority',
  169. components: { OrgTree, Search, Dialog },
  170. mixins: [treeData],
  171. data () {
  172. return {
  173. dataIndex: 1,
  174. dataNum: 0,
  175. dataArr: [],
  176. type: null,
  177. title: '', //弹框title
  178. flag: false, //弹框开关
  179. dataId: null, //tree数据id
  180. currDataArr: [],
  181. currDataArrId: 0,
  182. childrenData: [],
  183. dataListTree: [],
  184. currentKey: -1,
  185. defaultProps: {
  186. children: "children",
  187. label: "AuthName",
  188. },
  189. }
  190. },
  191. created: function () {
  192. let keyWords = ""
  193. if (this.$route.query.keyWords) {
  194. keyWords = this.$route.query.keyWords;
  195. }
  196. this.getAuthTree(keyWords);
  197. },
  198. watch: {
  199. dataList: {
  200. handler (val) {
  201. this.dataListTree = [];
  202. this.dataListTree.push(_.cloneDeep(val))
  203. },
  204. deep: true
  205. }
  206. },
  207. methods: {
  208. //树点击
  209. handleNodeClick (data) {
  210. const dataNew = _.cloneDeep(data)
  211. this.currDataArrId = dataNew.AuthId;
  212. this.currDataArr = [];
  213. this.childrenData = [];
  214. this.currDataArr = this.decompose(this.dataArr, "AuthId", dataNew.AuthId);
  215. this.childrenData = this.decompose(this.dataArr, "UpAuthId", dataNew.AuthId);
  216. },
  217. //下级卡片点击
  218. childrenClick (data) {
  219. const dataNew = _.cloneDeep(data)
  220. this.currDataArrId = dataNew.AuthId;
  221. this.currDataArr = [];
  222. this.childrenData = [];
  223. this.currDataArr = this.decompose(this.dataArr, "AuthId", dataNew.AuthId);
  224. this.childrenData = this.decompose(this.dataArr, "UpAuthId", dataNew.AuthId);
  225. this.$refs.tree.setCurrentKey(dataNew.AuthId);
  226. this.currentKey = dataNew.AuthId;
  227. },
  228. //下级关闭
  229. childrenRenderChange (data, index) {
  230. try {
  231. const { OrganId, flag } = data;
  232. const Status = flag ? 1 : 0;
  233. tissueTreeStart({
  234. OrganId: OrganId,
  235. Status: Status,
  236. }).then((res) => {
  237. if (res.code === 0) {
  238. this.$message.success(res.message);
  239. this.childrenData[index].Status = Status;
  240. // this.getOrganTree();
  241. } else {
  242. this.$message.error(res.message);
  243. this.childrenData[index].flag = !flag;
  244. }
  245. });
  246. } catch (error) {
  247. console.log("出错了", error);
  248. this.childrenData[index].flag = !flag;
  249. }
  250. },
  251. filterNode (value, data) {
  252. if (!value) return true;
  253. return data.AuthName.indexOf(value) !== -1;
  254. },
  255. // 添加应用
  256. renderAdd () {
  257. this.$router.push('/authority/appAdd')
  258. },
  259. // 修改权限
  260. renderEdit (data) {
  261. if (data.Type === 1) {
  262. this.$router.push({ path: '/authority/appEdit', query: { AuthId: data.AuthId, Status: data.Status, UpAuthId: data.UpAuthId } })
  263. } else if (data.Type > 2) {
  264. this.$router.push({ path: '/authority/editPower', query: { AuthId: data.AuthId, Status: data.Status, UpAuthId: data.UpAuthId } })
  265. }
  266. },
  267. // 权限树
  268. renderSub (data) {
  269. this.$router.push({ path: '/authority/addPower', query: { AuthId: data.AuthId, Status: data.Status, UpAuthId: data.UpAuthId } })
  270. },
  271. // 关闭开启
  272. renderChange (data, index) {
  273. const { AuthId, flag, Type } = data
  274. const Status = flag ? 1 : 0
  275. this.handleChange(AuthId, Status, Type, index)
  276. },
  277. //删除
  278. remove () {
  279. if (this.type === 1) {
  280. this.deleteApp(this.dataId)
  281. } else {
  282. this.deleteAuth(this.dataId)
  283. }
  284. },
  285. //查询
  286. getSearchData (val) {
  287. this.$refs.tree.filter(val);
  288. // this.getAuthTree(val)
  289. },
  290. //清除查询
  291. clearSearchData () {
  292. this.getAuthTree()
  293. },
  294. //节点关闭按钮点击
  295. onNodeClick (data) {
  296. this.flag = true
  297. this.dataId = data.AuthId
  298. this.title = data.AuthName
  299. this.type = data.Type
  300. },
  301. //获取指定数据
  302. decompose (value, key, id) {
  303. let data = _.cloneDeep(value);
  304. let arr = []
  305. for (let i = 0; i < data.length; i++) {
  306. if (data[i][key] == id) {
  307. arr.push(data[i])
  308. }
  309. }
  310. return arr
  311. },
  312. //渲染节点
  313. renderContent (h, data) {
  314. return (
  315. <div class="account-left-content-teams">
  316. <div class="team">
  317. <div class={[data.Type <= 1 ? 'status1' : 'status2', 'bg']}></div>
  318. <div class={[data.QueryTarget == 1 ? 'activeStatus' : '', 'list']}>
  319. <div class="flex info">
  320. <div class="name">{data.AuthName}</div>
  321. <div class="icon">
  322. <span v-show={data.Type === 0} onClick={() => this.renderAdd()} class="cap cap-plus"></span>
  323. <span v-show={data.Type === 1} onClick={() => this.renderEdit(data)} class="cap cap-edit"></span>
  324. <span v-show={data.Type === 2} onClick={() => this.renderSub(data)} class="cap cap-sub"></span>
  325. <span v-show={data.Type > 2} onClick={() => this.renderEdit(data)} class="cap cap-edit"></span>
  326. <span v-show={data.Type > 2} onClick={() => this.renderSub(data)} class="cap cap-sub"></span>
  327. </div>
  328. </div>
  329. <div v-show={data.Type > 0} class="flex details">
  330. <div class="details-msg">状态:<span class={[data.Status === 1 ? 'success' : 'error']}>{data.Status === 1 ? '启用' : '禁用'}</span></div>
  331. <div class="details-info">
  332. <el-switch v-model={data.flag} onChange={() => this.renderChange(data)} active-color="#6F81BC">
  333. </el-switch>
  334. </div>
  335. </div>
  336. </div>
  337. </div>
  338. <div v-show={data.Type !== 0 && data.Type !== 2} onClick={() => this.onNodeClick(data)} class="info-close">
  339. <i class={[data.Type === 1 ? 'close1' : data.Type > 2 ? 'close2' : '', 'icon', 'el-icon-close']}></i>
  340. </div>
  341. </div>
  342. )
  343. },
  344. //-----------获取数据------------
  345. //应用状态变更
  346. async handleChange (id, val, type, index) {
  347. try {
  348. let res = null
  349. if (type === 1) {
  350. res = await UpdateAppStatus({
  351. AppId: id,
  352. Status: val
  353. })
  354. } else {
  355. res = await UpdateAuthStatus({
  356. AuthId: id,
  357. AuthStatus: val
  358. })
  359. }
  360. if (res.code === 0) {
  361. this.$message.success(res.message)
  362. if (type === 1) {
  363. this.currDataArr[0].Status = val
  364. } else {
  365. this.childrenData[index].Status = val
  366. }
  367. //this.getAuthTree()
  368. } else {
  369. this.$message.error(res.message)
  370. if (type === 1) {
  371. this.currDataArr[0].flag = !flag;
  372. } else {
  373. this.childrenData[index].flag = !flag;
  374. }
  375. }
  376. } catch (error) {
  377. console.log('出错了', error)
  378. if (type === 1) {
  379. this.currDataArr[0].flag = !flag;
  380. } else {
  381. this.childrenData[index].flag = !flag;
  382. }
  383. }
  384. },
  385. //应用删除
  386. async deleteApp (id) {
  387. try {
  388. const res = await DeleteApp({
  389. AppId: id,
  390. })
  391. if (res.code === 0) {
  392. this.$message.success(res.message)
  393. this.flag = false
  394. this.getAuthTree()
  395. } else {
  396. this.flag = false
  397. this.$message.error(res.message)
  398. }
  399. } catch (error) {
  400. this.flag = false
  401. }
  402. },
  403. //权限项删除
  404. async deleteAuth (id) {
  405. try {
  406. const res = await DeleteAuth({
  407. AuthId: id,
  408. })
  409. if (res.code === 0) {
  410. this.$message.success(res.message)
  411. this.flag = false
  412. this.getAuthTree()
  413. } else {
  414. this.flag = false
  415. this.$message.error(res.message)
  416. }
  417. } catch (error) {
  418. this.flag = false
  419. }
  420. },
  421. }
  422. }
  423. </script>
  424. <style lang="scss" scoped>
  425. .authority-home {
  426. padding: 0 64px;
  427. overflow-x: auto;
  428. .authority-head {
  429. position: fixed;
  430. width: 100%;
  431. padding: 30px 64px;
  432. padding-left: 156px;
  433. left: 0;
  434. display: flex;
  435. flex-direction: row;
  436. justify-content: space-between;
  437. background: #f5f7fa;
  438. z-index: 100;
  439. .status {
  440. & > div {
  441. margin-right: 28px;
  442. .icon {
  443. width: 16px;
  444. height: 16px;
  445. background: #f3c45e;
  446. border-radius: 2px;
  447. display: inline-block;
  448. vertical-align: middle;
  449. margin-right: 10px;
  450. position: relative;
  451. top: -2px;
  452. }
  453. &:last-child {
  454. margin-right: 0;
  455. }
  456. }
  457. .status2 {
  458. .icon {
  459. background: #6f81bc;
  460. }
  461. }
  462. }
  463. }
  464. .authority-content {
  465. // margin-top: 34px;
  466. ::v-deep .orgTreeContent {
  467. padding-top: 110px;
  468. .account-left-content-teams {
  469. .status1 {
  470. background: #f3c45e;
  471. }
  472. .status2 {
  473. background: #6f81bc;
  474. }
  475. .activeStatus {
  476. background: #464960;
  477. .name,
  478. .details-msg,
  479. .success,
  480. .error {
  481. color: #fff;
  482. }
  483. }
  484. .list {
  485. .info {
  486. .name {
  487. max-width: 100px;
  488. white-space: nowrap;
  489. overflow: hidden;
  490. text-overflow: ellipsis;
  491. }
  492. }
  493. }
  494. }
  495. }
  496. }
  497. .authority-content {
  498. padding-top: 110px;
  499. height: calc(100vh - 166px);
  500. box-sizing: border-box;
  501. .bodyContent {
  502. height: 100%;
  503. .bodyPart {
  504. height: 100%;
  505. display: flex;
  506. flex-direction: column;
  507. justify-content: space-between;
  508. }
  509. }
  510. .account-left-content-teams {
  511. position: relative;
  512. margin-top: 24px;
  513. .info-close {
  514. position: absolute;
  515. width: 24px;
  516. height: 24px;
  517. line-height: 24px;
  518. text-align: center;
  519. background: #000000;
  520. border-radius: 50%;
  521. top: -12px;
  522. right: -12px;
  523. z-index: 5;
  524. cursor: pointer;
  525. .icon {
  526. color: #fff;
  527. font-weight: 600;
  528. }
  529. }
  530. .list {
  531. background-color: #f5f7fa;
  532. .info {
  533. line-height: normal;
  534. margin-bottom: 37px;
  535. .name {
  536. font-size: 16px;
  537. font-weight: bold;
  538. max-width: 120px;
  539. white-space: nowrap;
  540. overflow: hidden;
  541. text-overflow: ellipsis;
  542. }
  543. .cap {
  544. width: 24px;
  545. height: 24px;
  546. display: inline-block;
  547. background-repeat: no-repeat;
  548. background-size: cover;
  549. transition: all 0.3s;
  550. margin-left: 16px;
  551. &:first-child {
  552. margin-right: 0;
  553. }
  554. }
  555. .cap-plus {
  556. background-image: url("../../../assets/status/ic_plus.png");
  557. &:hover {
  558. background-image: url("../../../assets/status/ic_plus_hovar.png");
  559. }
  560. }
  561. .cap-edit {
  562. background-image: url("../../../assets/status/ic_edit.png");
  563. &:hover {
  564. background-image: url("../../../assets/status/ic_edit_hovar.png");
  565. }
  566. }
  567. .cap-sub {
  568. background-image: url("../../../assets/status/ic_subordinate.png");
  569. &:hover {
  570. background-image: url("../../../assets/status/ic_subordinate_hovar.png");
  571. }
  572. }
  573. .cap-job {
  574. background-image: url("../../../assets/status/ic_jobs.png");
  575. &:hover {
  576. background-image: url("../../../assets/status/ic_jobs_hovar.png");
  577. }
  578. }
  579. .cap-member {
  580. background-image: url("../../../assets/status/ic_member.png");
  581. &:hover {
  582. background-image: url("../../../assets/status/ic_member_hovar.png");
  583. }
  584. }
  585. }
  586. }
  587. .team {
  588. background: #fff;
  589. border-radius: 5%;
  590. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  591. overflow: hidden;
  592. .bg {
  593. height: 4px;
  594. background: #6f81bc;
  595. }
  596. .status1 {
  597. background: #f3c45e;
  598. }
  599. .status2 {
  600. background: #6f81bc;
  601. }
  602. }
  603. .list {
  604. padding: 23px 24px;
  605. position: relative;
  606. min-width: 240px;
  607. min-height: 118px;
  608. .info {
  609. margin-bottom: 20px;
  610. .info-avoutr {
  611. display: flex;
  612. .avoutr {
  613. width: 40px;
  614. height: 40px;
  615. border-radius: 50%;
  616. background: #303133;
  617. img {
  618. max-width: 100%;
  619. }
  620. }
  621. .msg {
  622. margin-left: 20px;
  623. p {
  624. margin: 0;
  625. padding: 0;
  626. height: 20px;
  627. line-height: 20px;
  628. }
  629. .name {
  630. font-weight: bold;
  631. color: #303133;
  632. font-size: 18px;
  633. margin-bottom: 8px;
  634. }
  635. .group {
  636. font-size: 14px;
  637. font-family: Microsoft YaHei;
  638. font-weight: 400;
  639. color: #303133;
  640. }
  641. }
  642. }
  643. .icon {
  644. font-size: 16px;
  645. cursor: pointer;
  646. }
  647. }
  648. .time,
  649. .ip {
  650. height: 16px;
  651. line-height: 16px;
  652. font-size: 16px;
  653. .glr {
  654. color: #909399;
  655. }
  656. }
  657. .ip {
  658. margin-top: 23px;
  659. margin-bottom: 38px;
  660. }
  661. .details {
  662. height: 24px;
  663. line-height: 24px;
  664. .success {
  665. color: #6f80bc;
  666. }
  667. .error {
  668. color: #f25555;
  669. }
  670. }
  671. }
  672. }
  673. .grid-content {
  674. width: 100%;
  675. height: 100%;
  676. background: #ffffff;
  677. border-radius: 16px;
  678. .title {
  679. font-size: 18px;
  680. font-family: Microsoft YaHei;
  681. font-weight: bold;
  682. color: #303133;
  683. height: 40px;
  684. padding: 30px;
  685. }
  686. .contentTree {
  687. height: calc(100% - 60px);
  688. overflow: auto;
  689. padding: 20px;
  690. }
  691. }
  692. .grid-contentTop {
  693. width: 100%;
  694. height: 240px;
  695. background: #ffffff;
  696. border-radius: 16px;
  697. .title {
  698. font-size: 18px;
  699. font-family: Microsoft YaHei;
  700. font-weight: bold;
  701. color: #303133;
  702. height: 40px;
  703. padding: 30px;
  704. }
  705. .content {
  706. width: 100%;
  707. height: calc(100% - 60px);
  708. padding: 0 20px;
  709. }
  710. }
  711. .grid-contentBottom {
  712. width: 100%;
  713. height: calc(100% - 240px - 24px);
  714. background: #ffffff;
  715. border-radius: 16px;
  716. .title {
  717. font-size: 18px;
  718. font-family: Microsoft YaHei;
  719. font-weight: bold;
  720. color: #303133;
  721. height: 40px;
  722. padding: 30px;
  723. }
  724. .content {
  725. width: 100%;
  726. height: calc(100% - 60px);
  727. padding: 0 20px;
  728. overflow-y: auto;
  729. }
  730. }
  731. }
  732. }
  733. ::-webkit-scrollbar-track-piece {
  734. background: #d3dce6;
  735. }
  736. ::-webkit-scrollbar {
  737. width: 6px;
  738. }
  739. ::-webkit-scrollbar-thumb {
  740. background: #99a9bf;
  741. border-radius: 20px;
  742. }
  743. </style>