Forráskód Böngészése

物资类型调整为最大允许五层级

lizhenhao 2 éve
szülő
commit
0da09c2cf9

+ 1 - 1
src/views/modules/materialManagement/materialType/TypeForm.vue

@@ -20,7 +20,7 @@
                       label: 'name',         // 显示名称
                       children: 'children'    // 子级字段名
                     }"
-                url="/material/materialType/treeData?type=3"
+                url="/material/materialType/treeData?type=5"
                 :value="inputForm.parentId"
                 :clearable="true"
                 :accordion="true"

+ 4 - 1
src/views/modules/materialManagement/materialType/TypeList.vue

@@ -46,7 +46,7 @@
 
           <vxe-column title="操作" width="230px" fixed="right" align="center">
             <template  slot-scope="scope">
-              <el-button v-if="hasPermission('material:type:edit')&&(scope.row.level === '1' || scope.row.level === '2')" type="text"  size="small" @click="addChild(scope.row.id,scope.row.businessType)">添加下级结构</el-button>
+              <el-button v-if="hasPermission('material:type:edit')&&(scope.row.level === '1' || scope.row.level === '2' || scope.row.level === '3' || scope.row.level === '4')" type="text"  size="small" @click="addChild(scope.row.id,scope.row.businessType)">添加下级结构</el-button>
               <el-button v-if="hasPermission('material:type:edit')" type="text"  size="small" @click="edit(scope.row.id)">修改</el-button>
               <el-button v-if="hasPermission('material:type:remove')" type="text"   size="small" @click="del(scope.row.id)">删除</el-button>
             </template>
@@ -95,6 +95,9 @@
     mounted () {
       this.refreshList()
     },
+    activated () {
+      this.refreshList()
+    },
     methods: {
       // 新增
       add () {