faa15705 by lihua

优化标准代码表新建默认值问题

1 parent b4b6acda
......@@ -19,24 +19,11 @@ import { getStandardCodeList, saveStandardCode,
getStandardCodeDataList, getStandardCodeTree
} from '@/api/modules/dataMetaService'
import {
addDictionary,
deleteDictionary,
getDictionary,
updateDictionary,
getDictionaryTree,
getDictionaryDetail,
exportDictionary,
showDictionary,
getDataBaseList,
getCoderuleList,
saveDictionaryData,
getDictionaryFileds,
updateDictionaryState,
getDictionaryRuleData,
exportDictionaryFileds,
checkDeleteDictionary,
checkDeleteDictionaryScheme,
checkDictionaryData,
getNewDataTypeList
} from '@/api/modules/dataInventory';
import router from '@/router'
......@@ -1143,8 +1130,19 @@ const loadDrawer = async () => {
}
})
formTable.value.tableInfo.fields = fields
let currentObj: any = treeInfo.value.currentObj;
formItems.value.forEach(item => {
if (item.field === 'bizState') {
if (item.field == 'standard') {
item.default = currentObj.standard;
} else if (item.field == "standardName") {
item.default = currentObj.name;
} else if (item.field == "publishingUnitCode") {
item.default = currentObj.publishingUnitCode;
} else if (item.field == 'codeFields') {
item.default = ['代码'];
} else if (item.field == 'codeFieldName') {
item.default = '名称';
} else if (item.field === 'bizState') {
item.default = 'Y'
} else if (item.field === 'typeCode') {
item.default = '1'
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!