index.vue 21 KB

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