28087
This commit is contained in:
		@@ -2,7 +2,7 @@
 | 
			
		||||
  <div class="Page" v-if="showPage">
 | 
			
		||||
    <div class="processNames">{{ detail.processName }}</div>
 | 
			
		||||
 | 
			
		||||
    <div class="types">{{ name }}</div>
 | 
			
		||||
    <div class="types">{{ detail.classificationName }}</div>
 | 
			
		||||
 | 
			
		||||
    <div class="conts" v-html="detail.needToKnow"></div>
 | 
			
		||||
  </div>
 | 
			
		||||
@@ -18,8 +18,6 @@ export default {
 | 
			
		||||
      showPage: false,
 | 
			
		||||
      id: '',
 | 
			
		||||
      detail: {},
 | 
			
		||||
      classList: {},
 | 
			
		||||
      name: '',
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {},
 | 
			
		||||
@@ -34,34 +32,10 @@ export default {
 | 
			
		||||
      this.$instance.post(`/app/approval-process-def/info-id?id=${this.id}`).then((res) => {
 | 
			
		||||
        if (res.code == 0) {
 | 
			
		||||
          this.detail = res.data
 | 
			
		||||
          this.typeList()
 | 
			
		||||
          this.showPage = true
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    typeList() {
 | 
			
		||||
      this.$instance
 | 
			
		||||
        .post(`/app/zwspapprovalclassification/list-xcx`, null, {
 | 
			
		||||
          params: {
 | 
			
		||||
            current: 1,
 | 
			
		||||
            status: 1,
 | 
			
		||||
            size: 9999,
 | 
			
		||||
          },
 | 
			
		||||
        })
 | 
			
		||||
        .then((res) => {
 | 
			
		||||
          if (res.code == 0) {
 | 
			
		||||
            this.classList = res.data.records
 | 
			
		||||
            if (this.classList) {
 | 
			
		||||
              this.classList.map((e) => {
 | 
			
		||||
                if (this.detail.classificationId == e.id) {
 | 
			
		||||
                  this.name = e.name
 | 
			
		||||
                }
 | 
			
		||||
              })
 | 
			
		||||
              this.showPage = true
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        })
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user