From 34a02a487d2d78c66886640183c820902fa6eb2c Mon Sep 17 00:00:00 2001 From: Mauve Date: Mon, 26 Oct 2026 09:29:53 +0800 Subject: [PATCH] updated --- .env.production | 24 +- package.json | 13 +- src/App.vue | 2 +- src/assets/ts/components/_CookieComponent.ts | 70 ---- src/assets/ts/components/_ScrollComponent.ts | 18 +- src/assets/ts/components/_ToggleComponent.ts | 6 +- src/assets/ts/components/index.ts | 2 +- src/components/widgets/feeds/Widget1.vue | 4 +- src/core/plugins/i18n.ts | 2 +- src/views/appSetting/criteria/Index.vue | 6 + .../otherProperty/allotment/Index.vue | 2 +- .../otherProperty/userMapping/Index.vue | 2 +- src/views/appSetting/property/ImportModal.vue | 28 +- src/views/appSetting/property/Modal.vue | 30 ++ src/views/appSetting/room/Modal.vue | 1 + .../approval/approvalRoutingLog/Index.vue | 2 +- .../approval/requestReasonSetting/Index.vue | 2 +- .../calendarSetting/Index.vue | 2 +- .../daylightAppSetting/criteria/Modal.vue | 19 +- .../exceptionDaylight/Index.vue | 75 +++++ .../exceptionDaylight/Modal.vue | 313 +++++++++++++++++- .../itemInventory/ImportModal.vue | 4 +- .../otherProperty/allotment/Index.vue | 2 +- .../otherProperty/userMapping/Index.vue | 2 +- .../property/ImportModal.vue | 10 +- .../daylightAppSetting/property/Modal.vue | 44 ++- src/views/daylightAppSetting/room/Modal.vue | 1 + src/views/log/etalog/Index.vue | 2 +- .../allotmentDashboard/BookModal.vue | 8 +- src/views/reservation/fail/Index.vue | 6 +- src/views/reservation/other/BookModal.vue | 10 +- src/views/reservation/other/Index.vue | 16 +- src/views/reservation/waitlist/BookModal.vue | 8 +- src/views/reservation/waitlist/Index.vue | 2 +- src/views/reservation/waitlist/LogModal.vue | 2 +- .../setting/groups/AccessControlModal.vue | 24 +- 36 files changed, 587 insertions(+), 177 deletions(-) delete mode 100644 src/assets/ts/components/_CookieComponent.ts diff --git a/.env.production b/.env.production index 6499642..d78113b 100644 --- a/.env.production +++ b/.env.production @@ -4,11 +4,11 @@ VITE_APP_DEMO="mgm_cms" VITE_APP_FULL_NAME="MCRM CMS" # VITE_APP_API_URL="https://sep.willtechmo.com/crm_api" #willtech # VITE_APP_API_URL="https://localhost/crm_api" -VITE_APP_API_URL="https://mmhcmdevcms11/crm_api" #dev -# VITE_APP_API_URL="https://vmhcmprdcms01.mgm.mo/crm_api" #prd +# VITE_APP_API_URL="https://mmhcmdevcms11/crm_api" #dev +VITE_APP_API_URL="https://vmhcmprdcms11.mgmmacao.org/crm_api" #prd # VITE_WEB_APP_API_URL="https://sep.willtechmo.com/api" #willtech -VITE_WEB_APP_API_URL="https://dlahcadev.mcmsapoc.com/api" #dev -# VITE_WEB_APP_API_URL="https://hostcrmapp.mgm.mo/api" #prd +# VITE_WEB_APP_API_URL="https://dlahcadev.mcmsapoc.com/api" #dev +VITE_WEB_APP_API_URL="https://hostcrmapp.mgm.mo/api" #prd VITE_APP_BOOTSTRAP_DOCS_LINK="https://getbootstrap.com/docs/5.0" VITE_APP_SASS_COMPONENTS_PATH="src/assets/sass/core/components" VITE_APP_PREVIEW_LINK="https://preview.keenthemes.com/metronic8/vue/demo1/#/dashboard" @@ -21,12 +21,12 @@ VITE_APP_FACEBOOK="https://www.facebook.com/keenthemes" VITE_APP_DRIBBBLE="https://dribbble.com/keenthemes" # VITE_APP_BASE_URL="https://sep.willtechmo.com/mcrm_cms_admin_daylight" #willtech # VITE_APP_BASE_URL="https://localhost/mcrm_cms_admin" -VITE_APP_BASE_URL="https://mmhcmdevcms11/mcrm_cms_admin" #dev -# VITE_APP_BASE_URL="https://vmhcmprdcms01.mgm.mo/mcrm_cms_admin" #prd +# VITE_APP_BASE_URL="https://mmhcmdevcms11/mcrm_cms_admin" #dev +VITE_APP_BASE_URL="https://vmhcmprdcms11.mgmmacao.org/mcrm_cms_admin" #prd VITE_ADFS_AUTH_URL="https://adfs.mgm.mo/adfs/ls/" -VITE_ADFS_CLIENT_ID="mgm_mobilecrm_cms_dev" #dev -VITE_ADFS_REDIECT_URL="https://mmhcmdevcms11/mcrm_cms_admin/" #dev -VITE_ADFS_SIGNOFF_URL="https://mmhcmdevcms11/mcrm_cms_admin/sign-off" #dev -# VITE_ADFS_CLIENT_ID="mgm_mobilecrm_cms_prd" #prd -# VITE_ADFS_REDIECT_URL="https://vmhcmprdcms01.mgm.mo/mcrm_cms_admin/" #prd -# VITE_ADFS_SIGNOFF_URL="https://vmhcmprdcms01.mgm.mo/mcrm_cms_admin/sign-off" #prd +# VITE_ADFS_CLIENT_ID="mgm_mobilecrm_cms_dev" #dev +# VITE_ADFS_REDIECT_URL="https://mmhcmdevcms11/mcrm_cms_admin/" #dev +# VITE_ADFS_SIGNOFF_URL="https://mmhcmdevcms11/mcrm_cms_admin/sign-off" #dev +VITE_ADFS_CLIENT_ID="mgm_mobilecrm_dl_cms" #prd +VITE_ADFS_REDIECT_URL="https://vmhcmprdcms11.mgmmacao.org/mcrm_cms_admin/" #prd +VITE_ADFS_SIGNOFF_URL="https://vmhcmprdcms11.mgmmacao.org/mcrm_cms_admin/sign-off" #prd diff --git a/package.json b/package.json index b569092..3ce34c6 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "demo1", "version": "8.1.7", "private": true, + "engines": { + "node": ">=20.19.0" + }, "scripts": { "dev": "vite", "build": "run-p type-check build-only", @@ -31,7 +34,7 @@ "bootstrap-icons": "^1.9.1", "clipboard": "^2.0.6", "core-js": "^3.8.3", - "deepmerge": "^4.2.2", + "deepmerge-ts": "^8.0.2", "dropzone": "^5.9.3", "element-plus": "^2.2.4", "js-base64": "^3.7.7", @@ -43,7 +46,6 @@ "pinia": "^2.0.23", "prism-themes": "^1.9.0", "prismjs": "^1.25.0", - "quill": "^2.0.3", "ramda": "^0.30.0", "socicon": "^3.0.5", "sweetalert2": "^11.6.8", @@ -64,7 +66,6 @@ "@types/node": "^18.0.0", "@types/object-path": "^0.11.0", "@types/prismjs": "^1.26.0", - "@types/quill": "^2.0.9", "@vitejs/plugin-vue": "^5.2.4", "@vue/tsconfig": "^0.1.3", "array-sort": "^1.0.0", @@ -75,5 +76,11 @@ "typescript": "^5.9.2", "vite": "^6.3.6", "vue-tsc": "^2.2.12" + }, + "overrides": { + "nanoid": "5.1.16" + }, + "resolutions": { + "nanoid": "5.1.16" } } diff --git a/src/App.vue b/src/App.vue index e63c111..3934bd9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -48,7 +48,7 @@ export default defineComponent({ - \ No newline at end of file + diff --git a/src/views/reservation/waitlist/BookModal.vue b/src/views/reservation/waitlist/BookModal.vue index 3475a84..36e786b 100644 --- a/src/views/reservation/waitlist/BookModal.vue +++ b/src/views/reservation/waitlist/BookModal.vue @@ -296,7 +296,8 @@ export default defineComponent({ const authStore = useAuthStore(); let userData : any = ref({ userId:'', - userName:'' + userName:'', + section:'' }); let maxDay = ref(90); let sharerArr : any = ref([]); @@ -618,7 +619,7 @@ export default defineComponent({ debounce = setTimeout(() => { if ( sharer != "" && - sharer.playerId.length == 8 + sharer.playerId.length >4 ) { let reqParas = { 'playerId': sharer.playerId } @@ -657,7 +658,7 @@ export default defineComponent({ }); } - }, 300); + }, 3000); } catch (error) { console.error(error); } @@ -777,6 +778,7 @@ export default defineComponent({ dataObj.member = memberData.value; dataObj.userId = userData.value.userId; dataObj.userName = userData.value.userName; + dataObj.userSection = userData.value.section; dataObj.sectionId = data.value.sectionId; if (dataObj.sectionId == null || dataObj.sectionId == undefined) { dataObj.sectionId = userData.value.sectionId; diff --git a/src/views/reservation/waitlist/Index.vue b/src/views/reservation/waitlist/Index.vue index 79adb1c..bf52008 100644 --- a/src/views/reservation/waitlist/Index.vue +++ b/src/views/reservation/waitlist/Index.vue @@ -593,7 +593,7 @@ { headerName:"Check in Date" , field: "checkinDate",sortable: true,unSortIcon: true,minWidth:100, resizable: true, cellClass: "cell-vertical-align-text-left"}, { headerName:"Check Out Date" , field: "checkoutDate" ,sortable: true,unSortIcon: true,minWidth:100, resizable: true, cellClass: "cell-vertical-align-text-left"}, { headerName:"Continuous / Overlap Booking(C/I to C/O)" , field: "overlapBooking",sortable: true,unSortIcon: true, minWidth:150 , resizable: true,hide:!gamingData, cellClass: "cell-vertical-align-text-left"}, - { headerName:"Booker Team" , field: "bookerTeam",sortable: true,unSortIcon: true, minWidth:150 , resizable: true,cellClass: "cell-vertical-align-text-left"}, + { headerName:"Booker Team" , field: "sectionName",sortable: true,unSortIcon: true, minWidth:150 , resizable: true,cellClass: "cell-vertical-align-text-left"}, { headerName:"Booker ID" , field: "createdBy",sortable: true,unSortIcon: true, minWidth:150 , resizable: true, cellClass: "cell-vertical-align-text-left"}, { headerName:"Booker Name" , field: "booker",sortable: true,unSortIcon: true, minWidth:150 , resizable: true, cellClass: "cell-vertical-align-text-left"}, { headerName:"Sharer" , field: "sharer", minWidth:150 , resizable: true,hide:!isSharer, diff --git a/src/views/reservation/waitlist/LogModal.vue b/src/views/reservation/waitlist/LogModal.vue index 58eabf4..434b39c 100644 --- a/src/views/reservation/waitlist/LogModal.vue +++ b/src/views/reservation/waitlist/LogModal.vue @@ -184,7 +184,7 @@ export default defineComponent({ }, { headerName: "To", - field: "changFeTo", + field: "changeTo", minWidth: 100, resizable: true, cellClass: "cell-vertical-align-text-left", diff --git a/src/views/setting/groups/AccessControlModal.vue b/src/views/setting/groups/AccessControlModal.vue index 32082e0..0afb333 100644 --- a/src/views/setting/groups/AccessControlModal.vue +++ b/src/views/setting/groups/AccessControlModal.vue @@ -60,12 +60,13 @@
- +
import { getAssetPath } from "@/core/helpers/assets"; -import { defineComponent, ref,computed,onBeforeUpdate } from "vue"; +import { defineComponent, ref,computed } from "vue"; import { hideModal,showModal } from "@/core/helpers/dom"; import ApiService from "@/core/services/ApiService"; import type { ResponseData } from "@/core/data/AjaxData"; @@ -139,7 +140,8 @@ export default defineComponent({ const loading = ref(false); const operateType = ref('CREATE'); const actionCallback = ref(null); - const accessTreeRefs = ref([]); + const accessTreeRefs = ref>({}); + const accessTreeRenderKey = ref(0); const activeNames = ref([]); const operateTitle = computed(() => { let titleLable='Role Access Control - '+(accessData.value && accessData.value.groupName?accessData.value.groupName:''); @@ -159,14 +161,11 @@ export default defineComponent({ } return isEditable; }); - const setAccessTreeRef = (el) => { + const setAccessTreeRef = (routerId, el) => { if (el) { - accessTreeRefs.value.push(el); + accessTreeRefs.value[String(routerId)] = el; } }; - onBeforeUpdate(() => { - accessTreeRefs.value = []; - }); const getModalOption = () => { let opt=('CREATE'===operateType.value || 'EDIT'===operateType.value || 'COPY'===operateType.value)?{backdrop: 'static'}:{}; return opt; @@ -238,7 +237,7 @@ export default defineComponent({ accessProperties:[] }; let treeData = pRouter.accessTreeData; - let treeRef = (accessTreeRefs.value && k0){ const checkedKeys = treeRef!.getCheckedKeys(false); @@ -321,7 +320,7 @@ export default defineComponent({ let res = []; let rSelectKeys=[]; if(k==0){ - showActiveNames.push('access_router_'+routerItem.id); + showActiveNames.push('access_router_'+routerItem.routerId); } if(routerItem.accessProperties && routerItem.accessProperties.length>0){ for(let i=0;i{ let result = resData.data; constructAccessTreeByData(result); + accessTreeRefs.value = {}; + accessTreeRenderKey.value++; accessData.value=result; showModal(accessModalRef.value,getModalOption()); }, @@ -414,6 +415,7 @@ export default defineComponent({ disabled, renderContent, activeNames, + accessTreeRenderKey, setAccessTreeRef }; },