From 051981a2211bb86f88a6d68f2e29816f8caeac20 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 04 八月 2023 09:18:10 +0800 Subject: [PATCH] 2023-08-04 --- src/utils/utils.js | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index a5e08e5..b9878c6 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -216,12 +216,6 @@ // value = window.atob(value) // value = value.replace('minKe', '') // value = window.decodeURIComponent(window.atob(value)) - - // // 澶栬仈鏁版嵁搴撴浛鎹� - // if (window.GLOB.externalDatabase !== null && window.GLOB.externalDatabase) { - // value = value.replace(window.GLOB.externalDatabase, '@db@') - // } - // value = value.replace(/ mpercent /ig, '%') // // 鏇挎崲鍏抽敭瀛� @@ -230,7 +224,7 @@ // value = value.replace(reg, ' ' + item.key + ' ') // }) - // // value = value.replace(/\n/ig, ' \n ') + // value = value.replace(/ \n /ig, '\n') // return value // } @@ -341,6 +335,8 @@ item.initval = [moment().startOf('week').format(format), moment().endOf('week').format(format)].join(',') } else if (item.initval === 'month') { item.initval = [moment().startOf('month').format(format), moment().endOf('month').format(format)].join(',') + } else if (item.initval === 'lastMonth') { + item.initval = [moment().subtract(1, 'months').startOf('month').format(format), moment().subtract(1, 'months').endOf('month').format(format)].join(',') } else if (item.initval) { try { let _initval = JSON.parse(item.initval) @@ -902,7 +898,7 @@ let address = sessionStorage.getItem('address') || '' let _sheet = item.sheet - if (sessionStorage.getItem('isEditState') === 'true') { + if (window.GLOB.mkHS) { userName = sessionStorage.getItem('CloudUserName') || '' fullName = sessionStorage.getItem('CloudFullName') || '' } @@ -1212,7 +1208,7 @@ let _sheet = btn.sheet let BID = data[0].$$BID || '' - if (sessionStorage.getItem('isEditState') === 'true') { + if (window.GLOB.mkHS) { userName = sessionStorage.getItem('CloudUserName') || '' fullName = sessionStorage.getItem('CloudFullName') || '' } @@ -1604,7 +1600,7 @@ let district = sessionStorage.getItem('district') || '' let address = sessionStorage.getItem('address') || '' - if (sessionStorage.getItem('isEditState') === 'true') { + if (window.GLOB.mkHS) { userName = sessionStorage.getItem('CloudUserName') || '' fullName = sessionStorage.getItem('CloudFullName') || '' } -- Gitblit v1.8.0