Commit ac631b06 authored by 田翔's avatar 田翔

fix: 增加修改时限参数

parent 057deff0
{ {
"name": "panda-xform", "name": "panda-xform",
"version": "6.0.8", "version": "6.0.9",
"description": "6.0.8 增加人员机构显示", "description": "6.0.9 增加修改时限参数",
"keywords": [ "keywords": [
"panda-xform" "panda-xform"
], ],
......
...@@ -11,7 +11,7 @@ const BatchEdit = (props, ref) => { ...@@ -11,7 +11,7 @@ const BatchEdit = (props, ref) => {
open, open,
})) }))
const { config } = props const { config, timeLimit } = props
const { editFieldGroup, formJson } = config const { editFieldGroup, formJson } = config
const [value, setValue] = useState('') const [value, setValue] = useState('')
const [params, setParams] = useState({ accountTable: '', id: '' }) const [params, setParams] = useState({ accountTable: '', id: '' })
...@@ -72,7 +72,7 @@ const BatchEdit = (props, ref) => { ...@@ -72,7 +72,7 @@ const BatchEdit = (props, ref) => {
if (errors.length) { if (errors.length) {
return message.error('请完善表单内容') return message.error('请完善表单内容')
} }
const { code, data, msg } = await BatchEditTableDataInfo({ ...params, values: values }) const { code, data, msg } = await BatchEditTableDataInfo({ ...params, values: values, timeLimit: timeLimit ? Number(timeLimit) : 0 })
if (code === 0) { if (code === 0) {
message.success('批量修改成功!') message.success('批量修改成功!')
setVisible(false) setVisible(false)
......
...@@ -52,7 +52,7 @@ const Account = (props, ref) => { ...@@ -52,7 +52,7 @@ const Account = (props, ref) => {
getTableColumns, getTableColumns,
})); }));
const { accountName, parentConfig, notUse, superAccount, siteLevel, fieldSearch } = props; const { accountName, parentConfig, notUse, superAccount, siteLevel, fieldSearch, timeLimit } = props;
const userID = window?.globalConfig?.userInfo?.OID || 1; const userID = window?.globalConfig?.userInfo?.OID || 1;
let initParams = { let initParams = {
user: userID, user: userID,
...@@ -284,7 +284,7 @@ const Account = (props, ref) => { ...@@ -284,7 +284,7 @@ const Account = (props, ref) => {
} }
} }
if (type === '编辑') { if (type === '编辑') {
let param = { userID, accountTable: params.accountName, id: operation.id, values: formValue, relationForm }; let param = { userID, accountTable: params.accountName, id: operation.id, values: formValue, relationForm, timeLimit: timeLimit ? Number(timeLimit) : 0 };
const { code, data, msg } = await EditTableDataInfo(param); const { code, data, msg } = await EditTableDataInfo(param);
if (code === 0) { if (code === 0) {
message.success('修改成功!'); message.success('修改成功!');
...@@ -610,7 +610,7 @@ const Account = (props, ref) => { ...@@ -610,7 +610,7 @@ const Account = (props, ref) => {
</div> </div>
</div> </div>
</div> </div>
<BatchEdit config={config} ref={batchEditRef} onOk={batchEditOk} /> <BatchEdit config={config} timeLimit={timeLimit} ref={batchEditRef} onOk={batchEditOk} />
</div> </div>
{detailShow ? ( {detailShow ? (
<div className={styles.tableDetail}> <div className={styles.tableDetail}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment