modified: .env.development
modified: src/views/inspectionManagement/commissionInspection/index.vue
| | |
| | | ENV = 'development' |
| | | |
| | | # base api |
| | | VUE_APP_BASE_API = 'http://localhost:1234/' |
| | | VUE_APP_BASE_API = 'http://192.168.110.107:1234/' |
| | |
| | | value: '1', |
| | | label: '部门1' |
| | | }], |
| | | radioValue: 0, |
| | | radioValue: null, |
| | | commisionTable: [{ |
| | | specifications_models: "GGXH-AAAAA", |
| | | inspectionTime: "2023-08-03", |
| | |
| | | }], |
| | | conditionsOptions: [{ |
| | | label: '全部', |
| | | value: 0 |
| | | value: null |
| | | }, |
| | | { |
| | | label: '已检验', |
| | | value: 1 |
| | | value: 0 |
| | | }, |
| | | { |
| | | label: '待检验', |
| | | value: 2 |
| | | value: 1 |
| | | } |
| | | ], |
| | | currentPage: 1, |
| | |
| | | async radioclick() { |
| | | // 处理点击radio的时间 |
| | | if (this.radioValue === 0) { |
| | | this.getCommisionList() |
| | | } else { |
| | | const res = await getCommisionList({ |
| | | pageNo: this.currentPage, |
| | | pageSize: this.pageSize, |
| | |
| | | }) |
| | | this.commisionTable = res.data.row |
| | | this.total = res.data.total |
| | | } else if(this.radioValue === 1) { |
| | | const res = await getCommisionList({ |
| | | pageNo: this.currentPage, |
| | | pageSize: this.pageSize, |
| | | inspectionStatus: this.radioValue |
| | | }) |
| | | this.commisionTable = res.data.row |
| | | this.total = res.data.total |
| | | }else{ |
| | | this.getCommisionList(); |
| | | } |
| | | |
| | | }, |