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
<template>
<dee-add-model-case-dialog
:model-list="modelList"
:show-sub-type="false"
:width="width"
:title="title"
:show-dialog="showDialog"
:default-data="defaultData"
:version-control="false"
:default-open-props="defaultOpenProps"
search-attr="dxContextId,state"
@close="$emit('close')"
@selection="(rows) => {$emit('selection',rows);$emit('close')}"
/>
</template>
<script>
export default {
name: 'ChangeSource',
props: {
showDialog: {
type: Boolean,
default: false
},
width: { // 弹出框 宽度
type: String,
default: () => '1100px'
},
title: { // 弹出框 标题
type: String,
default: () => '添加对象'
}
},
data() {
return {
modelList: [{
label: '超差',
value: 'DxDeviation'
},
{
label: '偏离',
value: 'DxWaver'
},
{
label: '问题报告',
value: 'DxProblemReport'
}],
defaultData: {
modelName: 'DxProblemReport'
},
defaultOpenProps: [
'reportedAgainsts.target.dxContext', 'prReferenceLinks.target.dxContext',
'prReferenceLinks.target.dxView', 'reportedAgainsts.target.dxView'
]
}
},
computed: {},
watch: {},
// 生命周期 - 创建完成(访问当前this实例)
created() {},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {},
methods: {}
}
</script>
<style lang="scss">
/* @import url(); 引入css类 */
</style>