From 69d182c8cee63fb850a001b0edf4b613e8aa01c2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 02 四月 2021 17:58:35 +0800
Subject: [PATCH] 2021-04-02

---
 src/tabviews/calendar/index.jsx |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/calendar/index.jsx b/src/tabviews/calendar/index.jsx
index 149f19d..6141c25 100644
--- a/src/tabviews/calendar/index.jsx
+++ b/src/tabviews/calendar/index.jsx
@@ -331,6 +331,7 @@
     let regoptions = []
     let userName = sessionStorage.getItem('User_Name') || ''
     let fullName = sessionStorage.getItem('Full_Name') || ''
+    let city = sessionStorage.getItem('city') || ''
 
     if (sessionStorage.getItem('isEditState') === 'true') {
       userName = sessionStorage.getItem('CloudUserName') || ''
@@ -346,6 +347,9 @@
         }
       })
       regoptions.push({
+        reg: new RegExp('@login_city@', 'ig'),
+        value: city
+      }, {
         reg: new RegExp('@userName@', 'ig'),
         value: userName
       }, {
@@ -383,8 +387,8 @@
         param.custom_script = param.custom_script.replace(item.reg, item.value)
       })
 
-      param.custom_script = `declare @ErrorCode nvarchar(50),@retmsg nvarchar(4000),@UserName nvarchar(50),@FullName nvarchar(50)
-        Select @ErrorCode='',@retmsg ='',@UserName='${userName}', @FullName='${fullName}'
+      param.custom_script = `declare @ErrorCode nvarchar(50),@retmsg nvarchar(4000),@UserName nvarchar(50),@FullName nvarchar(50),@login_city nvarchar(50)
+        Select @ErrorCode='',@retmsg ='',@UserName='${userName}', @FullName='${fullName}', @login_city='${city}'
         ${param.custom_script}
       `
 

--
Gitblit v1.8.0