提交 8dffa6de authored 作者: 林国禄's avatar 林国禄

更新调查列表

上级 3de312ae
......@@ -60,7 +60,7 @@
methods:{
handleChange(){},
handleExport() {
console.log(this.levelValue)
// console.log(this.levelValue)
this.$confirm('是否确认导出所选项目数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
......
......@@ -75,6 +75,7 @@
<el-table
v-if="tableOpen"
:data="itemList"
style="width: 100%"
row-key="id"
......@@ -172,6 +173,7 @@ export default {
//
// }
// },
tableOpen:true,
cascaderKey:1,
levelOptions: [],
// 不可重复提交
......@@ -342,10 +344,13 @@ export default {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
}).then(() =>{
this.tableOpen = false;
return delItem(ids);
}).then(() => {
this.itemList = [];
this.getList();
this.tableOpen = true;
this.msgSuccess("删除成功");
})
},
......
......@@ -295,16 +295,43 @@
</div>
</el-dialog>
<!-- 导出对话框 -->
<el-dialog :title="title" :visible.sync="exportOpen" width="600px" append-to-body>
<div>
<!-- <span>选择项目主题</span>-->
<span>
<el-cascader
style="width: 100%"
key="id"
v-model="exportLevelValue"
:options="exportLevelOptions"
:props="{ expandTrigger: 'hover' }"
clearable></el-cascader>
</span>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="exportSubmit" :disabled="repeatSubmit">确 定</el-button>
<el-button @click="exportOpen = false">取 消</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { selectCheckTarget,getCheckTarget,selectRectifyTarget,getRectifyTarget, distributeRectificationJob, rollbackJob, auditJob, getList,listJob, getJob, delJob, addJob, updateJob, exportJob } from "@/api/backstage/job";
import {exportAllProject,getProjectList } from "@/api/backstage/dataReport";
export default {
name: "Job",
data() {
return {
exportLevelValue:[],
exportLevelOptions:[],
exportOpen:false,
rectifyTargetValueOptions:[],
checkTargetValueOptions:[],
rectifyTargetOpen:false,
......@@ -532,16 +559,32 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const queryParams = this.queryParams;
this.$confirm('是否确认导出所有整改任务数据项?', "警告", {
this.exportLevelValue = null;
getProjectList().then(res=>{
this.exportLevelOptions = res.data;
this.title='选择项目主题';
this.exportOpen = true;
})
},
//提交导出
exportSubmit(){
if(this.exportLevelValue == null){
this.$message.error("请先选择导出的项目主题");
return;
}
this.$confirm('是否确认导出所选项目数据项?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
}).then(function() {
return exportJob(queryParams);
}).then(() =>{
return exportAllProject(this.exportLevelValue);
}).then(response => {
this.download(response.msg);
})
},
//审核初次调查任务(复查任务不需要审核)
handleAudit(row){
......
......@@ -546,6 +546,7 @@ export default {
}).then(function() {
return delPoint(ids);
}).then(() => {
this.pointList = [];//刷新
this.getList();
this.msgSuccess("删除成功");
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论