| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getCommisionList, getlink } from '@/api/inspection/commisioninspection' |
| | | import { getCommisionList } from '@/api/inspection/commisioninspection' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | // 查询方法 |
| | | async search() { |
| | | // 将搜索条件作为参数传递给getCommisionList方法 |
| | | let res |
| | | if(this.radioValue === 0){ |
| | | const res = await getCommisionList({ |
| | | res = await getCommisionList({ |
| | | pageNo: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | entrustCoding: this.searchData.code, |
| | |
| | | entrusted: this.searchData.department, |
| | | }) |
| | | }else{ |
| | | const res = await getCommisionList({ |
| | | res = await getCommisionList({ |
| | | pageNo: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | entrustCoding: this.searchData.code, |
| | |
| | | this.searchData.code = '' |
| | | this.searchData.name = '' |
| | | this.searchData.department = '' |
| | | this.radioValue = '0' |
| | | this.radioValue = 0 |
| | | // 重新获取数据 |
| | | this.getCommisionList() |
| | | }, |
| | | async radioclick(){ |
| | | // 处理点击radio的时间 |
| | | // console.log('radioValue',this.radioValue) |
| | | console.log('radioValue',this.radioValue) |
| | | if(this.radioValue === 0){ |
| | | this.getCommisionList() |
| | | }else{ |