优化标准代码表新建默认值问题
Showing
1 changed file
with
12 additions
and
14 deletions
| ... | @@ -19,24 +19,11 @@ import { getStandardCodeList, saveStandardCode, | ... | @@ -19,24 +19,11 @@ import { getStandardCodeList, saveStandardCode, |
| 19 | getStandardCodeDataList, getStandardCodeTree | 19 | getStandardCodeDataList, getStandardCodeTree |
| 20 | } from '@/api/modules/dataMetaService' | 20 | } from '@/api/modules/dataMetaService' |
| 21 | import { | 21 | import { |
| 22 | addDictionary, | ||
| 23 | deleteDictionary, | ||
| 24 | getDictionary, | ||
| 25 | updateDictionary, | ||
| 26 | getDictionaryTree, | ||
| 27 | getDictionaryDetail, | ||
| 28 | exportDictionary, | ||
| 29 | showDictionary, | 22 | showDictionary, |
| 30 | getDataBaseList, | 23 | getDataBaseList, |
| 31 | getCoderuleList, | 24 | getCoderuleList, |
| 32 | saveDictionaryData, | ||
| 33 | getDictionaryFileds, | ||
| 34 | updateDictionaryState, | 25 | updateDictionaryState, |
| 35 | getDictionaryRuleData, | 26 | getDictionaryRuleData, |
| 36 | exportDictionaryFileds, | ||
| 37 | checkDeleteDictionary, | ||
| 38 | checkDeleteDictionaryScheme, | ||
| 39 | checkDictionaryData, | ||
| 40 | getNewDataTypeList | 27 | getNewDataTypeList |
| 41 | } from '@/api/modules/dataInventory'; | 28 | } from '@/api/modules/dataInventory'; |
| 42 | import router from '@/router' | 29 | import router from '@/router' |
| ... | @@ -1143,8 +1130,19 @@ const loadDrawer = async () => { | ... | @@ -1143,8 +1130,19 @@ const loadDrawer = async () => { |
| 1143 | } | 1130 | } |
| 1144 | }) | 1131 | }) |
| 1145 | formTable.value.tableInfo.fields = fields | 1132 | formTable.value.tableInfo.fields = fields |
| 1133 | let currentObj: any = treeInfo.value.currentObj; | ||
| 1146 | formItems.value.forEach(item => { | 1134 | formItems.value.forEach(item => { |
| 1147 | if (item.field === 'bizState') { | 1135 | if (item.field == 'standard') { |
| 1136 | item.default = currentObj.standard; | ||
| 1137 | } else if (item.field == "standardName") { | ||
| 1138 | item.default = currentObj.name; | ||
| 1139 | } else if (item.field == "publishingUnitCode") { | ||
| 1140 | item.default = currentObj.publishingUnitCode; | ||
| 1141 | } else if (item.field == 'codeFields') { | ||
| 1142 | item.default = ['代码']; | ||
| 1143 | } else if (item.field == 'codeFieldName') { | ||
| 1144 | item.default = '名称'; | ||
| 1145 | } else if (item.field === 'bizState') { | ||
| 1148 | item.default = 'Y' | 1146 | item.default = 'Y' |
| 1149 | } else if (item.field === 'typeCode') { | 1147 | } else if (item.field === 'typeCode') { |
| 1150 | item.default = '1' | 1148 | item.default = '1' | ... | ... |
-
Please register or sign in to post a comment