Danj0rr před 11 měsíci
rodič
revize
d24a329eef

+ 2 - 2
src/api/index.js

@@ -145,12 +145,12 @@ export function selectCoopProduct(pageNum,pageSize,productName){
         });
 }
 
-export function getCooperatorByModel(pageNum,pageSize,modelNo){
+export function getCooperatorByModel(pageNum,pageSize,modelId){
     return request.post('/cooperator_product/getCooperatorByModel',
         {
             pageNum:pageNum,
             pageSize:pageSize,
-            modelNo:modelNo,
+            modelId:modelId,
         });
 }
 export function findCooperatorProductFieldByNum(productNum,pageNum,pageSize){

+ 4 - 1
src/views/system/modelInfo.vue

@@ -132,6 +132,7 @@
         currentPage: 1,
         pagesize:10,
         totalSize:'',
+          modelId:this.$route.query.modelId,
         modelNo:this.$route.query.modelNo,
         modelName:this.$route.query.modelName,
         filePath:this.$route.query.filePath,
@@ -149,7 +150,9 @@
     beforeMount() {},
     mounted() 
     {
-        getCooperatorByModel(this.currentPage,this.pagesize,this.modelNo).then(
+        console.log("test");
+        console.log(this.modelId);
+        getCooperatorByModel(this.currentPage,this.pagesize,this.modelId).then(
           res=>
           {
             this.cooperatorProductData=res.data.cooperator_Product_List.list;

+ 2 - 0
src/views/system/userinfo.vue

@@ -211,9 +211,11 @@ export default {
         },
         showDetail(row) {
             this.selectedItem = row;
+            // console.log(this.selectedItem.id);
             this.$router.push({
                 path: '/modelInfo',
                 query: {
+                    modelId:this.selectedItem.id,
                     modelNo:this.selectedItem.modelNo,
                     modelName:this.selectedItem.modelName,
                     filePath:this.selectedItem.filePath