diff --git a/src/views/archivesConfig/dict/dictDetail.vue b/src/views/archivesConfig/dict/dictDetail.vue
index dc135b8..647aa67 100644
--- a/src/views/archivesConfig/dict/dictDetail.vue
+++ b/src/views/archivesConfig/dict/dictDetail.vue
@@ -2,12 +2,12 @@
-
+
- 新增
+ 新增
- 删除
+ 删除
diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue
index d8204d4..3142f54 100644
--- a/src/views/components/category/PreviewForm.vue
+++ b/src/views/components/category/PreviewForm.vue
@@ -214,7 +214,7 @@ export default {
delete node.childMenus
}
return {
- id: node.dictionaryId,
+ id: node.dictionaryName,
label: node.dictionaryName,
children: node.childMenus
}
@@ -260,13 +260,13 @@ export default {
return name
}
},
- getNode(list, dicName) {
+ getNode(list, dictionaryName) {
let data;
(list || []).map(item => {
- if (item.dicName === dicName) {
+ if (item.dictionaryName === dictionaryName) {
data = [item]
} else {
- const child = this.getNode(item.childMenus, dicName)
+ const child = this.getNode(item.childMenus, dictionaryName)
if (child) {
data = child
}
@@ -468,8 +468,11 @@ export default {
},
// tree - select
selectTree(val) {
- this.addOrUpdateForm[this.treeCurrentFiled.fieldName] = val.dicName
- // this.treeName = val.dicName
+ this.addOrUpdateForm[this.treeCurrentFiled.fieldName] = val.dictionaryName
+ console.log('this.treeCurrentFiled.fieldName', this.treeCurrentFiled.fieldName)
+ console.log('val', val)
+ console.log('val.dictionaryName', val.dictionaryName)
+ // this.treeName = val.dictionaryName
// 自动重复字段 - 是否重复 - treeSelect方式
if (this.treeCurrentFiled.isRepeat) {
let params
@@ -478,14 +481,14 @@ export default {
'categoryId': this.selectedCategory.id,
'archivesId': this.arcId,
'fieldName': this.treeCurrentFiled.fieldName,
- 'value': val.dicName
+ 'value': val.dictionaryName
}
} else {
params = {
'documentId': this.selectedCategory.id,
'archivesId': null,
'fieldName': this.treeCurrentFiled.fieldName,
- 'value': val.dicName
+ 'value': val.dictionaryName
}
}
this.handlerIsRepeat(params, this.treeCurrentFiled)
@@ -619,6 +622,7 @@ export default {
'jsonString': JSON.stringify(this.addOrUpdateForm),
'fileJsonString': this.fileJsonString
}
+ console.log('params', params)
prearchEdit(params).then(res => {
if (res) {
this.$message.success(res)
diff --git a/src/views/prearchiveLibrary/index.vue b/src/views/prearchiveLibrary/index.vue
index 5191dde..7384013 100644
--- a/src/views/prearchiveLibrary/index.vue
+++ b/src/views/prearchiveLibrary/index.vue
@@ -68,7 +68,7 @@
-