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
74
75
76
77
78
79
80
81
82
83
|
<template>
<ht-template-form
:template-key="templateKey"
:action="action"
:is-share="isShare"
:open-type="openType"
:data-param="params"
:showButton="showButton"
isMobile
class="template-form--detail"
></ht-template-form>
</template>
<script>
export default {
name: 'TemplateFormDetail',
data() {
return {
templateKey: null,
action: null,
isShare: false,
openType: null,
params: null,
showButton:true,
}
},
created() {
const { templateKey, action, isShare, openType, data } = this.$route.params
const { showButton } = this.$route.meta
this.showButton = showButton
this.templateKey = templateKey
this.action = action
this.isShare = isShare
this.openType = 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) {
this.params = this.$route.query.data
} else {
this.params = data
}
},
}
</script>
<style lang="scss" scoped>
.template-form--detail {
::v-deep {
.mobile-ht-form-item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0;
border-bottom: 1px solid #ebeef5;
.el-form-item__label {
width: 120px;
}
.el-form-item__content {
flex: 1;
margin-left: 0 !important;
.mobile-number-location {
align-items: center;
}
}
}
.mobile-map-form-item,
.mobile-relevant-flow__form-item,
.mobile-qrcode-form-item,
.mobile-opinion-form-item,
.mobile-textarea-form-item {
display: block;
}
.mobile-map-form-item {
.el-form-item__content {
margin-left: 120px !important;
}
}
}
}
</style>
|