基本已处理了目前在用的所有与origin字段有关的函数

This commit is contained in:
weiye.wang 2024-04-07 20:00:19 +08:00
parent 5e9b85b07d
commit 8220d2fab2
2 changed files with 2 additions and 2 deletions

View File

@ -1204,7 +1204,7 @@ def generateLaTeXBodyContent(id,adict,objdict,misc): #根据id,读取的json内
usages = f"\n\n使用记录:\n\n{GenerateUsageTexCode(id,adict,misc['字段显示设置']['使用记录'])}\n\n" usages = f"\n\n使用记录:\n\n{GenerateUsageTexCode(id,adict,misc['字段显示设置']['使用记录'])}\n\n"
output += usages output += usages
if "来源" in misc["字段显示设置"] and misc["字段显示设置"]["来源"] == True: if "来源" in misc["字段显示设置"] and misc["字段显示设置"]["来源"] == True:
origin = adict[id]["origin"] if len(adict[id]["origin"]) > 0 else "未记录来源" origin = generate_origin(adict[id]["origin"]) if len(adict[id]["origin"]) > 0 else "未记录来源"
output += f"\n\n来源: {origin}\n\n" output += f"\n\n来源: {origin}\n\n"
return output return output

View File

@ -46,7 +46,7 @@
}, },
"origin": { "origin": {
"FieldName": "origin", "FieldName": "origin",
"FieldType": "str", "FieldType": "dict",
"Method": "fixed" "Method": "fixed"
}, },
"edit": { "edit": {