From 0bbaa727cdfc65622e33e91c4bf694c83f184535 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 04 二月 2024 23:12:14 +0800 Subject: [PATCH] 2024-02-04 --- src/templates/sharecomponent/actioncomponent/verifyexcelout/customscript/index.jsx | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/customscript/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/customscript/index.jsx index 2ac2c12..7acae2d 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/customscript/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/customscript/index.jsx @@ -9,7 +9,7 @@ import Utils from '@/utils/utils.js' import { checkSQL } from '@/utils/utils-custom.js' import CodeMirror from '@/templates/zshare/codemirror' -import './index.scss' +// import './index.scss' class CustomForm extends Component { static propTpyes = { @@ -50,17 +50,18 @@ let _scriptSql = `Select distinct func+Remark as funcname,longparam, s.Sort from聽 s_custom_script s inner join (select OpenID from sapp where ID=@Appkey@) p on s.openid = case when s.appkey='' then s.openid else p.OpenID end order by s.Sort` - _scriptSql = Utils.formatOptions(_scriptSql) + _scriptSql = Utils.formatOptions(_scriptSql, 'x') let _sParam = { func: 'sPC_Get_SelectedList', LText: _scriptSql, obj_name: 'data', - arr_field: 'funcname,longparam' + arr_field: 'funcname,longparam', + exec_type: 'x' } _sParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') - _sParam.secretkey = Utils.encrypt(_sParam.LText, _sParam.timestamp) + _sParam.secretkey = Utils.encrypt('', _sParam.timestamp) _sParam.open_key = Utils.encryptOpenKey(_sParam.secretkey, _sParam.timestamp) // 浜戠鏁版嵁楠岃瘉 Api.getCloudConfig(_sParam).then(res => { @@ -96,9 +97,16 @@ _usefulFields.push(item.field) _usefulFields.push(item.datefield) _usefulFields.push(item.datefield + '1') - } else if (['dateweek', 'datemonth'].includes(item.type)) { + } else if (item.type === 'dateweek') { _usefulFields.push(item.field) _usefulFields.push(item.field + '1') + } else if (item.type === 'datemonth') { + if (item.match === '=') { + _usefulFields.push(item.field) + } else { + _usefulFields.push(item.field) + _usefulFields.push(item.field + '1') + } } else if (item.type === 'daterange') { let _skey = item.field let _ekey = item.field + '1' -- Gitblit v1.8.0