Selaa lähdekoodia

Merge branch 'TPE/Daniel' of http://163.228.141.122:3000/TEAMMODEL/TEAMModelOS into TPE/Daniel

jeff 3 kuukautta sitten
vanhempi
commit
51e7773dd6

+ 13 - 2
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/geos_info_id.vue

@@ -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 {

+ 13 - 2
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/geos_info_id_cn.vue

@@ -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');
 
@@ -230,7 +235,10 @@
 
         // 先取得省的資訊
 
-        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" };   // 大陸站,不需要輸入特定參數,就可以取得省分
 
@@ -286,9 +294,12 @@
         //const requestData = { showList: false, provinceId: provinceId };
         //const requestData = { showList: false, countryId: "CN", provinceId };
 
+        // 設定 hasMail 參數
+        let hasMail = notifyType.value == "mail";
+
         // 地理資訊-ID "type":"tmid"
         // 設定 Request 參數,provinceId 
-        const requestData = { showList: false, provinceId: SelectParentId, type: "tmid" };
+        const requestData = { showList: false, provinceId: SelectParentId, type: "tmid", hasMail: hasMail };
 
 
         try {

+ 13 - 3
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/geos_info_school.vue

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

+ 8 - 2
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/geos_info_school_cn.vue

@@ -242,7 +242,10 @@
 
         // 依站台別,決定 Resuest 的參數
 
-        const requestData = { showSchool: false };   // 其實不需要輸入參數
+        // 設定 hasMail 參數
+        let hasMail = notifyType.value == "mail";
+
+        const requestData = { showSchool: false, hasMail: hasMail };   // 其實不需要輸入參數
         //const requestData = { showSchool: false };   // 國際站,不需要輸入特定參數,就可以取得國碼
         //const requestData = { showSchool: false, countryId: "CN" };   // 大陸站,不需要輸入特定參數,就可以取得省分
 
@@ -293,13 +296,16 @@
         // 載入中狀態
         showLoading();
 
+        // 設定 hasMail 參數
+        let hasMail = notifyType.value == "mail";
+
         // 設定 Request 參數,provinceId  (大陸站),先不考慮
         //const requestData = { showSchool: false, provinceId: provinceId };
         //const requestData = { showSchool: false, countryId: "CN", provinceId };
 
         // 最主要的輸入參教不同
         // 設定 Request 參數,provinceId  (大陸站)
-        const requestData = { showSchool: false, provinceId: SelectParentId };
+        const requestData = { showSchool: false, provinceId: SelectParentId, hasMail: hasMail };
 
         
         try {

+ 5 - 1
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/new_msg_EditMsg.vue

@@ -734,7 +734,11 @@
 
         // 回到首頁
         emit('update-active', 0); // 通知父组件更新 active 的值为 0
-        
+
+        // 清空接收名單
+        column3Items.value =[]
+
+
         // 回到發送歷程
         //goMsgHistory()
     };

+ 5 - 1
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/school_district.vue

@@ -178,8 +178,12 @@ const removeFromColumn3 = (index) => {
 // 获取学区和学校数据
 const fetchData = async () => {
 
+    let hasMail = notifyType.value == "mail";
+
     //設定 show 學校列表
-    const requestData = { showList: true };  
+    const requestData = { showList: true, hasMail: hasMail };  
+
+   
 
     // 取得學區資訊
     try {

+ 14 - 3
TEAMModelBI/ClientApp/src/view/systemConfig/NewMsg/units_info.vue

@@ -109,6 +109,11 @@
     // 从父组件注入的接收名单和更新方法
     const column3Items = inject("column3Items", ref([])); // 接收名單
 
+    // 通知類型
+    //"type": "notify", //發送類型 mail:郵件、notify:端外、sms:簡訊
+    const notifyType = inject("notifyType");
+
+
     // 取得服務 url
     const new_msg_host = inject('new_msg_host');
 
@@ -201,8 +206,11 @@
     // 根据选中的機構ID获取學校資訊
     const fetchSchoolsDataByUnits = async (UnitsId) => {
 
+        // 設定 hasMail 參數
+        let hasMail = notifyType.value == "mail";
+
         // 設定 Request 參數,UnitsId
-        const requestData = { showList: true, type : UnitsId };
+        const requestData = { showList: true, type: UnitsId, hasMail: hasMail };
         
         try {
 
@@ -249,9 +257,12 @@
     };
     // 获取教育機構数据
     const fetchData = async () => {
-        
+
+        // 設定 hasMail 參數
+        let hasMail = notifyType.value == "mail";
+
         //設定 show 學校列表
-        const requestData = { type: "" };
+        const requestData = { type: "", hasMail: hasMail };
 
         try {