+
档号规则
-
{{ selectedCategory.isColumnLength }}
+
{{ fileNoFormatStr }}
内容说明
@@ -29,6 +29,7 @@
diff --git a/src/views/category/fileNoFormat/index.vue b/src/views/category/fileNoFormat/index.vue
index bad3116..24811d6 100644
--- a/src/views/category/fileNoFormat/index.vue
+++ b/src/views/category/fileNoFormat/index.vue
@@ -114,7 +114,7 @@ export default {
}
})
})
- getNoFormatField().then((res) => {
+ getNoFormatField({ categoryId: this.selectedCategory.id }).then((res) => {
this.table.right.data.splice(0, this.table.right.data.length)
res.forEach((item) => {
this.table.right.data.push(item)
diff --git a/src/views/category/index.vue b/src/views/category/index.vue
index e6585f7..546909b 100644
--- a/src/views/category/index.vue
+++ b/src/views/category/index.vue
@@ -78,6 +78,7 @@ import listBrowsing from './listBrowsing/index'
import orderingRule from './orderingRule/index'
import fileNoFormat from './fileNoFormat/index'
import crudOperation from '@crud/CRUD.operation'
+import Vue from 'vue'
export default {
name: 'Category',
@@ -137,15 +138,6 @@ export default {
}
return 'baseInfo'
}
- // ,
- // brotherNodeNum: function() {
- // const selectedNode = this.$refs.tree.getCurrentNode()
- // if (selectedNode && selectedNode.pid && this.$refs.tree.getNode(selectedNode.pid)) {
- // return this.$refs.tree.getNode(selectedNode.pid).childNodes.length
- // } else {
- // return 0
- // }
- // }
},
methods: {
// 逆归实现 获取指定元素
@@ -197,12 +189,14 @@ export default {
this.crud.selectionChangeHandler([val])
this.$refs.eform.pid = val.id
this.selectedCategory = val
+ if (val.pid !== '0') {
+ Vue.set(this.selectedCategory, 'parentName', this.$refs.tree.getNode(val.pid).data.cnName)
+ }
if (val.isType === 1) {
this.changeActiveTab(0)
}
// 缓存当前的选中的
localStorage.setItem('currentCategoryKey', JSON.stringify(val))
- this.brotherNodeNum = val.pid
if (this.$refs.tree.getNode(val.pid) && this.$refs.tree.getNode(val.pid).childNodes) {
this.brotherNodeNum = this.$refs.tree.getNode(val.pid).childNodes.length
}