From 7b0dbecd1d6155d26ec67be0a47a16264c738c85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 09 五月 2023 14:48:10 +0800 Subject: [PATCH] 2023-05-09 --- src/tabviews/zshare/actionList/printbutton/index.jsx | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/actionList/printbutton/index.jsx b/src/tabviews/zshare/actionList/printbutton/index.jsx index 41bcd2f..367bec1 100644 --- a/src/tabviews/zshare/actionList/printbutton/index.jsx +++ b/src/tabviews/zshare/actionList/printbutton/index.jsx @@ -94,7 +94,7 @@ if (data.length > 0) { data.forEach(item => { let s = item[btn.controlField] !== undefined ? item[btn.controlField] + '' : '' - if (btn.controlVals.includes(s)) { + if (btn.controlVals.includes(s) || item.$lock) { disabled = true } }) @@ -2189,6 +2189,16 @@ _item.type = 'text' } else if (_item.type === 'date') { _item.type = item.declareType === 'nvarchar(50)' ? 'text' : 'date' + } else if (_item.type === 'switch' || _item.type === 'check') { + if (_readin) { + _item.value = _item.value === item.openVal ? item.openVal : item.closeVal + } else { + if (item.initval === true) { + _item.value = item.openVal + } else { + _item.value = item.closeVal + } + } } else if (_item.type === 'rate') { let count = item.rateCount || 5 _item.value = parseInt(_item.value) -- Gitblit v1.8.0