Files
dvcp_v2_wechat_app/src/mods/AppProgressNew/detail.vue

89 lines
1.7 KiB
Vue
Raw Normal View History

2022-02-25 18:09:16 +08:00
<template>
<div class="Page" v-if="showPage">
<div class="processNames">{{ detail.processName }}</div>
<div class="types">{{ name }}</div>
<div class="conts" v-html="detail.needToKnow"></div>
</div>
</template>
<script>
export default {
name: 'detail',
components: {},
props: {},
data() {
return {
showPage: false,
id: '',
detail: {},
classList: {},
name: '',
}
},
computed: {},
watch: {},
onLoad(option) {
this.id = option.id
this.getDetail()
},
onShow() {},
methods: {
getDetail() {
this.$instance.post(`/app/approval-process-def/info-id?id=${this.id}`).then((res) => {
if (res.code == 0) {
this.detail = res.data
this.typeList()
}
})
},
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) {
2022-03-07 17:24:49 +08:00
this.name = e.name
2022-02-25 18:09:16 +08:00
}
})
this.showPage = true
}
}
})
},
},
}
</script>
<style scoped lang="scss">
.Page {
padding: 32px 32px 48px 32px;
background: #fff;
.processNames {
font-size: 48px;
font-weight: 600;
}
.types {
padding-top: 16px;
font-size: 30px;
color: #999999;
}
.conts {
padding-top: 64px;
font-size: 36px;
2022-02-25 18:12:06 +08:00
line-height: 64px;
2022-02-25 18:09:16 +08:00
}
}
</style>