|
@@ -65,8 +65,8 @@
|
|
<template #buttons>
|
|
<template #buttons>
|
|
<el-button v-if="hasPermission('program:registered:add')" type="primary" size="small" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
<el-button v-if="hasPermission('program:registered:add')" type="primary" size="small" icon="el-icon-plus" @click="add()">新建</el-button>
|
|
<!-- <el-button v-if="hasPermission('program:registered:add')" type="primary" size="small" icon="el-icon-plus" @click="start()">新建</el-button>-->
|
|
<!-- <el-button v-if="hasPermission('program:registered:add')" type="primary" size="small" icon="el-icon-plus" @click="start()">新建</el-button>-->
|
|
-<!-- <el-button v-if="hasPermission('program:registered:del')" type="danger" size="small" icon="el-icon-delete" @click="del()" :disabled="$refs.typeDictTable && $refs.typeDictTable.getCheckboxRecords().length === 0" plain>删除</el-button>-->
|
|
|
|
-<!-- <el-button v-if="hasPermission('program:registered:export')" type="warning" plain @click="exportFile()" size="small">导出</el-button>-->
|
|
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:del')" type="danger" size="small" icon="el-icon-delete" @click="deleteAll()" :disabled="$refs.typeDictTable && $refs.typeDictTable.getCheckboxRecords().length === 0" plain>删除</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('program:registered:export')" type="warning" plain @click="exportFile()" size="small">导出</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
<div style="height: calc(100% - 90px)">
|
|
<div style="height: calc(100% - 90px)">
|
|
@@ -402,6 +402,25 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ // 删除
|
|
|
|
+ deleteAll (id) {
|
|
|
|
+ let ids = id || this.$refs.typeDictTable.getCheckboxRecords().map(item => {
|
|
|
|
+ return item.id
|
|
|
|
+ }).join(',')
|
|
|
|
+ this.$confirm(`确定删除所选项吗?`, '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(() => {
|
|
|
|
+ this.loading = true
|
|
|
|
+ this.programProjectListInfoService.deleteAll(ids).then(({data}) => {
|
|
|
|
+ this.$message.success(data)
|
|
|
|
+ this.refreshList()
|
|
|
|
+ this.loading = false
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
resetSearch () {
|
|
resetSearch () {
|
|
this.$refs.searchForm.resetFields()
|
|
this.$refs.searchForm.resetFields()
|
|
this.refreshList()
|
|
this.refreshList()
|
|
@@ -907,10 +926,11 @@
|
|
this.loading = true
|
|
this.loading = true
|
|
this.programProjectListInfoService.exportFile({
|
|
this.programProjectListInfoService.exportFile({
|
|
'itemType': '1',
|
|
'itemType': '1',
|
|
|
|
+ 'tabType': '2022',
|
|
...this.searchForm
|
|
...this.searchForm
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
// 将二进制流文件写入excel表,以下为重要步骤
|
|
- this.$utils.downloadExcel(res.data, '项目登记列表信息')
|
|
|
|
|
|
+ this.$utils.downloadExcel(res.data, '2022年项目登记列表信息')
|
|
this.loading = false
|
|
this.loading = false
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
this.loading = false
|
|
this.loading = false
|