Commit 150f9e47 authored by 田翔's avatar 田翔

fix: 增加修改时限参数

parent ac631b06
{
"name": "panda-xform",
"version": "6.0.9",
"description": "6.0.9 增加修改时限参数",
"version": "6.0.10",
"description": "6.0.10 增加修改时限参数",
"keywords": [
"panda-xform"
],
......
......@@ -323,12 +323,12 @@ export function downloadFile(str) {
* @Params tableName: 需要查询的表名;includeFields:需要的字段名;id:记录id
* */
export function GetTableDataInfo({ accountName, id }) {
export function GetTableDataInfo({ accountName, id, timeLimit }) {
return request({
// headers: {
// 'Civ-Site': window?.globalConfig?.userInfo?.site
// },
url: `${BASEURL}/GetTableDataInfo?accountName=${accountName}&id=${id}`,
url: `${BASEURL}/GetTableDataInfo?accountName=${accountName}&id=${id}&timeLimit=${timeLimit}`,
method: 'GET',
});
}
......
......@@ -110,7 +110,11 @@ const Account = (props, ref) => {
}
if (type === '编辑' || type === '详情') {
setOperation({ type, id: row.ID });
const { code, data, msg } = await GetTableDataInfo({ accountName: params.accountName, id: row.ID });
let Limit = 0
if (type === '编辑' && timeLimit) {
Limit = Number(timeLimit)
}
const { code, data, msg } = await GetTableDataInfo({ accountName: params.accountName, id: row.ID, timeLimit: Limit });
if (code === 0) {
saveClick(editField, formJson, data, type);
} else {
......
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