index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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. this.$message.error("请输入正确IP段,并以;号隔开");
  386. isSave = false;
  387. }
  388. }
  389. this.$refs["ruleForm"].validate((valid) => {
  390. if (valid && isSave) {
  391. return new Promise((resolve, reject) => {
  392. EditTac(this.FormData)
  393. .then((response) => {
  394. if (response.code === 0) {
  395. this.FormData = {
  396. TacName: "",
  397. TacDesc: "",
  398. DateBegin: "",
  399. DateEnd: "",
  400. TimeBegin: "",
  401. TimeEnd: "",
  402. IpType: 1,
  403. IpList: "",
  404. UseList: [],
  405. Unuselist: [],
  406. Date: [],
  407. Time: [],
  408. };
  409. this.$message.success("编辑成功");
  410. this.$store.dispatch("tagsView/delView", this.$route);
  411. that.$router.push("/LoginPolicy");
  412. } else {
  413. this.$message.error(response.message);
  414. }
  415. resolve();
  416. })
  417. .catch((error) => {
  418. reject(error);
  419. });
  420. });
  421. } else {
  422. return false;
  423. }
  424. });
  425. },
  426. getDetial(id) {
  427. let that = this;
  428. return new Promise((resolve, reject) => {
  429. GetTacDetails({ TacId: id })
  430. .then((response) => {
  431. if (response.code === 0) {
  432. const { returnData } = response;
  433. returnData["Date"] = new Array();
  434. returnData["Time"] = new Array();
  435. that.FormData = returnData;
  436. that.FormData["Date"].push(returnData.DateBegin.split(" ")[0]);
  437. that.FormData["Date"].push(returnData.DateEnd.split(" ")[0]);
  438. that.FormData["DateBegin"] = returnData.DateBegin.split(" ")[0];
  439. that.FormData["DateEnd"] = returnData.DateEnd.split(" ")[0];
  440. that.FormData["Time"].push(returnData.TimeBegin);
  441. that.FormData["Time"].push(returnData.TimeEnd);
  442. if (that.FormData.UseList == null) {
  443. that.FormData.UseList = [];
  444. }
  445. if (that.FormData.Unuselist == null) {
  446. that.FormData.Unuselist = [];
  447. }
  448. that.FormData.Unuselist.forEach((res, index) => {
  449. res.indexname = index;
  450. });
  451. that.FormData.UseLists = that.FormData.UseList;
  452. that.FormData.Unuselists = that.FormData.Unuselist;
  453. that.Unuselist = that.FormData.Unuselist;
  454. that.boxArr = _.cloneDeep(that.FormData.Unuselist);
  455. }
  456. resolve();
  457. })
  458. .catch((error) => {
  459. reject(error);
  460. });
  461. });
  462. },
  463. changeChecked(val, index) {
  464. this.checkList = false;
  465. this.FormData.UseList.push(val);
  466. const res = this.FormData.UseList;
  467. this.FormData.UseLists = res;
  468. this.FormData.Unuselist.splice(index, 1);
  469. this.FormData.Unuselists = this.FormData.Unuselists.filter(
  470. (i) => i.UserId !== val.UserId
  471. );
  472. },
  473. UnchangeChecked(val, index) {
  474. this.UncheckList = true;
  475. this.FormData.Unuselist.push(val);
  476. this.FormData.Unuselist = this.FormData.Unuselist.sort(
  477. this.compare("indexname")
  478. );
  479. this.FormData.Unuselists.push(val);
  480. this.FormData.Unuselists = this.FormData.Unuselists.sort(
  481. this.compare("indexname")
  482. );
  483. this.FormData.UseList.splice(index, 1);
  484. // this.FormData.UseLists.splice(index, 1);
  485. this.FormData.UseLists = this.FormData.UseLists.filter(
  486. (i) => i.UserId !== val.UserId
  487. );
  488. },
  489. dataChange: function (data) {
  490. if (data && data.length > 1) {
  491. this.FormData.DateBegin = data[0];
  492. this.FormData.DateEnd = data[1];
  493. }
  494. },
  495. timeChange: function (data) {
  496. if (data && data.length > 1) {
  497. this.FormData.TimeBegin = data[0];
  498. this.FormData.TimeEnd = data[1];
  499. }
  500. },
  501. //删除
  502. remove() {
  503. let that = this;
  504. return new Promise((resolve, reject) => {
  505. DeleteTac({ TacId: this.FormData.TacId })
  506. .then((response) => {
  507. if (response.code === 0) {
  508. this.delItem = null;
  509. this.$message.success("删除成功");
  510. this.flag = false;
  511. setTimeout(function () {
  512. that.$router.push("/LoginPolicy");
  513. }, 2000);
  514. }
  515. resolve();
  516. })
  517. .catch((error) => {
  518. reject(error);
  519. });
  520. });
  521. },
  522. clearData() {
  523. this.FormData.Unuselist = this.boxArr;
  524. },
  525. },
  526. };
  527. </script>
  528. <style lang="scss" scoped>
  529. .title1 {
  530. width: 150px;
  531. height: 26px;
  532. font-size: 26px;
  533. margin-bottom: 30px;
  534. font-weight: bold;
  535. color: #303133;
  536. }
  537. ::v-deep .el-row {
  538. width: 100%;
  539. }
  540. .Box {
  541. width: 100%;
  542. height: 100%;
  543. padding: 0 64px;
  544. padding-top: 32px;
  545. }
  546. .topBox {
  547. width: 100%;
  548. height: 240px;
  549. background: #ffffff;
  550. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  551. border-radius: 16px;
  552. }
  553. .fristLine {
  554. display: flex;
  555. margin-left: 33px;
  556. }
  557. .inputBox {
  558. display: flex;
  559. height: 32px;
  560. line-height: 32px;
  561. }
  562. .inputBox1 {
  563. display: flex;
  564. height: 32px;
  565. line-height: 32px;
  566. }
  567. .inputBox2 {
  568. display: flex;
  569. height: 32px;
  570. line-height: 32px;
  571. }
  572. .inputBox3 {
  573. display: flex;
  574. height: 32px;
  575. line-height: 32px;
  576. }
  577. .SystemName {
  578. width: 108px;
  579. height: 14px;
  580. font-size: 14px;
  581. font-weight: 400;
  582. color: #303133;
  583. }
  584. .SystemName1 {
  585. width: 70px;
  586. text-align: right;
  587. margin-left: -10px;
  588. height: 14px;
  589. font-size: 14px;
  590. font-weight: 400;
  591. color: #303133;
  592. cursor: pointer;
  593. }
  594. ::v-deep .topBox {
  595. .el-button--default {
  596. width: 80px;
  597. height: 40px;
  598. background: #6e81bc;
  599. color: #ffffff;
  600. border-radius: 6px;
  601. border: none;
  602. }
  603. .inputBox .el-input__inner {
  604. width: 184px;
  605. height: 32px;
  606. background: #f5f7fa;
  607. // border: 1px solid #dcdfe6;
  608. border-radius: 6px;
  609. }
  610. .el-select__caret {
  611. text-align: center;
  612. height: 40px;
  613. line-height: 40px;
  614. }
  615. .inputBox1 .el-date-editor {
  616. width: 322px;
  617. height: 32px;
  618. line-height: 40px;
  619. background: #f5f7fa;
  620. border: 1px solid #dcdfe6;
  621. border-radius: 6px;
  622. .el-range-separator {
  623. height: 40px;
  624. line-height: 40px;
  625. }
  626. .el-range-input {
  627. background: #f5f7fa;
  628. }
  629. }
  630. .inputBox2 .el-input__inner {
  631. width: 468px;
  632. height: 32px;
  633. background: #f5f7fa;
  634. // border: 1px solid #dcdfe6;
  635. border-radius: 6px;
  636. }
  637. .inputBox3 .el-input__inner {
  638. width: 500px;
  639. height: 32px;
  640. background: #f5f7fa;
  641. // border: 1px solid #dcdfe6;
  642. border-radius: 6px;
  643. }
  644. }
  645. .titleBtn {
  646. display: flex;
  647. justify-content: space-between;
  648. padding: 20px;
  649. }
  650. .titleStyle {
  651. width: 200px;
  652. height: 24px;
  653. font-size: 24px;
  654. font-weight: bold;
  655. color: #303133;
  656. margin-left: 10px;
  657. }
  658. .centerBox {
  659. display: flex;
  660. margin-top: 23px;
  661. position: relative;
  662. }
  663. .leftB {
  664. width: 1242px;
  665. height: 760px;
  666. background: #ffffff;
  667. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  668. border-radius: 4px;
  669. overflow: auto;
  670. > .titleBtn {
  671. width: 63%;
  672. position: absolute;
  673. z-index: 99;
  674. top: 0;
  675. left: 0;
  676. background: #ffffff;
  677. }
  678. > .center-box {
  679. margin-top: 70px;
  680. }
  681. .searchBox {
  682. display: flex;
  683. }
  684. }
  685. .center-box {
  686. // max-height: calc(100% - 105px);
  687. margin-top: 12px;
  688. padding: 24px;
  689. display: flex;
  690. justify-content: flex-start;
  691. flex-wrap: wrap;
  692. // overflow: auto;
  693. }
  694. .fpBox {
  695. display: block;
  696. }
  697. .colorTitle {
  698. margin-top: 20px;
  699. width: 195px;
  700. height: 20px;
  701. display: flex;
  702. justify-content: space-between;
  703. float: left;
  704. }
  705. .box-card {
  706. margin-top: 16px;
  707. height: 80px;
  708. background: #f5f7fa;
  709. box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.1);
  710. border-radius: 8px;
  711. }
  712. // .center-box :hover {
  713. // box-shadow: 0 16px 32px 0 rgba(48, 55, 66, 0.15);
  714. // transform: translate(0, -5px);
  715. // transition-delay: 0s !important;
  716. // }
  717. .header-top {
  718. display: flex;
  719. flex-direction: row;
  720. align-items: center;
  721. }
  722. .title {
  723. max-width: 60px;
  724. min-width: 60px;
  725. height: 16px;
  726. font-size: 16px;
  727. font-weight: 400;
  728. color: #303133;
  729. // margin-right: 20px;
  730. display: block;
  731. white-space: nowrap;
  732. overflow: hidden;
  733. text-overflow: ellipsis;
  734. cursor: pointer;
  735. }
  736. .titles {
  737. max-width: 101px;
  738. min-width: 101px;
  739. height: 16px;
  740. font-size: 16px;
  741. font-weight: 400;
  742. color: #303133;
  743. // margin-right: 20px;
  744. display: block;
  745. white-space: nowrap;
  746. overflow: hidden;
  747. text-overflow: ellipsis;
  748. cursor: pointer;
  749. }
  750. // .box-card :hover {
  751. // box-shadow: none;
  752. // transform: none;
  753. // }
  754. .rightB {
  755. width: 670px;
  756. height: 760px;
  757. background: #ffffff;
  758. box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  759. border-radius: 16px;
  760. margin-left: 40px;
  761. overflow: auto;
  762. > .titleBtn {
  763. width: 34%;
  764. position: absolute;
  765. z-index: 99;
  766. top: 0;
  767. right: 0;
  768. background: #ffffff;
  769. }
  770. > .center-box {
  771. margin-top: 41px;
  772. }
  773. .searchBox {
  774. display: flex;
  775. }
  776. }
  777. ::v-deep .leftB {
  778. .el-input__inner {
  779. width: 200px;
  780. height: 32px;
  781. background: #f5f7fa;
  782. border: 1px solid #c0c4cc;
  783. border-radius: 6px;
  784. }
  785. .el-button--default {
  786. width: 64px;
  787. height: 32px;
  788. line-height: 8px;
  789. background: linear-gradient(0deg, #6983be, #777dba);
  790. border-radius: 6px;
  791. color: #ffffff;
  792. border: none;
  793. margin-left: 10px;
  794. }
  795. }
  796. ::v-deep .rightB {
  797. .el-input__inner {
  798. width: 200px;
  799. height: 32px;
  800. background: #f5f7fa;
  801. border: 1px solid #c0c4cc;
  802. border-radius: 6px;
  803. }
  804. .el-button--default {
  805. width: 64px;
  806. height: 32px;
  807. line-height: 8px;
  808. background: linear-gradient(0deg, #6983be, #777dba);
  809. border-radius: 6px;
  810. color: #ffffff;
  811. border: none;
  812. margin-left: 10px;
  813. }
  814. }
  815. ::-webkit-scrollbar-track-piece {
  816. background: #d3dce6;
  817. }
  818. ::-webkit-scrollbar {
  819. width: 6px;
  820. }
  821. ::-webkit-scrollbar-thumb {
  822. background: #99a9bf;
  823. border-radius: 20px;
  824. }
  825. </style>