createGuide.vue
9.57 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!--
* @Author: your name
* @Date: 2022-03-03 17:45:22
* @LastEditTime: 2022-03-04 16:53:04
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\approvalConfig\createGuide.vue
-->
<template>
<div class="guide-page">
<div class="guide-title">操作手册</div>
<div class="guide-content">
<div class="step-line"></div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">1</span></span>
</div>
<div class="step-content">
打开企微后台登录地址:
<el-link type="primary" target="_blank" :underline="false" href="https://work.weixin.qq.com/wework_admin/loginpage_wx?from=myhome">https://work.weixin.qq.com/wework_admin/loginpage_wx?from=myhome</el-link>
企微管理员用企微或者微信扫码进行登录
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">2</span></span>
</div>
<div class="step-content">
<div class="step-title">登录后,在【应用管理-应用】下,找到【嘀加企微管家】,点击进入</div>
<img class="step2-img" src="../../../src/assets/guide/01@3x.png" alt="" />
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">3</span></span>
</div>
<div class="step-content">
<div class="step-title" style="margin-bottom: 16px">在【嘀加企微管家】应用页下方,根据接入方式,找到对应功能(自建应用模式和应用代开发模式为2存1,不会同时出现,企微管理员只需关注“审批设置”在企微后台那里 展示,点进去配置即可)</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content third-content">在【开发者接口】模块,找到“审批接口”,点击【设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/02@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content" :style="{ height: thirdHeight + 'px' }">在【功能】模块,找到“审批流程”,点击【前往设置】,进入设置页</div>
<img class="step3-img" src="../../../src/assets/guide/03@3x.png" alt="" />
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">4</span></span>
</div>
<div class="step-content">
<div class="step-title">配置审批人及审批流</div>
<div class="half-title">自建应用模式:</div>
<div class="half-content">点击【+添加模板】,进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img m-b-md" src="../../../src/assets/guide/04@3x.png" alt="" />
</div>
<div class="half-step m-b-md m-l-md">
<img class="step4-img" src="../../../src/assets/guide/05@3x.png" alt="" />
</div>
<div class="half-title">应用代开发模式:</div>
<div class="half-content">点击出现的对应模板(若为空或缺少需要审批的模板,请联系我们:18928408808进行配置),进入审批模板配置页,按自店需要,配置好审批人信息后,点击【保存】</div>
<div class="half-step">
<img class="step4-img" src="../../../src/assets/guide/06@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<img class="step4-img" src="../../../src/assets/guide/07@3x.png" alt="" />
</div>
</div>
</div>
<div class="step">
<div class="step-icon">
<span class="icon-shell"><span class="icon-number">5</span></span>
</div>
<div class="step-content">
<div class="step-title">复制审批模板的ID</div>
<div class="half-step">
<div class="half-title">自建应用模式:</div>
<div class="half-content" :style="{ height: fiveHeight + 'px' }">点击【复制ID】,即可获取审批模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/08@3x.png" alt="" />
</div>
<div class="half-step m-l-md">
<div class="half-title">应用代开发模式:</div>
<div class="half-content five-content">需进入模板的配置页,在浏览器链接中,复制如图位置的字符,即可获取审批 模板的ID</div>
<img class="step5-img" src="../../../src/assets/guide/09@3x.png" alt="" />
</div>
</div>
</div>
</div>
<div class="footer-panel" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"><el-button type="primary" @click="handleCancel">返回</el-button></div>
</div>
</template>
<script>
export default {
name: 'CreateGuide',
data() {
return {
lineHeight: 2200,
footerLeft: 0,
footerWidth: 0,
// 当屏幕太小导致换行,出现对不齐问题
fiveHeight: 20,
thirdHeight: 20
}
},
mounted() {
// setTimeout(() => {
// this.lineHeight = document.querySelector('.guide-content').clientHeight - 92
// this.resize()
window.onresize = () => {
// this.resize()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.thirdHeight = document.querySelector('.third-content').clientHeight
this.fiveHeight = document.querySelector('.five-content').clientHeight
}
// window.addEventListener('resize', this.resize())
// }, 1000 / 60)
},
beforeDestroy() {
// 事件注销
window.onresize = null
},
methods: {
handleCancel() {
this.$router.push({ path: '/approvalConfig/index' })
},
resize() {
// this.resetData()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.thirdHeight = document.querySelector('.third-content').clientHeight
this.fiveHeight = document.querySelector('.five-content').clientHeight
},
resetData() {
this.lineHeight = 2200
this.footerLeft = 0
this.footerWidth = 0
this.fiveHeight = 20
this.thirdHeight = 20
}
}
}
</script>
<style lang="scss">
.guide-page {
background-color: #fff;
margin-bottom: 64px;
.guide-title {
padding: 15px 20px;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 28px;
border-bottom: 1px solid #d8d8d8;
}
.guide-content {
position: relative;
padding: 32px 20px 20px;
z-index: 1;
.step-line {
position: absolute;
background-color: #5850ff;
width: 1px;
height: calc(100% - 92px);
left: 35px;
top: 63px;
z-index: -1;
}
.step {
display: flex;
margin-bottom: 10px;
z-index: 1;
.step-icon {
display: inline-flex;
// position: relative;
width: 32px;
height: 63px;
align-items: center;
// justify-content: center;
color: #fff;
.icon-shell {
width: 100%;
background-color: #fff;
padding: 8px 0;
}
.icon-number {
display: inline-flex;
width: 100%;
height: 32px;
background-color: #5850ff;
border-radius: 50%;
align-items: center;
justify-content: center;
}
}
.step-content {
position: relative;
width: 100%;
padding: 20px;
margin-left: 20px;
line-height: 20px;
border: 1px solid #d8d8d8;
height: 100%;
.step-title {
margin-bottom: 10px;
}
.step2-img {
// width: 800px;
// height: 725px;
width: 100%;
height: 100%;
}
.half-step {
display: inline-flex;
width: calc(50% - 10px);
flex-direction: column;
.step3-img {
// width: 500px;
// height: 430px;
width: 100%;
height: 100%;
margin-top: 10px;
}
.step4-img,
.step5-img {
// width: 500px;
// height: 345px;
width: 100%;
height: 100%;
margin-top: 10px;
}
}
.half-title {
position: relative;
font-size: 14px;
color: #333;
font-weight: 600;
padding-left: 10px;
&::after {
content: '';
display: inline-block;
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 5px;
height: 5px;
background-color: #5850ff;
border-radius: 50%;
}
}
.half-content {
font-size: 14px;
margin-left: 10px;
}
}
}
}
}
.el-link.el-link--primary {
color: #5850ff;
&:hover {
color: #5850ff;
}
}
.m-b-md {
margin-bottom: 20px;
}
.m-l-md {
margin-left: 20px;
}
</style>