Sfoglia il codice sorgente

fix 修复 idea 误报类型异常问题

疯狂的狮子Li 1 mese fa
parent
commit
6d290785ef

+ 1 - 1
src/components/RightToolbar/index.vue

@@ -16,7 +16,7 @@
               :data="columns"
               show-checkbox
               node-key="key"
-              :props="{ label: 'label', children: 'children' }"
+              :props="{ label: 'label', children: 'children' } as any"
               @check="columnChange"
             ></el-tree>
             <template #reference>

+ 2 - 2
src/components/TreeSelect/index.vue

@@ -6,7 +6,7 @@
       style="width: 100%"
       :filterable="true"
       :clearable="true"
-      :filter-method="selectFilterData"
+      :filter-method="selectFilterData as any"
       :placeholder="placeholder"
       @clear="clearHandle"
     >
@@ -16,7 +16,7 @@
           ref="selectTree"
           :accordion="accordion"
           :data="options"
-          :props="objMap"
+          :props="objMap as any"
           :node-key="objMap.value"
           :expand-on-click-node="false"
           :default-expanded-keys="defaultExpandedKey"

+ 1 - 1
src/components/UserSelect/index.vue

@@ -11,7 +11,7 @@
               class="mt-2"
               node-key="id"
               :data="deptOptions"
-              :props="{ label: 'label', children: 'children' }"
+              :props="{ label: 'label', children: 'children' } as any"
               :expand-on-click-node="false"
               :filter-node-method="filterNode"
               highlight-current

+ 1 - 1
src/views/demo/tree/index.vue

@@ -62,7 +62,7 @@
           <el-tree-select
             v-model="form.parentId"
             :data="treeOptions"
-            :props="{ value: 'id', label: 'treeName', children: 'children' }"
+            :props="{ value: 'id', label: 'treeName', children: 'children' } as any"
             value-key="id"
             placeholder="请选择父id"
             check-strictly

+ 1 - 1
src/views/system/dept/index.vue

@@ -82,7 +82,7 @@
               <el-tree-select
                 v-model="form.parentId"
                 :data="deptOptions"
-                :props="{ value: 'deptId', label: 'deptName', children: 'children' }"
+                :props="{ value: 'deptId', label: 'deptName', children: 'children' } as any"
                 value-key="deptId"
                 placeholder="选择上级部门"
                 check-strictly

+ 1 - 1
src/views/system/menu/index.vue

@@ -85,7 +85,7 @@
               <el-tree-select
                 v-model="form.parentId"
                 :data="menuOptions"
-                :props="{ value: 'menuId', label: 'menuName', children: 'children' }"
+                :props="{ value: 'menuId', label: 'menuName', children: 'children' } as any"
                 value-key="menuId"
                 placeholder="选择上级菜单"
                 check-strictly

+ 3 - 3
src/views/system/post/index.vue

@@ -10,7 +10,7 @@
             class="mt-2"
             node-key="id"
             :data="deptOptions"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
             :expand-on-click-node="false"
             :filter-node-method="filterNode"
             highlight-current
@@ -43,7 +43,7 @@
                   <el-tree-select
                     v-model="queryParams.deptId"
                     :data="deptOptions"
-                    :props="{ value: 'id', label: 'label', children: 'children' }"
+                    :props="{ value: 'id', label: 'label', children: 'children' } as any"
                     value-key="id"
                     placeholder="请选择部门"
                     check-strictly
@@ -133,7 +133,7 @@
               <el-tree-select
                 v-model="form.deptId"
                 :data="deptOptions"
-                :props="{ value: 'id', label: 'label', children: 'children' }"
+                :props="{ value: 'id', label: 'label', children: 'children' } as any"
                 value-key="id"
                 placeholder="请选择部门"
                 check-strictly

+ 2 - 2
src/views/system/role/index.vue

@@ -135,7 +135,7 @@
             node-key="id"
             :check-strictly="!form.menuCheckStrictly"
             empty-text="加载中,请稍候"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
           ></el-tree>
         </el-form-item>
         <el-form-item label="备注">
@@ -177,7 +177,7 @@
             node-key="id"
             :check-strictly="!form.deptCheckStrictly"
             empty-text="加载中,请稍候"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
           ></el-tree>
         </el-form-item>
       </el-form>

+ 1 - 1
src/views/system/tenantPackage/index.vue

@@ -82,7 +82,7 @@
             node-key="id"
             :check-strictly="!form.menuCheckStrictly"
             empty-text="加载中,请稍候"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
           ></el-tree>
         </el-form-item>
         <el-form-item label="备注" prop="remark">

+ 2 - 2
src/views/system/user/index.vue

@@ -10,7 +10,7 @@
             class="mt-2"
             node-key="id"
             :data="deptOptions"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
             :expand-on-click-node="false"
             :filter-node-method="filterNode"
             highlight-current
@@ -156,7 +156,7 @@
               <el-tree-select
                 v-model="form.deptId"
                 :data="enabledDeptOptions"
-                :props="{ value: 'id', label: 'label', children: 'children' }"
+                :props="{ value: 'id', label: 'label', children: 'children' } as any"
                 value-key="id"
                 placeholder="请选择归属部门"
                 check-strictly

+ 1 - 1
src/views/tool/gen/genInfoForm.vue

@@ -70,7 +70,7 @@
           <el-tree-select
             v-model="infoForm.parentMenuId"
             :data="menuOptions"
-            :props="{ value: 'menuId', label: 'menuName', children: 'children' }"
+            :props="{ value: 'menuId', label: 'menuName', children: 'children' } as any"
             value-key="menuId"
             node-key="menuId"
             placeholder="选择上级菜单"

+ 1 - 1
src/views/workflow/category/index.vue

@@ -58,7 +58,7 @@
           <el-tree-select
             v-model="form.parentId"
             :data="categoryOptions"
-            :props="{ value: 'categoryId', label: 'categoryName', children: 'children' }"
+            :props="{ value: 'categoryId', label: 'categoryName', children: 'children' } as any"
             value-key="categoryId"
             placeholder="请选择上级分类"
             check-strictly

+ 3 - 3
src/views/workflow/processDefinition/index.vue

@@ -10,7 +10,7 @@
             class="mt-2"
             node-key="id"
             :data="categoryOptions"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
             :expand-on-click-node="false"
             :filter-node-method="filterNode"
             highlight-current
@@ -131,7 +131,7 @@
           <el-tree-select
             v-model="selectCategory"
             :data="categoryOptions"
-            :props="{ value: 'id', label: 'label', children: 'children' }"
+            :props="{ value: 'id', label: 'label', children: 'children' } as any"
             filterable
             value-key="id"
             :render-after-expand="false"
@@ -163,7 +163,7 @@
             <el-tree-select
               v-model="form.category"
               :data="categoryOptions"
-              :props="{ value: 'id', label: 'label', children: 'children' }"
+              :props="{ value: 'id', label: 'label', children: 'children' } as any"
               filterable
               value-key="id"
               :render-after-expand="false"

+ 1 - 1
src/views/workflow/processInstance/index.vue

@@ -10,7 +10,7 @@
             class="mt-2"
             node-key="id"
             :data="categoryOptions"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
             :expand-on-click-node="false"
             :filter-node-method="filterNode"
             highlight-current

+ 1 - 1
src/views/workflow/task/myDocument.vue

@@ -10,7 +10,7 @@
             class="mt-2"
             node-key="id"
             :data="categoryOptions"
-            :props="{ label: 'label', children: 'children' }"
+            :props="{ label: 'label', children: 'children' } as any"
             :expand-on-click-node="false"
             :filter-node-method="filterNode"
             highlight-current