Bläddra i källkod

获取后端各部分数据

wyh 1 år sedan
förälder
incheckning
d1b529d687

+ 3 - 0
itdmWeb/src/api/api.js

@@ -112,6 +112,8 @@ const listSj = (params)=>getAction("/itdmgomgongdanshuju/ItdmGongdanshuju/list",
 const upload = (params)=>postAction("/itdmgomgongdanshuju/ItdmGongdanshuju/upload",params);
 // 获取当前附件
 const getUpload = (params)=>getAction("/itdmgomgongdanshuju/ItdmGongdanshuju/getUpdate",params);
+// 根据流程id查询业务内容
+const getYeWU = (params)=>getAction("flowpath/itdmRunFlowPath/queryById",params);
 
 
 //日志管理
@@ -296,6 +298,7 @@ export {
   runFlowPathRejectDQ,
   runFlowPathyrunList,
   runFlowPathrejectzd,
+  getYeWU,
 }
 
 

+ 6 - 1
itdmWeb/src/views/module-iTDM/flowpath/ItdmRunFlowPathList.vue

@@ -100,7 +100,8 @@
           <a-divider type='vertical' />
           <a @click='bohui1(record)'>驳回指定节点</a>
           <a-divider type='vertical' />
-          <a @click='handleEdit(record)'>编辑</a>
+          <!-- <a @click='handleEdit(record)'>编辑</a> -->
+          <a @click='handleEdit2(record)'>流程编辑</a>
 
           <a-divider type='vertical' />
           <a-dropdown>
@@ -252,6 +253,10 @@ export default {
       this.$refs.bohuiForm1.bohui(record);
 
     },
+    handleEdit2(record){
+      console.log(record)
+      this.$router.push({path: '/itdmYeWu/index',query:{id: record.id,flowPathId: record.flowPathId,weituoNo:record.weituoNo}})
+    },
 
     initDictConfig() {
     },

+ 46 - 6
itdmWeb/src/views/module-iTDM/itdmYeWu/index.vue

@@ -1,10 +1,10 @@
 <template>
     <a-card :bordered="false">
-        <itdm-xm-shuru></itdm-xm-shuru>
-        <itdm-xq-pingshen></itdm-xq-pingshen>
-        <itdm-gc-shishi></itdm-gc-shishi>
-        <itdm-bg-jiaofu></itdm-bg-jiaofu>
-        <itdm-xn-jiesuan></itdm-xn-jiesuan>
+        <itdm-xm-shuru :tableData1="tableData1"></itdm-xm-shuru>
+        <itdm-xq-pingshen :tableData2="tableData2"></itdm-xq-pingshen>
+        <itdm-gc-shishi :tableData3="tableData3"></itdm-gc-shishi>
+        <itdm-bg-jiaofu :tableData4="tableData4"></itdm-bg-jiaofu>
+        <itdm-xn-jiesuan :tableData5="tableData5"></itdm-xn-jiesuan>
     </a-card>
 </template>
 
@@ -14,9 +14,49 @@ import ItdmXqPingshen from './itdmXqPingshen.vue'
 import ItdmGcShishi from './itdmGcShishi.vue'
 import ItdmBgJiaofu from './itdmBgJiaofu.vue'
 import ItdmXnJiesuan from './itdmXnJiesuan.vue'
+import { getYeWU } from '@/api/api'
 export default {
   components: { ItdmXmShuru, ItdmXqPingshen, ItdmGcShishi, ItdmBgJiaofu, ItdmXnJiesuan },
-    
+    data() {
+      return {
+        querys:{
+          id: this.$route.query.id
+        },
+        // 接收后端传的json
+        tableData1:[],
+        tableData2:[],
+        tableData3:[],
+        tableData4:[],
+        tableData5:[],
+      }
+    },
+    created(){
+      // this.querys.id = this.$route.query.id
+      console.log(this.querys.id)
+      this.getList()
+    },
+    methods: {
+      getList(){
+        getYeWU(this.querys).then((res) => {
+          console.log(11111,res)
+          // this.tableData = res.result.stepList
+          // console.log(this.tableData)
+          this.tableData1.push(res.result.stepList[0])
+          this.tableData1.push(res.result.stepList[1])
+          this.tableData2.push(res.result.stepList[2])
+          this.tableData2.push(res.result.stepList[3])
+          this.tableData3.push(res.result.stepList[4])
+          this.tableData4.push(res.result.stepList[5])
+          this.tableData4.push(res.result.stepList[6])
+          this.tableData5.push(res.result.stepList[7])
+          this.tableData5.push(res.result.stepList[8])
+          this.tableData5.push(res.result.stepList[9])
+          this.tableData5.push(res.result.stepList[10])
+          this.tableData5.push(res.result.stepList[11])
+          // console.log(this.tableData1)
+        })
+      }
+    }
 }
 </script>
 

+ 11 - 0
itdmWeb/src/views/module-iTDM/itdmYeWu/itdmBgJiaofu.vue

@@ -74,6 +74,14 @@ import JUpload from '@/components/jeecg/JUpload'
 export default {
     name: 'itdmBgJiaofu',
     components: { JUpload },
+    props: {
+      // json
+      tableData4: {
+        type: Array,
+        default: false,
+        required: false
+      }
+    },
     data() {
         return {
             tableData: {
@@ -95,6 +103,9 @@ export default {
             excel: '',
         }
     },
+    created(){
+      console.log(44444,this.tableData4)
+    },
     methods: {
       // 点击导入excel
       daoruButton() {

+ 11 - 0
itdmWeb/src/views/module-iTDM/itdmYeWu/itdmGcShishi.vue

@@ -61,6 +61,14 @@
 <script>
 export default {
   name: 'itdmGcShishi',
+  props: {
+    // json
+    tableData3: {
+      type: Array,
+      default: false,
+      required: false
+    }
+  },
   data() {
     return {
       tableData: {
@@ -70,6 +78,9 @@ export default {
       },
     }
   },
+  created(){
+    console.log(33333,this.tableData3)
+  },
 }
 </script>
 

+ 9 - 0
itdmWeb/src/views/module-iTDM/itdmYeWu/itdmXmShuru.vue

@@ -194,6 +194,14 @@ import { getDeviceList } from '@/api/api'
 export default {
   name: 'itdmXmShuru',
   mixins: [JeecgListMixin, mixinDevice],
+  props: {
+    // json
+    tableData1: {
+      type: Array,
+      default: false,
+      required: false
+    }
+  },
   data() {
     return {
       tableData: {
@@ -203,6 +211,7 @@ export default {
     }
   },
   created() {
+    console.log(11111,this.tableData1)
     this.getDevicePrice()
   },
   computed: {

+ 11 - 0
itdmWeb/src/views/module-iTDM/itdmYeWu/itdmXqPingshen.vue

@@ -138,6 +138,14 @@
 <script>
 export default {
     name: 'itdmXqPingshen',
+    props: {
+      // json
+      tableData2: {
+        type: Array,
+        default: false,
+        required: false
+      }
+    },
     data() {
         return {
             tableData: {
@@ -165,6 +173,9 @@ export default {
             },
         }
     },
+    created(){
+      console.log(22222,this.tableData2)
+    },
     computed: {
       totalCleanPrice() {
         let total = 0