| | |
| | | async safetySelfInspectionL() { |
| | | var res = await safetySelfInspectionList(this.listQuery).then((res) => { |
| | | if (res.data.code == 200) { |
| | | console.log(res.data); |
| | | this.list = res.data.result.records; |
| | | this.recordTotal = res.data.result.total; |
| | | this.pageSize = res.data.result.size; |
| | |
| | | }); |
| | | }, |
| | | handleClick(val) { |
| | | console.log(val) |
| | | if(val.status==-1){ |
| | | this.$router.push({ |
| | | path:"/new", |
| | |
| | | }) |
| | | }, |
| | | Del(id){ |
| | | this.$confirm('确认删除吗','提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(()=>{ |
| | | safetySelfInspectionDel({id:id}).then(res=>{ |
| | | if(res.data.code==200){ |
| | | this.safetySelfInspectionL(); |
| | |
| | | } |
| | | }) |
| | | } |
| | | )} |
| | | }, |
| | | }; |
| | | </script> |