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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<template>
<div class="dee-page no-padding">
<businessTab
ref="businessTab"
style="height: 100%;background-color: #fff"
:is-view="isView"
:model-name="modelName"
:type-name="typeName"
:page-data="pageData"
:config="config"
:table-options="tableOptions"
:show-collect="true"
v-bind="configDetails"
:custom-events="customEvents"
v-on="layHandler"
@close-detail="$emit('close-detail')"
/>
</div>
</template>
<script>
import { changeCustomEvent } from './customEvents.js'
export default {
name: 'DxDeviationDetail',
displayName: 'PR详情',
modelRelationObjs: ['DxDeviation'],
props: {
isView: {
type: Boolean,
default: false
},
config: {
type: Object,
default: () => {}
},
pageData: {
type: Object,
default: () => {}
},
tableOptions: {
type: Object,
default: () => {}
},
configDetails: {
type: Object,
default: () => {}
},
layHandler: {
type: Object,
default: () => {}
},
typeName: {
type: [Number, String],
default: () => ''
},
modelName: {
type: [Number, String],
default: () => 'DxDeviation'
},
pageName: {
type: [Number, String],
default: () => ''
}
},
data() {
return {
customEvents: null
}
},
computed: {},
watch: {},
// 生命周期 - 创建完成(访问当前this实例)
created() {},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const PartEvents = changeCustomEvent
this.customEvents = new PartEvents(this)
},
methods: {
load(val) {
this.$refs['businessTab'].load(val)
}
}
}
</script>
<style lang="scss">
/* @import url(); 引入css类 */
</style>