XMLWAN 4 年之前
父節點
當前提交
7cf7356a8d
共有 3 個文件被更改,包括 620 次插入571 次删除
  1. 51 50
      src/api/sms/index.js
  2. 0 1
      src/scrm_pages/site/index.vue
  3. 569 520
      src/scrm_pages/sms/sms_send.vue

+ 51 - 50
src/api/sms/index.js 查看文件

@@ -1,68 +1,69 @@
1 1
 import request from '@/utils/request'
2 2
 
3 3
 export function fetchBatchSendRecords(page) {
4
-    return request({
5
-        url: "/api/sms/records",
6
-        method: "get",
7
-        params: {
8
-            page: page,
9
-        }
10
-    })
4
+  return request({
5
+    url: '/api/sms/records',
6
+    method: 'get',
7
+    params: {
8
+      page: page
9
+    }
10
+  })
11 11
 }
12 12
 
13 13
 export function sendsInitData(action, id) {
14
-    var param = {}
15
-    if (action != null && action != undefined) {
16
-        param.action = action
17
-    }
18
-    if (id != null && id != undefined) {
19
-        param.id = id
20
-    }
21
-    return request({
22
-        url: "/api/sms/sendinit",
23
-        method: "get",
24
-        params: param,
25
-    })
14
+  var param = {}
15
+  if (action != null && action != undefined) {
16
+    param.action = action
17
+  }
18
+  if (id != null && id != undefined) {
19
+    param.id = id
20
+  }
21
+  return request({
22
+    url: '/api/sms/sendinit',
23
+    method: 'get',
24
+    params: param
25
+  })
26 26
 }
27 27
 
28 28
 export function tagFilterCustomerCount(tag_ids_str) {
29
-    return request({
30
-        url: "/api/sms/tagfiltercount",
31
-        method: "get",
32
-        params: {
33
-            tags: tag_ids_str,
34
-        },
35
-    })
29
+  console.log('是什么东西', tag_ids_str)
30
+  return request({
31
+    url: '/api/sms/tagfiltercount',
32
+    method: 'get',
33
+    params: {
34
+      tags: tag_ids_str
35
+    }
36
+  })
36 37
 }
37 38
 
38 39
 export function send2AllCustomers(content) {
39
-    return request({
40
-        url: "/api/sms/send2all",
41
-        method: "post",
42
-        params: {
43
-            content: content,
44
-        }
45
-    })
40
+  return request({
41
+    url: '/api/sms/send2all',
42
+    method: 'post',
43
+    params: {
44
+      content: content
45
+    }
46
+  })
46 47
 }
47 48
 
48 49
 export function send2TagCustomers(content, tag_ids) {
49
-    return request({
50
-        url: "/api/sms/send2tag",
51
-        method: "post",
52
-        params: {
53
-            content: content,
54
-            tags: tag_ids,
55
-        }
56
-    })
50
+  return request({
51
+    url: '/api/sms/send2tag',
52
+    method: 'post',
53
+    params: {
54
+      content: content,
55
+      tags: tag_ids
56
+    }
57
+  })
57 58
 }
58 59
 
59 60
 export function send2SpecificCustomers(content, customer_ids) {
60
-    return request({
61
-        url: "/api/sms/send2specific",
62
-        method: "post",
63
-        params: {
64
-            content: content,
65
-            ids: customer_ids,
66
-        }
67
-    })
68
-}
61
+  return request({
62
+    url: '/api/sms/send2specific',
63
+    method: 'post',
64
+    params: {
65
+      content: content,
66
+      ids: customer_ids
67
+    }
68
+  })
69
+}

+ 0 - 1
src/scrm_pages/site/index.vue 查看文件

@@ -89,7 +89,6 @@ export default {
89 89
         if (response.data.state == 1) {
90 90
           var usreOrgID = response.data.data.usreOrgID;
91 91
           this.usreOrgID = response.data.data.usreOrgID;
92
-          console.log("我的世界我做主", usreOrgID);
93 92
         }
94 93
       });
95 94
     }

文件差異過大導致無法顯示
+ 569 - 520
src/scrm_pages/sms/sms_send.vue