From 7adf0212cd71a8ec604f65ba2c2e9bdfc5dec22d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 13 一月 2023 10:31:38 +0800 Subject: [PATCH] 2023-01-13 --- src/utils/utils.js | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index 8616197..2a82699 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -1487,7 +1487,7 @@ } // 娣诲姞鏁版嵁涓瓧娈碉紝琛ㄥ崟鍊间紭鍏�(鎸夐挳涓嶉�夎鎴栧琛屾嫾鎺ユ椂璺宠繃) - if (data && btn.Ot !== 'notRequired' && btn.Ot !== 'requiredOnce' && columns && columns.length > 0) { + if (data && btn.Ot !== 'notRequired' && columns && columns.length > 0) { datavars = {...data, ...datavars} const setField = (col) => { @@ -2042,17 +2042,16 @@ _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 = '' - if (data && columns && columns.length > 0) { + if (data && columns && columns.length > 0 && btn.Ot !== 'notRequired') { let _index = 0 columns.forEach(col => { - if (col.Hide !== 'true' && col.type !== 'colspan' && col.type !== 'old_colspan' && _index < 4) { - _msg += col.label + '=' + data[col.field] + ',' - _index++ - } + if (!col.field || col.Hide === 'true' || _index >= 4) return + _msg += col.label + '=' + data[col.field] + ',' + _index++ }) } @@ -2149,6 +2148,7 @@ let icon = null let innerStyle = null let position = null + let signType = '' style = JSON.parse(JSON.stringify(style)) marks.some(mark => { @@ -2186,6 +2186,7 @@ if (type === 'font') { style.color = mark.color innerStyle = {color: mark.color} + signType = ' sign-font' } else if (type === 'background') { style.backgroundColor = mark.color if (mark.fontColor) { @@ -2217,7 +2218,8 @@ style, icon, innerStyle, - position + position, + signType } } -- Gitblit v1.8.0