quanyawei
2024-09-12 9251f709dc2a0d278ef2c0cdd76a244bfefc5784
src/views/toCarryOutLegislativeReforms/components/queryForm.vue
@@ -150,7 +150,8 @@
<script>
export default {
  props: {
    searchType: { type: String, default: '' }
    searchType: { type: String, default: '' },
    initializationData: { type: Object, default: () => {} }
  },
  data () {
    return {
@@ -170,6 +171,21 @@
    this.getUnitList()
    this.formData.isInvalid = 0
    this.getContaminateList()
    if (Object.entries(this.initializationData).length !== 0) {
      this.formData.startTime = this.initializationData.startTime
      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.formData.changeType = 2
      }
    }
  },
  methods: {
    changeUid (val) {