田源
2024-07-26 0b034a97c5da37937678b796c5c94b889bde910d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
<template>
  <el-container>
    <el-main>
      <basic-container>
        <avue-crud
          ref="userCrud"
          :data="tableData"
          :option="option"
          :page.sync="page"
          :table-loading="tableLoading"
          @on-load="getTableList"
          @refresh-change="handleRefresh"
          @search-change="handleSearch"
          @search-reset="handleReset"
          @selection-change="selectChange"
          @row-click="rowClickHandler"
          @size-change="sizeChange"
          @current-change="currentChange"
        >
          <template slot="menuLeft" slot-scope="scope">
            <el-button icon="el-icon-plus" size="small" type="primary" @click="rowSaveHandlerClick">创建</el-button>
            <el-button icon="el-icon-delete" plain size="small" type="danger" @click="allDelHandler">删除</el-button>
            <el-button icon="el-icon-view" plain size="small" type="primary" @click="chekView">查看使用范围</el-button>
          </template>
 
          <template slot="menu" slot-scope="scope">
            <el-button icon="el-icon-edit" size="small" type="text" @click="editBtnClick(scope.row)">编辑
            </el-button>
            <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">删除
            </el-button>
          </template>
        </avue-crud>
      </basic-container>
    </el-main>
 
    <el-aside width="30%">
      <basic-container>
        <div style="height: 85vh; overflow-y: auto">
          <el-descriptions :column="1" border size="medium" title="属性项">
            <el-descriptions-item>
              <template slot="label">
                名称
              </template>
              {{ lastItem.id }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                标签
              </template>
              {{ lastItem.name }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                描述
              </template>
              {{ lastItem.description }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                操作类型
              </template>
              {{ lastItem.attributeDataType }}
            </el-descriptions-item>
          </el-descriptions>
 
          <!-- 值域 -->
          <el-descriptions v-if="!isSpecialDataType" :column="1" :title="lastItem.attributeDataType" border
                           class="margin-top"
                           size="medium">
            <el-descriptions-item>
              <template slot="label">
                允许为空
              </template>
              <el-tag :type="lastItem.nullableFlag ? 'success' : 'danger'">
                {{ lastItem.nullableFlag ? '是' : '否' }}
              </el-tag>
            </el-descriptions-item>
            <el-descriptions-item v-if="accuracy">
              <template slot="label">
                精度
              </template>
              精度
            </el-descriptions-item>
            <el-descriptions-item v-if="length">
              <template slot="label">
                长度
              </template>
              {{ lastItem.attrLength }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                默认值
              </template>
              {{ lastItem.defaultValue }}
            </el-descriptions-item>
          </el-descriptions>
 
          <!--   VTString  -->
          <el-descriptions v-if="lastItem.attributeDataType === 'VTString' || !lastItem.attributeDataType"
                           :column="1" border class="margin-top" size="medium" title="值域">
            <el-descriptions-item>
              <template slot="label">
                当前类型
              </template>
              {{ lastItem.version ? '链接类型' : '业务类型' }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                当前类型值
              </template>
              {{ lastItem.version ? lastItem.linkTypeName : lastItem.btmTypeId }}
            </el-descriptions-item>
            <el-descriptions-item v-if="lastItem.version">
              <template slot="label">
                当前版本次
              </template>
              {{ lastItem.version }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                使用枚举
              </template>
              <el-tag :type="lastItem.enumId ? 'success' : 'danger'">
                {{ lastItem.enumId ? '是' : '否' }}
              </el-tag>
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                枚举类型
              </template>
              {{ lastItem.enumId }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                取值范围
              </template>
              <div style="width: 330px; height: 80px;overflow: auto">
                <el-tag v-for="item in rangeList" plain style="margin: 5px">{{ item }}</el-tag>
              </div>
            </el-descriptions-item>
 
          </el-descriptions>
          <!-- VTInteger && VTInteger  -->
          <el-descriptions
            v-if="lastItem.attributeDataType === 'VTInteger' || lastItem.attributeDataType === 'VTInteger'"
            :column="1" border class="margin-top" size="medium" title="值域">
 
            <el-descriptions-item>
              <template slot="label">
                使用枚举
              </template>
              <el-tag :type="lastItem.enumId ? 'success' : 'danger'">
                {{ lastItem.enumId ? '是' : '否' }}
              </el-tag>
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                枚举类型
              </template>
              {{ lastItem.enumId }}
            </el-descriptions-item>
            <el-descriptions-item>
              <template slot="label">
                取值范围
              </template>
              <div style="width: 330px; height: 80px;overflow: auto">
                <el-tag v-for="item in rangeList" plain style="margin: 5px">{{ item }}</el-tag>
              </div>
            </el-descriptions-item>
 
          </el-descriptions>
          <!-- VTDouble -->
          <el-descriptions v-if="lastItem.attributeDataType === 'VTDouble'"
                           :column="1" border class="margin-top" size="medium" title="值域">
 
            <el-descriptions-item>
              <template slot="label">
                取值范围
              </template>
              <div style="width: 330px; height: 80px;overflow: auto">
                <el-tag v-for="item in rangeList" plain style="margin: 5px">{{ item }}</el-tag>
              </div>
            </el-descriptions-item>
 
          </el-descriptions>
          <!--      VTDate VTTime VTDateTime VTNote VTFilePath VTClob均不显示 VTBoolean不显示值域 只显示类型   -->
        </div>
      </basic-container>
    </el-aside>
 
    <!-- 查看使用范围    -->
    <el-dialog
      v-dialogDrag
      v-loading="checkViewLoading"
      :visible.sync="checkViewVisible"
      append-to-body="true"
      class="avue-dialog"
      title="查看使用范围"
      width="70%"
    >
      <avue-crud
        ref="checkViewCrud"
        :data="checkViewData"
        :option="checkViewOption"
        @search-change="checkHandleSearch"
        @search-reset="checkHandleReset"
      >
 
      </avue-crud>
    </el-dialog>
 
    <!-- 新增对话框    -->
    <el-dialog
      v-dialogDrag
      v-loading="addLoading"
      :visible.sync="addVisible"
      append-to-body="true"
      class="avue-dialog"
      title="创建"
      width="65%"
    >
      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
        <el-row>
          <div class="addDialog">
            <div>
 
              <h3>属性项</h3>
 
              <el-col :span="12">
                <el-form-item label="名称:" prop="id">
                  <el-input v-model="form.id"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="标签:">
                  <el-input v-model="form.name"></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="属性类型:">
                  <el-select v-model="form.attributeDataType" placeholder="请选择属性类型" @change="attributeDataTypeChange">
                    <el-option v-for="item in typeSelectList" :label="item" :value="item"></el-option>
                  </el-select>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="描述:">
                  <el-input v-model="form.description" :rows="2" type="textarea"></el-input>
                </el-form-item>
              </el-col>
 
            </div>
            <div v-if="!hideType" class="addDialogBottom">
              <div class="left">
                <h3>{{ form.attributeDataType }}</h3>
 
                <el-form-item
                  v-if="form.attributeDataType !== 'VTInteger' && form.attributeDataType !== 'VTLong'
                  && form.attributeDataType !== 'VTDouble' && form.attributeDataType !== 'VTBoolean'"
                  label="长度:">
                  <el-input v-model="form.attrLength"></el-input>
                </el-form-item>
 
                <el-form-item v-if="form.attributeDataType === 'VTDouble'" label="精度:">
                  <el-input v-model="form.precisionLength"></el-input>
                </el-form-item>
 
                <el-form-item v-if="form.attributeDataType === 'VTDouble'" label="长度:">
                  <el-input v-model="form.scaleLength"></el-input>
                </el-form-item>
 
 
                <el-form-item v-if="form.attributeDataType !== 'VTBoolean'" label="默认值:">
                  <el-input v-model="form.defaultValue"></el-input>
                </el-form-item>
 
                <el-form-item v-if="form.attributeDataType === 'VTBoolean'" label="默认值:">
                  <el-select>
                    <el-option label="false" value="false"></el-option>
                    <el-option label="true" value="true"></el-option>
                  </el-select>
                </el-form-item>
 
                <el-form-item label="允许为空:">
                  <el-switch v-model="form.nullableFlag"></el-switch>
                </el-form-item>
 
              </div>
              <el-divider direction="vertical"></el-divider>
              <!--  VTString   -->
              <div v-if="form.attributeDataType === 'VTString'" class="right">
                <h3>值域</h3>
                <el-form-item label="当前值域类型:">
                  <el-select v-model="form.attributeSelectType" placeholder="请选择属性类型" @change="attributeSelectTypeChange">
                    <el-option label="业务类型" value="business"></el-option>
                    <el-option label="链接类型" value="link"></el-option>
                  </el-select>
                </el-form-item>
 
 
                <el-form-item label="选择参照类型:">
                  <el-input v-model="form.attrLength"></el-input>
                </el-form-item>
 
 
                <el-form-item label="使用枚举:">
                  <el-switch v-model="form.enumSwitch" @change="switchEnumChange"></el-switch>
                </el-form-item>
 
 
                <el-form-item :label="form.enumSwitch ? '枚举选择:' : '添加枚举值:'">
                  <el-select v-if="form.enumSwitch" v-model="form.attributeDataTypePick" placeholder="请选择枚举类型"
                             @change="enumSelectChange">
                    <el-option v-for="(item,index) in attributeDataTypePickList" :key="index" :label="item.key"
                               :value="item.key"></el-option>
                  </el-select>
                  <el-input v-if="!form.enumSwitch" v-model="form.enumAddValue">
                  </el-input>
                </el-form-item>
                <el-form-item v-if="!form.enumSwitch" label="运算符:">
                  <div>
                    <el-button size="mini" @click="enumAddHandler"> =</el-button>
                  </div>
                </el-form-item>
                <el-form-item label="当前枚举值:">
                  <textarea v-model="form.range"
                            style="width: 330px; height: 80px; border: 1px solid #DCDFE6; overflow: auto; text-align: left;resize: none;">
                  </textarea>
                </el-form-item>
              </div>
              <!--  VTInteger VTLong   -->
              <div v-if="form.attributeDataType === 'VTInteger' || form.attributeDataType === 'VTLong' " class="right">
                <h3>值域</h3>
 
                <el-form-item label="使用枚举:">
                  <el-switch v-model="form.enumSwitch" @change="switchEnumChange"></el-switch>
                </el-form-item>
 
 
                <el-form-item :label="form.enumSwitch ? '枚举选择:' : '添加枚举值:'">
                  <el-select v-if="form.enumSwitch" v-model="form.attributeDataTypePick" placeholder="请选择枚举类型"
                             @change="enumSelectChange">
                    <el-option v-for="(item,index) in attributeDataTypePickList" :key="index" :label="item.key"
                               :value="item.key"></el-option>
                  </el-select>
                  <el-input v-if="!form.enumSwitch" v-model="form.enumAddValue">
                  </el-input>
                </el-form-item>
                <el-form-item v-if="!form.enumSwitch" label="运算符:">
                  <div>
                    <el-button size="mini"> ></el-button>
                    <el-button size="mini"> <</el-button>
                    <el-button size="mini"> >=</el-button>
                    <el-button size="mini"> <=</el-button>
                    <el-button size="mini"> =</el-button>
                    <el-button size="mini"> !=</el-button>
                    <el-button size="mini"> ( )</el-button>
                  </div>
                </el-form-item>
                <el-form-item label="当前枚举值:">
                  <textarea v-model="form.range"
                            style="width: 330px; height: 80px; border: 1px solid #DCDFE6; overflow: auto; text-align: left;resize: none;">
                  </textarea>
                </el-form-item>
              </div>
              <!--   VTDouble    -->
              <div v-if="form.attributeDataType === 'VTDouble'" class="right">
                <h3>值域</h3>
 
 
                <el-form-item label="添加枚举值:">
                  <el-input v-model="form.enumAddValue">
                  </el-input>
                </el-form-item>
                <el-form-item label="运算符:">
                  <div>
                    <el-button size="mini"> ></el-button>
                    <el-button size="mini"> <</el-button>
                    <el-button size="mini"> >=</el-button>
                    <el-button size="mini"> <=</el-button>
                    <el-button size="mini"> =</el-button>
                    <el-button size="mini"> !=</el-button>
                    <el-button size="mini"> ( )</el-button>
                  </div>
                </el-form-item>
                <el-form-item label="当前枚举值:">
                  <textarea v-model="form.range"
                            style="width: 330px; height: 80px; border: 1px solid #DCDFE6; overflow: auto; text-align: left;resize: none;">
                  </textarea>
                </el-form-item>
              </div>
            </div>
          </div>
        </el-row>
      </el-form>
    </el-dialog>
  </el-container>
</template>
 
<script>
import {gridAttribute, getUsedAttributeList, getEnumMapByType} from "@/api/modeling/attributePool/api";
import basicOption from '@/util/basic-option';
import {column} from "./option"
 
export default {
  name: "index",
  data() {
    return {
      tableData: [],
      option: {
        ...basicOption,
        searchMenuSpan: 8,
        calcHeight: -60,
        addBtn: false,
        editBtn: false,
        delBtn: false,
        column
      },
      tableLoading: false,
      page: {
        currentPage: 1,
        pageSize: 10,
        total: 0,
        pageSizes: [10, 30, 50, 100],
      },
      searchParams: {},
      selectList: [],
      checkViewData: [],
      checkViewDataSearch: [],
      checkViewVisible: false,
      checkViewLoading: false,
      checkViewOption: {
        ...basicOption,
        addBtn: false,
        menu: false,
        searchMenuSpan: 8,
        refreshBtn: false,
        selection: false,
        column: [
          {
            label: '名称',
            prop: 'attributeName',
            sortable: true,
          },
          {
            label: '来源',
            prop: 'source',
            sortable: true,
            search: true
          },
          {
            label: '说明',
            prop: 'desc',
          }
        ]
      },
      addVisible: false,
      addLoading: false,
      form: {
        id: "",
        name: "",
        attributeDataType: "VTString",
        description: "",
        nullableFlag: true,
        attrLength: 50,
        enumId: false,
        enumSwitch: false,
        attributeDataTypePick: "",
        enumAddValue: '',
        range: ''
      },
      defaultForm: {
        id: "",
        name: "",
        attributeDataType: "VTString",
        description: "",
        nullableFlag: true,
        attrLength: 50,
        enumId: false,
        enumSwitch: false,
        attributeDataTypePick: "",
        enumAddValue: '',
        range: '',
        attributeSelectType:'business'
      },
      rules: [],
      typeSelectList: ['VTString', 'VTInteger', 'VTLong', 'VTDouble', 'VTBoolean', 'VTDate', 'VTTime', 'VTDateTime', 'VTNote', 'VTFilePath', 'VTClob'],
      attributeDataTypePickList: [],
      enumAddListChange: []
    }
  },
  computed: {
    lastItem() {
      return this.selectList.length > 0 ? this.selectList[this.selectList.length - 1] : {};
    },
    isSpecialDataType() {
      // 定义一个包含所有需要比较的类型的数组
      const specialTypes = ['VTDate', 'VTTime', 'VTDateTime', 'VTNote', 'VTFilePath', 'VTClob'];
      // 判断 lastItem.attributeDataType 是否在这个数组中
      return specialTypes.includes(this.lastItem.attributeDataType);
    },
    rangeList() {
      if (this.lastItem.range) {
        return this.lastItem.range.split(';');
      }
    },
    accuracy() {
      return this.lastItem.attributeDataType === 'VTDouble';
    },
    length() {
      return this.lastItem.attributeDataType === 'VTString' || this.lastItem.attributeDataType === 'VTDoubule';
    },
    // 等于其中以下值 不展示枚举
    hideType() {
      return this.form.attributeDataType === 'VTNote' ||
        this.form.attributeDataType === 'VTDate' ||
        this.form.attributeDataType === 'VTTime' ||
        this.form.attributeDataType === 'VTClob' ||
        this.form.attributeDataType === 'VTDateTime' ||
        this.form.attributeDataType === 'VTFilePath';
    }
  },
  methods: {
    //表格查询请求
    getTableList() {
      this.tableLoading = true;
      gridAttribute(this.page.currentPage, this.page.pageSize, this.searchParams).then(res => {
        const data = res.data.data;
        this.tableData = data;
        this.page.total = res.data.total;
        this.tableLoading = false;
      }).catch(err => {
        this.$message.error(err)
      });
    },
 
    // 表格头部刷新
    handleRefresh() {
      this.getTableList();
    },
 
    // 搜索
    handleSearch() {
 
    },
 
    // 重置搜索条件
    handleReset() {
 
    },
 
    // 选择框
    selectChange(row) {
      this.selectList = row;
    },
 
    // 点击行
    rowClickHandler(row) {
      this.$refs.userCrud.toggleRowSelection(row);
      console.log(row);
    },
 
    // 条数
    sizeChange(val) {
      this.page.pageSize = val;
    },
 
    // 页码
    currentChange(val) {
      this.page.currentPage = val;
    },
 
    // 创建打开对话框
    rowSaveHandlerClick() {
      this.addVisible = true;
      this.form = this.defaultForm;
      this.getEnumMapByTypeHandler('VTString');
    },
 
    allDelHandler() {
 
    },
 
    // 查看使用范围
    chekView() {
      if (this.selectList.length <= 0) {
        this.$message.warning('请至少选择一条数据');
        return;
      }
      if (this.selectList.length > 1) {
        this.$message.warning('只能选择一条数据进行查看');
        return;
      }
 
      getUsedAttributeList({attributeName: this.selectList[0].id}).then(res => {
        if (res.data.code === 200) {
          this.checkViewVisible = true;
          this.checkViewData = res.data.data;
          this.checkViewDataSearch = res.data.data;
        }
      })
    },
 
    // 查看使用范围查询
    checkHandleSearch(params, done) {
      const {source} = params;
 
      if (!params.source) {
        this.checkViewData = this.checkViewDataSearch;
        return done();
      }
      ;
 
      this.checkViewData = this.checkViewData.filter(item => {
        return item.source && item.source.includes(source);
      });
 
      done();
 
    },
 
    // 查看使用范围重置
    checkHandleReset() {
      this.checkViewData = this.checkViewDataSearch;
    },
 
 
    editBtnClick() {
 
    },
 
    rowDeleteHandler() {
 
    },
 
    // 属性类型下拉框change
    attributeDataTypeChange(val) {
      this.getEnumMapByTypeHandler(val);
      this.form.enumSwitch = false;
    },
 
    // 属性类型下拉框数据处理
    getEnumMapByTypeHandler(val) {
      const enumType = {
        VTString: 'String',
        VTInteger: 'Integer',
        VTLong: 'Integer',
      };
      if (enumType[val]) {
        const string = enumType[val];
        getEnumMapByType({enumType: string}).then(res => {
          const data = res.data.data;
          this.attributeDataTypePickList = data.flatMap(obj =>
            Object.entries(obj).map(([key, values]) => ({
              key: key,
              values: values
            }))
          );
        })
      }
    },
 
    // 使用枚举时 枚举选择下拉框change事件
    enumSelectChange(val) {
      const list = this.attributeDataTypePickList.find(item => item.key === val).values;
      this.form.range = list.join('\n');
    },
 
    // 使用枚举switch滑块change事件
    switchEnumChange(status) {
      if (status) {
        this.form.attributeDataTypePick = this.attributeDataTypePickList[0].key;
        const list = this.attributeDataTypePickList[0].values;
        this.form.range = list.join('\n');
      } else {
        this.form.range = "";
      }
    },
 
    // 不使用枚举 手动添加枚举值
    enumAddHandler() {
      // 检查和转换 this.form.range 为数组,同时排除空值
      let currentRangeArray = this.form.range ? this.form.range.split('\n').filter(item => item.trim() !== '') : [];
 
      let newValue = this.form.enumAddValue.trim();
      if (currentRangeArray.includes(newValue)) {
        this.$message.error('该值域规则已经存在!')
        return;
      }
 
      currentRangeArray.push(newValue);
      this.enumAddListChange = currentRangeArray;
      this.form.range = currentRangeArray.join('\n');
      this.form.enumAddValue = "";
    },
 
    // 值域类型切换
    attributeSelectTypeChange(){
 
    }
  }
}
</script>
 
<style lang="scss" scoped>
.margin-top {
  margin-top: 25px;
}
 
.left {
  width: 45%;
  height: 100%;
  margin-right: 60px;
}
 
.right {
  height: 100%;
  width: auto;
  margin-left: 60px;
}
 
.addDialogBottom {
  width: 100%;
  display: flex;
  flex-direction: row;
}
 
.addDialogBottom > .el-divider--vertical {
  width: 2px;
  height: 78%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -10%);
}
</style>