فهرست منبع

视图+生产

koushanshan 3 سال پیش
والد
کامیت
1edecd14ba

+ 44 - 19
src/api/pages/pdm/produce.js

@@ -5,30 +5,55 @@
  */
 export default {
   produceService:{
-    add:{key:'add',url:'/pdm/produce/add'},
+    prefix:'/mdm-server/pdm/data-collection',
     // 获取明细
     getDetail:'/mdm-server/pdm/register/getDetail',
+    //查询
+    search:{key:'search',url:'/list_by'},
   }
 }
 export const routeUrl = {
-  produce: {
-    //计件新建
-    registerAdd:{key:'add',url:'/pdm/data-collection/register-add'},
-    //登窑新建
-    climbKilnAdd:{key:'add',url:'/pdm/data-collection/climbKiln-add'},
-    //入窑新建
-    inKilnAdd:{key:'add',url:'/pdm/data-collection/inKiln-add'},
-    //出窑新建
-    outKiln:{key:'add',url:'/pdm/data-collection/outKiln-add'},
-    //卸窑新建
-    uninstallKiln:{key:'add',url:'/pdm/data-collection/uninstallKiln-add'},
-    //半检新建
-    halfCheckAdd:{key:'add',url:'/pdm/data-collection/halfCheck-add'},
-    //成检新建
-    finishCheckAdd:{key:'add',url:'/pdm/data-collection/finishCheck-add'},
-    //回收新建
-    recoverAdd:{key:'add',url:'/pdm/data-collection/recover-add'},
-  }
+  //计件
+  register:{
+    add:{key:'add',url:'/pdm/data-collection/register-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  //登窑
+  climbKiln:{
+    add:{key:'add',url:'/pdm/data-collection/climbKiln-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  //入窑
+  inKiln:{
+    add:{key:'add',url:'/pdm/data-collection/inKiln-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  //出窑
+  outKiln:{
+    add:{key:'add',url:'/pdm/data-collection/outKiln-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  ///卸窑
+  uninstallKiln:{
+    add:{key:'add',url:'/pdm/data-collection/uninstallKiln-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  //半检
+  halfCheck:{
+    add:{key:'add',url:'/pdm/data-collection/halfCheck-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  //成检
+  finishCheck:{
+    add:{key:'add',url:'/pdm/data-collection/finishCheck-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+  //回收
+  recover:{
+    add:{key:'add',url:'/pdm/data-collection/recover-add'},
+    search:{key:'search',url:'/pdm/data-collection/list_by'},
+  },
+
 }
 
 

+ 55 - 45
src/view/mst/product-view/config/ProductView.js

@@ -1,4 +1,4 @@
-import { Graph, Shape,FunctionExt } from '@antv/x6'
+import { Graph, Shape, FunctionExt } from '@antv/x6'
 import { Stencil } from '@antv/x6-plugin-stencil'
 import { Transform } from '@antv/x6-plugin-transform'
 import { Selection } from '@antv/x6-plugin-selection'
@@ -6,8 +6,9 @@ import { Snapline } from '@antv/x6-plugin-snapline'
 import { Keyboard } from '@antv/x6-plugin-keyboard'
 import { Clipboard } from '@antv/x6-plugin-clipboard'
 import { History } from '@antv/x6-plugin-history'
-import { Export } from "@antv/x6-plugin-export";
+import { Export } from '@antv/x6-plugin-export'
 import store from '@/store'
+
 const insertCss = require('insert-css')
 
 
@@ -27,7 +28,7 @@ insertCss(`
  * @date   : 2023/1/3 11:46
  */
 export default class Product {
-  static graphJson =null //图形对象
+  static graphJson = null //图形对象
   static deleteNodeList = null//被删除节点
   static nodeClickValue = null//点击节点
   static graph = null //图形对象
@@ -36,7 +37,7 @@ export default class Product {
 
 
   // region 初始化图形
-  static init(dom,graphJson,deleteNodeList,nodeClickValue){
+  static init(dom, graphJson, deleteNodeList, nodeClickValue) {
 
     this.graphJson = graphJson
     this.deleteNodeList = deleteNodeList
@@ -44,9 +45,16 @@ export default class Product {
     // region 画布配置
     this.graph = new Graph({
       container: dom,//获取节点
-      background: {color: '#F2F7FA',},//画布背景色
-      autoResize:true,//自动设置宽高
-      scroller: true,//画布滚动
+      background: {
+        color: '#F2F7FA',
+      },//画布背景色
+      autoResize: true,//自动设置宽高
+      scroller: {
+        enabled: true,
+        pageVisible: true,
+        pageBreak: true,
+        pannable: true,
+      },
       panning: {//开启拖拽画布
         enabled: true,
         eventTypes: 'rightMouseDown',//触发画布平移的交互方式为“右键按下”
@@ -54,14 +62,14 @@ export default class Product {
       grid: {//设置网格
         size: 10,
         visible: true,
-        type: "doubleMesh",
+        type: 'doubleMesh',
         args: [
           {
-            color: "#eee", // 主网格线颜色
+            color: '#eee', // 主网格线颜色
             thickness: 1, // 主网格线宽度
           },
           {
-            color: "#ddd", // 次网格线颜色
+            color: '#ddd', // 次网格线颜色
             thickness: 1, // 次网格线宽度
             factor: 4, // 主次网格线间隔
           },
@@ -153,9 +161,9 @@ export default class Product {
         enabled: true,
       }))
       .use(new Export({
-          enabled:true
+          enabled: true
         }
-      ));
+      ))
     // endregion
 
     // region 左侧工具栏配置
@@ -247,10 +255,10 @@ export default class Product {
     // endregion
 
     // region 删除
-    this.graph.bindKey(['backspace','del'], () => {
+    this.graph.bindKey(['backspace', 'del'], () => {
       const cells = this.graph.getSelectedCells()
       this.deleteNodeList(this.graph.getSelectedCells())
-      console.log("this.graph.getSelectedCells()",this.graph.getSelectedCells())
+      console.log('this.graph.getSelectedCells()', this.graph.getSelectedCells())
       if (cells.length) {
         this.graph.removeCells(cells)
       }
@@ -276,10 +284,10 @@ export default class Product {
     this.graph.bindKey(['up'], () => {
       const cells = this.graph.getSelectedCells()
       if (cells.length) {
-        cells.forEach(cell=>{
+        cells.forEach(cell => {
           const y = cell.prop().position.y
           const x = cell.prop().position.x
-          cell.prop("position", { x: x, y: y-5 });
+          cell.prop('position', { x: x, y: y - 5 })
         })
       }
     })
@@ -289,10 +297,10 @@ export default class Product {
     this.graph.bindKey(['down'], () => {
       const cells = this.graph.getSelectedCells()
       if (cells.length) {
-        cells.forEach(cell=>{
+        cells.forEach(cell => {
           const y = cell.prop().position.y
           const x = cell.prop().position.x
-          cell.prop("position", { x: x, y: y+5 });
+          cell.prop('position', { x: x, y: y + 5 })
         })
       }
     })
@@ -302,10 +310,10 @@ export default class Product {
     this.graph.bindKey(['left'], () => {
       const cells = this.graph.getSelectedCells()
       if (cells.length) {
-        cells.forEach(cell=>{
+        cells.forEach(cell => {
           const y = cell.prop().position.y
           const x = cell.prop().position.x
-          cell.prop("position", { x: x-5, y: y });
+          cell.prop('position', { x: x - 5, y: y })
         })
       }
     })
@@ -315,10 +323,10 @@ export default class Product {
     this.graph.bindKey(['right'], () => {
       const cells = this.graph.getSelectedCells()
       if (cells.length) {
-        cells.forEach(cell=>{
+        cells.forEach(cell => {
           const y = cell.prop().position.y
           const x = cell.prop().position.x
-          cell.prop("position", { x: x+5, y: y });
+          cell.prop('position', { x: x + 5, y: y })
         })
       }
     })
@@ -367,9 +375,9 @@ export default class Product {
       // console.log("右键连线-attr",cell.attr())
       // console.log("右键连线-data",cell.data)
       //设置值
-      store.commit('setCurrentEdgeId',cell.id)
+      store.commit('setCurrentEdgeId', cell.id)
       //显示弹窗
-      store.commit('setProductEdgeModalDisplay',true)
+      store.commit('setProductEdgeModalDisplay', true)
     })
     // endregion
 
@@ -382,12 +390,12 @@ export default class Product {
       // console.log("右键节点-data",node.data)
       //如果是节点组,不打开弹窗
       if (node.data && node.data.parent) {
-        return;
+        return
       }
       //设置值
-      store.commit('setCurrentNodeId',node.id)
+      store.commit('setCurrentNodeId', node.id)
       //显示弹窗
-      store.commit('setProductNodeModalDisplay',true)
+      store.commit('setProductNodeModalDisplay', true)
     })
     // endregion
 
@@ -414,30 +422,30 @@ export default class Product {
 
 
     // region 节点的子级发生改变
-    this.graph.on('node:change:children',({node,previous,current})=>{
-      if(previous&&current&&previous.length>current.length){
+    this.graph.on('node:change:children', ({ node, previous, current }) => {
+      if (previous && current && previous.length > current.length) {
         console.log('移出')
-        this.getSelectedCells().forEach(it=>{
-          node.unembed(it);
+        this.getSelectedCells().forEach(it => {
+          node.unembed(it)
         })
       }
     })
     // endregion
 
     // region 节点的移入事件(父级、嵌套关系发生改变)
-    this.graph.on('node:embedded',({node})=>{
+    this.graph.on('node:embedded', ({ node }) => {
       // debugger
-      console.log("embedded",node.id,node.getParent())
+      console.log('embedded', node.id, node.getParent())
       //如果所选所有节点的parent都一致,直接return
-      let cells=this.getSelectedCells()
-      if(cells.some((e) => cells.filter((e1) => e1.getParent() !== e.getParent()).length >0 )){
+      let cells = this.getSelectedCells()
+      if (cells.some((e) => cells.filter((e1) => e1.getParent() !== e.getParent()).length > 0)) {
         console.log('存在不相同')
-        let parent=node.getParent()
-        let other =cells.filter((c) => c.id!==node.id)
-        other.forEach(it=>{
-          parent.embed(it);
+        let parent = node.getParent()
+        let other = cells.filter((c) => c.id !== node.id)
+        other.forEach(it => {
+          parent.embed(it)
         })
-      }else{
+      } else {
         console.log('都相同')
         // return
       }
@@ -541,13 +549,13 @@ export default class Product {
     //endregion
 
     // region 监听添加节点事件
-    this.graph.on("node:added", ({ node }) => {
+    this.graph.on('node:added', ({ node }) => {
       this.graphJson(node)
       // 将添加的节点组置为最底层
       if (node.data && node.data.parent) {
         node.toBack()
       }
-    });
+    })
     // endregion
 
     // endregion
@@ -744,8 +752,8 @@ export default class Product {
             refY: 22,
           },
           label: {
-            refX:6,
-            refY:6,
+            refX: 6,
+            refY: 6,
             textAnchor: 'left',
             textVerticalAnchor: 'top',
             fontSize: 12,
@@ -815,6 +823,7 @@ export default class Product {
 
     return this.graph
   }
+
   // endregion
 
   // region 显示/隐藏连接桩事件
@@ -827,7 +836,8 @@ export default class Product {
 
   // region 获取所有选中的节点
   static getSelectedCells() {
-    return this.graph.getSelectedCells();
+    return this.graph.getSelectedCells()
   }
+
   // endregion
 }

+ 25 - 9
src/view/mst/product-view/form.vue

@@ -221,6 +221,8 @@
           if (filterList.length > 0) {
             this.imageColumnList.splice(i.zIndex - 1, 1)
           }
+          // console.log(this.nowPicIndex)
+          // console.log(this.fileList)
         }
       },
       /**
@@ -259,7 +261,6 @@
         // console.log('34343',this.imageList)
         // 图片列表有数据
         //文件集合赋值   图片名称,显示顺序,备注, 产品位置集合
-        console.log('this.picFormData',this.picFormData)
         if (this.picFormData.imageName) {
           this.$set(this.fileList[this.nowPicIndex], 'imageName', this.picFormData.imageName)
         }
@@ -295,7 +296,8 @@
         // }
         if (!saveFlag) {
           //说明当前画布存在
-          if (this.fileList[index].placeRange && this.fileList[index].placeRange.cells.length > 0) {
+          // if (this.fileList[index].placeRange && this.fileList[index].placeRange.cells.length > 0) {
+          if (this.fileList[index].placeRange) {
             this.imageColumnList = this.fileList[index].productViewPlaceVOList
             this.graph = Product.init(this.$refs.container, (val) => {
               this.getNodeData(val)
@@ -306,6 +308,7 @@
             })
             this.graph.fromJSON(this.fileList[index].placeRange)
           }
+          //清空图片表单
           this.picFormData = {
             imageName: this.fileList[index].imageName,
             displayNo: this.fileList[index].displayNo,
@@ -318,7 +321,10 @@
             this.graph.drawBackground(
               {
                 image: this.fileList[index].imageData,
-                opacity: 0.2
+                opacity: 0.2,
+                size: 'contain',
+
+
               }
             )
           }
@@ -347,6 +353,11 @@
         if (this.nowPicIndex >= index && this.nowPicIndex!=0) {
           this.nowPicIndex = this.nowPicIndex - 1
         }
+        this.picFormData = {
+          imageName: null,
+          displayNo: 1,
+          remarks: null,
+        }
         this.imageList.splice(index, 1)
         this.fileList.splice(index, 1)
         //清除图片列表
@@ -402,7 +413,8 @@
                   _this.graph.drawBackground(
                     {
                       image: base64,
-                      opacity: 0.2
+                      opacity: 0.2,
+                      size: 'contain',
                     }
                   )
                 }
@@ -443,6 +455,7 @@
         if (rowIndex || rowIndex === 0) {
           this.$set(this.imageColumnList[rowIndex], 'displayNo', rowIndex + 1)
           this.$set(this.imageColumnList[rowIndex], 'placeCode', null)
+          this.$set(this.imageColumnList[rowIndex], 'placeRange', value)
         }
       },
       /**
@@ -461,11 +474,12 @@
        */
       setParams() {
         this.formData.productViewImageVOList = this.fileList
-        for (let i of this.formData.productViewImageVOList) {
-          i.productViewPlaceVOList[0].placeRange = i.placeRange
-        }
+        // for (let i of this.formData.productViewImageVOList) {
+        //   i.productViewPlaceVOList[0].placeRange = i.placeRange
+        // }
         this.params = this.formData
         this.params.ftyId = this.$store.state.user.ftyId
+        console.log(this.params)
       },
       /**
        *   @desc   : 校验重复数据
@@ -503,7 +517,7 @@
         for (let item of this.fileList) {
           for (let index = 0; index < item.productViewPlaceVOList.length; index++) {
             let it = item.productViewPlaceVOList[index]
-            if (it.placeCode == null) {
+            if (it.placeId == null) {
               let rows = 1 + parseInt(index)
               this.$message.error(this.$t('W_089', {
                 'param1': rows + this.$t('rowNo'),
@@ -666,7 +680,7 @@
             if (imageList[i].productViewPlaceResponseList && imageList[i].productViewPlaceResponseList.length > 0) {
               placeList = imageList[i].productViewPlaceResponseList
               this.$set(this.fileList[i], 'productViewPlaceVOList', placeList)
-              this.$set(this.fileList[i], 'placeRange', placeList[0].placeRange)
+              this.$set(this.fileList[i], 'placeRange', placeList.map(map=>map.placeRange))
             }
           }
           // this.nowPicIndex = this.imageList.length
@@ -674,6 +688,8 @@
           this.graph.fromJSON(this.fileList[0].placeRange)
           //画布列表表格赋值
           this.imageColumnList = this.fileList[0].productViewPlaceVOList
+
+          console.log(this.fileList)
         }
       },
       /**

+ 6 - 3
src/view/pdm/data-collection/climbKiln.vue

@@ -6,15 +6,15 @@
       <template #left>
         <!--    查询    -->
         <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+                      ></BaseIndexButton>
         <!--    清空条件    -->
         <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+                         ></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
         <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.climbKilnAdd)"></BaseIndexButton>
+                        ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -146,6 +146,9 @@ export default {
       return this.excute(this.$service.produceService, this.$service.produceService.selectByCond, params);
     },
 
+  },
+  created() {
+    this.routeObjName = 'climbKiln'  // 设置路由名称
   }
 }
 </script>

+ 6 - 3
src/view/pdm/data-collection/finishCheck.vue

@@ -6,15 +6,15 @@
       <template #left>
         <!--    查询    -->
         <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+                        ></BaseIndexButton>
         <!--    清空条件    -->
         <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+                         ></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
         <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.finishCheckAdd)"></BaseIndexButton>
+                         ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -197,6 +197,9 @@ export default {
         }
       });
     }
+  },
+  created() {
+    this.routeObjName = 'finishCheck'  // 设置路由名称
   }
 }
 </script>

+ 6 - 3
src/view/pdm/data-collection/halfCheck.vue

@@ -6,16 +6,16 @@
       <template #left>
         <!--    查询    -->
         <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+                       ></BaseIndexButton>
         <!--    清空条件    -->
         <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+                        ></BaseIndexButton>
 
       </template>
       <template #right>
         <!--   新建     -->
         <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.halfCheckAdd)"></BaseIndexButton>
+                       ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -194,6 +194,9 @@ export default {
         }
       });
     }
+  },
+  created() {
+    this.routeObjName = 'halfCheck'  // 设置路由名称
   }
 }
 </script>

+ 6 - 3
src/view/pdm/data-collection/inKiln.vue

@@ -6,15 +6,15 @@
       <template #left>
         <!--    查询    -->
         <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+                        ></BaseIndexButton>
         <!--    清空条件    -->
         <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+                         ></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
         <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.inKilnAdd)"></BaseIndexButton>
+                         ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -146,6 +146,9 @@ export default {
     getData(params) {
       return this.excute(this.$service.produceService, this.$service.produceService.selectByCond, params);
     },
+  },
+  created() {
+    this.routeObjName = 'inKiln'  // 设置路由名称
   }
 }
 </script>

+ 6 - 3
src/view/pdm/data-collection/outKiln.vue

@@ -6,15 +6,15 @@
       <template #left>
         <!--    查询    -->
         <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+                         ></BaseIndexButton>
         <!--    清空条件    -->
         <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+                        ></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
         <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.outKiln)"></BaseIndexButton>
+                         ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -145,6 +145,9 @@ export default {
     getData(params) {
       return this.excute(this.$service.produceService, this.$service.produceService.selectByCond, params);
     },
+  },
+  created() {
+    this.routeObjName = 'outKiln'  // 设置路由名称
   }
 }
 </script>

+ 6 - 6
src/view/pdm/data-collection/recover.vue

@@ -5,16 +5,13 @@
     <BaseIndexButtonGroup id="BaseIndexButtonGroup">
       <template #left>
         <!--    查询    -->
-        <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+        <BaseIndexButton right-button="register-select" ref="search" name="search"></BaseIndexButton>
         <!--    清空条件    -->
-        <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+        <BaseIndexButton right-button="register-clear" ref="clear" name="clear" ></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
-        <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.recoverAdd)"></BaseIndexButton>
+        <BaseIndexButton right-button="user-add" ref="add" name="add" ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -134,6 +131,9 @@ export default {
       return this.excute(this.$service.produceService, this.$service.produceService.selectByCond, params);
     },
 
+  },
+  created() {
+    this.routeObjName = 'recover'  // 设置路由名称
   }
 }
 </script>

+ 10 - 8
src/view/pdm/data-collection/register.vue

@@ -5,16 +5,13 @@
     <BaseIndexButtonGroup id="BaseIndexButtonGroup">
       <template #left>
         <!--    查询    -->
-        <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+        <BaseIndexButton right-button="register-select" ref="search" name="search"></BaseIndexButton>
         <!--    清空条件    -->
-        <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+        <BaseIndexButton right-button="register-clear" ref="clear" name="clear"></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
-        <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.registerAdd  )"></BaseIndexButton>
+        <BaseIndexButton right-button="user-add" ref="add" name="add"></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -100,7 +97,9 @@ export default {
           valueFormat: {code: 'opCreateTime'},
           valueKind: 'DATE_RANGE'
         },
-      ]
+      ],
+      flowNodeId:self.$route.exMenuUuid,
+      ftyId: self.$store.state.user.ftyId,
     }
   },
   methods:{
@@ -129,9 +128,12 @@ export default {
      *   @author : 寇珊珊
      */
     getData(params) {
-      return this.excute(this.$service.produceService, this.$service.produceService.selectByCond, params);
+      return this.excute(this.$service.produceService, this.$service.produceService.search.url, params);
     },
 
+  },
+  created() {
+    this.routeObjName = 'register'  // 设置路由名称
   }
 }
 </script>

+ 6 - 3
src/view/pdm/data-collection/uninstallKiln.vue

@@ -6,15 +6,15 @@
       <template #left>
         <!--    查询    -->
         <BaseIndexButton right-button="register-select" ref="search" name="search"
-                         @click="open($config.routeUrl.search)"></BaseIndexButton>
+                         ></BaseIndexButton>
         <!--    清空条件    -->
         <BaseIndexButton right-button="register-clear" ref="clear" name="clear"
-                         @click="open($config.routeUrl.produce.clear)"></BaseIndexButton>
+                        ></BaseIndexButton>
       </template>
       <template #right>
         <!--   新建     -->
         <BaseIndexButton right-button="user-add" ref="add" name="add"
-                         @click="open($config.routeUrl.produce.uninstallKiln)"></BaseIndexButton>
+                        ></BaseIndexButton>
       </template>
     </BaseIndexButtonGroup>
 
@@ -145,6 +145,9 @@ export default {
     getData(params) {
       return this.excute(this.$service.produceService, this.$service.produceService.selectByCond, params);
     },
+  },
+  created() {
+    this.routeObjName = 'uninstallKiln'  // 设置路由名称
   }
 }
 </script>