8d73e917
陈威
初始化提交
|
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
|
<template>
<ht-template-form
:template-key="templateKey"
:action="action"
:is-share="isShare"
:open-type="openType"
:data-param="params"
:is-custom-handle-close="isNewPage"
@close="handleClose"
></ht-template-form>
</template>
<script>
export default {
name: 'TemplateForm',
data() {
return {
templateKey: null,
action: null,
isShare: false,
openType: null,
params: null
}
},
computed: {
isNewPage() {
return (
this.$route.query.isNewPage === 'true' ||
this.$route.query.isNewPage === true
)
}
},
created() {
this.templateKey = this.$route.params.templateKey
this.action = this.$route.params.action
this.isShare = this.$route.params.isShare
this.openType = this.$route.params.openType
if (this.$route.query.showModifyRecord) {
let showModifyRecordId =this.$route.params.data
this.$requestConfig.boDataModifyRecordById(showModifyRecordId).then((resp) => {
this.params = Base64.encode(resp.data)
})
} else if (this.$route.query.data) {
console.log(this.$route.query.data,'this.$route.query.data')
this.params = this.$route.query.data
} else {
this.params = this.$route.params.data
}
},
methods: {
handleClose() {
window.close()
}
}
}
</script>
<style lang="scss" scoped>
::v-deep {
.form-table__container {
.form-table-header {
.import-export__wrap {
.el-dropdown {
height: 32px;
line-height: 29px;
}
}
.clear-all-btn {
font-size: 16px;
margin-top: 0;
}
}
}
}
</style>
|