From 64b4a25f578dbe459002d356e60a1a3657cb4595 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 12 一月 2023 00:57:23 +0800 Subject: [PATCH] 2023-01-12 --- src/utils/utils.js | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index 3b79df9..0cfe180 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -783,6 +783,8 @@ arrfield.push(item.cardValField) if (item.urlField) { arrfield.push(item.urlField) + } else if (item.colorField) { + arrfield.push(item.colorField) } } @@ -827,10 +829,6 @@ sql = sql.replace(/@SessionUid@/ig, `'${localStorage.getItem('SessionUid') || ''}'`) sql = sql.replace(/@Appkey@/ig, `'${window.GLOB.appkey || ''}'`) - - if (window.GLOB.debugger === true || (window.debugger === true && options.sysType !== 'cloud')) { - console.info(sql) - } return { sql: sql, @@ -2044,7 +2042,7 @@ _sql += ` /* 榛樿sql */ - update ${btn.sql} set deleted=1,modifydate=getdate(),modifyuser=@username,modifyuserid=@userid@ where ${primaryKey}${_ID};` + update ${btn.sql} set deleted=1,modifydate=getdate(),modifyuser=@username,modifystaff=@fullname,modifyuserid=@userid@ where ${primaryKey}${_ID};` } else if (_actionType === 'delete') { // 鐗╃悊鍒犻櫎 let _msg = '' @@ -2151,6 +2149,7 @@ let icon = null let innerStyle = null let position = null + let signType = '' style = JSON.parse(JSON.stringify(style)) marks.some(mark => { @@ -2188,8 +2187,9 @@ if (type === 'font') { style.color = mark.color innerStyle = {color: mark.color} + signType = ' sign-font' } else if (type === 'background') { - style.background = mark.color + style.backgroundColor = mark.color if (mark.fontColor) { style.color = mark.fontColor innerStyle = {color: mark.fontColor} @@ -2219,7 +2219,8 @@ style, icon, innerStyle, - position + position, + signType } } @@ -2278,7 +2279,7 @@ * @description 鍒涘缓椤甸潰瀛樺偍杩囩▼ * @return {String} */ - static getTableFunc (param, menu, config) { + static getTableFunc (func = 'func', menu, config) { let form = '' let formParam = '' let _vars = ['bid', 'pageindex', 'pagesize', 'ordercol', 'ordertype', 'exceltype', 'septmenuno', 'lang', 'debug', 'loginuid', 'sessionuid', 'userid', 'errorcode', 'retmsg'] @@ -2333,7 +2334,7 @@ ` } - let Ltext = `create proc ${param.innerFunc} + let Ltext = `create proc ${func} ( /*${menu.MenuName}*/ @appkey nvarchar(50)='', @BID nvarchar(50)='',${formParam} @@ -2348,6 +2349,7 @@ @LoginUID nvarchar(50)='', @SessionUid nvarchar(50)='', @UserID nvarchar(50), + @dataM nvarchar(50), @ErrorCode nvarchar(50) out, @retmsg nvarchar(4000) out ) @@ -2569,9 +2571,9 @@ @ErrorSeverity=ERROR_SEVERITY(), @ErrorState=ERROR_STATE(); - RAISERROR(@ErrorMessage, /*-- Message text.*/ - @ErrorSeverity, /*-- Severity.*/ - @ErrorState /*-- State.*/ + RAISERROR(@ErrorMessage, /* Message text.*/ + @ErrorSeverity, /* Severity.*/ + @ErrorState /* State.*/ ); END CATCH @@ -2710,9 +2712,9 @@ @ErrorSeverity=ERROR_SEVERITY(), @ErrorState=ERROR_STATE(); - RAISERROR(@ErrorMessage, /*-- Message text.*/ - @ErrorSeverity, /*-- Severity.*/ - @ErrorState /*-- State.*/ + RAISERROR(@ErrorMessage, /* Message text.*/ + @ErrorSeverity, /* Severity.*/ + @ErrorState /* State.*/ ); END CATCH -- Gitblit v1.8.0