main.vue
1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!--
* @Description:
* @Date: 2022-03-23 16:47:37
-->
<template>
<div class="template-container">
<Header :from="from" :resData="resData"></Header>
<Main :resData="resData" :projectType="projectType"></Main>
<Footer></Footer>
</div>
</template>
<script>
import Footer from './components/footer.vue';
import Header from './components/header.vue';
import Main from './components/main.vue';
import { makeSceneTaskInfo } from './api';
export default {
name: 'XrkTaskRecordConfigurable',
props: {
from: {
type: String,
default: 'gongye'
},
projectType: {
type: [Number, String]
},
taskId: {
type: [String, Number],
default: '1209161'
}
},
components: {
Footer,
Header,
Main
},
data() {
return {
resData: {}
};
},
created() {
makeSceneTaskInfo({ taskId: this.taskId }).then(res => {
this.resData = res.data;
});
}
};
</script>
<style>
@import url('../style/index.css');
</style>