menu.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  1. <template>
  2. <div class="content-box">
  3. <div class="left">
  4. <!-- <el-icon :size="23" class="camera"><VideoCameraFilled /></el-icon> -->
  5. <span class="cameratxt">菜单管理</span>
  6. </div>
  7. <div class="middle">
  8. <div class="filter">
  9. <div class="condition">
  10. <span>姓名 </span>
  11. <el-input
  12. clearable
  13. v-model="searchInput.name"
  14. @clear="searchBtn"
  15. class="w-50 m-2"
  16. placeholder="请输入姓名"
  17. style="width: 250px"
  18. />
  19. </div>
  20. <div class="condition">
  21. <span>角色 </span>
  22. <el-input
  23. clearable
  24. v-model="searchInput.role"
  25. @clear="searchBtn"
  26. class="w-50 m-2"
  27. placeholder="请输入角色"
  28. style="width: 250px"
  29. />
  30. </div>
  31. <div class="condition">
  32. <span>创建时间 </span>
  33. <el-date-picker
  34. v-model="searchInput.createTime"
  35. type="daterange"
  36. unlink-panels
  37. range-separator="-"
  38. start-placeholder="起始时间"
  39. end-placeholder="截止时间"
  40. format="YYYY-MM-DD"
  41. value-format="YYYY-MM-DD"
  42. :prefix-icon="Calendar"
  43. placeholder="请选择日期"
  44. style="width: 280px"
  45. @change="searchBtn"
  46. />
  47. </div>
  48. <div class="condition">
  49. <span>部门 </span>
  50. <el-select
  51. v-model="searchInput.department"
  52. placeholder="请选择部门"
  53. style="width: 220px"
  54. clearable
  55. @clear="searchBtn"
  56. >
  57. <el-option
  58. v-for="item in departmentData"
  59. :key="item.value"
  60. :label="item.oname"
  61. :value="item.id"
  62. />
  63. </el-select>
  64. </div>
  65. <el-button
  66. style="margin-left: 20px"
  67. type="primary"
  68. class="search"
  69. @click="searchBtn"
  70. >查询</el-button
  71. >
  72. </div>
  73. <!-- 按钮列表 -->
  74. <div class="gongneng">
  75. <el-button @click="addProjectbtn(1)" class="add"
  76. ><el-icon> <CirclePlus /> </el-icon><span>添加菜单</span></el-button
  77. >
  78. <el-button @click="projectImportBtn" class="imp"
  79. ><span>更新</span></el-button
  80. >
  81. <!-- <el-button @click="projectExportBtn" class="add"
  82. ><el-icon><Download /></el-icon><span>项目导出</span></el-button
  83. > -->
  84. </div>
  85. </div>
  86. <div class="scroll">
  87. <div class="footer" v-loading="loading">
  88. <el-table
  89. border
  90. :data="tableData.list"
  91. :header-cell-style="{
  92. background: 'rgba(240, 243, 247, 1)',
  93. height: '45px',
  94. border: 0,
  95. }"
  96. row-key="id"
  97. :tree-props="{ children: 'menuLists', hasChildren: 'hasChildren' }"
  98. >
  99. <el-table-column prop="menuName" label="名称" />
  100. <el-table-column prop="sort" label="排序号" />
  101. <el-table-column prop="url" label="标识" />
  102. <el-table-column align="center" label="操作" width="220">
  103. <template #default="scope">
  104. <div class="options">
  105. <div class="reset" v-if="scope.row.pid==0" @click="addProjectbtn(2,scope.row)">添加</div>
  106. <div class="look" @click="edit(scope.row)">编辑</div>
  107. <el-popconfirm
  108. width="220"
  109. confirm-button-text="确认"
  110. cancel-button-text="取消"
  111. :icon="InfoFilled"
  112. icon-color="#f89626"
  113. title="是否删除此数据?"
  114. @confirm="del(scope.row)"
  115. @cancel="cancelEvent"
  116. >
  117. <template #reference>
  118. <div class="del">删除</div>
  119. </template>
  120. </el-popconfirm>
  121. </div>
  122. </template>
  123. </el-table-column>
  124. </el-table>
  125. <!-- 新增账号 -->
  126. <el-dialog
  127. class="account"
  128. v-model="accountVisible"
  129. :close-on-click-modal="false"
  130. :close-on-press-escape="false"
  131. :title="accountTitle"
  132. align-center
  133. width="600"
  134. :before-close="cancelAccount"
  135. >
  136. <el-form
  137. ref="accountRef"
  138. :model="accountRuleForm"
  139. :rules="accountRules"
  140. class="demo-ruleForm"
  141. label-width="80px"
  142. :size="formSize"
  143. label-position="right"
  144. status-icon
  145. >
  146. <el-form-item label="菜单名称" prop="menuName">
  147. <el-input
  148. v-model="accountRuleForm.menuName"
  149. placeholder="请输入菜单名称"
  150. clearable
  151. style="width: 220px"
  152. />
  153. </el-form-item>
  154. <el-form-item label="菜单链接" prop="url">
  155. <el-input
  156. v-model="accountRuleForm.url"
  157. placeholder="请输入菜单链接"
  158. clearable
  159. style="width: 220px"
  160. />
  161. </el-form-item>
  162. <el-form-item label="排序" prop="sort">
  163. <el-input
  164. v-model="accountRuleForm.sort"
  165. placeholder="请输入排序"
  166. clearable
  167. style="width: 220px"
  168. />
  169. </el-form-item>
  170. <el-form-item class="options">
  171. <el-button
  172. class="queding"
  173. type="primary"
  174. @click="confirmAccount(accountRef)"
  175. >
  176. &nbsp;&nbsp;确认&nbsp;&nbsp;
  177. </el-button>
  178. <el-button class="quxiao" @click="cancelAccount"
  179. >&nbsp;&nbsp;取消&nbsp;&nbsp;</el-button
  180. >
  181. </el-form-item>
  182. </el-form>
  183. </el-dialog>
  184. <!-- 项目导入 -->
  185. <el-dialog
  186. class="projectImport"
  187. v-model="projectImportVisible"
  188. :close-on-click-modal="false"
  189. :close-on-press-escape="false"
  190. title="项目导入"
  191. align-center
  192. width="600"
  193. :before-close="cancelProjectImport"
  194. >
  195. <p class="title">当前只支持项目类型为“非装配式建筑项目”的项目导入</p>
  196. <p class="down">
  197. <span>非装配式建筑项目导入模板</span
  198. ><span @click="templateDown">模板下载</span>
  199. </p>
  200. <el-upload
  201. class="avatar-uploader"
  202. action="#"
  203. :auto-upload="false"
  204. :on-remove="projectImportRemove"
  205. :on-change="projectImportChange"
  206. :before-upload="beforeAvatarProImport"
  207. ref="projectRef"
  208. :limit="1"
  209. :on-exceed="projectImportExceed"
  210. >
  211. <template #trigger>
  212. <el-button class="queding" type="primary">
  213. &nbsp;&nbsp;导入项目&nbsp;&nbsp;
  214. </el-button>
  215. </template>
  216. </el-upload>
  217. <div class="options">
  218. <el-button
  219. color="rgba(9, 101, 98, 1)"
  220. class="queding"
  221. type="primary"
  222. @click="projectImportConfirm(projectRef)"
  223. >
  224. &nbsp;&nbsp;确认导入&nbsp;&nbsp;
  225. </el-button>
  226. <el-button @click="cancelProjectImport"
  227. >&nbsp;&nbsp;取消导入&nbsp;&nbsp;</el-button
  228. >
  229. </div>
  230. </el-dialog>
  231. </div>
  232. <!-- 分页组件 -->
  233. <!-- <el-pagination
  234. background
  235. v-model:current-page="currentPage"
  236. v-model:page-size="pageSize"
  237. :page-sizes="[10, 20, 30, 40]"
  238. layout="total,sizes, prev, pager, next, jumper, slot"
  239. :total="total"
  240. @size-change="handleSizeChange"
  241. @current-change="handleCurrentChange"
  242. /> -->
  243. </div>
  244. </div>
  245. </template>
  246. <script setup>
  247. import {
  248. ref,
  249. reactive,
  250. nextTick,
  251. onMounted,
  252. watch,
  253. onBeforeMount,
  254. onUnmounted,
  255. } from "vue";
  256. import COS from "cos-js-sdk-v5";
  257. import { useRouter } from "vue-router";
  258. import { genFileId, ElMessage, ElMessageBox } from "element-plus";
  259. import { Calendar } from "@element-plus/icons-vue";
  260. import { dayjs } from "element-plus";
  261. import lodash, { reduce } from "lodash";
  262. import axios from "axios";
  263. import { useStore } from "vuex";
  264. const store = useStore();
  265. const router = useRouter();
  266. const loading = ref(false);
  267. const tableData = reactive({
  268. list: [{}],
  269. });
  270. const searchInput = reactive({
  271. name: "", // 名称
  272. role: "", // 角色
  273. department: "", // 部门
  274. createTime: "", // 创建时间
  275. }); // 搜索按钮数据
  276. const departmentData = ref(); // 部门数据
  277. const currentPage = ref(1); // 当前页
  278. const pageSize = ref(10);
  279. const total = ref(40); // 当前总数
  280. const selectData = reactive({
  281. list: [],
  282. }); // 多选框选择的数据
  283. const api = ref("");
  284. // 新增账号 (--------------------------------------------------------)
  285. const accountVisible = ref(false);
  286. const accountTitle = ref();
  287. const accountRef = ref();
  288. const accountRuleForm = reactive({
  289. menuName: "",
  290. url: "",
  291. sort: "",
  292. pid:'',
  293. id: "",
  294. });
  295. // 新增账号表单验证
  296. const accountRules = reactive({
  297. menuName: [{ required: true, message: "菜单名称不能为空", trigger: "blur" }],
  298. url: [{ required: true, message: "菜单链接不能为空", trigger: "blur" }],
  299. sort: [
  300. { required: true, message: "排序不能为空", trigger: "blur" },
  301. ],
  302. });
  303. // 项目导入
  304. const projectImportVisible = ref(false);
  305. const projectRef = ref();
  306. const projectFile = ref();
  307. // 获取账户列表
  308. const getList = async () => {
  309. let res = await axios({
  310. method: "post",
  311. url: api.value + "/api/sysMenu/QueryMenuTreeRecords",
  312. headers: {
  313. tokenP: sessionStorage.getItem("tokenP"),
  314. user_head: sessionStorage.getItem("userhead"),
  315. },
  316. });
  317. console.log(res, "查看菜单");
  318. if (res.data.code == 200) {
  319. tableData.list = res.data.data;
  320. } else {
  321. window.location.href = 'https://chtech.ncjti.edu.cn/kpi/template/api/sysUser/authorize';
  322. ElMessage({
  323. type: "error",
  324. showClose: true,
  325. message: res.data.message,
  326. center: true,
  327. });
  328. }
  329. };
  330. // 部门数据
  331. const departmentList = async () => {
  332. let res = await axios({
  333. method: "post",
  334. url: api.value + "/api/Organize/query",
  335. headers: {
  336. tokenP: sessionStorage.getItem("tokenP"),
  337. user_head: sessionStorage.getItem("userhead"),
  338. },
  339. });
  340. console.log(res, "部门数据");
  341. if (res.data.code == 200) {
  342. departmentData.value = res.data.data;
  343. } else {
  344. ElMessage({
  345. type: "error",
  346. showClose: true,
  347. message: res.data.message,
  348. center: true,
  349. });
  350. }
  351. };
  352. // 搜索功能
  353. const searchBtn = lodash.debounce(async () => {
  354. getList();
  355. }, 300);
  356. // 角色新增
  357. const addProjectbtn = (ind,row) => {
  358. console.log(ind,row);
  359. accountVisible.value = true;
  360. accountTitle.value = "菜单新增";
  361. accountRuleForm.menuName = "";
  362. accountRuleForm.url = "";
  363. accountRuleForm.sort = "";
  364. if(ind==1){
  365. accountRuleForm.pid = 0
  366. }else if(ind==2){
  367. accountRuleForm.pid = row.id
  368. }
  369. accountRuleForm.id = "";
  370. };
  371. // 取消角色新增
  372. const cancelAccount = () => {
  373. accountRef.value.resetFields();
  374. accountVisible.value = false;
  375. accountRuleForm.menuName = "";
  376. accountRuleForm.url = "";
  377. accountRuleForm.sort = "";
  378. accountRuleForm.pid = ""
  379. accountRuleForm.id = "";
  380. };
  381. // 确定新建项目
  382. const confirmAccount = (formEl) => {
  383. if (!formEl) return;
  384. formEl.validate(async (valid, fields) => {
  385. if (valid) {
  386. // 判断是否有id存在,有则是修改账号
  387. let data = {
  388. pid:accountRuleForm.pid,
  389. menuName: accountRuleForm.menuName,
  390. url:accountRuleForm.url,
  391. sort: accountRuleForm.sort,
  392. };
  393. let res=""
  394. if (accountRuleForm.id) {
  395. data.id = accountRuleForm.id;
  396. res = await axios({
  397. method: "post",
  398. url: api.value + "/api/sysMenu/update",
  399. headers: {
  400. tokenP: sessionStorage.getItem("tokenP"),
  401. user_head: sessionStorage.getItem("userhead"),
  402. },
  403. data: data,
  404. });
  405. } else {
  406. res = await axios({
  407. method: "post",
  408. url: api.value + "/api/sysMenu/add",
  409. headers: {
  410. tokenP: sessionStorage.getItem("tokenP"),
  411. user_head: sessionStorage.getItem("userhead"),
  412. },
  413. data: data,
  414. });
  415. }
  416. console.log(res, "新增菜单数据");
  417. if (res.data.code == 200) {
  418. accountVisible.value = false;
  419. getList();
  420. accountRef.value.resetFields();
  421. ElMessage({
  422. type: "success",
  423. showClose: true,
  424. message: res.data.message,
  425. center: true,
  426. });
  427. } else {
  428. ElMessage({
  429. type: "error",
  430. showClose: true,
  431. message: res.data.message,
  432. center: true,
  433. });
  434. }
  435. }
  436. });
  437. };
  438. //编辑项目
  439. const edit = (row) => {
  440. accountVisible.value = true;
  441. accountTitle.value = "编辑菜单";
  442. accountRuleForm.menuName = row.menuName;
  443. accountRuleForm.url = row.url;
  444. accountRuleForm.sort = row.sort;
  445. accountRuleForm.pid = row.pid;
  446. accountRuleForm.id = row.id;
  447. console.log(row);
  448. };
  449. const del = async (row) => {
  450. let data = new FormData();
  451. data.append("id", row.id);
  452. let res = await axios({
  453. method: "post",
  454. url: api.value + "/api/sysMenu/del",
  455. headers: {
  456. tokenP: sessionStorage.getItem("tokenP"),
  457. user_head: sessionStorage.getItem("userhead"),
  458. },
  459. data: data,
  460. });
  461. if (res.data.code == 200) {
  462. getList();
  463. ElMessage({
  464. type: "success",
  465. showClose: true,
  466. message: res.data.message,
  467. center: true,
  468. });
  469. } else {
  470. ElMessage({
  471. type: "error",
  472. showClose: true,
  473. message: res.data.message,
  474. center: true,
  475. });
  476. }
  477. };
  478. // 多选框功能
  479. const handleSelectionChange = (val) => {
  480. console.log(val);
  481. selectData.list = val;
  482. };
  483. // 表格斑马纹颜色修改
  484. const tableRowClassName = ({ row, rowIndex }) => {
  485. if (rowIndex % 2 === 0) {
  486. return "even";
  487. } else if (rowIndex % 2 !== 0) {
  488. return "odd";
  489. }
  490. return "";
  491. };
  492. // 每页显示条数
  493. const handleSizeChange = (value) => {
  494. console.log(value, "每页显示条数");
  495. pageSize.value = value;
  496. getList();
  497. };
  498. // 分页
  499. const handleCurrentChange = (value) => {
  500. console.log(value, "分页");
  501. currentPage.value = value;
  502. getList();
  503. };
  504. onBeforeMount(() => {
  505. api.value = store.state.user.api;
  506. getList();
  507. departmentList();
  508. });
  509. onUnmounted(() => {
  510. // document.removeEventListener("keyup", Enters);
  511. });
  512. </script>
  513. <style scoped lang="scss">
  514. .content-box {
  515. min-width: 1000px;
  516. width: calc(100vw - 260px);
  517. height: calc(100vh - 105px);
  518. margin: 20px auto;
  519. background-color: #fff;
  520. color: #fff;
  521. display: flex;
  522. flex-direction: column;
  523. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  524. .left {
  525. // width: calc(100wh - 40px);
  526. display: flex;
  527. align-items: center;
  528. height: 60px;
  529. margin: 0 30px;
  530. border-bottom: 1px solid #ccc;
  531. color: #000;
  532. font-size: 18px;
  533. font-weight: 600;
  534. .cameratxt {
  535. display: block;
  536. height: 60px;
  537. line-height: 60px;
  538. }
  539. }
  540. .middle {
  541. width: 96%;
  542. margin: 0 auto;
  543. color: #000;
  544. // border-bottom: 1px solid rgb(231, 231, 231);
  545. .filter {
  546. display: flex;
  547. flex-wrap: wrap;
  548. align-items: center;
  549. margin: 10px 0 0 0;
  550. .search {
  551. margin-left: 0 !important;
  552. color: #fff;
  553. background: linear-gradient(
  554. 90deg,
  555. rgba(33, 107, 255, 1) 0%,
  556. rgba(102, 182, 255, 1) 100%
  557. );
  558. border: none;
  559. }
  560. .reset {
  561. border: 1px solid rgba(38, 151, 255, 1);
  562. color: rgba(38, 151, 255, 1);
  563. }
  564. .condition {
  565. display: flex;
  566. align-items: center;
  567. margin: 10px 30px 10px 0;
  568. :deep(.el-input .el-input__inner) {
  569. font-size: 14px;
  570. }
  571. span {
  572. margin: 0 10px 0 0;
  573. }
  574. }
  575. }
  576. .gongneng {
  577. margin: 10px 0;
  578. .el-button {
  579. color: #fff;
  580. border: none;
  581. }
  582. .add {
  583. background: linear-gradient(
  584. 90deg,
  585. rgba(33, 107, 255, 1) 0%,
  586. rgba(102, 182, 255, 1) 100%
  587. );
  588. }
  589. .imp {
  590. background: #fff;
  591. border: 1px solid rgba(33, 107, 255, 1);
  592. color: rgba(33, 107, 255, 1);
  593. }
  594. }
  595. }
  596. .scroll {
  597. flex: 1;
  598. overflow: auto;
  599. }
  600. .footer {
  601. width: 96%;
  602. height: calc(100% - 82px);
  603. margin: 10px auto 10px;
  604. .el-table--fit {
  605. height: 100%;
  606. :deep(.el-table__header-wrapper) {
  607. background-color: #000;
  608. font-size: 14px;
  609. color: #000;
  610. .cell {
  611. color: #000;
  612. }
  613. }
  614. :deep(.el-table__row) {
  615. height: 50px;
  616. font-size: 14px;
  617. color: #000;
  618. }
  619. :deep(.el-table__row td) {
  620. padding: 0;
  621. // border: 0;
  622. }
  623. .el-button--primary {
  624. margin-left: 5px;
  625. }
  626. :deep(.el-table__body .even) {
  627. background-color: #fff;
  628. }
  629. :deep(.el-table__body .odd) {
  630. background-color: rgba(240, 243, 247, 1);
  631. }
  632. :deep(.options) {
  633. display: flex;
  634. justify-content: center;
  635. align-items: center;
  636. .reset {
  637. margin-right: 15px;
  638. color: rgba(30, 125, 251, 1);
  639. cursor: pointer;
  640. }
  641. .look {
  642. margin-right: 15px;
  643. color: rgba(30, 125, 251, 1);
  644. cursor: pointer;
  645. }
  646. .del {
  647. color: rgba(212, 48, 48, 1);
  648. cursor: pointer;
  649. }
  650. }
  651. }
  652. // 项目新增样式
  653. :deep(.account) {
  654. // height: 300px;
  655. border-radius: 11px;
  656. .el-dialog__header {
  657. border-radius: 11px 11px 0 0;
  658. background: rgba(237, 241, 245, 1);
  659. font-weight: 600;
  660. margin: 0;
  661. height: 32px;
  662. .el-dialog__headerbtn {
  663. outline: none;
  664. }
  665. }
  666. .el-dialog__body {
  667. padding: 30px 30px 0 30px;
  668. .el-form {
  669. .formLi {
  670. width: 100%;
  671. margin-bottom: 5px;
  672. display: flex;
  673. .el-form-item {
  674. .el-input {
  675. width: 120px;
  676. }
  677. &:nth-child(2) {
  678. .el-form-item__label {
  679. display: none;
  680. }
  681. .el-form-item__content {
  682. margin-left: 10px !important;
  683. }
  684. }
  685. &:nth-child(3) {
  686. .el-form-item__label {
  687. display: none;
  688. }
  689. .el-form-item__content {
  690. margin-left: 10px !important;
  691. }
  692. }
  693. }
  694. }
  695. .resetPassword {
  696. color: rgba(43, 151, 252, 1);
  697. padding-left: 40px;
  698. display: inline-block;
  699. margin-bottom: 15px;
  700. }
  701. .options {
  702. margin: 60px 0 40px 0;
  703. .el-form-item__content {
  704. display: flex;
  705. flex-direction: row-reverse;
  706. .queding {
  707. margin-left: 20px;
  708. background: linear-gradient(
  709. 90deg,
  710. rgba(33, 107, 255, 1) 0%,
  711. rgba(102, 182, 255, 1) 100%
  712. );
  713. border: none;
  714. }
  715. .quxiao {
  716. border: 1px solid rgba(43, 151, 252, 1);
  717. color: rgba(43, 151, 252, 1);
  718. }
  719. }
  720. }
  721. }
  722. }
  723. }
  724. }
  725. .el-pagination {
  726. width: calc(100vw - 300px);
  727. margin: 20px auto;
  728. justify-content: flex-end;
  729. :deep(.el-pagination__total) {
  730. color: #000;
  731. }
  732. :deep(.el-pagination__goto) {
  733. color: #000;
  734. }
  735. :deep(.el-pagination__classifier) {
  736. color: #000;
  737. }
  738. :deep(.el-input__wrapper) {
  739. // border: 1px solid rgba(0, 0, 0, 1);
  740. // border-radius: 5px;
  741. // box-shadow: none;
  742. width: 100px;
  743. }
  744. :deep(.el-pager li) {
  745. margin: 0 5px;
  746. border: 1px solid rgba(0, 0, 0, 1);
  747. border-radius: 5px;
  748. background-color: transparent;
  749. }
  750. :deep(.el-pager li.is-active) {
  751. // background-color: rgba(111, 182, 184, 1);
  752. color: rgba(0, 149, 255, 1);
  753. border: 1px solid rgba(0, 149, 255, 1);
  754. }
  755. :deep(.btn-prev) {
  756. margin-right: 5px;
  757. border: 1px solid rgba(0, 0, 0, 1);
  758. border-radius: 5px;
  759. background-color: transparent;
  760. }
  761. :deep(.btn-next) {
  762. margin-left: 5px;
  763. border: 1px solid rgba(0, 0, 0, 1);
  764. border-radius: 5px;
  765. background-color: transparent;
  766. }
  767. }
  768. }
  769. .el-input {
  770. width: 192px;
  771. }
  772. </style>
  773. <style lang="scss">
  774. .usePrefabricate {
  775. height: 488px;
  776. .el-select-dropdown__wrap {
  777. max-height: 100%;
  778. }
  779. }
  780. </style>