user.vue 21 KB

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