| | |
| | | <script> |
| | | export default { |
| | | props: { |
| | | searchType: { type: String, default: '' } |
| | | searchType: { type: String, default: '' }, |
| | | initializationData: { type: Object, default: () => {} } |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | this.getUnitList() |
| | | this.formData.isInvalid = 0 |
| | | this.getContaminateList() |
| | | if (Object.entries(this.initializationData).length !== 0) { |
| | | this.$set(this.formData, 'startTime', this.initializationData.startTime) |
| | | this.$set(this.formData, 'endTime', this.initializationData.endTime) |
| | | // total 总交办单 unComplete 进行中 complete 已完成 overdue 逾期 |
| | | if (this.initializationData.type === 'total') { |
| | | this.formData.state = [] |
| | | } else if (this.initializationData.type === 'unComplete') { |
| | | this.formData.state = [9, 20, 30] |
| | | } else if (this.initializationData.type === 'complete') { |
| | | this.formData.state = [40] |
| | | } else if (this.initializationData.type === 'overdue') { |
| | | this.formData.state = [] |
| | | this.$set(this.formData, 'changeType', 2) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | changeUid (val) { |