wyg
2024-06-18 1308d4d7a162d3cabd0fe4f639b6d7f5dd376584
提交 | 用户 | 时间
bdd09a 1 <template>
44f5fa 2   <div class="box">
W 3     <el-card class="box-card1">
1308d4 4       <div>
W 5        <el-menu
6           class="sidebar-el-menu"
7           background-color="white"
8           text-color="#7a8297"
9           active-text-color="#2d8cf0"
10         >
11           <div v-for="(item, index) in leftListdata" :key="item.werksId">
12             <!-- 一级菜单 -->
13             <el-menu-item
14               :index="index.toString()"
15                 :class="{ 'is-active': currentIndex === index.toString() }"
16               v-if="item.detailList == null"
17               @click="handleClick(item, index.toString())"
18             >
19               <span slot="title">{{ item.werksName }}</span>
20             </el-menu-item>
21             <!-- 二级菜单 -->
22             <el-submenu
23               :index="index.toString()"
24               v-else
25             >
26               <template #title>
27                 <span>{{ item.werksName }}</span>
28               </template>
29               <el-menu-item-group :class="{ 'is-active': currentIndex === index.toString() }">
30                 <el-menu-item
31                   v-for="(it, subIndex) in item.detailList"
32                   :key="it.warehouseId"
33                   :index="`${index}-${subIndex}`"
34                   :class="{ 'is-active': currentIndex === `${index}-${subIndex}` }"
35                   @click="handleClick(it, `${index}-${subIndex}`)"
36                 >
37                   {{ it.warehouseName }}
38                 </el-menu-item>
39               </el-menu-item-group>
40             </el-submenu>
41           </div>
42         </el-menu>
43       </div>
44     </el-card>
45     <!-- 右侧 -->
46     <el-card class="box-card2">
47       <div class="box1">
48         <el-form
49           :model="queryParams"
50           ref="queryForm"
51           size="small"
52           :inline="true"
53           v-show="showSearch"
54           label-width="68px"
55         >
56           <el-form-item label="仓库" prop="lgort">
57             <el-input
58               v-model="queryParams.lgort"
59               placeholder="请输入仓库"
60               clearable
61               @keyup.enter.native="handleQuery"
62             />
63           </el-form-item>
64           <el-form-item label="名称" prop="locationName">
65             <el-input
66               v-model="queryParams.locationName"
67               placeholder="请输入名称"
68               clearable
69               @keyup.enter.native="handleQuery"
70             />
71           </el-form-item>
72           <el-form-item label="状态" prop="state">
73             <el-input
74               v-model="queryParams.state"
75               placeholder="请输入状态"
76               clearable
77               @keyup.enter.native="handleQuery"
78             />
79           </el-form-item>
80           <el-form-item>
81             <el-button
82               type="primary"
83               icon="el-icon-search"
84               size="mini"
85               @click="handleQuery"
86               >搜索</el-button
87             >
88             <el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
89               >重置</el-button
90             >
91           </el-form-item>
92         </el-form>
93
94         <el-row :gutter="10" class="mb8">
95           <el-col :span="1.5">
96             <el-button
97               type="primary"
98               plain
99               icon="el-icon-plus"
100               size="mini"
101               @click="handleAdd"
102               v-hasPermi="['system:location:add']"
103               >新增</el-button
104             >
105           </el-col>
106           <el-col :span="1.5">
107             <el-button
108               type="success"
109               plain
110               icon="el-icon-edit"
111               size="mini"
112               :disabled="single"
113               @click="handleUpdate"
114               v-hasPermi="['system:location:edit']"
115               >修改</el-button
116             >
117           </el-col>
118           <el-col :span="1.5">
119             <el-button
120               type="danger"
121               plain
122               icon="el-icon-delete"
123               size="mini"
124               :disabled="multiple"
125               @click="handleDelete"
126               v-hasPermi="['system:location:remove']"
127               >删除</el-button
128             >
129           </el-col>
130           <el-col :span="1.5">
131             <el-button
132               type="warning"
133               plain
134               icon="el-icon-download"
135               size="mini"
136               @click="handleExport"
137               v-hasPermi="['system:location:export']"
138               >导出</el-button
139             >
140           </el-col>
141           <right-toolbar
142             :showSearch.sync="showSearch"
143             @queryTable="getList"
144           ></right-toolbar>
145         </el-row>
146
147         <el-table
148           v-loading="loading"
149           border
150           :data="locationList"
151           @selection-change="handleSelectionChange"
152         >
153           <el-table-column type="selection" width="55" align="center" />
154           <el-table-column label="序号" type="index" fixed width="50" />
155           <!-- <el-table-column label="库位ID" align="center" prop="locationId" v-if="true"/> -->
156           <el-table-column
157             label="隶属库位ID"
158             align="center"
159             prop="parentLocationId"
160           />
161           <el-table-column label="仓库" align="center" prop="lgort" />
162           <el-table-column label="库位序号" align="center" prop="locationNo" />
163           <el-table-column label="名称" align="center" prop="locationName" />
164           <el-table-column label="工厂" align="center" prop="werks" />
165           <el-table-column label="类型" align="center" prop="type" />
166           <el-table-column
167             label="体积限制"
168             align="center"
169             prop="volumeRestriction"
170           />
171           <el-table-column label="重量限制" align="center" prop="weightLimit" />
172           <el-table-column
173             label="箱数限制"
174             align="center"
175             prop="containerNumberLimit"
176           />
177           <el-table-column
178             label="数量限制"
179             align="center"
180             prop="quantitativeRestrictions"
181           />
182           <el-table-column label="托盘限制" align="center" prop="trayLimit" />
183           <el-table-column label="长度" align="center" prop="length" />
184           <el-table-column label="宽" align="center" prop="width" />
185           <el-table-column label="高" align="center" prop="height" />
186           <el-table-column label="坐标X" align="center" prop="coordinateX" />
187           <el-table-column label="坐标Y" align="center" prop="coordinateY" />
188           <el-table-column label="坐标Z" align="center" prop="coordinateZ" />
189           <el-table-column label="像素X" align="center" prop="pixelX" />
190           <el-table-column label="像素Y" align="center" prop="pixelY" />
191           <el-table-column label="空间层数" align="center" prop="paceLayer" />
192           <el-table-column
193             label="1-允许"
194             align="center"
195             prop="allowMixedProduct"
196           />
197           <el-table-column
198             label="1-允许"
199             align="center"
200             prop="allowMixedProductLot"
201           />
202           <el-table-column label="层级" align="center" prop="layer" />
203           <el-table-column label="1-存在" align="center" prop="hasChild" />
204           <el-table-column label="路径" align="center" prop="path" />
205           <el-table-column label="描述" align="center" prop="description" />
206           <!-- <el-table-column label="状态" align="center" prop="state" /> -->
207           <el-table-column
208             label="最后更新人id"
209             align="center"
210             prop="lastUpdatedUserId"
211           />
212           <el-table-column
213             label="最后更新人姓名"
214             align="center"
215             prop="lastUpdatedUserName"
216           />
217           <el-table-column
218             label="最后更新时间"
219             align="center"
220             prop="lastUpdatedDateTime"
221             width="180"
222           >
223             <template slot-scope="scope">
224               <span>{{
225                 parseTime(scope.row.lastUpdatedDateTime, "{y}-{m}-{d}")
226               }}</span>
227             </template>
228           </el-table-column>
229           <el-table-column
230             label="操作"
231             align="center"
232             class-name="small-padding fixed-width"
233           >
234             <template slot-scope="scope">
235               <el-button
236                 size="mini"
237                 type="text"
238                 icon="el-icon-edit"
239                 @click="handleUpdate(scope.row)"
240                 v-hasPermi="['system:location:edit']"
241                 >修改</el-button
242               >
243               <el-button
244                 size="mini"
245                 type="text"
246                 icon="el-icon-delete"
247                 @click="handleDelete(scope.row)"
248                 v-hasPermi="['system:location:remove']"
249                 >删除</el-button
250               >
251             </template>
252           </el-table-column>
253         </el-table>
254
255         <pagination
256           v-show="total > 0"
257           :total="total"
258           :page.sync="queryParams.pageNum"
259           :limit.sync="queryParams.pageSize"
260           @pagination="getList"
261         />
262       </div>
263     </el-card>
264
265     <!-- 添加或修改库位对话框 -->
266     <el-dialog
267       :title="title"
268       v-if="open"
269       :visible.sync="open"
270       width="500px"
271       append-to-body
272     >
273       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
274         <!-- <el-form-item label="隶属库位ID" prop="parentLocationId">
275           <el-input v-model="form.parentLocationId" placeholder="请输入隶属库位ID" />
276         </el-form-item> -->
277         <el-form-item label="仓库" prop="lgort">
278           <el-input v-model="form.lgort" placeholder="请输入仓库" />
279         </el-form-item>
280         <el-form-item label="库位序号" prop="locationNo">
281           <el-input v-model="form.locationNo" placeholder="请输入库位序号" />
282         </el-form-item>
283         <el-form-item label="名称" prop="locationName">
284           <el-input v-model="form.locationName" placeholder="请输入名称" />
285         </el-form-item>
286         <el-form-item label="工厂" prop="werks">
287           <!-- <el-input v-model="form.werks" placeholder="请输入工厂" /> -->
288           <el-select
289             v-model="form.werks"
290             placeholder="请选择工厂"
291             style="width: 100%"
292           >
293             <el-option
294               v-for="dict in werksList"
295               :key="dict.werks"
296               :label="dict.werksName"
297               :value="dict.werks"
298             >
299             </el-option>
300           </el-select>
301         </el-form-item>
302         <el-form-item label="体积限制" prop="volumeRestriction">
303           <el-input
304             v-model.number="form.volumeRestriction"
305             placeholder="请输入体积限制"
306           />
307         </el-form-item>
308         <el-form-item label="重量限制" prop="weightLimit">
309           <el-input
310             v-model.number="form.weightLimit"
311             placeholder="请输入重量限制"
312           />
313         </el-form-item>
314         <el-form-item label="箱数限制" prop="containerNumberLimit">
315           <el-input
316             v-model.number="form.containerNumberLimit"
317             placeholder="请输入箱数限制"
318           />
319         </el-form-item>
320         <el-form-item label="数量限制" prop="quantitativeRestrictions">
321           <el-input
322             v-model.number="form.quantitativeRestrictions"
323             placeholder="请输入数量限制"
324           />
325         </el-form-item>
326         <el-form-item label="托盘限制" prop="trayLimit">
327           <el-input v-model="form.trayLimit" placeholder="请输入托盘限制" />
328         </el-form-item>
329         <el-form-item label="长度" prop="length">
330           <el-input v-model.number="form.length" placeholder="请输入长度" />
331         </el-form-item>
332         <el-form-item label="宽" prop="width">
333           <el-input v-model.number="form.width" placeholder="请输入宽" />
334         </el-form-item>
335         <el-form-item label="高" prop="height">
336           <el-input v-model.number="form.height" placeholder="请输入高" />
337         </el-form-item>
338         <el-form-item label="坐标X" prop="coordinateX">
339           <el-input v-model="form.coordinateX" placeholder="请输入坐标X" />
340         </el-form-item>
341         <el-form-item label="坐标Y" prop="coordinateY">
342           <el-input v-model="form.coordinateY" placeholder="请输入坐标Y" />
343         </el-form-item>
344         <el-form-item label="坐标Z" prop="coordinateZ">
345           <el-input v-model="form.coordinateZ" placeholder="请输入坐标Z" />
346         </el-form-item>
347         <el-form-item label="像素X" prop="pixelX">
348           <el-input v-model="form.pixelX" placeholder="请输入像素X" />
349         </el-form-item>
350         <el-form-item label="像素Y" prop="pixelY">
351           <el-input v-model="form.pixelY" placeholder="请输入像素Y" />
352         </el-form-item>
353         <el-form-item label="空间层数" prop="paceLayer">
354           <el-input v-model="form.paceLayer" placeholder="请输入空间层数" />
355         </el-form-item>
356         <el-form-item label="是否允许" prop="allowMixedProduct">
357           <el-input
358             v-model="form.allowMixedProduct"
359             placeholder="请输入1-允许"
360           />
361         </el-form-item>
362         <el-form-item label="是否允许" prop="allowMixedProductLot">
363           <el-input
364             v-model="form.allowMixedProductLot"
365             placeholder="请输入1-允许"
366           />
367         </el-form-item>
368         <el-form-item label="层级" prop="layer">
369           <el-input v-model="form.layer" placeholder="请输入层级" />
370         </el-form-item>
371         <el-form-item label="是否存在" prop="hasChild">
372           <el-input v-model="form.hasChild" placeholder="请输入1-存在" />
373         </el-form-item>
374         <el-form-item label="路径" prop="path">
375           <el-input v-model="form.path" placeholder="请输入路径" />
376         </el-form-item>
377         <el-form-item label="描述" prop="description">
378           <el-input v-model="form.description" placeholder="请输入描述" />
379         </el-form-item>
380         <!-- <el-form-item label="状态" prop="state">
381           <el-input v-model="form.state" placeholder="请输入状态" />
382         </el-form-item> -->
383         <!-- <el-form-item label="最后更新人id" prop="lastUpdatedUserId">
384           <el-input v-model="form.lastUpdatedUserId" placeholder="请输入最后更新人id" />
385         </el-form-item>
386         <el-form-item label="最后更新人姓名" prop="lastUpdatedUserName">
387           <el-input v-model="form.lastUpdatedUserName" placeholder="请输入最后更新人姓名" />
388         </el-form-item>
389         <el-form-item label="最后更新时间" prop="lastUpdatedDateTime">
390           <el-date-picker clearable
391             v-model="form.lastUpdatedDateTime"
392             type="datetime"
393             value-format="yyyy-MM-dd HH:mm:ss"
394             placeholder="请选择最后更新时间">
395           </el-date-picker>
396         </el-form-item> -->
397       </el-form>
398       <div slot="footer" class="dialog-footer">
399         <el-button :loading="buttonLoading" type="primary" @click="submitForm"
400           >确 定</el-button
401         >
402         <el-button @click="cancel">取 消</el-button>
403       </div>
404     </el-dialog>
bdd09a 405   </div>
W 406 </template>
407
408 <script>
1308d4 409 import {
W 410   listLocation,
411   getLocation,
412   delLocation,
413   addLocation,
414   updateLocation,
415   listWaresList,
416   listwerkshouse,
417 } from "@/api/basicData/location";
44f5fa 418
1308d4 419 export default {
W 420   name: "Location",
421   data() {
422     return {
423       // 按钮loading
424       buttonLoading: false,
425       // 遮罩层
426       loading: true,
427       // 选中数组
428       ids: [],
429       // 非单个禁用
430       single: true,
431       // 非多个禁用
432       multiple: true,
433       // 显示搜索条件
434       showSearch: true,
435       // 总条数
436       total: 0,
437       // 库位表格数据
438       locationList: [],
439       // 弹出层标题
440       title: "",
441       // 是否显示弹出层
442       open: false,
443       // 查询参数
444       queryParams: {
445         pageNum: 1,
446         pageSize: 10,
447         lgort: undefined,
448         locationName: undefined,
449         warehouseName:undefined,
450         werks:undefined,
451         lgort:undefined,
452         type: undefined,
453         state: undefined,
454       },
455       // 表单参数
456       form: {},
457       werksList: [],
458       leftListdata: [],
459       currentIndex: null,
460       defaultProps: {
461         children: "detailList",
462         label: "werksName",
463       },
464       // 表单校验
465       rules: {
466         // locationId: [
467         //   { required: true, message: "库位ID不能为空", trigger: "blur" }
468         // ],
469         parentLocationId: [
470           { required: true, message: "隶属库位ID不能为空", trigger: "blur" },
471         ],
472         lgort: [{ required: true, message: "仓库不能为空", trigger: "blur" }],
473         locationNo: [
474           { required: true, message: "库位序号不能为空", trigger: "blur" },
475         ],
476         locationName: [
477           { required: true, message: "名称不能为空", trigger: "blur" },
478         ],
479         werks: [{ required: true, message: "工厂不能为空", trigger: "blur" }],
480         type: [{ required: true, message: "类型不能为空", trigger: "change" }],
481         volumeRestriction: [
482           { required: true, message: "体积限制不能为空", trigger: "blur" },
483         ],
484         weightLimit: [
485           { required: true, message: "重量限制不能为空", trigger: "blur" },
486         ],
487         containerNumberLimit: [
488           { required: true, message: "箱数限制不能为空", trigger: "blur" },
489         ],
490         quantitativeRestrictions: [
491           { required: true, message: "数量限制不能为空", trigger: "blur" },
492         ],
493         trayLimit: [
494           { required: true, message: "托盘限制不能为空", trigger: "blur" },
495         ],
496         length: [{ required: true, message: "长度不能为空", trigger: "blur" }],
497         width: [{ required: true, message: "宽不能为空", trigger: "blur" }],
498         height: [{ required: true, message: "高不能为空", trigger: "blur" }],
499         coordinateX: [
500           { required: true, message: "坐标X不能为空", trigger: "blur" },
501         ],
502         coordinateY: [
503           { required: true, message: "坐标Y不能为空", trigger: "blur" },
504         ],
505         coordinateZ: [
506           { required: true, message: "坐标Z不能为空", trigger: "blur" },
507         ],
508         pixelX: [{ required: true, message: "像素X不能为空", trigger: "blur" }],
509         pixelY: [{ required: true, message: "像素Y不能为空", trigger: "blur" }],
510         paceLayer: [
511           { required: true, message: "空间层数不能为空", trigger: "blur" },
512         ],
513         allowMixedProduct: [
514           { required: true, message: "1-允许不能为空", trigger: "blur" },
515         ],
516         allowMixedProductLot: [
517           { required: true, message: "1-允许不能为空", trigger: "blur" },
518         ],
519         layer: [{ required: true, message: "层级不能为空", trigger: "blur" }],
520         hasChild: [
521           { required: true, message: "1-存在不能为空", trigger: "blur" },
522         ],
523         path: [{ required: true, message: "路径不能为空", trigger: "blur" }],
524         description: [
525           { required: true, message: "描述不能为空", trigger: "blur" },
526         ],
527         // state: [{ required: true, message: "状态不能为空", trigger: "blur" }],
528         displayOrder: [
529           { required: true, message: "排序不能为空", trigger: "blur" },
530         ],
531         createdUserId: [
532           { required: true, message: "创建人id不能为空", trigger: "blur" },
533         ],
534         createdUserName: [
535           { required: true, message: "创建人姓名不能为空", trigger: "blur" },
536         ],
537         createdDateTime: [
538           { required: true, message: "创建日期时间不能为空", trigger: "blur" },
539         ],
540         lastUpdatedUserId: [
541           { required: true, message: "最后更新人id不能为空", trigger: "blur" },
542         ],
543         lastUpdatedUserName: [
544           {
545             required: true,
546             message: "最后更新人姓名不能为空",
547             trigger: "blur",
548           },
549         ],
550         lastUpdatedDateTime: [
551           { required: true, message: "最后更新时间不能为空", trigger: "blur" },
552         ],
553         isDeleted: [
554           { required: true, message: "是否删除不能为空", trigger: "blur" },
555         ],
556       },
557     };
558   },
559   created() {
560     this.getList();
561     this.leftList();
562   },
563   methods: {
564     /** 查询库位列表 */
565     getList() {
566       this.loading = true;
567       listLocation(this.queryParams).then((response) => {
568         this.locationList = response.rows;
569         this.total = response.total;
570         this.loading = false;
571       });
572     },
573     leftList() {
574       listWaresList().then((res) => {
575         console.log(res, "左侧数据信息");
576         this.leftListdata = res.data;
577       });
578
579       listwerkshouse({
580         pageNum: 1,
581         pageSize: 99,
582       }).then((res) => {
583         console.log(res, "工厂");
584         this.werksList = res.rows;
585       });
586     },
587     // 取消按钮
588     cancel() {
589       this.open = false;
590       this.reset();
591     },
592     // 表单重置
593     reset() {
594       this.form = {
595         locationId: undefined,
596         parentLocationId: undefined,
597         lgort: undefined,
598         locationNo: undefined,
599         locationName: undefined,
600         werks: undefined,
601         type: undefined,
602         volumeRestriction: undefined,
603         weightLimit: undefined,
604         containerNumberLimit: undefined,
605         quantitativeRestrictions: undefined,
606         trayLimit: undefined,
607         length: undefined,
608         width: undefined,
609         height: undefined,
610         coordinateX: undefined,
611         coordinateY: undefined,
612         coordinateZ: undefined,
613         pixelX: undefined,
614         pixelY: undefined,
615         paceLayer: undefined,
616         allowMixedProduct: undefined,
617         allowMixedProductLot: undefined,
618         layer: undefined,
619         hasChild: undefined,
620         path: undefined,
621         description: undefined,
622         state: undefined,
623         displayOrder: undefined,
624         createdUserId: undefined,
625         createdUserName: undefined,
626         createdDateTime: undefined,
627         lastUpdatedUserId: undefined,
628         lastUpdatedUserName: undefined,
629         lastUpdatedDateTime: undefined,
630         isDeleted: undefined,
631       };
632       this.resetForm("form");
633     },
634     /** 搜索按钮操作 */
635     handleQuery() {
636       this.queryParams.pageNum = 1;
637       this.getList();
638     },
639     /** 重置按钮操作 */
640     resetQuery() {
641       this.resetForm("queryForm");
642       this.handleQuery();
643     },
644     // 多选框选中数据
645     handleSelectionChange(selection) {
646       this.ids = selection.map((item) => item.locationId);
647       this.single = selection.length !== 1;
648       this.multiple = !selection.length;
649     },
650     /** 新增按钮操作 */
651     handleAdd() {
652       this.reset();
653       this.open = true;
654       this.title = "添加库位";
655     },
656     /** 修改按钮操作 */
657     handleUpdate(row) {
658       this.loading = true;
659       this.reset();
660       const locationId = row.locationId || this.ids;
661       getLocation(locationId).then((response) => {
662         this.loading = false;
663         this.form = response.data;
664         this.open = true;
665         this.title = "修改库位";
666       });
667     },
668     /** 提交按钮 */
669     submitForm() {
670       this.$refs["form"].validate((valid) => {
671         if (valid) {
672           this.buttonLoading = true;
673           if (this.form.locationId != null) {
674             updateLocation(this.form)
675               .then((response) => {
676                 this.$modal.msgSuccess("修改成功");
677                 this.open = false;
678                 this.getList();
679               })
680               .finally(() => {
681                 this.buttonLoading = false;
682               });
683           } else {
684             addLocation(this.form)
685               .then((response) => {
686                 this.$modal.msgSuccess("新增成功");
687                 this.open = false;
688                 this.getList();
689               })
690               .finally(() => {
691                 this.buttonLoading = false;
692               });
693           }
694         }
695       });
696     },
697     /** 删除按钮操作 */
698     handleDelete(row) {
699       const locationIds = row.locationId || this.ids;
700       this.$modal
701         .confirm('是否确认删除库位编号为"' + locationIds + '"的数据项?')
702         .then(() => {
703           this.loading = true;
704           return delLocation(locationIds);
705         })
706         .then(() => {
707           this.loading = false;
708           this.getList();
709           this.$modal.msgSuccess("删除成功");
710         })
711         .catch(() => {})
712         .finally(() => {
713           this.loading = false;
714         });
715     },
716     /** 导出按钮操作 */
717     handleExport() {
718       this.download(
719         "system/location/export",
720         {
721           ...this.queryParams,
722         },
723         `location_${new Date().getTime()}.xlsx`
724       );
725     },
726       handleClick(item, index) {
727       this.currentIndex = index;
728       if (item.lgort) {
729          this.queryParams.lgort = item.lgort;
730          this.getList();
731       }else{
732            this.queryParams.werks = item.werks;
733       this.getList();
734       }
735       console.log(item); // 处理点击事件,可以在这里获取到当前点击行的信息
736     },
737   },
738 };
bdd09a 739 </script>
44f5fa 740
1308d4 741
44f5fa 742 <style scoped>
1308d4 743 .box {
44f5fa 744   width: 100%;
W 745   height: calc(100vh - 124px);
746   display: flex;
1308d4 747   padding: 20px 10px 0;
W 748   background-color: #f0f0f0;
44f5fa 749 }
1308d4 750 .box-card1 {
44f5fa 751   width: 20%;
W 752   height: 100%;
1308d4 753   background-color: #fff;
W 754   margin-right: 10px;
44f5fa 755 }
1308d4 756 .box-card2 {
44f5fa 757   width: 80%;
W 758   height: 100%;
1308d4 759   background-color: #fff;
W 760 }
761 .box1 {
762   width: 100%;
763   height: 100%;
764 }
765
766 .is-active {
767   background-color: #2d8cf0 !important; /* 高亮颜色 */
768 }
769
770 ::v-deep .el-menu-item {
771   border: none !important; /* 使用 !important 来确保覆盖默认样式 */
772 }
773
774 /* 如果边框是由 submenu 引起的,可以这样写 */
775 ::v-deep .el-submenu .el-submenu__title {
776   border: none !important;
777 }
778
779 ::v-deep .box-card1 > .el-card__body{
780   padding: 20px 0 10px 10px  !important;
44f5fa 781 }
W 782 </style>
783
784