Commit ac631b06 authored by 田翔's avatar 田翔

fix: 增加修改时限参数

parent 057deff0
{
"name": "panda-xform",
"version": "6.0.8",
"description": "6.0.8 增加人员机构显示",
"version": "6.0.9",
"description": "6.0.9 增加修改时限参数",
"keywords": [
"panda-xform"
],
......
......@@ -11,7 +11,7 @@ const BatchEdit = (props, ref) => {
open,
}))
const { config } = props
const { config, timeLimit } = props
const { editFieldGroup, formJson } = config
const [value, setValue] = useState('')
const [params, setParams] = useState({ accountTable: '', id: '' })
......@@ -72,7 +72,7 @@ const BatchEdit = (props, ref) => {
if (errors.length) {
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) {
message.success('批量修改成功!')
setVisible(false)
......
......@@ -52,7 +52,7 @@ const Account = (props, ref) => {
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;
let initParams = {
user: userID,
......@@ -284,7 +284,7 @@ const Account = (props, ref) => {
}
}
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);
if (code === 0) {
message.success('修改成功!');
......@@ -610,7 +610,7 @@ const Account = (props, ref) => {
</div>
</div>
</div>
<BatchEdit config={config} ref={batchEditRef} onOk={batchEditOk} />
<BatchEdit config={config} timeLimit={timeLimit} ref={batchEditRef} onOk={batchEditOk} />
</div>
{detailShow ? (
<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