huang_an před 2 roky
rodič
revize
f01aa414a0

+ 1 - 0
src/components/addPatrolConfigDialog/index.vue

@@ -634,6 +634,7 @@
 
 
       // 分类树的选择
       // 分类树的选择
       chooseClassify(val) {
       chooseClassify(val) {
+        this.clickedTreeNode = true;
         const id = this.findTopLevelAncestorId(this.rootData, val);
         const id = this.findTopLevelAncestorId(this.rootData, val);
         this.rootId = id;
         this.rootId = id;
         this._getEquipmentList(val, this.isBindPlan);
         this._getEquipmentList(val, this.isBindPlan);

+ 6 - 3
src/components/addSpareDialog/index.vue

@@ -24,6 +24,7 @@
           :type="'7'"
           :type="'7'"
           :paramsType="'type'"
           :paramsType="'type'"
           ref="treeList"
           ref="treeList"
+          id="6"
         />
         />
       </el-col>
       </el-col>
       <el-col :span="18">
       <el-col :span="18">
@@ -61,7 +62,8 @@
 
 
 <script>
 <script>
   import AssetTree from '@/components/AssetTree';
   import AssetTree from '@/components/AssetTree';
-  import { getCategoryList } from '@/api/ledgerAssets';
+  // import { getCategoryList } from '@/api/ledgerAssets';
+  import { getList } from '@/api/classifyManage/itemInformation';
   export default {
   export default {
     components: {
     components: {
       // CommonTree,
       // CommonTree,
@@ -141,13 +143,14 @@
 
 
       // 获取添加备件弹窗表格数据
       // 获取添加备件弹窗表格数据
       async _getClassificationSpareList(data) {
       async _getClassificationSpareList(data) {
+        console.log(1);
         this.tableLoading = true;
         this.tableLoading = true;
         let params = {
         let params = {
           page: 1,
           page: 1,
-          size: 99999,
+          size: 10,
           categoryLevelId: this.currentTreeData.id
           categoryLevelId: this.currentTreeData.id
         };
         };
-        const res = await getCategoryList(params);
+        const res = await getList(params);
         console.log('res', res);
         console.log('res', res);
         this.tableLoading = false;
         this.tableLoading = false;
         if (res.list.length) {
         if (res.list.length) {