diff --git a/back/src/views/modules/ability/knowledgeBase.vue b/back/src/views/modules/ability/knowledgeBase.vue
index 6e4d8d9c..6860184a 100644
--- a/back/src/views/modules/ability/knowledgeBase.vue
+++ b/back/src/views/modules/ability/knowledgeBase.vue
@@ -28,39 +28,25 @@
重置
-
-
-
-
-
-
-
-
- {{ findValue(scope.row.infoList2, item.attrType) }}
-
-
+
+
+ {{ findValue(scope.row.infoList2, item.attrType) }}
+
+
-
+
{{ $t('update') }}
@@ -164,6 +150,7 @@ export default {
mounted() {
// window.addEventListener('resize', this.a)
// this.fullScreen()
+ this.reset()
},
methods: {
reset() {
@@ -405,7 +392,12 @@ export default {
this.submitFrom.infoList = this.submitFrom.infoList.sort(
(a, b) => arr.indexOf(a.attrType) - arr.indexOf(b.attrType)
)
- console.log('this.submitFrom------------>', this.submitFrom);
+ this.submitFrom.infoList.forEach(v => {
+ if (v.attrType == '知识库类型') {
+ v.attrValue = v.attrValue || this.radio
+ }
+ })
+ console.log('this.submitFrom-----表单提交------->', this.submitFrom.infoList);
this.notFilled = []
if (!this.submitFrom.name) {
this.notFilled.push('标准名称')
@@ -480,9 +472,14 @@ export default {
(item) => item.name === '知识库'
)[0]
console.log('this.insertList-------www----->', this.insertList);
- this.radio = item.infoList.filter(
+ let _knowType = item.infoList.find((val) => val.attrType === '知识库类型') || {};
+ console.log('_knowType------------>', _knowType);
+
+ this.radio = item.infoList.find(
(val) => val.attrType === '知识库类型'
- )[0].attrValue
+ ).attrValue
+ console.log('item.infoList------------>', item.infoList);
+ console.log('this.radio---www--------->', this.radio);
this.putOnTheShelfList = this.insertList.children.filter(
(item) => item.name === this.radio
)[0].children;