index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <template>
  2. <div class="Box">
  3. <el-form
  4. :model="FormData"
  5. :rules="rules"
  6. ref="ruleForm"
  7. label-width="100px"
  8. class="demo-ruleForm"
  9. >
  10. <div class="topBox">
  11. <div class="titleBtn">
  12. <span class="titleStyle">策略信息编辑 </span>
  13. <div>
  14. <el-button @click="save()">保存</el-button>
  15. </div>
  16. </div>
  17. <!-- 第一排 -->
  18. <div class="fristLine">
  19. <div class="inputBox">
  20. <el-form-item label="策略名称" prop="TacName">
  21. <el-input
  22. placeholder="请输入"
  23. v-model.trim="FormData.TacName"
  24. ></el-input>
  25. </el-form-item>
  26. </div>
  27. <div class="inputBox">
  28. <el-form-item label="IP类型" prop="IpType">
  29. <el-select v-model="FormData.IpType" placeholder="请选择类型">
  30. <el-option
  31. v-for="item in options"
  32. :key="item.value"
  33. :label="item.label"
  34. :value="item.value"
  35. >
  36. </el-option>
  37. </el-select>
  38. </el-form-item>
  39. </div>
  40. <div class="block inputBox1">
  41. <el-form-item label="登录日期" prop="Date">
  42. <el-date-picker
  43. v-model="FormData.Date"
  44. type="daterange"
  45. range-separator="至"
  46. start-placeholder="开始日期"
  47. end-placeholder="结束日期"
  48. @change="dataChange"
  49. value-format="yyyy-MM-dd"
  50. >
  51. </el-date-picker>
  52. </el-form-item>
  53. </div>
  54. <div class="block inputBox1">
  55. <el-form-item label="登录时间" prop="Time">
  56. <el-time-picker
  57. is-range
  58. v-model="FormData.Time"
  59. range-separator="至"
  60. start-placeholder="开始时间"
  61. end-placeholder="结束时间"
  62. placeholder="选择时间范围"
  63. @change="timeChange"
  64. value-format="HH:mm:ss"
  65. >
  66. </el-time-picker>
  67. </el-form-item>
  68. </div>
  69. </div>
  70. <!-- 第二排 -->
  71. <div class="fristLine" style="margin-top: 24px">
  72. <div class="inputBox2">
  73. <el-form-item label="IP段" prop="IpList">
  74. <el-input
  75. placeholder="请输入IP,并以‘;’号隔开"
  76. v-model.trim="FormData.IpList"
  77. ></el-input>
  78. </el-form-item>
  79. </div>
  80. <div class="inputBox3">
  81. <el-form-item label="描述" prop="TacDesc">
  82. <el-input
  83. placeholder="请输入"
  84. v-model.trim="FormData.TacDesc"
  85. ></el-input>
  86. </el-form-item>
  87. </div>
  88. </div>
  89. </div>
  90. </el-form>
  91. <div class="centerBox">
  92. <div class="leftB">
  93. <div class="titleBtn">
  94. <span class="titleStyle">已分配职员 </span>
  95. <div class="searchBox">
  96. <el-input
  97. placeholder="请输入内容"
  98. clearable
  99. v-model.trim="keyWordsUp"
  100. @keyup.enter.native="queryDatas"
  101. ></el-input>
  102. <el-button @click="queryDatas">搜索</el-button>
  103. </div>
  104. </div>
  105. <div class="center-box fpBox">
  106. <el-row class="scCont" :gutter="16">
  107. <el-col
  108. :span="4"
  109. v-for="item in FormData.UseList"
  110. :key="item.UserId"
  111. >
  112. <el-card class="box-card">
  113. <div class="lineTop"></div>
  114. <div class="text item">
  115. <div class="header-top">
  116. <div class="header-mid">
  117. <span :title="item.UserName" class="titles">{{
  118. item.UserName
  119. }}</span>
  120. </div>
  121. <el-checkbox-group
  122. v-model="UncheckList"
  123. @change="UnchangeChecked(item, index)"
  124. >
  125. <el-checkbox checked></el-checkbox>
  126. </el-checkbox-group>
  127. </div>
  128. </div>
  129. </el-card>
  130. </el-col>
  131. </el-row>
  132. <el-empty
  133. v-if="FormData.UseList && FormData.UseList.length == 0"
  134. description="没有选取"
  135. style="margin: 0 auto"
  136. ></el-empty>
  137. </div>
  138. </div>
  139. <div class="rightB">
  140. <div class="titleBtn">
  141. <span class="titleStyle">选择职员 </span>
  142. <div class="searchBox">
  143. <el-input
  144. placeholder="请输入内容"
  145. clearable
  146. v-model.trim="keyWords"
  147. @keyup.enter.native="queryData"
  148. ></el-input>
  149. <el-button @click="queryData">搜索</el-button>
  150. </div>
  151. </div>
  152. <div class="center-box">
  153. <el-row class="scCont" :gutter="16">
  154. <el-col
  155. :span="6"
  156. v-for="(item, index) in FormData.Unuselist"
  157. :key="index"
  158. >
  159. <el-card class="box-card">
  160. <div class="lineTop"></div>
  161. <div class="text item">
  162. <div class="header-top">
  163. <div class="header-mid">
  164. <span :title="item.UserName" class="title">{{
  165. item.UserName
  166. }}</span>
  167. </div>
  168. <el-checkbox-group
  169. v-model="checkList"
  170. @change="changeChecked(item, index)"
  171. >
  172. <el-checkbox></el-checkbox>
  173. </el-checkbox-group>
  174. </div>
  175. </div>
  176. </el-card>
  177. </el-col>
  178. </el-row>
  179. <el-empty
  180. v-if="FormData.Unuselist && FormData.Unuselist.length == 0"
  181. description="没有内容"
  182. style="margin: 0 auto"
  183. ></el-empty>
  184. </div>
  185. </div>
  186. </div>
  187. <!--删除弹框-->
  188. <Dialog :flag="flag">
  189. <div class="airportInfoDialog">
  190. <div class="title1">删除策略</div>
  191. <div class="content">是否确认删除该策略?</div>
  192. <div class="foot right t30">
  193. <el-button
  194. size="medium"
  195. @click="remove(item, index)"
  196. type="danger"
  197. class="r24"
  198. >删除</el-button
  199. >
  200. <el-button size="medium" @click="flag = false">取消</el-button>
  201. </div>
  202. </div>
  203. </Dialog>
  204. </div>
  205. </template>
  206. <script>
  207. import { EditTac, GetTacDetails, DeleteTac } from "@/api/systemConfiguration";
  208. import Dialog from "@/layout/components/Dialog";
  209. import { findarrays } from "@/utils/validate";
  210. import { lengthValidator } from "@/utils/validate";
  211. export default {
  212. data() {
  213. return {
  214. flag: false,
  215. checkList: false,
  216. UncheckList: true,
  217. Unuselist: [],
  218. keyWords: "",
  219. keyWordsUp: "",
  220. options: [
  221. {
  222. value: 0,
  223. label: "黑名单",
  224. },
  225. {
  226. value: 1,
  227. label: "白名单",
  228. },
  229. ],
  230. boxArr: [],
  231. boxArr1: [],
  232. FormData: {
  233. TacName: "",
  234. TacDesc: "",
  235. DateBegin: "",
  236. DateEnd: "",
  237. TimeBegin: "",
  238. TimeEnd: "",
  239. IpType: 1,
  240. IpList: "",
  241. UseList: [],
  242. UseLists: [],
  243. Unuselist: [],
  244. Unuselists: [],
  245. Date: [],
  246. Time: [],
  247. },
  248. rules: {
  249. TacName: [
  250. { required: true, message: "请输入策略名称", trigger: "blur" },
  251. {
  252. validator: lengthValidator,
  253. max: 128,
  254. message: "长度在 1 到 128 个字符",
  255. trigger: ["change", "blur"],
  256. },
  257. ],
  258. Date: [
  259. { required: true, message: "请选择登录日期", trigger: "change" },
  260. ],
  261. Time: [
  262. { required: true, message: "请选择登录时间", trigger: "change" },
  263. ],
  264. TacDesc: [
  265. {
  266. validator: lengthValidator,
  267. max: 256,
  268. message: "长度在 1 到 256 个字符",
  269. trigger: ["change", "blur"],
  270. },
  271. ],
  272. IpList: [
  273. {
  274. validator: lengthValidator,
  275. max: 256,
  276. message: "长度在 1 到 256 个字符",
  277. trigger: ["change", "blur"],
  278. },
  279. ],
  280. },
  281. editId: null,
  282. };
  283. },
  284. created: function () {
  285. this.editId = this.$route.query.TacId;
  286. this.getDetial(this.editId);
  287. },
  288. components: { Dialog },
  289. watch: {
  290. keyWords: {
  291. handler(val) {
  292. if (val.length == 0) {
  293. const res = this.FormData.Unuselists;
  294. this.FormData.Unuselist = res;
  295. }
  296. },
  297. },
  298. keyWordsUp: {
  299. handler(val) {
  300. if (val.length == 0) {
  301. const res = this.FormData.UseLists;
  302. this.FormData.UseList = res;
  303. }
  304. },
  305. },
  306. },
  307. methods: {
  308. compare(property) {
  309. return function (a, b) {
  310. var value1 = a[property];
  311. var value2 = b[property];
  312. return value1 - value2;
  313. };
  314. },
  315. queryDatas() {
  316. this.keyWordsUp = this.keyWordsUp.replace(/\s+/g, "");
  317. const search = this.keyWordsUp;
  318. if (search) {
  319. let res = this.FormData.UseLists;
  320. this.FormData.UseList = res;
  321. this.FormData.UseList = findarrays(
  322. this.FormData.UseList,
  323. "UserName",
  324. search
  325. );
  326. } else {
  327. this.FormData.UseList = this.FormData.UseLists;
  328. }
  329. },
  330. queryData() {
  331. this.keyWords = this.keyWords.replace(/\s+/g, "");
  332. const search = this.keyWords;
  333. if (search) {
  334. let res = this.FormData.Unuselists;
  335. this.FormData.Unuselist = res;
  336. this.FormData.Unuselist = findarrays(
  337. this.FormData.Unuselist,
  338. "UserName",
  339. search
  340. );
  341. } else {
  342. this.getDetial(this.editId);
  343. // this.getWarningList();
  344. }
  345. // const datas = this.FormData.Unuselist;
  346. // this.FormData.Unuselist = datas.filter(
  347. // (data) =>
  348. // !search || data.UserName.toLowerCase().includes(search.toLowerCase())
  349. // );
  350. },
  351. isValidseg(ip) {
  352. let reg =
  353. /^((?:(?:[01]?\d?\d|2(?:[0-4]\d|5[0-5]))\.){2}(?:[01]?\d?\d|2(?:[0-4]\d|5[0-5])))(?:(?:\.(?:[01]?\d?\d|2(?:[0-4]\d|5[0-5])))(\/(?:(?:[01]?\d?\d|2(?:[0-4]\d|5[0-5]))))?|(\/(?:(?:[01]?\d?\d|2(?:[0-4]\d|5[0-5])))\.(?:(?:[01]?\d?\d|2(?:[0-4]\d|5[0-5])))))$/;
  354. return reg.test(ip);
  355. },
  356. isValidIP: function (ip) {
  357. let reg =
  358. /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/;
  359. return reg.test(ip);
  360. },
  361. save() {
  362. let that = this;
  363. let ipArr = [];
  364. if (this.FormData.IpList) {
  365. ipArr = this.FormData.IpList.split(";");
  366. }
  367. let isSave = true;
  368. if (ipArr.length >= 2) {
  369. ipArr.forEach((item) => {
  370. if (this.isValidIP(item) == true || this.isValidseg(item) == true) {
  371. // this.$message.error("请输入正确IP段,并以;号隔开");
  372. isSave = true;
  373. } else {
  374. this.$message.error("请输入正确IP段,并以;号隔开");
  375. isSave = false;
  376. }
  377. });
  378. } else {
  379. if (
  380. this.isValidIP(ipArr[0]) == true ||
  381. this.isValidseg(ipArr[0]) == true
  382. ) {
  383. isSave = true;
  384. } else {
  385. if (ipArr.length != 0) {
  386. this.$message.error("请输入正确IP段,并以;号隔开");
  387. isSave = false;
  388. }
  389. }
  390. }
  391. this.$refs["ruleForm"].validate((valid) => {
  392. if (valid && isSave) {
  393. return new Promise((resolve, reject) => {
  394. EditTac(this.FormData)
  395. .then((response) => {
  396. if (response.code === 0) {
  397. this.FormData = {
  398. TacName: "",
  399. TacDesc: "",
  400. DateBegin: "",
  401. DateEnd: "",
  402. TimeBegin: "",
  403. TimeEnd: "",
  404. IpType: 1,
  405. IpList: "",
  406. UseList: [],
  407. Unuselist: [],
  408. Date: [],
  409. Time: [],
  410. };
  411. this.$message.success("编辑成功");
  412. this.$store.dispatch("tagsView/delView", this.$route);
  413. that.$router.push("/LoginPolicy");
  414. } else {
  415. this.$message.error(response.message);
  416. }
  417. resolve();
  418. })
  419. .catch((error) => {
  420. reject(error);
  421. });
  422. });
  423. } else {
  424. return false;
  425. }
  426. });
  427. },
  428. getDetial(id) {
  429. let that = this;
  430. return new Promise((resolve, reject) => {
  431. GetTacDetails({ TacId: id })
  432. .then((response) => {
  433. if (response.code === 0) {
  434. const { returnData } = response;
  435. returnData["Date"] = new Array();
  436. returnData["Time"] = new Array();
  437. that.FormData = returnData;
  438. that.FormData["Date"].push(returnData.DateBegin.split(" ")[0]);
  439. that.FormData["Date"].push(returnData.DateEnd.split(" ")[0]);
  440. that.FormData["DateBegin"] = returnData.DateBegin.split(" ")[0];
  441. that.FormData["DateEnd"] = returnData.DateEnd.split(" ")[0];
  442. that.FormData["Time"].push(returnData.TimeBegin);
  443. that.FormData["Time"].push(returnData.TimeEnd);
  444. if (that.FormData.UseList == null) {
  445. that.FormData.UseList = [];
  446. }
  447. if (that.FormData.Unuselist == null) {
  448. that.FormData.Unuselist = [];
  449. }
  450. that.FormData.Unuselist.forEach((res, index) => {
  451. res.indexname = index;
  452. });
  453. that.FormData.UseLists = that.FormData.UseList;
  454. that.FormData.Unuselists = that.FormData.Unuselist;
  455. that.Unuselist = that.FormData.Unuselist;
  456. that.boxArr = _.cloneDeep(that.FormData.Unuselist);
  457. }
  458. resolve();
  459. })
  460. .catch((error) => {
  461. reject(error);
  462. });
  463. });
  464. },
  465. changeChecked(val, index) {
  466. this.checkList = false;
  467. this.FormData.UseList.push(val);
  468. const res = this.FormData.UseList;
  469. this.FormData.UseLists = res;
  470. this.FormData.Unuselist.splice(index, 1);
  471. this.FormData.Unuselists = this.FormData.Unuselists.filter(
  472. (i) => i.UserId !== val.UserId
  473. );
  474. },
  475. UnchangeChecked(val, index) {
  476. this.UncheckList = true;
  477. this.FormData.Unuselist.push(val);
  478. this.FormData.Unuselist = this.FormData.Unuselist.sort(
  479. this.compare("indexname")
  480. );
  481. this.FormData.Unuselists.push(val);
  482. this.FormData.Unuselists = this.FormData.Unuselists.sort(
  483. this.compare("indexname")
  484. );
  485. this.FormData.UseList.splice(index, 1);
  486. // this.FormData.UseLists.splice(index, 1);
  487. this.FormData.UseLists = this.FormData.UseLists.filter(
  488. (i) => i.UserId !== val.UserId
  489. );
  490. },
  491. dataChange: function (data) {
  492. if (data && data.length > 1) {
  493. this.FormData.DateBegin = data[0];
  494. this.FormData.DateEnd = data[1];
  495. }
  496. },
  497. timeChange: function (data) {
  498. if (data && data.length > 1) {
  499. this.FormData.TimeBegin = data[0];
  500. this.FormData.TimeEnd = data[1];
  501. }
  502. },
  503. //删除
  504. remove() {
  505. let that = this;
  506. return new Promise((resolve, reject) => {
  507. DeleteTac({ TacId: this.FormData.TacId })
  508. .then((response) => {
  509. if (response.code === 0) {
  510. this.delItem = null;
  511. this.$message.success("删除成功");
  512. this.flag = false;
  513. setTimeout(function () {
  514. that.$router.push("/LoginPolicy");
  515. }, 2000);
  516. }
  517. resolve();
  518. })
  519. .catch((error) => {
  520. reject(error);
  521. });
  522. });
  523. },
  524. clearData() {
  525. this.FormData.Unuselist = this.boxArr;
  526. },
  527. },
  528. };
  529. </script>
  530. <style lang="scss" scoped>
  531. .title1 {
  532. width: 150px;
  533. height: 26px;
  534. font-size: 26px;
  535. margin-bottom: 30px;
  536. font-weight: bold;
  537. color: #303133;
  538. }
  539. ::v-deep .el-row {
  540. width: 100%;
  541. }
  542. .Box {
  543. width: 100%;
  544. height: 100%;
  545. padding: 0 64px;
  546. padding-top: 32px;
  547. }
  548. .topBox {
  549. width: 100%;
  550. height: 240px;
  551. background: #ffffff;
  552. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  553. border-radius: 16px;
  554. }
  555. .fristLine {
  556. display: flex;
  557. margin-left: 33px;
  558. }
  559. .inputBox {
  560. display: flex;
  561. height: 32px;
  562. line-height: 32px;
  563. }
  564. .inputBox1 {
  565. display: flex;
  566. height: 32px;
  567. line-height: 32px;
  568. }
  569. .inputBox2 {
  570. display: flex;
  571. height: 32px;
  572. line-height: 32px;
  573. }
  574. .inputBox3 {
  575. display: flex;
  576. height: 32px;
  577. line-height: 32px;
  578. }
  579. .SystemName {
  580. width: 108px;
  581. height: 14px;
  582. font-size: 14px;
  583. font-weight: 400;
  584. color: #303133;
  585. }
  586. .SystemName1 {
  587. width: 70px;
  588. text-align: right;
  589. margin-left: -10px;
  590. height: 14px;
  591. font-size: 14px;
  592. font-weight: 400;
  593. color: #303133;
  594. cursor: pointer;
  595. }
  596. ::v-deep .topBox {
  597. .el-button--default {
  598. width: 80px;
  599. height: 40px;
  600. background: #6e81bc;
  601. color: #ffffff;
  602. border-radius: 6px;
  603. border: none;
  604. }
  605. .inputBox .el-input__inner {
  606. width: 184px;
  607. height: 32px;
  608. background: #f5f7fa;
  609. // border: 1px solid #dcdfe6;
  610. border-radius: 6px;
  611. }
  612. .el-select__caret {
  613. text-align: center;
  614. height: 40px;
  615. line-height: 40px;
  616. }
  617. .inputBox1 .el-date-editor {
  618. width: 322px;
  619. height: 32px;
  620. line-height: 40px;
  621. background: #f5f7fa;
  622. border: 1px solid #dcdfe6;
  623. border-radius: 6px;
  624. .el-range-separator {
  625. height: 40px;
  626. line-height: 40px;
  627. }
  628. .el-range-input {
  629. background: #f5f7fa;
  630. }
  631. }
  632. .inputBox2 .el-input__inner {
  633. width: 468px;
  634. height: 32px;
  635. background: #f5f7fa;
  636. // border: 1px solid #dcdfe6;
  637. border-radius: 6px;
  638. }
  639. .inputBox3 .el-input__inner {
  640. width: 500px;
  641. height: 32px;
  642. background: #f5f7fa;
  643. // border: 1px solid #dcdfe6;
  644. border-radius: 6px;
  645. }
  646. }
  647. .titleBtn {
  648. display: flex;
  649. justify-content: space-between;
  650. padding: 20px;
  651. }
  652. .titleStyle {
  653. width: 200px;
  654. height: 24px;
  655. font-size: 24px;
  656. font-weight: bold;
  657. color: #303133;
  658. margin-left: 10px;
  659. }
  660. .centerBox {
  661. display: flex;
  662. margin-top: 23px;
  663. position: relative;
  664. }
  665. .leftB {
  666. width: 1242px;
  667. height: 760px;
  668. background: #ffffff;
  669. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  670. border-radius: 4px;
  671. overflow: auto;
  672. > .titleBtn {
  673. width: 63%;
  674. position: absolute;
  675. z-index: 99;
  676. top: 0;
  677. left: 0;
  678. background: #ffffff;
  679. }
  680. > .center-box {
  681. margin-top: 70px;
  682. }
  683. .searchBox {
  684. display: flex;
  685. }
  686. }
  687. .center-box {
  688. // max-height: calc(100% - 105px);
  689. margin-top: 12px;
  690. padding: 24px;
  691. display: flex;
  692. justify-content: flex-start;
  693. flex-wrap: wrap;
  694. // overflow: auto;
  695. }
  696. .fpBox {
  697. display: block;
  698. }
  699. .colorTitle {
  700. margin-top: 20px;
  701. width: 195px;
  702. height: 20px;
  703. display: flex;
  704. justify-content: space-between;
  705. float: left;
  706. }
  707. .box-card {
  708. margin-top: 16px;
  709. height: 80px;
  710. background: #f5f7fa;
  711. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
  712. border-radius: 8px;
  713. }
  714. // .center-box :hover {
  715. // box-shadow: 0 16px 32px 0 rgba(48, 55, 66, 0.15);
  716. // transform: translate(0, -5px);
  717. // transition-delay: 0s !important;
  718. // }
  719. .header-top {
  720. display: flex;
  721. flex-direction: row;
  722. align-items: center;
  723. }
  724. .title {
  725. max-width: 60px;
  726. min-width: 60px;
  727. height: 16px;
  728. font-size: 16px;
  729. font-weight: 400;
  730. color: #303133;
  731. // margin-right: 20px;
  732. display: block;
  733. white-space: nowrap;
  734. overflow: hidden;
  735. text-overflow: ellipsis;
  736. cursor: pointer;
  737. }
  738. .titles {
  739. max-width: 101px;
  740. min-width: 101px;
  741. height: 16px;
  742. font-size: 16px;
  743. font-weight: 400;
  744. color: #303133;
  745. // margin-right: 20px;
  746. display: block;
  747. white-space: nowrap;
  748. overflow: hidden;
  749. text-overflow: ellipsis;
  750. cursor: pointer;
  751. }
  752. // .box-card :hover {
  753. // box-shadow: none;
  754. // transform: none;
  755. // }
  756. .rightB {
  757. width: 670px;
  758. height: 760px;
  759. background: #ffffff;
  760. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  761. border-radius: 16px;
  762. margin-left: 40px;
  763. overflow: auto;
  764. > .titleBtn {
  765. width: 34%;
  766. position: absolute;
  767. z-index: 99;
  768. top: 0;
  769. right: 0;
  770. background: #ffffff;
  771. }
  772. > .center-box {
  773. margin-top: 41px;
  774. }
  775. .searchBox {
  776. display: flex;
  777. }
  778. }
  779. ::v-deep .leftB {
  780. .el-input__inner {
  781. width: 200px;
  782. height: 32px;
  783. background: #f5f7fa;
  784. border: 1px solid #c0c4cc;
  785. border-radius: 6px;
  786. }
  787. .el-button--default {
  788. width: 64px;
  789. height: 32px;
  790. line-height: 8px;
  791. background: linear-gradient(0deg, #6983be, #777dba);
  792. border-radius: 6px;
  793. color: #ffffff;
  794. border: none;
  795. margin-left: 10px;
  796. }
  797. }
  798. ::v-deep .rightB {
  799. .el-input__inner {
  800. width: 200px;
  801. height: 32px;
  802. background: #f5f7fa;
  803. border: 1px solid #c0c4cc;
  804. border-radius: 6px;
  805. }
  806. .el-button--default {
  807. width: 64px;
  808. height: 32px;
  809. line-height: 8px;
  810. background: linear-gradient(0deg, #6983be, #777dba);
  811. border-radius: 6px;
  812. color: #ffffff;
  813. border: none;
  814. margin-left: 10px;
  815. }
  816. }
  817. ::-webkit-scrollbar-track-piece {
  818. background: #d3dce6;
  819. }
  820. ::-webkit-scrollbar {
  821. width: 6px;
  822. }
  823. ::-webkit-scrollbar-thumb {
  824. background: #99a9bf;
  825. border-radius: 20px;
  826. }
  827. </style>