diff --git a/src/components/layouts/TabLayout.vue b/src/components/layouts/TabLayout.vue index 0521f1f..879be45 100644 --- a/src/components/layouts/TabLayout.vue +++ b/src/components/layouts/TabLayout.vue @@ -16,6 +16,7 @@ @edit="editPage"> {{ page.meta.title }} + {{page.params.merchandiseName}}
diff --git a/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue b/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue index 52d9802..67ac07f 100644 --- a/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue +++ b/src/views/suppliesstronger/ProcessSuppliesStrongerList.vue @@ -160,12 +160,12 @@ { title:'规格', align:"center", - dataIndex: 'merchandiseName' + dataIndex: 'merchandiseName1' }, { title:'型号', align:"center", - dataIndex: 'merchandiseName' + dataIndex: 'merchandiseName2' }, { @@ -181,7 +181,7 @@ { title:'项目部数量', align:"center", - dataIndex: 'materialQuantity' + dataIndex: 'materialQuantity1' }, { title:'核算属性', @@ -221,19 +221,25 @@ handleDetaills(record){ console.log(record); - var temomen = { - name: 'src-views-suppliesstronger-ProcessSuppliesStrongerLists', - hidden: true, - meta: { - title: 'title', - keepAlive: true, - hiddenHeaderContent: true, - } - } - this.tabs - // this.$router.push({name:'src-views-suppliesstronger-ProcessSuppliesStrongerLists',params:{item: record.merchandiseNewsId}}) - - + // var temomen = { + // name: 'src-views-suppliesstronger-ProcessSuppliesStrongerLists', + // hidden: true, + // meta: { + // title: 'title', + // keepAlive: true, + // hiddenHeaderContent: true, + // } + // } + // this.$router.push(temomen); + // console.log(record) + // console.log("下标为",record.merchandiseName.substring(record.merchandiseName.lastIndexOf(" "))) + this.$router.push({ + name:'src-views-suppliesstronger-ProcessSuppliesStrongerLists', + params:{ + item: record.merchandiseNewsId, + merchandiseName : ' - '+record.merchandiseName.substring(0,record.merchandiseName.lastIndexOf(" ")) + } + }) }, initDictConfig(){ },