|
|
|
|
@ -15,22 +15,41 @@ |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@refresh-change="refreshChange" |
|
|
|
|
@on-load="onLoad" |
|
|
|
|
|
|
|
|
|
:row-class-name="rowClassName" |
|
|
|
|
> |
|
|
|
|
<!-- :span-method="spanMethod" --> |
|
|
|
|
<!-- :span-method="spanMethod" --> |
|
|
|
|
<template #menu-left> |
|
|
|
|
<el-button type="danger" @click="handleDeletes">批量删除</el-button> |
|
|
|
|
<el-button type="primary" @click="handleMaintain">证书维护</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu-right> |
|
|
|
|
<!-- <el-button type="primary" @click="handleImport">导 入</el-button> --> |
|
|
|
|
<el-button type="primary" @click="handleImport">导 入</el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="{ row }"> |
|
|
|
|
<template #menu="{ row }"> |
|
|
|
|
<!-- <el-button type="text" @click="handleDeletes(row)">删除</el-button> --> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #heatTreat="scope"> </template> |
|
|
|
|
<template #dataBirth="scope"> |
|
|
|
|
{{ scope.row.dataBirth ? scope.row.dataBirth.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #certificateDate="scope"> |
|
|
|
|
{{ scope.row.certificateDate ? scope.row.certificateDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #airworthinessDate="scope"> |
|
|
|
|
{{ scope.row.airworthinessDate ? scope.row.airworthinessDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<template #airworthinessDateExpire="scope"> |
|
|
|
|
{{ scope.row.airworthinessDateExpire ? scope.row.airworthinessDateExpire.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
<template #astronautDate="scope"> |
|
|
|
|
{{ scope.row.astronautDate ? scope.row.astronautDate.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
<template #astronautDateExpire="scope"> |
|
|
|
|
{{ scope.row.astronautDateExpire ? scope.row.astronautDateExpire.substring(0, 10) : '' }} |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
<!-- 证书维护 --> |
|
|
|
|
<maintain-dialog |
|
|
|
|
@ -39,7 +58,7 @@ |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
:maintain-list="maintainList" |
|
|
|
|
></maintain-dialog> |
|
|
|
|
<!-- 导入 --> |
|
|
|
|
<!-- 导入 --> |
|
|
|
|
<basic-import |
|
|
|
|
v-if="isShowImport" |
|
|
|
|
title="导入" |
|
|
|
|
@ -61,7 +80,7 @@ import basicImport from '@/components/basic-import/main.vue'; |
|
|
|
|
export default { |
|
|
|
|
components: { |
|
|
|
|
maintainDialog, |
|
|
|
|
basicImport |
|
|
|
|
basicImport, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
@ -126,8 +145,8 @@ export default { |
|
|
|
|
labelWidth: 140, |
|
|
|
|
overflow: true, |
|
|
|
|
search: true, |
|
|
|
|
fixed:'left', |
|
|
|
|
searchLabelWidth:50, |
|
|
|
|
fixed: 'left', |
|
|
|
|
searchLabelWidth: 50, |
|
|
|
|
rules: [ |
|
|
|
|
{ |
|
|
|
|
required: true, |
|
|
|
|
@ -388,7 +407,7 @@ export default { |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 点击导入按钮 |
|
|
|
|
// 点击导入按钮 |
|
|
|
|
handleImport() { |
|
|
|
|
this.isShowImport = true; |
|
|
|
|
}, |
|
|
|
|
@ -495,7 +514,6 @@ export default { |
|
|
|
|
// const currentName = row.name; |
|
|
|
|
// let rowspan = 1; |
|
|
|
|
// let isTopRow = true; |
|
|
|
|
|
|
|
|
|
// // 向上查找是否是连续相同 name 的起始行 |
|
|
|
|
// for (let i = rowIndex - 1; i >= 0; i--) { |
|
|
|
|
// if (rows[i].name === currentName) { |
|
|
|
|
@ -505,7 +523,6 @@ export default { |
|
|
|
|
// break; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// // 如果不是顶部行,则隐藏(rowspan=0) |
|
|
|
|
// if (!isTopRow) { |
|
|
|
|
// return { |
|
|
|
|
@ -521,7 +538,6 @@ export default { |
|
|
|
|
// break; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
// return { |
|
|
|
|
// rowspan: rowspan, |
|
|
|
|
// colspan: 1, |
|
|
|
|
|