|
@@ -122,6 +122,11 @@
|
|
|
// 从父组件注入的接收名单和更新方法
|
|
|
const column3Items = inject("column3Items", ref([])); // 接收名單
|
|
|
|
|
|
+ // 通知類型
|
|
|
+ //"type": "notify", //發送類型 mail:郵件、notify:端外、sms:簡訊
|
|
|
+ const notifyType = inject("notifyType");
|
|
|
+
|
|
|
+
|
|
|
// 取得服務 url
|
|
|
const new_msg_host = inject('new_msg_host');
|
|
|
|
|
@@ -258,7 +263,10 @@
|
|
|
|
|
|
// 依站台別,決定 Resuest 的參數
|
|
|
|
|
|
- const requestData = { showList: false, type: "tmid" }; // 地理資訊ID,要輸入參數 , "type":"tmid"
|
|
|
+ // 設定 hasMail 參數
|
|
|
+ let hasMail = notifyType.value == "mail";
|
|
|
+
|
|
|
+ const requestData = { showList: false, type: "tmid", hasMail: hasMail }; // 地理資訊ID,要輸入參數 , "type":"tmid"
|
|
|
//const requestData = { showList: false }; // 國際站,不需要輸入特定參數,就可以取得國碼
|
|
|
//const requestData = { showList: false, countryId: "CN" }; // 大陸站,不需要輸入特定參數,就可以取得省分
|
|
|
|
|
@@ -312,9 +320,12 @@
|
|
|
//const requestData = { showList: false, provinceId: provinceId };
|
|
|
//const requestData = { showList: false, countryId: "CN", provinceId };
|
|
|
|
|
|
+ // 設定 hasMail 參數
|
|
|
+ let hasMail = notifyType.value == "mail";
|
|
|
+
|
|
|
// 地理資訊-ID "type":"tmid"
|
|
|
// 設定 Request 參數,countryId (國際站)
|
|
|
- const requestData = { showList: false, countryId: SelectParentId, type: "tmid" };
|
|
|
+ const requestData = { showList: false, countryId: SelectParentId, type: "tmid", hasMail: hasMail };
|
|
|
|
|
|
//debugger;
|
|
|
try {
|