menu.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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. ElMessage({
  322. type: "error",
  323. showClose: true,
  324. message: res.data.message,
  325. center: true,
  326. });
  327. }
  328. };
  329. // 部门数据
  330. const departmentList = async () => {
  331. let res = await axios({
  332. method: "post",
  333. url: api.value + "/api/Organize/query",
  334. headers: {
  335. tokenP: sessionStorage.getItem("tokenP"),
  336. user_head: sessionStorage.getItem("userhead"),
  337. },
  338. });
  339. console.log(res, "部门数据");
  340. if (res.data.code == 200) {
  341. departmentData.value = res.data.data;
  342. } else {
  343. ElMessage({
  344. type: "error",
  345. showClose: true,
  346. message: res.data.message,
  347. center: true,
  348. });
  349. }
  350. };
  351. // 搜索功能
  352. const searchBtn = lodash.debounce(async () => {
  353. getList();
  354. }, 300);
  355. // 角色新增
  356. const addProjectbtn = (ind,row) => {
  357. console.log(ind,row);
  358. accountVisible.value = true;
  359. accountTitle.value = "菜单新增";
  360. accountRuleForm.menuName = "";
  361. accountRuleForm.url = "";
  362. accountRuleForm.sort = "";
  363. if(ind==1){
  364. accountRuleForm.pid = 0
  365. }else if(ind==2){
  366. accountRuleForm.pid = row.id
  367. }
  368. accountRuleForm.id = "";
  369. };
  370. // 取消角色新增
  371. const cancelAccount = () => {
  372. accountRef.value.resetFields();
  373. accountVisible.value = false;
  374. accountRuleForm.menuName = "";
  375. accountRuleForm.url = "";
  376. accountRuleForm.sort = "";
  377. accountRuleForm.pid = ""
  378. accountRuleForm.id = "";
  379. };
  380. // 确定新建项目
  381. const confirmAccount = (formEl) => {
  382. if (!formEl) return;
  383. formEl.validate(async (valid, fields) => {
  384. if (valid) {
  385. // 判断是否有id存在,有则是修改账号
  386. let data = {
  387. pid:accountRuleForm.pid,
  388. menuName: accountRuleForm.menuName,
  389. url:accountRuleForm.url,
  390. sort: accountRuleForm.sort,
  391. };
  392. let res=""
  393. if (accountRuleForm.id) {
  394. data.id = accountRuleForm.id;
  395. res = await axios({
  396. method: "post",
  397. url: api.value + "/api/sysMenu/update",
  398. headers: {
  399. tokenP: sessionStorage.getItem("tokenP"),
  400. user_head: sessionStorage.getItem("userhead"),
  401. },
  402. data: data,
  403. });
  404. } else {
  405. res = await axios({
  406. method: "post",
  407. url: api.value + "/api/sysMenu/add",
  408. headers: {
  409. tokenP: sessionStorage.getItem("tokenP"),
  410. user_head: sessionStorage.getItem("userhead"),
  411. },
  412. data: data,
  413. });
  414. }
  415. console.log(res, "新增菜单数据");
  416. if (res.data.code == 200) {
  417. accountVisible.value = false;
  418. getList();
  419. accountRef.value.resetFields();
  420. ElMessage({
  421. type: "success",
  422. showClose: true,
  423. message: res.data.message,
  424. center: true,
  425. });
  426. } else {
  427. ElMessage({
  428. type: "error",
  429. showClose: true,
  430. message: res.data.message,
  431. center: true,
  432. });
  433. }
  434. }
  435. });
  436. };
  437. //编辑项目
  438. const edit = (row) => {
  439. accountVisible.value = true;
  440. accountTitle.value = "编辑菜单";
  441. accountRuleForm.menuName = row.menuName;
  442. accountRuleForm.url = row.url;
  443. accountRuleForm.sort = row.sort;
  444. accountRuleForm.pid = row.pid;
  445. accountRuleForm.id = row.id;
  446. console.log(row);
  447. };
  448. const del = async (row) => {
  449. let data = new FormData();
  450. data.append("id", row.id);
  451. let res = await axios({
  452. method: "post",
  453. url: api.value + "/api/sysMenu/del",
  454. headers: {
  455. tokenP: sessionStorage.getItem("tokenP"),
  456. user_head: sessionStorage.getItem("userhead"),
  457. },
  458. data: data,
  459. });
  460. if (res.data.code == 200) {
  461. getList();
  462. ElMessage({
  463. type: "success",
  464. showClose: true,
  465. message: res.data.message,
  466. center: true,
  467. });
  468. } else {
  469. ElMessage({
  470. type: "error",
  471. showClose: true,
  472. message: res.data.message,
  473. center: true,
  474. });
  475. }
  476. };
  477. // 多选框功能
  478. const handleSelectionChange = (val) => {
  479. console.log(val);
  480. selectData.list = val;
  481. };
  482. // 表格斑马纹颜色修改
  483. const tableRowClassName = ({ row, rowIndex }) => {
  484. if (rowIndex % 2 === 0) {
  485. return "even";
  486. } else if (rowIndex % 2 !== 0) {
  487. return "odd";
  488. }
  489. return "";
  490. };
  491. // 每页显示条数
  492. const handleSizeChange = (value) => {
  493. console.log(value, "每页显示条数");
  494. pageSize.value = value;
  495. getList();
  496. };
  497. // 分页
  498. const handleCurrentChange = (value) => {
  499. console.log(value, "分页");
  500. currentPage.value = value;
  501. getList();
  502. };
  503. onBeforeMount(() => {
  504. api.value = store.state.user.api;
  505. getList();
  506. departmentList();
  507. });
  508. onUnmounted(() => {
  509. // document.removeEventListener("keyup", Enters);
  510. });
  511. </script>
  512. <style scoped lang="scss">
  513. .content-box {
  514. min-width: 1000px;
  515. width: calc(100vw - 260px);
  516. height: calc(100vh - 105px);
  517. margin: 20px auto;
  518. background-color: #fff;
  519. color: #fff;
  520. display: flex;
  521. flex-direction: column;
  522. box-shadow: 0px 3px 10px rgba(0, 97, 255, 0.2);
  523. .left {
  524. // width: calc(100wh - 40px);
  525. display: flex;
  526. align-items: center;
  527. height: 60px;
  528. margin: 0 30px;
  529. border-bottom: 1px solid #ccc;
  530. color: #000;
  531. font-size: 18px;
  532. font-weight: 600;
  533. .cameratxt {
  534. display: block;
  535. height: 60px;
  536. line-height: 60px;
  537. }
  538. }
  539. .middle {
  540. width: 96%;
  541. margin: 0 auto;
  542. color: #000;
  543. // border-bottom: 1px solid rgb(231, 231, 231);
  544. .filter {
  545. display: flex;
  546. flex-wrap: wrap;
  547. align-items: center;
  548. margin: 10px 0 0 0;
  549. .search {
  550. margin-left: 0 !important;
  551. color: #fff;
  552. background: linear-gradient(
  553. 90deg,
  554. rgba(33, 107, 255, 1) 0%,
  555. rgba(102, 182, 255, 1) 100%
  556. );
  557. border: none;
  558. }
  559. .reset {
  560. border: 1px solid rgba(38, 151, 255, 1);
  561. color: rgba(38, 151, 255, 1);
  562. }
  563. .condition {
  564. display: flex;
  565. align-items: center;
  566. margin: 10px 30px 10px 0;
  567. :deep(.el-input .el-input__inner) {
  568. font-size: 14px;
  569. }
  570. span {
  571. margin: 0 10px 0 0;
  572. }
  573. }
  574. }
  575. .gongneng {
  576. margin: 10px 0;
  577. .el-button {
  578. color: #fff;
  579. border: none;
  580. }
  581. .add {
  582. background: linear-gradient(
  583. 90deg,
  584. rgba(33, 107, 255, 1) 0%,
  585. rgba(102, 182, 255, 1) 100%
  586. );
  587. }
  588. .imp {
  589. background: #fff;
  590. border: 1px solid rgba(33, 107, 255, 1);
  591. color: rgba(33, 107, 255, 1);
  592. }
  593. }
  594. }
  595. .scroll {
  596. flex: 1;
  597. overflow: auto;
  598. }
  599. .footer {
  600. width: 96%;
  601. height: calc(100% - 82px);
  602. margin: 10px auto 10px;
  603. .el-table--fit {
  604. height: 100%;
  605. :deep(.el-table__header-wrapper) {
  606. background-color: #000;
  607. font-size: 14px;
  608. color: #000;
  609. .cell {
  610. color: #000;
  611. }
  612. }
  613. :deep(.el-table__row) {
  614. height: 50px;
  615. font-size: 14px;
  616. color: #000;
  617. }
  618. :deep(.el-table__row td) {
  619. padding: 0;
  620. // border: 0;
  621. }
  622. .el-button--primary {
  623. margin-left: 5px;
  624. }
  625. :deep(.el-table__body .even) {
  626. background-color: #fff;
  627. }
  628. :deep(.el-table__body .odd) {
  629. background-color: rgba(240, 243, 247, 1);
  630. }
  631. :deep(.options) {
  632. display: flex;
  633. justify-content: center;
  634. align-items: center;
  635. .reset {
  636. margin-right: 15px;
  637. color: rgba(30, 125, 251, 1);
  638. cursor: pointer;
  639. }
  640. .look {
  641. margin-right: 15px;
  642. color: rgba(30, 125, 251, 1);
  643. cursor: pointer;
  644. }
  645. .del {
  646. color: rgba(212, 48, 48, 1);
  647. cursor: pointer;
  648. }
  649. }
  650. }
  651. // 项目新增样式
  652. :deep(.account) {
  653. // height: 300px;
  654. border-radius: 11px;
  655. .el-dialog__header {
  656. border-radius: 11px 11px 0 0;
  657. background: rgba(237, 241, 245, 1);
  658. font-weight: 600;
  659. margin: 0;
  660. height: 32px;
  661. .el-dialog__headerbtn {
  662. outline: none;
  663. }
  664. }
  665. .el-dialog__body {
  666. padding: 30px 30px 0 30px;
  667. .el-form {
  668. .formLi {
  669. width: 100%;
  670. margin-bottom: 5px;
  671. display: flex;
  672. .el-form-item {
  673. .el-input {
  674. width: 120px;
  675. }
  676. &:nth-child(2) {
  677. .el-form-item__label {
  678. display: none;
  679. }
  680. .el-form-item__content {
  681. margin-left: 10px !important;
  682. }
  683. }
  684. &:nth-child(3) {
  685. .el-form-item__label {
  686. display: none;
  687. }
  688. .el-form-item__content {
  689. margin-left: 10px !important;
  690. }
  691. }
  692. }
  693. }
  694. .resetPassword {
  695. color: rgba(43, 151, 252, 1);
  696. padding-left: 40px;
  697. display: inline-block;
  698. margin-bottom: 15px;
  699. }
  700. .options {
  701. margin: 60px 0 40px 0;
  702. .el-form-item__content {
  703. display: flex;
  704. flex-direction: row-reverse;
  705. .queding {
  706. margin-left: 20px;
  707. background: linear-gradient(
  708. 90deg,
  709. rgba(33, 107, 255, 1) 0%,
  710. rgba(102, 182, 255, 1) 100%
  711. );
  712. border: none;
  713. }
  714. .quxiao {
  715. border: 1px solid rgba(43, 151, 252, 1);
  716. color: rgba(43, 151, 252, 1);
  717. }
  718. }
  719. }
  720. }
  721. }
  722. }
  723. }
  724. .el-pagination {
  725. width: calc(100vw - 300px);
  726. margin: 20px auto;
  727. justify-content: flex-end;
  728. :deep(.el-pagination__total) {
  729. color: #000;
  730. }
  731. :deep(.el-pagination__goto) {
  732. color: #000;
  733. }
  734. :deep(.el-pagination__classifier) {
  735. color: #000;
  736. }
  737. :deep(.el-input__wrapper) {
  738. // border: 1px solid rgba(0, 0, 0, 1);
  739. // border-radius: 5px;
  740. // box-shadow: none;
  741. width: 100px;
  742. }
  743. :deep(.el-pager li) {
  744. margin: 0 5px;
  745. border: 1px solid rgba(0, 0, 0, 1);
  746. border-radius: 5px;
  747. background-color: transparent;
  748. }
  749. :deep(.el-pager li.is-active) {
  750. // background-color: rgba(111, 182, 184, 1);
  751. color: rgba(0, 149, 255, 1);
  752. border: 1px solid rgba(0, 149, 255, 1);
  753. }
  754. :deep(.btn-prev) {
  755. margin-right: 5px;
  756. border: 1px solid rgba(0, 0, 0, 1);
  757. border-radius: 5px;
  758. background-color: transparent;
  759. }
  760. :deep(.btn-next) {
  761. margin-left: 5px;
  762. border: 1px solid rgba(0, 0, 0, 1);
  763. border-radius: 5px;
  764. background-color: transparent;
  765. }
  766. }
  767. }
  768. .el-input {
  769. width: 192px;
  770. }
  771. </style>
  772. <style lang="scss">
  773. .usePrefabricate {
  774. height: 488px;
  775. .el-select-dropdown__wrap {
  776. max-height: 100%;
  777. }
  778. }
  779. </style>