Procházet zdrojové kódy

把筛选的id键改为ids

Yannay před 2 měsíci
rodič
revize
3d7a1b5c0b
2 změnil soubory, kde provedl 840 přidání a 835 odebrání
  1. 752 747
      pages/clue/components/filterQuery.vue
  2. 88 88
      pages/clue/mixins/clue.js

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 752 - 747
pages/clue/components/filterQuery.vue


+ 88 - 88
pages/clue/mixins/clue.js

@@ -1,8 +1,8 @@
1 1
 import pullUpRefresh from "@/utils/pullUpRefresh";
2
-import dayjs from  "dayjs";
2
+import dayjs from "dayjs";
3 3
 export default {
4 4
 	mixins: [pullUpRefresh],
5
-	
5
+
6 6
 	computed: {
7 7
 		currentIndex() {
8 8
 			return this.queryParams.type == 1 ? 0 : 1;
@@ -11,7 +11,7 @@ export default {
11 11
 	onPullDownRefresh() {
12 12
 		uni.stopPullDownRefresh();
13 13
 		// 刷新
14
-		
14
+
15 15
 	},
16 16
 	data() {
17 17
 		return {
@@ -25,59 +25,59 @@ export default {
25 25
 			clueTagGroupVoList: [],
26 26
 
27 27
 			dicts: {
28
-					caseStatusDicts: [],
29
-					crmFollowStatus: [],
30
-					crmCallStatus: [],
31
-					clueEntranceType: [],
32
-					crmClueBiz: [],
33
-					crmClueObj: [],
34
-					crmClueType: []
35
-				},
28
+				caseStatusDicts: [],
29
+				crmFollowStatus: [],
30
+				crmCallStatus: [],
31
+				clueEntranceType: [],
32
+				crmClueBiz: [],
33
+				crmClueObj: [],
34
+				crmClueType: []
35
+			},
36 36
 
37 37
 			options: [{
38
-					value: "3",
39
-					label: "电话/微信"
40
-				},
41
-				{
42
-					value: "1",
43
-					label: "姓名"
44
-				},
45
-				{
46
-					value: "8",
47
-					label: "广告主ID"
48
-				},
49
-				{
50
-					value: "7",
51
-					label: "广告主名称"
52
-				},
53
-				{
54
-					value: "10",
55
-					label: "广告ID"
56
-				},
57
-				{
58
-					value: "9",
59
-					label: "广告名称"
60
-				},
61
-				{
62
-					value: "11",
63
-					label: "标题ID"
64
-				},
65
-				{
66
-					value: "12",
67
-					label: "视频ID"
68
-				},
69
-				{
70
-					value: "5",
71
-					label: "qq号"
72
-				},
73
-				{
74
-					value: "6",
75
-					label: "邮箱"
76
-				},
77
-				{
78
-					value: "2",
79
-					label: "线索ID"
80
-				},
38
+				value: "3",
39
+				label: "电话/微信"
40
+			},
41
+			{
42
+				value: "1",
43
+				label: "姓名"
44
+			},
45
+			{
46
+				value: "8",
47
+				label: "广告主ID"
48
+			},
49
+			{
50
+				value: "7",
51
+				label: "广告主名称"
52
+			},
53
+			{
54
+				value: "10",
55
+				label: "广告ID"
56
+			},
57
+			{
58
+				value: "9",
59
+				label: "广告名称"
60
+			},
61
+			{
62
+				value: "11",
63
+				label: "标题ID"
64
+			},
65
+			{
66
+				value: "12",
67
+				label: "视频ID"
68
+			},
69
+			{
70
+				value: "5",
71
+				label: "qq号"
72
+			},
73
+			{
74
+				value: "6",
75
+				label: "邮箱"
76
+			},
77
+			{
78
+				value: "2",
79
+				label: "线索ID"
80
+			},
81 81
 			],
82 82
 
83 83
 			queryParams: {
@@ -91,7 +91,7 @@ export default {
91 91
 				batchCodes: [],
92 92
 				clueIds: [],
93 93
 				deptName: undefined,
94
-				deptId: undefined,
94
+				deptIds: [],
95 95
 				type: "1",
96 96
 				pageNum: 1,
97 97
 				pageSize: 20,
@@ -119,9 +119,9 @@ export default {
119 119
 				sortField: undefined,
120 120
 				appNames: [],
121 121
 				appNameLabel: undefined,
122
-				isRepetitionOperWeixinName : '',
123
-				isRepetitionOperationName : '',
124
-				isVideoIdIsNull : '',
122
+				isRepetitionOperWeixinName: '',
123
+				isRepetitionOperationName: '',
124
+				isVideoIdIsNull: '',
125 125
 				advName: "",
126 126
 				promotionName: "",
127 127
 				advId: "",
@@ -178,32 +178,32 @@ export default {
178 178
 			this.resetData();
179 179
 		},
180 180
 		async getDicts() {
181
-				this.$getDicts('crm_clue_phase').then(res => {
182
-					this.dicts.caseStatusDicts = res;
183
-				});
184
-				this.$getDicts('crm_follow_status').then(res => {
185
-					this.dicts.crmFollowStatus = res;
186
-				})
187
-				this.$getDicts('crm_call_status').then(res => {
188
-					this.dicts.crmCallStatus = res;
189
-				})
190
-				this.$getDicts('clue_entrance_type').then(res => {
191
-					this.dicts.clueEntranceType = res;
192
-				});
193
-				this.$getDicts('crm_clue_biz').then(res => {
194
-					this.dicts.crmClueBiz = res;
195
-				});
196
-				this.$getDicts('crm_clue_obj').then(res => {
197
-					this.dicts.crmClueObj = res;
198
-				});
199
-				this.$getDicts('crm_clue_type').then(res => {
200
-					this.dicts.crmClueType = res;
201
-				});
202
-				uni.$u.api.getClueTagGroupVoList({ tagGroupApplication : '1' }).then(({
203
-					data
204
-				}) => {
205
-					this.clueTagGroupVoList = data;
206
-				});
181
+			this.$getDicts('crm_clue_phase').then(res => {
182
+				this.dicts.caseStatusDicts = res;
183
+			});
184
+			this.$getDicts('crm_follow_status').then(res => {
185
+				this.dicts.crmFollowStatus = res;
186
+			})
187
+			this.$getDicts('crm_call_status').then(res => {
188
+				this.dicts.crmCallStatus = res;
189
+			})
190
+			this.$getDicts('clue_entrance_type').then(res => {
191
+				this.dicts.clueEntranceType = res;
192
+			});
193
+			this.$getDicts('crm_clue_biz').then(res => {
194
+				this.dicts.crmClueBiz = res;
195
+			});
196
+			this.$getDicts('crm_clue_obj').then(res => {
197
+				this.dicts.crmClueObj = res;
198
+			});
199
+			this.$getDicts('crm_clue_type').then(res => {
200
+				this.dicts.crmClueType = res;
201
+			});
202
+			uni.$u.api.getClueTagGroupVoList({ tagGroupApplication: '1' }).then(({
203
+				data
204
+			}) => {
205
+				this.clueTagGroupVoList = data;
206
+			});
207 207
 		},
208 208
 		getOtherData() {
209 209
 			this.statisticsCaseState();
@@ -254,15 +254,15 @@ export default {
254 254
 				pageSize,
255 255
 				pageNum
256 256
 			}, params);
257
-			rows.forEach(v=>{
258
-				if(v.repetitionOperationName){
257
+			rows.forEach(v => {
258
+				if (v.repetitionOperationName) {
259 259
 					// 按逗号分割成数组
260 260
 					const parts = v.repetitionOperationName.split(',');
261 261
 					// 对每个部分提取 '-' 前面的内容
262 262
 					const result = parts.map(part => part.split('-')[0]).join(',');
263 263
 					v.repetitionOperationName = result;
264 264
 				}
265
-				if(v.repetitionOperWeixinName){
265
+				if (v.repetitionOperWeixinName) {
266 266
 					// 按逗号分割成数组
267 267
 					const parts = v.repetitionOperWeixinName.split(',');
268 268
 					// 对每个部分提取 '-' 前面的内容
@@ -270,7 +270,7 @@ export default {
270 270
 					v.repetitionOperWeixinName = result;
271 271
 				}
272 272
 			})
273
-			
273
+
274 274
 			return rows;
275 275
 		}
276 276
 	}