|
|
|
|
@ -24,12 +24,21 @@ |
|
|
|
|
<el-button type="primary" plain @click="statusOnLoad(2)">已完成 </el-button> |
|
|
|
|
</template> |
|
|
|
|
<template #menu="scope"> |
|
|
|
|
<el-button type="text" @click="handleImport">打印 </el-button> |
|
|
|
|
<el-button type="text" v-if="scope.row.podStatus == 1" @click="handleDelete(scope.row)" |
|
|
|
|
>删除 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button type="text" v-if="scope.row.podStatus == 2" @click="handleImport(scope.row)" |
|
|
|
|
>打印 |
|
|
|
|
</el-button> |
|
|
|
|
</template> |
|
|
|
|
</avue-crud> |
|
|
|
|
|
|
|
|
|
<!-- 申报 --> |
|
|
|
|
<declareAdd v-if="declareAddShow" :showDialog="declareAddShow" @closeDialog="closeDialog"></declareAdd> |
|
|
|
|
<declareAdd |
|
|
|
|
v-if="declareAddShow" |
|
|
|
|
:showDialog="declareAddShow" |
|
|
|
|
@closeDialog="closeDialog" |
|
|
|
|
></declareAdd> |
|
|
|
|
</basic-container> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
@ -60,7 +69,7 @@ export default { |
|
|
|
|
viewBtn: false, |
|
|
|
|
editBtn: false, |
|
|
|
|
addBtn: false, |
|
|
|
|
delBtn: true, |
|
|
|
|
delBtn: false, |
|
|
|
|
addBtnText: '申报', |
|
|
|
|
editBtnText: '修改', |
|
|
|
|
viewBtnIcon: ' ', |
|
|
|
|
@ -83,7 +92,7 @@ export default { |
|
|
|
|
searchLabelPosition: 'left', |
|
|
|
|
searchGutter: 24, |
|
|
|
|
searchSpan: 6, |
|
|
|
|
menuAlign: 'left', |
|
|
|
|
menuAlign: 'center', |
|
|
|
|
gridBtn: false, |
|
|
|
|
searchMenuPosition: 'right', |
|
|
|
|
align: 'center', |
|
|
|
|
@ -202,7 +211,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: '当前状态', |
|
|
|
|
prop: 'podStatus', |
|
|
|
|
prop: 'podStatusName', |
|
|
|
|
search: false, |
|
|
|
|
sortable: true, |
|
|
|
|
filter: true, |
|
|
|
|
@ -218,15 +227,15 @@ export default { |
|
|
|
|
currentPage: 1, |
|
|
|
|
total: 0, |
|
|
|
|
}, |
|
|
|
|
query:{ |
|
|
|
|
podStatus:'' |
|
|
|
|
} |
|
|
|
|
query: { |
|
|
|
|
podStatus: '', |
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
statusOnLoad(status){ |
|
|
|
|
statusOnLoad(status) { |
|
|
|
|
this.query.podStatus = status; |
|
|
|
|
this.onLoad(this.page,this.query) |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
// 导入 |
|
|
|
|
handleImport() { |
|
|
|
|
@ -235,7 +244,7 @@ export default { |
|
|
|
|
// 关闭弹框 |
|
|
|
|
closeDialog(isRefresh) { |
|
|
|
|
this.isShowImport = false; |
|
|
|
|
this.declareAddShow = false |
|
|
|
|
this.declareAddShow = false; |
|
|
|
|
this.onLoad(this.page, this.query); |
|
|
|
|
}, |
|
|
|
|
handleAdd() { |
|
|
|
|
|