|
|
@@ -10,8 +10,8 @@
|
|
|
</div>
|
|
|
<!-- 表格 -->
|
|
|
<template v-slot:content>
|
|
|
- <ele-pro-table ref="table" :columns="isLedger ? columns2 : columns" :datasource="datasource" row-key="id" height="calc(100vh - 350px)"
|
|
|
- class="dict-table" @cell-click="cellClick">
|
|
|
+ <ele-pro-table ref="table" :columns="isLedger ? columns2 : columns" :datasource="datasource" row-key="id"
|
|
|
+ height="calc(100vh - 350px)" class="dict-table" @cell-click="cellClick">
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:action="{ row }">
|
|
|
<el-radio class="radio" v-model="radio" :label="row.id"><i></i></el-radio>
|
|
|
@@ -130,22 +130,22 @@ export default {
|
|
|
],
|
|
|
|
|
|
columns2: [
|
|
|
- {
|
|
|
- columnKey: 'index',
|
|
|
- type: 'index',
|
|
|
- label: '序号',
|
|
|
- width: 55,
|
|
|
- align: 'center',
|
|
|
- showOverflowTooltip: true,
|
|
|
- fixed: 'left'
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'fixCode',
|
|
|
- label: '固资编码',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
+ {
|
|
|
+ columnKey: 'index',
|
|
|
+ type: 'index',
|
|
|
+ label: '序号',
|
|
|
+ width: 55,
|
|
|
+ align: 'center',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ fixed: 'left'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'fixCode',
|
|
|
+ label: '固资编码',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
prop: 'code',
|
|
|
label: '编码'
|
|
|
},
|
|
|
@@ -154,42 +154,42 @@ export default {
|
|
|
label: '名称',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
-
|
|
|
- {
|
|
|
- prop: 'codeNumber',
|
|
|
- label: '编号',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- prop: 'category.modelType',
|
|
|
- label: '型号',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'category.specification',
|
|
|
- label: '规格',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'pathName',
|
|
|
- label: '位置',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110,
|
|
|
- formatter: (_row) => {
|
|
|
- return _row.position[0].pathName;
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'source',
|
|
|
- label: '生命周期',
|
|
|
- showOverflowTooltip: true,
|
|
|
- minWidth: 110
|
|
|
- },
|
|
|
- {
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: 'codeNumber',
|
|
|
+ label: '编号',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ prop: 'category.modelType',
|
|
|
+ label: '型号',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'category.specification',
|
|
|
+ label: '规格',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'pathName',
|
|
|
+ label: '位置',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110,
|
|
|
+ formatter: (_row) => {
|
|
|
+ return _row.position[0].pathName;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'source',
|
|
|
+ label: '生命周期',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ minWidth: 110
|
|
|
+ },
|
|
|
+ {
|
|
|
action: 'action',
|
|
|
slot: 'action',
|
|
|
align: 'center',
|