|
@@ -0,0 +1,255 @@
|
|
1
|
+<template>
|
|
2
|
+ <el-dialog class="gdt-dialog" v-model="dialogVisible" :destroy-on-close="true" key="conversionTrackDialog"
|
|
3
|
+ title="配置转化归因新链路" width="600px" :before-close="handleClose">
|
|
4
|
+
|
|
5
|
+ <div class="content-wrap" v-loading="loading">
|
|
6
|
+ <div class="form-item">
|
|
7
|
+ <div class="item-lable">监控链接</div>
|
|
8
|
+ <el-input class="input-wrap" v-model="form.feedback_url" placeholder="请输入监控链接" clearable />
|
|
9
|
+ </div>
|
|
10
|
+ <div class="form-item">
|
|
11
|
+ <div class="item-lable">小程序app_id</div>
|
|
12
|
+ <el-input class="input-wrap" v-model="form.wechat_app_id" placeholder="请输入小程序app_id" clearable />
|
|
13
|
+ </div>
|
|
14
|
+ </div>
|
|
15
|
+
|
|
16
|
+ <template #footer>
|
|
17
|
+ <span class="dialog-footer">
|
|
18
|
+ <el-button @click="handleClose"> 取 消 </el-button>
|
|
19
|
+ <el-button type="primary" @click="submitEvent"> 确 定 </el-button>
|
|
20
|
+ </span>
|
|
21
|
+ </template>
|
|
22
|
+ </el-dialog>
|
|
23
|
+</template>
|
|
24
|
+<script setup lang="ts">
|
|
25
|
+import { nextTick, reactive, ref, watch } from 'vue';
|
|
26
|
+import { ElMessage } from "element-plus";
|
|
27
|
+
|
|
28
|
+const props = defineProps({
|
|
29
|
+ visible: {
|
|
30
|
+ type: Boolean,
|
|
31
|
+ default: false
|
|
32
|
+ },
|
|
33
|
+ accIdsList: {
|
|
34
|
+ type: Array<{ id: string, name: string }>,
|
|
35
|
+ default: () => []
|
|
36
|
+ },
|
|
37
|
+ fillback: {
|
|
38
|
+ type: Object,
|
|
39
|
+ },
|
|
40
|
+ acc_plan_ad_count: {
|
|
41
|
+ type: Object,
|
|
42
|
+ default: () => { }
|
|
43
|
+ }
|
|
44
|
+})
|
|
45
|
+const emit = defineEmits<{
|
|
46
|
+ (event: "close", val?: any): void;
|
|
47
|
+}>();
|
|
48
|
+
|
|
49
|
+const loading = ref(false)
|
|
50
|
+const dialogVisible = ref(props.visible)
|
|
51
|
+
|
|
52
|
+const form = reactive({
|
|
53
|
+ feedback_url: '',
|
|
54
|
+ wechat_app_id: '',
|
|
55
|
+})
|
|
56
|
+
|
|
57
|
+/**关闭弹框 */
|
|
58
|
+const handleClose = () => {
|
|
59
|
+ emit('close')
|
|
60
|
+}
|
|
61
|
+
|
|
62
|
+/**确定提交 */
|
|
63
|
+const submitEvent = () => {
|
|
64
|
+
|
|
65
|
+ if (!form.feedback_url) {
|
|
66
|
+ ElMessage.warning('请输入监控链接')
|
|
67
|
+ return false
|
|
68
|
+ }
|
|
69
|
+
|
|
70
|
+ if (!form.wechat_app_id) {
|
|
71
|
+ ElMessage.warning('请输入小程序app_id')
|
|
72
|
+ return false
|
|
73
|
+ }
|
|
74
|
+
|
|
75
|
+ let obj = {};
|
|
76
|
+ emit('close', {
|
|
77
|
+ type: 'submit',
|
|
78
|
+ val: Object.keys(obj)?.length == 0 ? null : obj,
|
|
79
|
+ other: {
|
|
80
|
+ feedback_url: form.feedback_url,
|
|
81
|
+ wechat_app_id: form.wechat_app_id,
|
|
82
|
+ }
|
|
83
|
+ })
|
|
84
|
+}
|
|
85
|
+
|
|
86
|
+const handleClear = () => {
|
|
87
|
+ console.log('handleClear => ',)
|
|
88
|
+ form.feedback_url = ''
|
|
89
|
+ form.wechat_app_id = ''
|
|
90
|
+
|
|
91
|
+ emit('close', {
|
|
92
|
+ type: 'submit',
|
|
93
|
+ val: null,
|
|
94
|
+ other: {}
|
|
95
|
+ })
|
|
96
|
+}
|
|
97
|
+
|
|
98
|
+// 父组件共享值
|
|
99
|
+defineExpose({
|
|
100
|
+ handleClear,
|
|
101
|
+});
|
|
102
|
+
|
|
103
|
+/**弹框显隐监听 */
|
|
104
|
+watch(
|
|
105
|
+ () => props.visible,
|
|
106
|
+ async (newValue, oldValue) => {
|
|
107
|
+ dialogVisible.value = newValue
|
|
108
|
+ console.log('fillback => ', props.fillback)
|
|
109
|
+
|
|
110
|
+ }, { immediate: true })
|
|
111
|
+
|
|
112
|
+</script>
|
|
113
|
+<style lang="scss" scoped>
|
|
114
|
+@import "@/assets/style/batchDialogGdt.scss";
|
|
115
|
+@import './outer.scss';
|
|
116
|
+
|
|
117
|
+.tabelListBox {
|
|
118
|
+ margin-top: 15px;
|
|
119
|
+ height: 62vh !important;
|
|
120
|
+ padding-left: 0 !important;
|
|
121
|
+}
|
|
122
|
+
|
|
123
|
+.tabelCon {
|
|
124
|
+ padding: 10px;
|
|
125
|
+}
|
|
126
|
+
|
|
127
|
+.selectedList,
|
|
128
|
+.listCon {
|
|
129
|
+ box-sizing: border-box;
|
|
130
|
+ border: 1px solid #e8eaec;
|
|
131
|
+ border-radius: 4px;
|
|
132
|
+}
|
|
133
|
+
|
|
134
|
+.selectedList {
|
|
135
|
+ width: 200px;
|
|
136
|
+}
|
|
137
|
+
|
|
138
|
+.listCon {
|
|
139
|
+ flex: 1;
|
|
140
|
+}
|
|
141
|
+
|
|
142
|
+.operate {
|
|
143
|
+ height: 48px;
|
|
144
|
+ padding: 0 8px;
|
|
145
|
+ border-bottom: 1px solid #dcdfe6;
|
|
146
|
+}
|
|
147
|
+
|
|
148
|
+.infoTitle {
|
|
149
|
+ box-sizing: border-box;
|
|
150
|
+ display: flex;
|
|
151
|
+ padding-right: 10px;
|
|
152
|
+ padding-left: 10px;
|
|
153
|
+ line-height: 30px;
|
|
154
|
+ background-color: #f8f9fd;
|
|
155
|
+ border-bottom: 1px solid #dcdfe6;
|
|
156
|
+ font-size: 14px;
|
|
157
|
+ color: #333;
|
|
158
|
+}
|
|
159
|
+
|
|
160
|
+.infoBlock {
|
|
161
|
+ height: 45vh;
|
|
162
|
+ overflow: auto;
|
|
163
|
+ padding: 10px;
|
|
164
|
+
|
|
165
|
+ .okInfo {
|
|
166
|
+ display: flex;
|
|
167
|
+ align-items: center;
|
|
168
|
+ justify-content: space-between;
|
|
169
|
+ line-height: 32px;
|
|
170
|
+ color: #444;
|
|
171
|
+ }
|
|
172
|
+}
|
|
173
|
+
|
|
174
|
+.empty-block {
|
|
175
|
+ display: flex;
|
|
176
|
+ flex-direction: column;
|
|
177
|
+ align-items: center;
|
|
178
|
+ justify-content: center;
|
|
179
|
+ padding-top: 70px;
|
|
180
|
+
|
|
181
|
+ .empty-description {
|
|
182
|
+ margin-top: 25px;
|
|
183
|
+ font-size: 14px;
|
|
184
|
+ font-weight: 500;
|
|
185
|
+ line-height: 20px;
|
|
186
|
+ color: #808695;
|
|
187
|
+ }
|
|
188
|
+}
|
|
189
|
+
|
|
190
|
+.self_checkbox {
|
|
191
|
+ width: 14px;
|
|
192
|
+ height: 14px;
|
|
193
|
+ border: 1px solid #d9d9d9;
|
|
194
|
+ border-radius: 2px;
|
|
195
|
+ position: relative;
|
|
196
|
+ cursor: pointer;
|
|
197
|
+}
|
|
198
|
+
|
|
199
|
+.self_checkbox_active {
|
|
200
|
+ background-color: #3173FF;
|
|
201
|
+ border-color: #3173FF;
|
|
202
|
+
|
|
203
|
+ &::after {
|
|
204
|
+ box-sizing: content-box;
|
|
205
|
+ content: "";
|
|
206
|
+ border: 1px solid #ffffff;
|
|
207
|
+ border-left: 0;
|
|
208
|
+ border-top: 0;
|
|
209
|
+ height: 7px;
|
|
210
|
+ left: 4px;
|
|
211
|
+ position: absolute;
|
|
212
|
+ top: 1px;
|
|
213
|
+ transform: rotate(45deg) scaleY(1);
|
|
214
|
+ width: 3px;
|
|
215
|
+ transition: transform .15s ease-in 50ms;
|
|
216
|
+ transform-origin: center;
|
|
217
|
+ }
|
|
218
|
+}
|
|
219
|
+
|
|
220
|
+.self_checkbox_disabled {
|
|
221
|
+ background-color: #edf2fc;
|
|
222
|
+ border-color: #dcdfe6;
|
|
223
|
+ cursor: not-allowed;
|
|
224
|
+
|
|
225
|
+ &::after {
|
|
226
|
+ border: none;
|
|
227
|
+ }
|
|
228
|
+}
|
|
229
|
+
|
|
230
|
+.content-wrap {
|
|
231
|
+ padding: 40px 30px 0;
|
|
232
|
+ .form-item {
|
|
233
|
+ margin-bottom: 30px;
|
|
234
|
+ display: flex;
|
|
235
|
+ align-items: center;
|
|
236
|
+ .item-lable {
|
|
237
|
+ width: 90px;
|
|
238
|
+ margin-right: 20px;
|
|
239
|
+ font-size: 14px;
|
|
240
|
+ margin-bottom: 6px;
|
|
241
|
+ }
|
|
242
|
+
|
|
243
|
+ .input-wrap {
|
|
244
|
+ width: 300px;
|
|
245
|
+ }
|
|
246
|
+
|
|
247
|
+ .form-tips {
|
|
248
|
+ font-size: 12px;
|
|
249
|
+ color: #666;
|
|
250
|
+ margin-top: 6px;
|
|
251
|
+ }
|
|
252
|
+ }
|
|
253
|
+}
|
|
254
|
+
|
|
255
|
+</style>
|