index.vue 21 KB

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