index.vue 21 KB

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