入伍保留学籍-附件操作
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"
|
||||
v-hasPermi="['routine:enlistmentReserveAttach:add']">新增</el-button>
|
||||
</el-col>
|
||||
@@ -32,7 +32,7 @@
|
||||
<el-col :span="1.5">
|
||||
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport"
|
||||
v-hasPermi="['routine:enlistmentReserveAttach:export']">导出</el-button>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
@@ -63,10 +63,12 @@
|
||||
<el-table-column label="文件类型" align="center" prop="fileType" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row, '修改')" v-if="scope.row.rtEnlistmentReserves[0].applyStatus == 0"
|
||||
v-hasPermi="['routine:enlistmentReserveAttach:edit']">修改</el-button>
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleUpdate(scope.row, '删除')" v-if="scope.row.rtEnlistmentReserves[0].applyStatus == 0"
|
||||
v-hasPermi="['routine:enlistmentReserveAttach:remove']">删除</el-button>
|
||||
<el-button v-if="scope.row.rtEnlistmentReserves[0].applyStatus != 0" size="mini" type="text" icon="el-icon-info"
|
||||
@click="detail(scope.row)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@@ -229,14 +231,21 @@ export default {
|
||||
this.title = "添加保留学籍申请附件(入伍通知书等)";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
handleUpdate(row, data) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getEnlistmentReserveAttach(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改保留学籍申请附件(入伍通知书等)";
|
||||
// getEnlistmentReserveAttach(id).then(response => {
|
||||
// this.form = response.data;
|
||||
// this.open = true;
|
||||
// this.title = "修改保留学籍申请附件(入伍通知书等)";
|
||||
// });
|
||||
this.$modal.confirm('如果要' + data + '附件信息,请到申请表' + data + ',是否跳转到申请表?').then(() => {
|
||||
this.$router.push({
|
||||
path: "/routine/enlistmentReserve/applicationForm",
|
||||
query: { id: row.rtEnlistmentReserves[0].id } // 将 row.id 放在 query 中
|
||||
});
|
||||
}).catch(() => { });
|
||||
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
@@ -273,7 +282,13 @@ export default {
|
||||
this.download('routine/enlistmentReserveAttach/export', {
|
||||
...this.queryParams
|
||||
}, `enlistmentReserveAttach_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
},
|
||||
detail(row) {
|
||||
this.$router.push({
|
||||
path: "/routine/enlistmentReserve/applicationForm",
|
||||
query: { id: row.rtEnlistmentReserves[0].id, type: 'detail',deployId: row.rtEnlistmentReserves[0].deployId, processInstanceId: row.rtEnlistmentReserves[0].processInstanceId } // 将 row.id 放在 query 中
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user