|
|
@@ -8,7 +8,8 @@
|
|
|
<el-tab-pane label="草稿" name="0"></el-tab-pane>
|
|
|
<el-tab-pane label="审核中" name="1"></el-tab-pane>
|
|
|
<el-tab-pane label="驳回" name="3"></el-tab-pane>
|
|
|
- <el-tab-pane label="已通过" name="2"></el-tab-pane>
|
|
|
+ <el-tab-pane label="已审核" name="2"></el-tab-pane>
|
|
|
+ <el-tab-pane label="已作废" name="88"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table
|
|
|
@@ -144,7 +145,7 @@ import popModal from '@/components/pop-modal';
|
|
|
{ label: '草稿', value: '0' },
|
|
|
{ label: '审核中', value: '1' },
|
|
|
{ label: '驳回', value: '3' },
|
|
|
- { label: '已通过', value: '2' }
|
|
|
+ { label: '已审核', value: '2' }
|
|
|
],
|
|
|
selection: [],
|
|
|
cacheKeyUrl: '7cc8e5d2-wt-noticeIssuance-index',
|
|
|
@@ -420,30 +421,17 @@ import popModal from '@/components/pop-modal';
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- // toDelAll() {
|
|
|
-
|
|
|
- // batchDeleteNotice({
|
|
|
- // ids: this.selection.map((i) => i.id)
|
|
|
- // }).then((res) => {
|
|
|
- // if (res) {
|
|
|
- // this.$message.success('删除成功');
|
|
|
- // this.reload();
|
|
|
- // }
|
|
|
- // }).catch((err) => {
|
|
|
- // this.$message.error(err.message);
|
|
|
- // });
|
|
|
- // },
|
|
|
-
|
|
|
/* 表格数据源 */
|
|
|
datasource({ page, limit, where, order }) {
|
|
|
console.log(this.tabValue, '888');
|
|
|
-
|
|
|
+ const approvalStatus = this.tabValue == 99 ? '' : this.tabValue == 88 ? 2 : this.tabValue;
|
|
|
let params = {
|
|
|
...where,
|
|
|
...order,
|
|
|
- approvalStatus: this.tabValue == 99 ? '' : this.tabValue,
|
|
|
+ approvalStatus: approvalStatus,
|
|
|
pageNum: page,
|
|
|
size: limit,
|
|
|
+ status: this.tabValue == 88 ? 3 : ''
|
|
|
};
|
|
|
|
|
|
return noticeDocumentPageV1API({ ...params });
|
|
|
@@ -469,7 +457,7 @@ import popModal from '@/components/pop-modal';
|
|
|
/* 刷新表格 */
|
|
|
reload(where = {}) {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.table.reload({ page: 1, where, approvalStatus: this.tabValue == 99 ? '' : this.tabValue });
|
|
|
+ this.$refs.table.reload({ page: 1, where });
|
|
|
});
|
|
|
},
|
|
|
|